diff mbox series

arm64: dts: qcom: pm8916: Add vibration motor node

Message ID 20191211192906.56638-1-stephan@gerhold.net (mailing list archive)
State Accepted
Commit 741a5ea7a69717ea1368ed98e431fbd6f5629a88
Headers show
Series arm64: dts: qcom: pm8916: Add vibration motor node | expand

Commit Message

Stephan Gerhold Dec. 11, 2019, 7:29 p.m. UTC
PM8916 has one vibration motor driver that is already supported
by the pm8xxx-vibrator driver.

Add a node describing it to pm8916.dtsi.
Keep it disabled by default since not all devices make use of it.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
---
 arch/arm64/boot/dts/qcom/pm8916.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Bjorn Andersson Dec. 12, 2019, 6:42 a.m. UTC | #1
On Wed 11 Dec 11:29 PST 2019, Stephan Gerhold wrote:

> PM8916 has one vibration motor driver that is already supported
> by the pm8xxx-vibrator driver.
> 
> Add a node describing it to pm8916.dtsi.
> Keep it disabled by default since not all devices make use of it.
> 
> Signed-off-by: Stephan Gerhold <stephan@gerhold.net>

Applied, please also send a defconfig patch that enables the associated
driver (=m)

Thanks,
Bjorn

> ---
>  arch/arm64/boot/dts/qcom/pm8916.dtsi | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/pm8916.dtsi b/arch/arm64/boot/dts/qcom/pm8916.dtsi
> index 9dd2df1cbf47..0bcdf0471107 100644
> --- a/arch/arm64/boot/dts/qcom/pm8916.dtsi
> +++ b/arch/arm64/boot/dts/qcom/pm8916.dtsi
> @@ -111,6 +111,12 @@ pm8916_1: pm8916@1 {
>  		#address-cells = <1>;
>  		#size-cells = <0>;
>  
> +		pm8916_vib: vibrator@c000 {
> +			compatible = "qcom,pm8916-vib";
> +			reg = <0xc000>;
> +			status = "disabled";
> +		};
> +
>  		wcd_codec: codec@f000 {
>  			compatible = "qcom,pm8916-wcd-analog-codec";
>  			reg = <0xf000 0x200>;
> -- 
> 2.24.0
>
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/qcom/pm8916.dtsi b/arch/arm64/boot/dts/qcom/pm8916.dtsi
index 9dd2df1cbf47..0bcdf0471107 100644
--- a/arch/arm64/boot/dts/qcom/pm8916.dtsi
+++ b/arch/arm64/boot/dts/qcom/pm8916.dtsi
@@ -111,6 +111,12 @@  pm8916_1: pm8916@1 {
 		#address-cells = <1>;
 		#size-cells = <0>;
 
+		pm8916_vib: vibrator@c000 {
+			compatible = "qcom,pm8916-vib";
+			reg = <0xc000>;
+			status = "disabled";
+		};
+
 		wcd_codec: codec@f000 {
 			compatible = "qcom,pm8916-wcd-analog-codec";
 			reg = <0xf000 0x200>;