--- v3
+++ v6
@@ -1,47 +1,36 @@
-This patch adds the binding description of the tm2 touchkey
-device driver.
+Add DT node support for TM2 touchkey device.
+Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
+Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
-Reviewed-by: Andi Shyti <andi.shyti@samsung.com>
-Acked-by: Rob Herring <robh@kernel.org>
---
- .../bindings/input/samsung,tm2-touchkey.txt | 27 ++++++++++++++++++++++
- 1 file changed, 27 insertions(+)
- create mode 100644 Documentation/devicetree/bindings/input/samsung,tm2-touchkey.txt
+ arch/arm64/boot/dts/exynos/exynos5433-tm2.dts | 13 +++++++++++++
+ 1 file changed, 13 insertions(+)
-diff --git a/Documentation/devicetree/bindings/input/samsung,tm2-touchkey.txt b/Documentation/devicetree/bindings/input/samsung,tm2-touchkey.txt
-new file mode 100644
-index 0000000..4de1af0
---- /dev/null
-+++ b/Documentation/devicetree/bindings/input/samsung,tm2-touchkey.txt
-@@ -0,0 +1,27 @@
-+Samsung tm2-touchkey
+diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts b/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts
+index 2449266..ddba2f8 100644
+--- a/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts
++++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts
+@@ -18,6 +18,19 @@
+ compatible = "samsung,tm2", "samsung,exynos5433";
+ };
+
++&hsi2c_9 {
++ status = "okay";
+
-+Required properties:
-+- compatible: must be "samsung,tm2-touchkey"
-+- reg: I2C address of the chip.
-+- interrupt-parent: a phandle for the interrupt controller (see interrupt
-+ binding[0]).
-+- interrupts: interrupt to which the chip is connected (see interrupt
-+ binding[0]).
-+- vcc-supply : internal regulator output. 1.8V
-+- vdd-supply : power supply for IC 3.3V
++ touchkey at 20 {
++ compatible = "cypress,tm2-touchkey";
++ reg = <0x20>;
++ interrupt-parent = <&gpa3>;
++ interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
++ vcc-supply = <&ldo32_reg>;
++ vdd-supply = <&ldo33_reg>;
++ };
++};
+
-+[0]: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
-+
-+Example:
-+ &i2c0 {
-+ /* ... */
-+
-+ touchkey at 20 {
-+ compatible = "samsung,tm2-touchkey";
-+ reg = <0x20>;
-+ interrupt-parent = <&gpa3>;
-+ interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
-+ vcc-supply=<&ldo32_reg>;
-+ vdd-supply=<&ldo33_reg>;
-+ };
-+ };
+ &ldo31_reg {
+ regulator-name = "TSP_VDD_1.85V_AP";
+ regulator-min-microvolt = <1850000>;
--
2.7.4