diff --git a/patch/kernel/archive/rockchip64-6.6/overlay/Makefile b/patch/kernel/archive/rockchip64-6.6/overlay/Makefile index 18a0b45ee43b..413cbef21ce2 100644 --- a/patch/kernel/archive/rockchip64-6.6/overlay/Makefile +++ b/patch/kernel/archive/rockchip64-6.6/overlay/Makefile @@ -21,6 +21,7 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \ rockchip-rk3328-i2s1-pcm5102.dtbo \ rockchip-rk3328-opp-1.4ghz.dtbo \ rockchip-rk3328-opp-1.5ghz.dtbo \ + rockchip-rk3328-spi-spidev.dtbo \ rockchip-rk3328-uart1.dtbo \ rockchip-rk3399-dwc3-0-host.dtbo \ rockchip-rk3399-i2c7.dtbo \ 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 000000000000..9cc0238296de --- /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__ { + status = "okay"; + spi0 = "/spi@ff190000"; + }; + }; + + fragment@1 { + target = <0xffffffff>; + + __overlay__ { + status = "okay"; + + spidev { + compatible = "armbian,spi-dev"; + status = "okay"; + reg = <0x00>; + spi-max-frequency = <0x989680>; + }; + }; + }; + + __fixups__ { + spi0 = "/fragment@1:target:0"; + }; +}; diff --git a/patch/kernel/archive/rockchip64-6.9/overlay/Makefile b/patch/kernel/archive/rockchip64-6.9/overlay/Makefile index 0d2893349f50..be8b1f59e69f 100644 --- a/patch/kernel/archive/rockchip64-6.9/overlay/Makefile +++ b/patch/kernel/archive/rockchip64-6.9/overlay/Makefile @@ -21,6 +21,7 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \ rockchip-rk3328-i2s1-pcm5102.dtbo \ rockchip-rk3328-opp-1.4ghz.dtbo \ rockchip-rk3328-opp-1.5ghz.dtbo \ + rockchip-rk3328-spi-spidev.dtbo \ rockchip-rk3328-uart1.dtbo \ rockchip-rk3399-dwc3-0-host.dtbo \ rockchip-rk3399-i2c7.dtbo \ diff --git a/patch/kernel/archive/rockchip64-6.9/overlay/rockchip-rk3328-spi-spidev.dts b/patch/kernel/archive/rockchip64-6.9/overlay/rockchip-rk3328-spi-spidev.dts new file mode 100644 index 000000000000..9cc0238296de --- /dev/null +++ b/patch/kernel/archive/rockchip64-6.9/overlay/rockchip-rk3328-spi-spidev.dts @@ -0,0 +1,33 @@ +/dts-v1/; + +/ { + compatible = "rockchip,rk3328"; + + fragment@0 { + target-path = "/aliases"; + + __overlay__ { + status = "okay"; + spi0 = "/spi@ff190000"; + }; + }; + + fragment@1 { + target = <0xffffffff>; + + __overlay__ { + status = "okay"; + + spidev { + compatible = "armbian,spi-dev"; + status = "okay"; + reg = <0x00>; + spi-max-frequency = <0x989680>; + }; + }; + }; + + __fixups__ { + spi0 = "/fragment@1:target:0"; + }; +};