Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1608651
| From | Jagan Teki <jagan@openedev.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 05/15] ARM: dts: imx6ul-isiot-common: Add touchscreen node |
| Date | 2017-03-24 17:30 +0100 |
| Message-ID | <toAgc-4c4-47@gated-at.bofh.it> (permalink) |
| References | <toAga-4c4-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Jagan Teki <jagan@amarulasolutions.com>
Add touchscreen node as i2c1 slave device on Engicam Is.IoT MX6UL
modules, the touchscreen controlled 'st,stmpe-ts' connected via
i2c with st,stmpe811 mfd interface.
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Matteo Lisi <matteo.lisi@engicam.com>
Cc: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
Changes for v2:
- Fix commit message s/mfb/mfd
- Use proper [label:] node-name[@unit-address] for mfd device
- Use pinctrl-names as pinctrl_stmpe instead of pinctrl_stmpe_ts
- Use proper [label:] node-name[@unit-address] for stmpe_touchscreen
arch/arm/boot/dts/imx6ul-isiot-common.dtsi | 34 ++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/arch/arm/boot/dts/imx6ul-isiot-common.dtsi b/arch/arm/boot/dts/imx6ul-isiot-common.dtsi
index 9660e20..827f0dc 100644
--- a/arch/arm/boot/dts/imx6ul-isiot-common.dtsi
+++ b/arch/arm/boot/dts/imx6ul-isiot-common.dtsi
@@ -40,6 +40,34 @@
* OTHER DEALINGS IN THE SOFTWARE.
*/
+&i2c1 {
+ stmpe811: gpio-expander@44 {
+ compatible = "st,stmpe811";
+ reg = <0x44>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_stmpe>;
+ interrupt-parent = <&gpio1>;
+ interrupts = <18 IRQ_TYPE_EDGE_FALLING>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+
+ stmpe: touchscreen {
+ compatible = "st,stmpe-ts";
+ st,sample-time = <4>;
+ st,mod-12b = <1>;
+ st,ref-sel = <0>;
+ st,adc-freq = <1>;
+ st,ave-ctrl = <1>;
+ st,touch-det-delay = <2>;
+ st,settling = <2>;
+ st,fraction-z = <7>;
+ st,i-drive = <1>;
+ };
+ };
+};
+
&lcdif {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_lcdif_dat
@@ -104,4 +132,10 @@
MX6UL_PAD_LCD_DATA17__LCDIF_DATA17 0x79
>;
};
+
+ pinctrl_stmpe: stmpegrp {
+ fsl,pins = <
+ MX6UL_PAD_UART1_CTS_B__GPIO1_IO18 0x1b0b0
+ >;
+ };
};
--
1.9.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 00/15] ARM: dts: i.MX6: Add lcdif/sound nodes on Engicam SOMs Jagan Teki <jagan@openedev.com> - 2017-03-24 17:30 +0100 [PATCH v2 02/15] ARM: dts: imx6ul-isiot: Add backlight support for lcdif Jagan Teki <jagan@openedev.com> - 2017-03-24 17:30 +0100 [PATCH v2 14/15] ARM: dts: imx6qdl-icore-rqs: Add CAN nodes Jagan Teki <jagan@openedev.com> - 2017-03-24 17:30 +0100 [PATCH v2 03/15] ARM: dts: imx6ul-isiot: Add imx6ul-isiot-common.dtsi Jagan Teki <jagan@openedev.com> - 2017-03-24 17:30 +0100 [PATCH v2 05/15] ARM: dts: imx6ul-isiot-common: Add touchscreen node Jagan Teki <jagan@openedev.com> - 2017-03-24 17:30 +0100 [PATCH v2 01/15] ARM: dts: imx6ul-geam: Add backlight support for lcdif Jagan Teki <jagan@openedev.com> - 2017-03-24 17:30 +0100 [PATCH v2 12/15] ARM: dts: imx6dl-icore: Add LVDS support Jagan Teki <jagan@openedev.com> - 2017-03-24 17:30 +0100 [PATCH v2 07/15] ARM: dts: imx6ul-isiot: Add Sound card with codec node Jagan Teki <jagan@openedev.com> - 2017-03-24 17:30 +0100
csiph-web