mirror of
https://github.com/Fishwaldo/build.git
synced 2025-06-05 13:51:45 +00:00
[ meson64-dev ] fix Odroid C2 boot, add spidev
Fixes pointing to wrong boot script, adds spidev with 2 chipselects in position of RPI spi0 GPIO
This commit is contained in:
parent
ddc86798c6
commit
f928b31d8a
2 changed files with 9 additions and 4 deletions
|
@ -12,7 +12,7 @@ KERNEL_IMAGE_TYPE=Image
|
|||
|
||||
if [[ $BOARD == odroidc2 ]]; then
|
||||
UBOOT_TARGET_MAP=";;$SRC/cache/sources/odroidc2-blobs/bl1.bin.hardkernel u-boot.bin"
|
||||
BOOTSCRIPT='boot-odroid-c2-next.cmd:boot.cmd'
|
||||
|
||||
BOOTENV_FILE='odroidc2-next.txt'
|
||||
fi
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts b/arch/arm64/bo
|
|||
index c3c875a73..55c7dd3f4 100644
|
||||
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts
|
||||
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts
|
||||
@@ -135,6 +135,27 @@
|
||||
@@ -135,6 +135,32 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -10,7 +10,7 @@ index c3c875a73..55c7dd3f4 100644
|
|||
+ spi-gpio {
|
||||
+ compatible = "spi-gpio";
|
||||
+ #address-cells = <0x1>;
|
||||
+ #size-cells = <0>;
|
||||
+ #size-cells = <0x0>;
|
||||
+ ranges;
|
||||
+ status = "ok";
|
||||
+ sck-gpios = <&gpio GPIOX_2 0>;
|
||||
|
@ -21,11 +21,16 @@ index c3c875a73..55c7dd3f4 100644
|
|||
+ num-chipselects = <2>;
|
||||
+
|
||||
+ /* clients */
|
||||
+ spidev0: spi-gpio@0 {
|
||||
+ spidev0@0 {
|
||||
+ compatible = "spidev";
|
||||
+ reg = <0>;
|
||||
+ spi-max-frequency = <500000>;
|
||||
+ };
|
||||
+ spidev0@1 {
|
||||
+ compatible = "spidev";
|
||||
+ reg = <1>;
|
||||
+ spi-max-frequency = <500000>;
|
||||
+ };
|
||||
+ };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue