diff mbox series

[8/8] arm64: dts: qcom: sdm845-akatsuki: Configure maXTouch touchscreen

Message ID 20220930191049.123256-9-konrad.dybcio@somainline.org
State New
Headers show
Series [1/8] arm64: dts: qcom: sdm845-tama: Add display nodes | expand

Commit Message

Konrad Dybcio Sept. 30, 2022, 7:10 p.m. UTC
From: Marijn Suijten <marijn.suijten@somainline.org>

Configure the maXTouch touchscreen found on Xperia XZ3 devices.

Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
[Konrad: clean up unused props, use generic node name]
---
 .../qcom/sdm845-sony-xperia-tama-akatsuki.dts | 23 +++++++++++++++++++
 1 file changed, 23 insertions(+)

Comments

Marijn Suijten Oct. 1, 2022, 8:53 a.m. UTC | #1
On 2022-09-30 21:10:49, Konrad Dybcio wrote:
> From: Marijn Suijten <marijn.suijten@somainline.org>
> 
> Configure the maXTouch touchscreen found on Xperia XZ3 devices.
> 
> Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
> Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
> [Konrad: clean up unused props, use generic node name]

We should make a note though to check if our touch controller supports
any of the possible values for atmel,wakeup-method, which is why this
patch wasn't sent yet.

- Marijn

> ---
>  .../qcom/sdm845-sony-xperia-tama-akatsuki.dts | 23 +++++++++++++++++++
>  1 file changed, 23 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts
> index 5c5949a51184..1668ae99dd47 100644
> --- a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts
> +++ b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts
> @@ -25,6 +25,29 @@ ts_vddio_supply: ts-vddio-regulator {
>  		gpio = <&tlmm 133 GPIO_ACTIVE_HIGH>;
>  		enable-active-high;
>  		regulator-boot-on;
> +
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&ts_vddio_en>;
> +	};
> +};
> +
> +&i2c5 {
> +	status = "okay";
> +
> +	touchscreen: touchscreen@4a {
> +		compatible = "atmel,maxtouch";
> +		reg = <0x4a>;
> +
> +		interrupt-parent = <&tlmm>;
> +		interrupts = <125 IRQ_TYPE_LEVEL_LOW>;
> +
> +		reset-gpios = <&tlmm 99 GPIO_ACTIVE_LOW>;
> +		vdda-supply = <&vreg_l28a_2p8>;
> +		vdd-supply = <&ts_vddio_supply>;
> +
> +		pinctrl-names = "default", "sleep";
> +		pinctrl-0 = <&ts_default>;
> +		pinctrl-1 = <&ts_sleep>;
>  	};
>  };
>  
> -- 
> 2.37.3
>
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts
index 5c5949a51184..1668ae99dd47 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts
@@ -25,6 +25,29 @@  ts_vddio_supply: ts-vddio-regulator {
 		gpio = <&tlmm 133 GPIO_ACTIVE_HIGH>;
 		enable-active-high;
 		regulator-boot-on;
+
+		pinctrl-names = "default";
+		pinctrl-0 = <&ts_vddio_en>;
+	};
+};
+
+&i2c5 {
+	status = "okay";
+
+	touchscreen: touchscreen@4a {
+		compatible = "atmel,maxtouch";
+		reg = <0x4a>;
+
+		interrupt-parent = <&tlmm>;
+		interrupts = <125 IRQ_TYPE_LEVEL_LOW>;
+
+		reset-gpios = <&tlmm 99 GPIO_ACTIVE_LOW>;
+		vdda-supply = <&vreg_l28a_2p8>;
+		vdd-supply = <&ts_vddio_supply>;
+
+		pinctrl-names = "default", "sleep";
+		pinctrl-0 = <&ts_default>;
+		pinctrl-1 = <&ts_sleep>;
 	};
 };