mips: mscc: DT: Update luton device tree to use fast SPI driver
authorLars Povlsen <lars.povlsen@microchip.com>
Tue, 8 Jan 2019 09:38:34 +0000 (10:38 +0100)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Wed, 16 Jan 2019 12:56:43 +0000 (13:56 +0100)
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@microchip.com>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
arch/mips/dts/mscc,luton.dtsi
configs/mscc_luton_defconfig

index 87e27c6de5c6dd771ec8abdcc15be94272411200..d11ec4884d06ee9db6f6629a31c478093ae81062 100644 (file)
                        gpio-ranges = <&sgpio 0 0 64>;
                };
 
-               gpio_spi_bitbang: gpio@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>;
index 0b3eb3865c48ba73413606f9e7171e5df1e717ff..7154e97bb973abfcf67aa4441e1b307324ce5db7 100644 (file)
@@ -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:512k(UBoot),256k(Env),256k(conf),6m@1m(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