Skip to content

Commit

Permalink
NanoPi Neo3 spidev support (armbian#6689)
Browse files Browse the repository at this point in the history
* added spi device support for Nano Pi Neo3 with different address
* adjusted Makefile for compilation for Nano Pi Neo3 spi-spidev
  • Loading branch information
lanmarc77 authored Jun 11, 2024
1 parent ec56990 commit 8eb8cc5
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 0 deletions.
1 change: 1 addition & 0 deletions patch/kernel/archive/rockchip64-6.6/overlay/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
};
};
1 change: 1 addition & 0 deletions patch/kernel/archive/rockchip64-6.9/overlay/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
};
};

0 comments on commit 8eb8cc5

Please sign in to comment.