[U-Boot] [PATCH v2 2/3] mips: mscc: DT: Update luton device tree to use fast SPI driver

Lars Povlsen lars.povlsen at microchip.com
Mon Jan 7 13:28:37 UTC 2019


Thes patch change the luton base device tree to use the newly added
SPI bitbang driver.

It also updates the "mscc_luton_defconfig" to use the new driver.

Signed-off-by: Lars Povlsen <lars.povlsen at microchip.com>
---
 arch/mips/dts/mscc,luton.dtsi | 15 ++-------------
 configs/mscc_luton_defconfig  |  3 ++-
 2 files changed, 4 insertions(+), 14 deletions(-)

diff --git a/arch/mips/dts/mscc,luton.dtsi b/arch/mips/dts/mscc,luton.dtsi
index 87e27c6de5..d11ec4884d 100644
--- a/arch/mips/dts/mscc,luton.dtsi
+++ b/arch/mips/dts/mscc,luton.dtsi
@@ -84,21 +84,10 @@
 			gpio-ranges = <&sgpio 0 0 64>;
 		};
 
-		gpio_spi_bitbang: gpio at 10000064 {
-			compatible = "mscc,spi-bitbang-gpio";
-			reg = <0x10000064 0x4>;
-			gpio-controller;
-			#gpio-cells = <2>;
-
-		};
-
 		spi0: spi-bitbang {
-			compatible = "spi-gpio";
+			compatible = "mscc,luton-bb-spi";
 			status = "okay";
-			gpio-sck = <&gpio_spi_bitbang 6 0>;
-			gpio-miso = <&gpio_spi_bitbang 0 0>;
-			gpio-mosi = <&gpio_spi_bitbang 5 0>;
-			cs-gpios = <&gpio_spi_bitbang 1 0>;
+			reg = <0x10000064 0x4>;
 			num-chipselects = <1>;
 			#address-cells = <1>;
 			#size-cells = <0>;
diff --git a/configs/mscc_luton_defconfig b/configs/mscc_luton_defconfig
index 65f0672c1e..d48a93a2a5 100644
--- a/configs/mscc_luton_defconfig
+++ b/configs/mscc_luton_defconfig
@@ -34,6 +34,7 @@ CONFIG_CMD_DHCP=y
 # CONFIG_NET_TFTP_VARS is not set
 # CONFIG_CMD_NFS is not set
 CONFIG_CMD_PING=y
+CONFIG_CMD_TIME=y
 CONFIG_CMD_MTDPARTS=y
 CONFIG_MTDIDS_DEFAULT="nor0=spi_flash"
 CONFIG_MTDPARTS_DEFAULT="mtdparts=spi_flash:1m(UBoot),256k(Env),256k(Env.bk),512k(Unused),6m(linux)"
@@ -66,5 +67,5 @@ CONFIG_DEBUG_UART_SHIFT=2
 CONFIG_SYS_NS16550=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
-CONFIG_SOFT_SPI=y
+CONFIG_MSCC_BB_SPI=y
 CONFIG_LZMA=y
-- 
2.19.2



More information about the U-Boot mailing list