2017-03-16 07:06:02

by Jagan Teki

[permalink] [raw]
Subject: [PATCH v6 5/8] dt-bindings: input: touchscreen: Add max11801-ts binding

From: Jagan Teki <[email protected]>

Add missing documentation of max11801-ts dt-binding details.

Cc: Mark Rutland <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Shawn Guo <[email protected]>
Cc: Michael Trimarchi <[email protected]>
Signed-off-by: Jagan Teki <[email protected]>
---
Changes for v6:
- Replace the lable and name of the node
ts: max11801 => max11801: touchscreen@48
Changes for v5:
- Newly added patch

.../bindings/input/touchscreen/max11801-ts.txt | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 Documentation/devicetree/bindings/input/touchscreen/max11801-ts.txt

diff --git a/Documentation/devicetree/bindings/input/touchscreen/max11801-ts.txt b/Documentation/devicetree/bindings/input/touchscreen/max11801-ts.txt
new file mode 100644
index 0000000..4afccbe
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/touchscreen/max11801-ts.txt
@@ -0,0 +1,18 @@
+* MAXI MAX11801 Resistive touch screen controller with i2c interface
+
+Required properties:
+- compatible: must be "max11801"
+- reg: i2c slave address
+- interrupt-parent: the phandle for the interrupt controller
+- interrupts: touch controller interrupt
+
+Example:
+
+&i2c1 {
+ max11801: touchscreen@48 {
+ compatible = "max11801";
+ reg = <0x48>;
+ interrupt-parent = <&gpio3>;
+ interrupts = <31 2>;
+ };
+};
--
1.9.1


2017-03-16 07:06:24

by Jagan Teki

[permalink] [raw]
Subject: [PATCH v6 6/8] ARM: dts: imx6q-icore: Add touchscreen node

From: Jagan Teki <[email protected]>

max11801 touchscreen on Engicam iCoreM6 Quad module is
connected via i2c1, so add tc: max11801@48 on i2c1.

Cc: Domenico Acri <[email protected]>
Cc: Matteo Lisi <[email protected]>
Cc: Michael Trimarchi <[email protected]>
Cc: Shawn Guo <[email protected]>
Signed-off-by: Jagan Teki <[email protected]>
---
Changes for v6:
- Replace the lable and name of the node
ts: max11801 => max11801: touchscreen@48
Changes for v5:
- %s/arm/ARM/g with subject prefix
Changes for v4:
- Newly added patch

arch/arm/boot/dts/imx6q-icore.dts | 9 +++++++++
1 file changed, 9 insertions(+)

diff --git a/arch/arm/boot/dts/imx6q-icore.dts b/arch/arm/boot/dts/imx6q-icore.dts
index 73f34d1..8c1a572 100644
--- a/arch/arm/boot/dts/imx6q-icore.dts
+++ b/arch/arm/boot/dts/imx6q-icore.dts
@@ -58,6 +58,15 @@
status = "okay";
};

+&i2c1 {
+ max11801: touchscreen@48 {
+ compatible = "max11801";
+ reg = <0x48>;
+ interrupt-parent = <&gpio3>;
+ interrupts = <31 2>;
+ };
+};
+
&ldb {
status = "okay";

--
1.9.1

2017-03-20 02:36:57

by Shawn Guo

[permalink] [raw]
Subject: Re: [PATCH v6 5/8] dt-bindings: input: touchscreen: Add max11801-ts binding

On Thu, Mar 16, 2017 at 12:35:38PM +0530, Jagan Teki wrote:
> From: Jagan Teki <[email protected]>
>
> Add missing documentation of max11801-ts dt-binding details.
>
> Cc: Mark Rutland <[email protected]>
> Cc: Rob Herring <[email protected]>
> Cc: Shawn Guo <[email protected]>
> Cc: Michael Trimarchi <[email protected]>
> Signed-off-by: Jagan Teki <[email protected]>
> ---
> Changes for v6:
> - Replace the lable and name of the node
> ts: max11801 => max11801: touchscreen@48
> Changes for v5:
> - Newly added patch
>
> .../bindings/input/touchscreen/max11801-ts.txt | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/input/touchscreen/max11801-ts.txt
>
> diff --git a/Documentation/devicetree/bindings/input/touchscreen/max11801-ts.txt b/Documentation/devicetree/bindings/input/touchscreen/max11801-ts.txt
> new file mode 100644
> index 0000000..4afccbe
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/input/touchscreen/max11801-ts.txt
> @@ -0,0 +1,18 @@
> +* MAXI MAX11801 Resistive touch screen controller with i2c interface
> +
> +Required properties:
> +- compatible: must be "max11801"

Shouldn't it have a vendor prefix?

Also I will need Rob's ACK to get this go via IMX tree.

Shawn

> +- reg: i2c slave address
> +- interrupt-parent: the phandle for the interrupt controller
> +- interrupts: touch controller interrupt
> +
> +Example:
> +
> +&i2c1 {
> + max11801: touchscreen@48 {
> + compatible = "max11801";
> + reg = <0x48>;
> + interrupt-parent = <&gpio3>;
> + interrupts = <31 2>;
> + };
> +};
> --
> 1.9.1
>

2017-03-20 06:34:10

by Jagan Teki

[permalink] [raw]
Subject: Re: [PATCH v6 5/8] dt-bindings: input: touchscreen: Add max11801-ts binding

On Mon, Mar 20, 2017 at 8:06 AM, Shawn Guo <[email protected]> wrote:
> On Thu, Mar 16, 2017 at 12:35:38PM +0530, Jagan Teki wrote:
>> From: Jagan Teki <[email protected]>
>>
>> Add missing documentation of max11801-ts dt-binding details.
>>
>> Cc: Mark Rutland <[email protected]>
>> Cc: Rob Herring <[email protected]>
>> Cc: Shawn Guo <[email protected]>
>> Cc: Michael Trimarchi <[email protected]>
>> Signed-off-by: Jagan Teki <[email protected]>
>> ---
>> Changes for v6:
>> - Replace the lable and name of the node
>> ts: max11801 => max11801: touchscreen@48
>> Changes for v5:
>> - Newly added patch
>>
>> .../bindings/input/touchscreen/max11801-ts.txt | 18 ++++++++++++++++++
>> 1 file changed, 18 insertions(+)
>> create mode 100644 Documentation/devicetree/bindings/input/touchscreen/max11801-ts.txt
>>
>> diff --git a/Documentation/devicetree/bindings/input/touchscreen/max11801-ts.txt b/Documentation/devicetree/bindings/input/touchscreen/max11801-ts.txt
>> new file mode 100644
>> index 0000000..4afccbe
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/input/touchscreen/max11801-ts.txt
>> @@ -0,0 +1,18 @@
>> +* MAXI MAX11801 Resistive touch screen controller with i2c interface
>> +
>> +Required properties:
>> +- compatible: must be "max11801"
>
> Shouldn't it have a vendor prefix?

Drivers i2c_device_id.name doesn't have vendor prefix, should I fix
that one as well?

thanks!
--
Jagan Teki
Senior Linux Kernel Engineer | Amarula Solutions
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.

2017-03-20 07:44:07

by Shawn Guo

[permalink] [raw]
Subject: Re: [PATCH v6 5/8] dt-bindings: input: touchscreen: Add max11801-ts binding

On Mon, Mar 20, 2017 at 11:55:27AM +0530, Jagan Teki wrote:
> >> @@ -0,0 +1,18 @@
> >> +* MAXI MAX11801 Resistive touch screen controller with i2c interface
> >> +
> >> +Required properties:
> >> +- compatible: must be "max11801"
> >
> > Shouldn't it have a vendor prefix?
>
> Drivers i2c_device_id.name doesn't have vendor prefix, should I fix
> that one as well?

No. The vendor prefix is only needed for device tree compatible.

Shawn