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:
@@ -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>; */
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user