mkspi: DTBO to disable spi_for_{lcd,touch} when enabling uart1

Based on contirbution from Joe Maples <joe.maples@valtech.com>. It will make the onboard serial (ttyS1) usable for the boards: QIDI X-4, X-6 and X-7
This commit is contained in:
Maxim Medvedev
2024-12-08 17:11:11 +01:00
committed by Igor
parent d76f7f3da0
commit d03b8f9b9f
9 changed files with 105 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
rockchip-rk3318-box-wlan-ext.dtbo \
rockchip-rk3328-i2c0.dtbo \
rockchip-rk3328-i2s1-pcm5102.dtbo \
rockchip-rk3328-mkspi-disable-lcd-spi.dtbo \
rockchip-rk3328-opp-1.4ghz.dtbo \
rockchip-rk3328-opp-1.5ghz.dtbo \
rockchip-rk3328-spi-spidev.dtbo \

View File

@@ -16,6 +16,10 @@ for RK3308 (Rock PI-S)
### Overlay details:
### mkspi-disable-lcd-spi
DTBO to disable spi_for_{lcd,touch} when enabling uart1
### i2c7
Activates TWI/I2C bus 7

View File

@@ -0,0 +1,30 @@
/dts-v1/;
/ {
compatible = "rockchip,rk3328";
fragment@0 {
target-path = "/spi@ff190000";
__overlay__ {
spi_for_lcd@0 {
status = "disabled";
};
spi_for_touch@1 {
status = "disabled";
};
};
};
fragment@1 {
target = <0xffffffff>;
__overlay__ {
status = "okay";
};
};
__fixups__ {
uart1 = "/fragment@1:target:0";
};
};

View File

@@ -20,6 +20,7 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
rockchip-rk3318-box-wlan-ext.dtbo \
rockchip-rk3328-i2c0.dtbo \
rockchip-rk3328-i2s1-pcm5102.dtbo \
rockchip-rk3328-mkspi-disable-lcd-spi.dtbo \
rockchip-rk3328-opp-1.4ghz.dtbo \
rockchip-rk3328-opp-1.5ghz.dtbo \
rockchip-rk3328-spi-spidev.dtbo \

View File

@@ -16,6 +16,10 @@ for RK3308 (Rock PI-S)
### Overlay details:
### mkspi-disable-lcd-spi
DTBO to disable spi_for_{lcd,touch} when enabling uart1
### i2c7
Activates TWI/I2C bus 7

View File

@@ -0,0 +1,30 @@
/dts-v1/;
/ {
compatible = "rockchip,rk3328";
fragment@0 {
target-path = "/spi@ff190000";
__overlay__ {
spi_for_lcd@0 {
status = "disabled";
};
spi_for_touch@1 {
status = "disabled";
};
};
};
fragment@1 {
target = <0xffffffff>;
__overlay__ {
status = "okay";
};
};
__fixups__ {
uart1 = "/fragment@1:target:0";
};
};

View File

@@ -19,6 +19,7 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
rockchip-rk3318-box-wlan-ext.dtbo \
rockchip-rk3328-i2c0.dtbo \
rockchip-rk3328-i2s1-pcm5102.dtbo \
rockchip-rk3328-mkspi-disable-lcd-spi.dtbo \
rockchip-rk3328-opp-1.4ghz.dtbo \
rockchip-rk3328-opp-1.5ghz.dtbo \
rockchip-rk3328-spi-spidev.dtbo \

View File

@@ -16,6 +16,10 @@ for RK3308 (Rock PI-S)
### Overlay details:
### mkspi-disable-lcd-spi
DTBO to disable spi_for_{lcd,touch} when enabling uart1
### i2c7
Activates TWI/I2C bus 7

View File

@@ -0,0 +1,30 @@
/dts-v1/;
/ {
compatible = "rockchip,rk3328";
fragment@0 {
target-path = "/spi@ff190000";
__overlay__ {
spi_for_lcd@0 {
status = "disabled";
};
spi_for_touch@1 {
status = "disabled";
};
};
};
fragment@1 {
target = <0xffffffff>;
__overlay__ {
status = "okay";
};
};
__fixups__ {
uart1 = "/fragment@1:target:0";
};
};