build/patch/kernel/meson64-dev/board-nanopik2-add-SPI.patch
Thomas McKahan e72ddf2808 Meson64 enable dev building, update dev patches
Adds preliminary patches for 4.19
	Known Issues:
	-	Does not like a lot of HDMI adapters

	Needs tested by anyone with a Le Potato, Odroid C2, or Nanopi K2
2018-10-30 21:08:30 -04:00

31 lines
765 B
Diff

diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts
index b7f166b03..37ea2e167 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts
@@ -132,6 +132,26 @@
};
};
+ spi-gpio {
+ compatible = "spi-gpio";
+ #address-cells = <0x1>;
+ #size-cells = <0>;
+ ranges;
+ status = "ok";
+ sck-gpios = <&gpio GPIOY_9 0>;
+ miso-gpios = <&gpio GPIOY_7 0>;
+ mosi-gpios = <&gpio GPIOY_5 0>;
+ cs-gpios = <&gpio GPIOY_8 0
+ &gpio GPIOY_10 0>;
+ num-chipselects = <2>;
+
+ /* clients */
+ spidev0: spi-gpio@0 {
+ compatible = "spidev";
+ reg = <0>;
+ spi-max-frequency = <500000>;
+ };
+ };
};
&cec_AO {