arm64: dts: rockchip: rk3368-px5-evb-android add sensors for px5

Change-Id: Iad9ad2468a54e77bcf5b106c31168fc16f7aff2b
Signed-off-by: Wang, Langlang <langlang.wang@rock-chips.com>
This commit is contained in:
langlang.wang
2017-10-19 11:07:40 +08:00
committed by Huang, Tao
parent b044448555
commit 3ad1abbd51

View File

@@ -44,6 +44,7 @@
#include "rk3368.dtsi"
#include "rk3368-android.dtsi"
#include <dt-bindings/pwm/pwm.h>
#include <dt-bindings/sensor-dev.h>
/ {
model = "Rockchip PX5 EVB V11";
@@ -623,11 +624,46 @@
&i2c1 {
status = "okay";
accelerometer@18 {
compatible = "bosch,bma250";
bma2x2: bma250@18 {
compatible = "bma2xx_acc";
status = "okay";
reg = <0x18>;
interrupt-parent = <&gpio2>;
interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
type = <SENSOR_TYPE_ACCEL>;
pinctrl-names = "default";
pinctrl-0 = <&gpio2_c1>;
irq-gpio = <&gpio2 17 IRQ_TYPE_LEVEL_LOW>;
irq_enable = <1>;
poll_delay_ms = <200>;
layout = <6>;
reprobe_enable = <1>;/* this sensor need to be probe again */
};
ls_stk3410: light@48 {
compatible = "ls_stk3410";
status = "okay";
reg = <0x48>;
type = <SENSOR_TYPE_LIGHT>;
irq_enable = <0>;
als_threshold_high = <100>;
als_threshold_low = <10>;
als_ctrl_gain = <2>; /* 0:x1 1:x4 2:x16 3:x64 */
poll_delay_ms = <100>;
};
ps_stk3410: proximity@48 {
compatible = "ps_stk3410";
status = "okay";
reg = <0x48>;
type = <SENSOR_TYPE_PROXIMITY>;
pinctrl-names = "default";
pinctrl-0 = <&gpio2_c3>;
irq-gpio = <&gpio2 19 IRQ_TYPE_LEVEL_LOW>;
irq_enable = <1>;
ps_threshold_high = <0x200>;
ps_threshold_low = <0x100>;
ps_ctrl_gain = <3>; /* 0:x1 1:x4 2:x16 3:x64 */
ps_led_current = <3>; /* 0:12.5mA 1:25mA 2:50mA 3:100mA */
poll_delay_ms = <100>;
};
};
@@ -693,6 +729,8 @@
rockchip,playback-channels = <8>;
rockchip,capture-channels = <2>;
#sound-dai-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&i2s_8ch_bus>;
};
&io_domains {
@@ -1116,4 +1154,46 @@
rockchip,pins = <RK_GPIO2 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
gpio0_gpio {
gpio0_c7: gpio0-c7 {
rockchip,pins = <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_down>;
};
gpio0_a3: gpio0-a3 {
rockchip,pins = <0 RK_PA3 RK_FUNC_3 &pcfg_pull_none>;
};
gpio0_c2: gpio0-c2 {
rockchip,pins = <0 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>;
};
gpio0_c3: gpio0-c3 {
rockchip,pins = <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up>;
};
gpio0_c1: gpio0-c1 {
rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_up>;
};
gpio2_c1: gpio2-c1 {
rockchip,pins = <2 RK_PC1 RK_FUNC_GPIO &pcfg_pull_up>;
};
gpio2_c3: gpio2-c3 {
rockchip,pins = <2 RK_PC3 RK_FUNC_GPIO &pcfg_pull_up>;
};
gpio3_b1: gpio3-b1 {
rockchip,pins = <3 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>;
};
gpio3_b2: gpio3-b2 {
rockchip,pins = <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
i2s {
i2s_8ch_bus: i2s-8ch-bus {
rockchip,pins = <2 12 RK_FUNC_1 &pcfg_pull_none>,
<2 13 RK_FUNC_1 &pcfg_pull_none>,
<2 14 RK_FUNC_1 &pcfg_pull_none>,
<2 15 RK_FUNC_1 &pcfg_pull_none>,
<2 16 RK_FUNC_1 &pcfg_pull_none>,
<2 18 RK_FUNC_1 &pcfg_pull_none>;
};
};
};