Re: [PATCH] arm64: dts: qcom: msm8916-samsung-a3u: add nodes for touchscreen

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Nov 15, 2020 at 08:50:58PM +0100, michael.srba@xxxxxxxxx wrote:
> From: Michael Srba <Michael.Srba@xxxxxxxxx>
> 
> This patch wires up touchscreen support on Samsung Galaxy A3 2015.
> 
> Signed-off-by: Michael Srba <Michael.Srba@xxxxxxxxx>

Reviewed-by: Stephan Gerhold <stephan@xxxxxxxxxxx>

> ---
> 
> Tested on Samsung Galaxy A3 (sm-a3ulte).
> 
> ---
>  .../boot/dts/qcom/msm8916-samsung-a3u-eur.dts | 29 +++++++++++++++++++
>  1 file changed, 29 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-a3u-eur.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-a3u-eur.dts
> index 086f07ead5cb..661f41ad978b 100644
> --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-a3u-eur.dts
> +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-a3u-eur.dts
> @@ -28,6 +28,27 @@ &accelerometer {
>  		       "0", "0", "1";
>  };
>  
> +&blsp_i2c5 {
> +	status = "okay";
> +
> +	touchscreen@20 {
> +		compatible = "zinitix,bt541";
> +
> +		reg = <0x20>;
> +		interrupt-parent = <&msmgpio>;
> +		interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
> +
> +		touchscreen-size-x = <540>;
> +		touchscreen-size-y = <960>;
> +
> +		vdd-supply = <&reg_vdd_tsp>;
> +		vddo-supply = <&pm8916_l6>;
> +
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&ts_int_default>;
> +	};
> +};
> +
>  &dsi0 {
>  	panel@0 {
>  		reg = <0>;
> @@ -59,4 +80,12 @@ panel_vdd3_default: panel-vdd3-default {
>  		drive-strength = <2>;
>  		bias-disable;
>  	};
> +
> +	ts_int_default: ts-int-default {
> +		pins = "gpio13";
> +		function = "gpio";
> +
> +		drive-strength = <2>;
> +		bias-disable;
> +	};
>  };
> -- 
> 2.28.0
> 



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux