修改设备树GPIO配置时,内核启动卡住
因为GPIO被占用,需要disabled掉PCA_IO0_4,PCA_IO0_2,从而使用这2个GPIO,结果内核启动后无法进行串口操作,卡住了。请问如何才能正常取消这2个GPIO被占用呢?修改如下:
修改文件:rk3588-firefly-aio-3588q.dtsi
&vcc_hub_reset{
status = "disabled";
gpio = <&pca9555 PCA_IO0_4 GPIO_ACTIVE_HIGH>;//PCA_IO 04
};
修改文件:rk3588-firefly-aio-3588q-mipi101-M101014-BE45-A1.dtsi
&i2c6{
status = "okay"; //此处disabled
pinctrl-names = "default";
pinctrl-0 = <&i2c6m0_xfer>;
hxchipset@48{
status = "okay";
compatible = "himax,hxcommon";
reg = <0x48>;
//himax,rst-gpio =<&pca9555_1 PCA_IO0_4 GPIO_ACTIVE_HIGH>; //或者屏蔽这里
himax,irq-gpio = <&gpio3 RK_PC6 IRQ_TYPE_LEVEL_HIGH>;
&dsi0 {
firefly-check;
status = "okay";//此处disabled
//rockchip,lane-rate = <1000>;
dsi0_panel: panel@0 {
status = "okay";
compatible = "simple-panel-dsi";
reg = <0>;
backlight = <&backlight>;
//enable-gpios = <&pca9555 PCA_IO0_2 GPIO_ACTIVE_HIGH>; //或者屏蔽这里
reset-gpios = <&gpio2 RK_PB4 GPIO_ACTIVE_LOW>;
把控制脚的设备关掉就可以了,把整条 i2c bus 关掉,那么挂载 i2c6 的其他重要的设备都用不了肯定有问题
页:
[1]