diff mbox series

[v2,1/3] sunxi: dts: OrangePi Zero: Add SPI aliases to make bus usable with u-boot.

Message ID 5af39064bd7db02c48e0e1226b011a8b73eb0094.1601367053.git.msuchanek@suse.de
State New
Delegated to: Jagannadha Sutradharudu Teki
Headers show
Series [v2,1/3] sunxi: dts: OrangePi Zero: Add SPI aliases to make bus usable with u-boot. | expand

Commit Message

Michal Suchánek Sept. 29, 2020, 8:13 a.m. UTC
The u-boot code relies on aliases to assign bus number.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
---
v2: move u-boot specific aliases to separate file
---
 arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts | 1 +
 arch/arm/dts/sunxi-spi-u-boot.dtsi           | 8 ++++++++
 2 files changed, 9 insertions(+)
 create mode 100644 arch/arm/dts/sunxi-spi-u-boot.dtsi
diff mbox series

Patch

diff --git a/arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts b/arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts
index f19ed981da..3f0d0281ba 100644
--- a/arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts
+++ b/arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts
@@ -46,6 +46,7 @@ 
 /dts-v1/;
 #include "sun8i-h3.dtsi"
 #include "sunxi-common-regulators.dtsi"
+#include "sunxi-spi-u-boot.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
diff --git a/arch/arm/dts/sunxi-spi-u-boot.dtsi b/arch/arm/dts/sunxi-spi-u-boot.dtsi
new file mode 100644
index 0000000000..df89d02ff2
--- /dev/null
+++ b/arch/arm/dts/sunxi-spi-u-boot.dtsi
@@ -0,0 +1,8 @@ 
+// SPDX-License-Identifier: GPL-2.0+
+/ {
+
+	aliases {
+		spi0 = &spi0;
+		spi1 = &spi1;
+	};
+};