]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mips: bmips: add bcm63xx-spi driver support for BCM3380
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Tue, 23 Jan 2018 16:15:02 +0000 (17:15 +0100)
committerJagan Teki <jagan@amarulasolutions.com>
Wed, 24 Jan 2018 06:33:43 +0000 (12:03 +0530)
This driver manages the SPI controller present on this SoC.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/mips/dts/brcm,bcm3380.dtsi

index 64245eb048ef0c1822afb21fa25a9721f34340d7..f83a6ea8df0a1b2ea70dfafe5d73c98973586ffa 100644 (file)
 / {
        compatible = "brcm,bcm3380";
 
+       aliases {
+               spi0 = &spi;
+       };
+
        cpus {
                reg = <0x14e00000 0x4>;
                #address-cells = <1>;
                        status = "disabled";
                };
 
+               spi: spi@14e02000 {
+                       compatible = "brcm,bcm6358-spi";
+                       reg = <0x14e02000 0x70c>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       clocks = <&periph_clk0 BCM3380_CLK0_SPI>;
+                       resets = <&periph_rst0 BCM3380_RST0_SPI>;
+                       spi-max-frequency = <25000000>;
+                       num-cs = <6>;
+
+                       status = "disabled";
+               };
+
                leds: led-controller@14e00f00 {
                        compatible = "brcm,bcm6328-leds";
                        reg = <0x14e00f00 0x1c>;