sht31温湿度传感器接在i2c_7上。
根据官网添加并重新编译
kernel/arch/arm64/boot/dts/rockchip/rk3399-firefly-mini-edp.dts
&i2c7 {
status = "okay";
sht31: sht31@41 {
compatible = "gslX680";
reg = <0x41>;
screen_max_x = <1536>;
screen_max_y = <2048>;
touch-gpio = <&gpio1 20 IRQ_TYPE_LEVEL_LOW>;
reset-gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
};
};
并没有看到新的设备信息出现(./i2cdetect -l)