ARM: dts: imx7s-warp: Add NFC support
Subsystems (2)
PATCH 1/2 ARM: dts: imx7s-warp: Add NFC support
Add NFC support for NT3H1101W0FHK device.
Tested by verifying Manufacturer ID (04h) at address 0x00, via i2ctools.
--- arch/arm/boot/dts/imx7s-warp.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
arch/arm/boot/dts/imx7s-warp.dts +14 -0
@@ -188,6 +188,13 @@ }; }; +&i2c2 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c2>; + status = "okay"; +}; + &i2c4 { clock-frequency = <100000>; pinctrl-names = "default";
@@ -278,6 +285,13 @@ >; }; + pinctrl_i2c2: i2c2grp { + fsl,pins = < + MX7D_PAD_I2C2_SDA__I2C2_SDA 0x4000007f + MX7D_PAD_I2C2_SCL__I2C2_SCL 0x4000007f + >; + }; + pinctrl_i2c4: i2c4grp { fsl,pins = < MX7D_PAD_I2C4_SCL__I2C4_SCL 0x4000007f
Signature · 1 line
2.7.4
PATCH 2/2 ARM: dts: imx7s-warp: Add User Button support
Add User Button at GPIO7_1.
Tested by evtest.
--- arch/arm/boot/dts/imx7s-warp.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
arch/arm/boot/dts/imx7s-warp.dts +19 -0
@@ -54,6 +54,19 @@ reg = <0x80000000 0x20000000>; }; + gpio-keys { + compatible = "gpio-keys"; + pinctrl-0 = <&pinctrl_gpio>; + autorepeat; + back { + label = "Back"; + gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>; + linux,code = <KEY_BACK>; + gpio-key,wakeup; + autorepeat; + }; + }; + reg_brcm: regulator-brcm { compatible = "regulator-fixed"; enable-active-high;
@@ -278,6 +291,12 @@ >; }; + pinctrl_gpio: gpiogrp { + fsl,pins = < + MX7D_PAD_ENET1_RGMII_RD1__GPIO7_IO1 0x14 + >; + }; + pinctrl_i2c1: i2c1grp { fsl,pins = < MX7D_PAD_I2C1_SDA__I2C1_SDA 0x4000007f
Signature · 1 line
2.7.4
PATCH 2/2 ARM: dts: imx7s-warp: Add User Button support
Quoted 14 lines · Vanessa Maegima
Add User Button at
GPIO7_1.Tested by evtest.
Signed-off-by Vanessa Maegima <[email protected]>--- arch/arm/boot/dts/imx7s-warp.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)arch/arm/boot/dts/imx7s-warp.dts +0
-0
arch/arm/boot/dts/imx7s-warp.dts line 60
Quoted 7 lines
arch/arm/boot/dts/imx7s-warp.dts +4
-0@@ -54,6 +54,19 @@ reg = <0x80000000 0x20000000>; }; + gpio-keys { + compatible = "gpio-keys"; + pinctrl-0 = <&pinctrl_gpio>; + autorepeat;
Please have a newline between property list and sub-node.
arch/arm/boot/dts/imx7s-warp.dts line 65
Quoted 5 lines
arch/arm/boot/dts/imx7s-warp.dts +5
-0+ back { + label = "Back"; + gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>; + linux,code = <KEY_BACK>; + gpio-key,wakeup;
This property is deprecated, and 'wakeup-source' should be used instead. See Documentation/devicetree/bindings/power/wakeup-source.txt for details.
arch/arm/boot/dts/imx7s-warp.dts line 66
Quoted 1 line
arch/arm/boot/dts/imx7s-warp.dts +1
-0+ autorepeat;
Is it really necessary to have this property in both parent and child node?
Shawn
Quoted 27 lines
arch/arm/boot/dts/imx7s-warp.dts +9
-0+ }; + }; + reg_brcm: regulator-brcm { compatible = "regulator-fixed"; enable-active-high;@@ -278,6 +291,12 @@ >; }; + pinctrl_gpio: gpiogrp { + fsl,pins = < + MX7D_PAD_ENET1_RGMII_RD1__GPIO7_IO1 0x14 + >; + }; + pinctrl_i2c1: i2c1grp { fsl,pins = < MX7D_PAD_I2C1_SDA__I2C1_SDA 0x4000007fSignature · 7 lines
2.7.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel at lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 1/2 ARM: dts: imx7s-warp: Add NFC support
In reply to Vanessa MaegimaQuoted 3 lines · Vanessa Maegima
Add NFC support for NT3H1101W0FHK device.
Tested by verifying Manufacturer ID (04h) at address
0x00, via i2ctools.
What the code change tells is all about enabling I2C2 device support. Please update patch subject and commit log.
Shawn
Quoted 46 lines
Signed-off-by Vanessa Maegima <[email protected]>--- arch/arm/boot/dts/imx7s-warp.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+)arch/arm/boot/dts/imx7s-warp.dts +14
-0@@ -188,6 +188,13 @@ }; }; +&i2c2 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c2>; + status = "okay"; +}; + &i2c4 { clock-frequency = <100000>; pinctrl-names = "default";@@ -278,6 +285,13 @@ >; }; + pinctrl_i2c2: i2c2grp { + fsl,pins = < + MX7D_PAD_I2C2_SDA__I2C2_SDA 0x4000007f + MX7D_PAD_I2C2_SCL__I2C2_SCL 0x4000007f + >; + }; + pinctrl_i2c4: i2c4grp { fsl,pins = < MX7D_PAD_I2C4_SCL__I2C4_SCL 0x4000007fSignature · 7 lines
2.7.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel at lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel