added spi device support for Nano Pi Neo3 with different address
This commit is contained in:
parent
dfc7cf4a8a
commit
436d544712
@ -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"
|
||||
|
||||
@ -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";
|
||||
};
|
||||
};
|
||||
@ -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"
|
||||
|
||||
@ -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";
|
||||
};
|
||||
};
|
||||
Loading…
Reference in New Issue
Block a user