arm64: dts: rockchip: rk3588-evb3: add sensors dts

Signed-off-by: Wangqiang Guo <kay.guo@rock-chips.com>
Change-Id: Ic331d3966a52266d7cd657a00b27170413b72b34
This commit is contained in:
Wangqiang Guo
2021-11-12 16:23:56 +08:00
committed by Tao Huang
parent 4e34953851
commit d530f96fa3

View File

@@ -44,6 +44,15 @@
};
};
hall_sensor: hall-mh248 {
compatible = "hall-mh248";
pinctrl-names = "default";
pinctrl-0 = <&mh248_irq_gpio>;
irq-gpio = <&gpio0 RK_PD2 IRQ_TYPE_EDGE_BOTH>;
hall-active = <1>;
status = "okay";
};
pcie20_avdd0v85: pcie20-avdd0v85 {
compatible = "regulator-fixed";
regulator-name = "pcie20_avdd0v85";
@@ -730,6 +739,57 @@
status = "okay";
};
&i2c0 {
status = "okay";
ls_stk3332: light@47 {
compatible = "ls_stk3332";
status = "okay";
reg = <0x47>;
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_stk3332: proximity@47 {
compatible = "ps_stk3332";
status = "okay";
reg = <0x47>;
type = <SENSOR_TYPE_PROXIMITY>;
//pinctrl-names = "default";
//pinctrl-0 = <&gpio2_b2>;
//irq-gpio = <&gpio2 RK_PB2 IRQ_TYPE_LEVEL_LOW>;
//irq_enable = <1>;
ps_threshold_high = <0x200>;
ps_threshold_low = <0x100>;
ps_ctrl_gain = <3>; /* 0:x1 1:x2 2:x5 3:x8 */
ps_led_current = <4>; /* 0:3.125mA 1:6.25mA 2:12.5mA 3:25mA 4:50mA 5:100mA*/
poll_delay_ms = <100>;
};
mpu6500_acc: mpu_acc@68 {
compatible = "mpu6500_acc";
reg = <0x68>;
irq-gpio = <&gpio2 RK_PB5 IRQ_TYPE_EDGE_RISING>;
irq_enable = <0>;
poll_delay_ms = <30>;
type = <SENSOR_TYPE_ACCEL>;
layout = <8>;
};
mpu6500_gyro: mpu_gyro@68 {
compatible = "mpu6500_gyro";
reg = <0x68>;
irq_enable = <0>;
poll_delay_ms = <30>;
type = <SENSOR_TYPE_GYROSCOPE>;
layout = <8>;
};
};
&i2c2 {
status = "okay";
@@ -878,6 +938,16 @@
};
};
sensor {
mh248_irq_gpio: mh248-irq-gpio {
rockchip,pins = <0 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up>;
};
mpu6500_irq_gpio: mpu6500_irq_gpio {
rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
touch {
touch_gpio: touch-gpio {
rockchip,pins =