From: Zorro Liu Date: Mon, 11 Jul 2016 11:09:13 +0000 (+0800) Subject: arm64: dts: rockchip: add sensors config for rk3399 mid board X-Git-Tag: firefly_0821_release~2171 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1020185412233b3152d69615630824b5f1e81025;p=firefly-linux-kernel-4.4.55.git arm64: dts: rockchip: add sensors config for rk3399 mid board Change-Id: Ib97f1802ea14fb0d5fcb043325733f4d58e1188a Signed-off-by: Zorro Liu --- 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 bd873a093ce1..01902ec1f5ac 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-mid-818-android.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-mid-818-android.dts @@ -44,6 +44,7 @@ #include "rk3399.dtsi" #include "rk3399-android.dtsi" +#include / { compatible = "rockchip,rk3399-mid", "rockchip,rk3399"; @@ -567,6 +568,31 @@ orientation-z= <0>; mpu-debug = <1>; }; + + sensor@0d { + status = "okay"; + compatible = "ak8963"; + pinctrl-names = "default"; + pinctrl-0 = <&ak8963_irq_gpio>; + reg = <0x0d>; + type = ; + irq-gpio = <&gpio2 28 IRQ_TYPE_EDGE_RISING>; + irq_enable = <0>; + poll_delay_ms = <30>; + layout = <3>; + }; + + sensor@20 { + status = "disabled"; + compatible = "capella,light_cm3218"; + pinctrl-names = "default"; + pinctrl-0 = <&cm3218_irq_gpio>; + reg = <0x20>; + type = ; + irq-gpio = <&gpio4 24 IRQ_TYPE_EDGE_RISING>; + irq_enable = <1>; + poll_delay_ms = <30>; + }; }; &i2c5 { @@ -749,6 +775,18 @@ rockchip,pins = <2 27 RK_FUNC_GPIO &pcfg_pull_none>; }; }; + + ak8963 { + ak8963_irq_gpio: ak8963-irq-gpio { + rockchip,pins = <2 28 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + cm3218 { + cm3218_irq_gpio: cm3218-irq-gpio { + rockchip,pins = <4 24 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; }; &rk_screen {