arm64: dts: rockchip: add hall-sensor device node for rk3399-mid
authorBin Yang <yangbin@rock-chips.com>
Mon, 12 Sep 2016 13:25:28 +0000 (21:25 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Sun, 18 Sep 2016 08:44:14 +0000 (16:44 +0800)
Change-Id: Iaf9c8aebc1006fe6058536689c1561c66ddde162
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3399-mid-818-android.dts

index 45b63e784d06fc6e7c07a4643ed50025ff17aab3..f432ba9f48f418c8354abbaa7ed83bb709a5d7a6 100644 (file)
 / {
        compatible = "rockchip,rk3399-mid", "rockchip,rk3399";
 
+       hall_sensor: hall-mh248 {
+               compatible = "hall-mh248";
+               pinctrl-names = "default";
+               pinctrl-0 = <&mh248_irq_gpio>;
+               irq-gpio = <&gpio1 2 IRQ_TYPE_EDGE_BOTH>;
+               hall-active = <1>;
+               status = "okay";
+       };
+
        vcc_sys: vcc-sys {
                compatible = "regulator-fixed";
                regulator-name = "vcc_sys";
                };
        };
 
+       hallsensor {
+               mh248_irq_gpio: mh248-irq-gpio {
+                       rockchip,pins = <1 2 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+       };
+
        headphone {
                hp_det: hp-det {
                        rockchip,pins = <4 28 RK_FUNC_GPIO &pcfg_pull_up>;