ARM: dts: exynos: Add touchscreen node to Exynos4412 N710x
authorSimon Shields <simon@lineageos.org>
Tue, 20 Feb 2018 08:12:33 +0000 (19:12 +1100)
committerKrzysztof Kozlowski <krzk@kernel.org>
Thu, 22 Feb 2018 18:39:31 +0000 (19:39 +0100)
This adds support for the MMS152 found on N710x boards.

Signed-off-by: Simon Shields <simon@lineageos.org>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm/boot/dts/exynos4412-n710x.dts

index 7d289c25792083ccee29dccc25c3c34968ac5837..eb402a0d66518a130aa04e3e65bfe70c9d520b77 100644 (file)
        status = "okay";
 };
 
+&i2c_3 {
+       samsung,i2c-sda-delay = <100>;
+       samsung,i2c-slave-addr = <0x10>;
+       samsung,i2c-max-bus-freq = <400000>;
+       pinctrl-0 = <&i2c3_bus>;
+       pinctrl-names = "default";
+       status = "okay";
+
+       mms152-touchscreen@48 {
+               compatible = "melfas,mms152";
+               reg = <0x48>;
+               interrupt-parent = <&gpm2>;
+               interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
+               x-size = <720>;
+               y-size = <1280>;
+               avdd-supply = <&ldo23_reg>;
+               vdd-supply = <&ldo24_reg>;
+       };
+};
+
 &ldo13_reg {
        regulator-name = "VCC_1.8V_LCD";
        regulator-always-on;