arm: dts: meson-khadas-vim3: enable SPI NOR flash
authorNeil Armstrong <narmstrong@baylibre.com>
Mon, 20 Apr 2020 13:44:44 +0000 (15:44 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Tue, 28 Apr 2020 08:23:10 +0000 (10:23 +0200)
Enable the SPI flash controller and reduce the usable eMMC data pins to 4
to permit using the on-board SPI NOR Flash.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
arch/arm/dts/meson-g12b-a311d-khadas-vim3-u-boot.dtsi [new file with mode: 0644]
arch/arm/dts/meson-khadas-vim3-u-boot.dtsi [new file with mode: 0644]
arch/arm/dts/meson-sm1-khadas-vim3l-u-boot.dtsi [new file with mode: 0644]

diff --git a/arch/arm/dts/meson-g12b-a311d-khadas-vim3-u-boot.dtsi b/arch/arm/dts/meson-g12b-a311d-khadas-vim3-u-boot.dtsi
new file mode 100644 (file)
index 0000000..f66eca1
--- /dev/null
@@ -0,0 +1,7 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2020 BayLibre, SAS
+ * Author: Neil Armstrong <narmstrong@baylibre.com>
+ */
+
+#include "meson-khadas-vim3-u-boot.dtsi"
diff --git a/arch/arm/dts/meson-khadas-vim3-u-boot.dtsi b/arch/arm/dts/meson-khadas-vim3-u-boot.dtsi
new file mode 100644 (file)
index 0000000..81fd5be
--- /dev/null
@@ -0,0 +1,21 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2020 BayLibre, SAS
+ * Author: Neil Armstrong <narmstrong@baylibre.com>
+ */
+
+/ {
+       aliases {
+               spi0 = &spifc;
+       };
+};
+
+&sd_emmc_c {
+       status = "okay";
+       pinctrl-0 = <&emmc_ctrl_pins>, <&emmc_data_4b_pins>, <&emmc_ds_pins>;
+       bus-width = <4>;
+};
+
+&spifc {
+       status = "okay";
+};
diff --git a/arch/arm/dts/meson-sm1-khadas-vim3l-u-boot.dtsi b/arch/arm/dts/meson-sm1-khadas-vim3l-u-boot.dtsi
new file mode 100644 (file)
index 0000000..f66eca1
--- /dev/null
@@ -0,0 +1,7 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2020 BayLibre, SAS
+ * Author: Neil Armstrong <narmstrong@baylibre.com>
+ */
+
+#include "meson-khadas-vim3-u-boot.dtsi"