diff --git a/patch/kernel/archive/rockchip64-6.6/overlay/rockchip-fixup.scr-cmd b/patch/kernel/archive/rockchip64-6.6/overlay/rockchip-fixup.scr-cmd index c6cd5d8abd..99f10ab78f 100644 --- a/patch/kernel/archive/rockchip64-6.6/overlay/rockchip-fixup.scr-cmd +++ b/patch/kernel/archive/rockchip64-6.6/overlay/rockchip-fixup.scr-cmd @@ -33,6 +33,7 @@ if test -n "${param_spinor_spi_bus}"; then fi if test -n "${param_spidev_spi_bus}"; then + test "${param_spidev_spi_bus}" = "nanopineo3-0" && setenv tmp_spi_path "spi@ff190000" test "${param_spidev_spi_bus}" = "0" && setenv tmp_spi_path "spi@ff1c0000" test "${param_spidev_spi_bus}" = "1" && setenv tmp_spi_path "spi@ff1d0000" test "${param_spidev_spi_bus}" = "2" && setenv tmp_spi_path "spi@ff1e0000" diff --git a/patch/kernel/archive/rockchip64-6.6/overlay/rockchip-rk3328-spi-spidev.dts b/patch/kernel/archive/rockchip64-6.6/overlay/rockchip-rk3328-spi-spidev.dts new file mode 100644 index 0000000000..0925d38e15 --- /dev/null +++ b/patch/kernel/archive/rockchip64-6.6/overlay/rockchip-rk3328-spi-spidev.dts @@ -0,0 +1,33 @@ +/dts-v1/; + +/ { + compatible = "rockchip,rk3328"; + + fragment@0 { + target-path = "/aliases"; + + __overlay__ { + spi0 = "/spi@ff190000"; + }; + }; + + fragment@1 { + target = <0xffffffff>; + + __overlay__ { + #address-cells = <0x01>; + #size-cells = <0x00>; + + spidev { + compatible = "armbian,spi-dev"; + status = "disabled"; + reg = <0x00>; + spi-max-frequency = <0x989680>; + }; + }; + }; + + __fixups__ { + spi0 = "/fragment@1:target:0"; + }; +}; diff --git a/patch/kernel/archive/rockchip64-6.8/overlay/rockchip-fixup.scr-cmd b/patch/kernel/archive/rockchip64-6.8/overlay/rockchip-fixup.scr-cmd index c6cd5d8abd..99f10ab78f 100644 --- a/patch/kernel/archive/rockchip64-6.8/overlay/rockchip-fixup.scr-cmd +++ b/patch/kernel/archive/rockchip64-6.8/overlay/rockchip-fixup.scr-cmd @@ -33,6 +33,7 @@ if test -n "${param_spinor_spi_bus}"; then fi if test -n "${param_spidev_spi_bus}"; then + test "${param_spidev_spi_bus}" = "nanopineo3-0" && setenv tmp_spi_path "spi@ff190000" test "${param_spidev_spi_bus}" = "0" && setenv tmp_spi_path "spi@ff1c0000" test "${param_spidev_spi_bus}" = "1" && setenv tmp_spi_path "spi@ff1d0000" test "${param_spidev_spi_bus}" = "2" && setenv tmp_spi_path "spi@ff1e0000" diff --git a/patch/kernel/archive/rockchip64-6.8/overlay/rockchip-rk3328-spi-spidev.dts b/patch/kernel/archive/rockchip64-6.8/overlay/rockchip-rk3328-spi-spidev.dts new file mode 100644 index 0000000000..0925d38e15 --- /dev/null +++ b/patch/kernel/archive/rockchip64-6.8/overlay/rockchip-rk3328-spi-spidev.dts @@ -0,0 +1,33 @@ +/dts-v1/; + +/ { + compatible = "rockchip,rk3328"; + + fragment@0 { + target-path = "/aliases"; + + __overlay__ { + spi0 = "/spi@ff190000"; + }; + }; + + fragment@1 { + target = <0xffffffff>; + + __overlay__ { + #address-cells = <0x01>; + #size-cells = <0x00>; + + spidev { + compatible = "armbian,spi-dev"; + status = "disabled"; + reg = <0x00>; + spi-max-frequency = <0x989680>; + }; + }; + }; + + __fixups__ { + spi0 = "/fragment@1:target:0"; + }; +};