diff mbox

[v2,5/6] ARM: dts: imx25: mbimxsd25: Add touchscreen support.

Message ID 1402672899-6995-6-git-send-email-denis@eukrea.com (mailing list archive)
State New, archived
Headers show

Commit Message

Denis Carikli June 13, 2014, 3:21 p.m. UTC
Signed-off-by: Denis Carikli <denis@eukrea.com>
---
 .../imx25-eukrea-mbimxsd25-baseboard-cmo-qvga.dts  |   13 +++++++++++++
 1 file changed, 13 insertions(+)

Comments

Fabio Estevam June 13, 2014, 5:10 p.m. UTC | #1
Hi Denis,

On Fri, Jun 13, 2014 at 12:21 PM, Denis Carikli <denis@eukrea.com> wrote:
> Signed-off-by: Denis Carikli <denis@eukrea.com>
> ---
>  .../imx25-eukrea-mbimxsd25-baseboard-cmo-qvga.dts  |   13 +++++++++++++
>  1 file changed, 13 insertions(+)
>
> diff --git a/arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard-cmo-qvga.dts b/arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard-cmo-qvga.dts
> index 9797280..047918d 100644
> --- a/arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard-cmo-qvga.dts
> +++ b/arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard-cmo-qvga.dts
> @@ -70,3 +70,16 @@
>         lcd-supply = <&reg_lcd_3v3>;
>         status = "okay";
>  };
> +
> +&tscadc {
> +       status = "okay";
> +
> +       tsc: tcq@50030400 {
> +               compatible = "fsl,imx25-tcq";
> +               reg = <0x50030400 0x60>;
> +               interrupt-parent = <&tscadc>;
> +               interrupts = <0>;
> +               fsl,wires = <4>;
> +               fsl,pen-debounce = <100>;

What about just keeping only inside the dts:

&tsadc {
   status = "okay";
}

Then the rest could go to the imx25.dtsi.

fsl,wires and fsl,pen-debounce could be overwritten by board dts if needed.
diff mbox

Patch

diff --git a/arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard-cmo-qvga.dts b/arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard-cmo-qvga.dts
index 9797280..047918d 100644
--- a/arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard-cmo-qvga.dts
+++ b/arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard-cmo-qvga.dts
@@ -70,3 +70,16 @@ 
 	lcd-supply = <&reg_lcd_3v3>;
 	status = "okay";
 };
+
+&tscadc {
+	status = "okay";
+
+	tsc: tcq@50030400 {
+		compatible = "fsl,imx25-tcq";
+		reg = <0x50030400 0x60>;
+		interrupt-parent = <&tscadc>;
+		interrupts = <0>;
+		fsl,wires = <4>;
+		fsl,pen-debounce = <100>;
+	};
+};