From 78057612a882d9aa9cc72280b94b3cb36e1acfa1 Mon Sep 17 00:00:00 2001 From: Bin Yang Date: Mon, 12 Sep 2016 21:25:28 +0800 Subject: [PATCH] arm64: dts: rockchip: add hall-sensor device node for rk3399-mid Change-Id: Iaf9c8aebc1006fe6058536689c1561c66ddde162 Signed-off-by: Bin Yang --- .../boot/dts/rockchip/rk3399-mid-818-android.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-mid-818-android.dts b/arch/arm64/boot/dts/rockchip/rk3399-mid-818-android.dts index 45b63e784d06..f432ba9f48f4 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-mid-818-android.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-mid-818-android.dts @@ -50,6 +50,15 @@ / { 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"; @@ -1104,6 +1113,12 @@ }; }; + 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>; -- 2.34.1