Message ID | 5029E646.5090900@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Tue, Aug 14, 2012 at 01:46:46PM +0800, Hui Wang wrote: > I generated a similar patch on the last week, only the linux-input > part. please refer to https://patchwork.kernel.org/patch/1293451/ > Ok. But can you rename property "irq-gpio" to "wakeup-gpios"? Firstly, the idiom of gpio naming in DT is *-gpios, even though most of time, it could be just one gpio. Secondly, as the pin is accessed as a gpio only in egalax_wake_up_device for waking up the device, "wakeup-gpios" sounds better?
Shawn Guo wrote: > On Tue, Aug 14, 2012 at 01:46:46PM +0800, Hui Wang wrote: > >> I generated a similar patch on the last week, only the linux-input >> part. please refer to https://patchwork.kernel.org/patch/1293451/ >> >> > Ok. But can you rename property "irq-gpio" to "wakeup-gpios"? > Firstly, the idiom of gpio naming in DT is *-gpios, even though > most of time, it could be just one gpio. Secondly, as the pin is > accessed as a gpio only in egalax_wake_up_device for waking up the > device, "wakeup-gpios" sounds better? > > Both accepted. Thanks, Hui.
diff --git a/arch/arm/boot/dts/imx6q-sabrelite.dts b/arch/arm/boot/dts/imx6q-sabrelite.dts index d42e851..71fcd12 100644 --- a/arch/arm/boot/dts/imx6q-sabrelite.dts +++ b/arch/arm/boot/dts/imx6q-sabrelite.dts @@ -53,6 +53,7 @@ fsl,pins = < 144 0x80000000 /* MX6Q_PAD_EIM_D22__GPIO_3_22 */ 121 0x80000000 /* MX6Q_PAD_EIM_D19__GPIO_3_19 */ + 972 0x10 /* MX6Q_PAD_GPIO_9__GPIO_1_9 */ >; }; }; @@ -114,6 +115,21 @@ VDDIO-supply = <®_3p3v>; }; }; + + i2c@021a8000 { /* I2C3 */ + status = "okay"; + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c3_1>; + + egalax_ts@04 { + compatible = "eeti,egalax_ts"; + reg = <0x04>; + interrupt-parent = <&gpio1>; + interrupts = <9 2>; + irq-gpio = <&gpio1 9 0>; + }; + }; }; }; diff --git a/arch/arm/boot/dts/imx6q.dtsi b/arch/arm/boot/dts/imx6q.dtsi index 3d3c64b..ebbd624 100644 --- a/arch/arm/boot/dts/imx6q.dtsi +++ b/arch/arm/boot/dts/imx6q.dtsi @@ -545,6 +545,14 @@ }; }; + + i2c3 { + pinctrl_i2c3_1: i2c3grp-1 { + fsl,pins = <1013 0x4001b8b1 /* MX6Q_PAD_GPIO_5__I2C3_SCL */ + 1037 0x4001b8b1>; /* MX6Q_PAD_GPIO_16__I2C3_SDA */ + }; + }; + serial2 { pinctrl_serial2_1: serial2grp-1 { fsl,pins = <183 0x1b0b1 /* MX6Q_PAD_EIM_D26__UART2_TXD */