2
0
forked from Ivasoft/openwrt

brcm63xx: register SPI controllers through DT

Register SPI controllers through device tree. We will wire up the clocks
at a later stage.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
This commit is contained in:
Jonas Gorski
2017-02-07 12:31:02 +01:00
parent 2a2b16210b
commit b50fd8c2b3
26 changed files with 539 additions and 41 deletions

View File

@@ -7,6 +7,7 @@
pflash = &pflash;
gpio0 = &gpio0;
gpio1 = &gpio1;
spi0 = &lsspi;
};
cpus {
@@ -45,6 +46,7 @@
#size-cells = <1>;
ranges;
compatible = "simple-bus";
interrupt-parent = <&periph_intc>;
periph_intc: interrupt-controller@fffe000c {
compatible = "brcm,bcm6345-l1-intc";
@@ -91,5 +93,15 @@
gpio-controller;
#gpio-cells = <2>;
};
lsspi: spi@fffe0c00 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "brcm,bcm6348-spi";
reg = <0xfffe0c00 0x40>;
interrupts = <1>;
/* clocks = <&clkctl 9>; */
};
};
};