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 {
|
||||
@@ -51,6 +52,7 @@
|
||||
#size-cells = <1>;
|
||||
ranges;
|
||||
compatible = "simple-bus";
|
||||
interrupt-parent = <&periph_intc>;
|
||||
|
||||
periph_intc: interrupt-controller@fff8c00c {
|
||||
compatible = "brcm,bcm6345-l1-intc";
|
||||
@@ -70,7 +72,6 @@
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <2>;
|
||||
|
||||
interrupt-parent = <&periph_intc>;
|
||||
interrupts = <25>, <26>, <27>, <28>;
|
||||
};
|
||||
|
||||
@@ -91,5 +92,14 @@
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
};
|
||||
|
||||
lsspi: spi@fff8c800 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "brcm,bcm6358-spi";
|
||||
reg = <0xfff8c800 0x70c>;
|
||||
interrupts = <1>;
|
||||
/* clocks = <&clkctl 9>; */
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
aliases {
|
||||
gpio0 = &gpio0;
|
||||
gpio1 = &gpio1;
|
||||
spi1 = &hsspi;
|
||||
};
|
||||
|
||||
cpus {
|
||||
@@ -34,6 +35,7 @@
|
||||
#size-cells = <1>;
|
||||
ranges;
|
||||
compatible = "simple-bus";
|
||||
interrupt-parent = <&periph_intc>;
|
||||
|
||||
ext_intc: interrupt-controller@10000018 {
|
||||
compatible = "brcm,bcm6318-ext-intc";
|
||||
@@ -42,7 +44,6 @@
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <2>;
|
||||
|
||||
interrupt-parent = <&periph_intc>;
|
||||
interrupts = <24>, <25>, <26>, <27>;
|
||||
};
|
||||
|
||||
@@ -78,5 +79,14 @@
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
};
|
||||
|
||||
hsspi: spi@10003000 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "brcm,bcm6328-hsspi";
|
||||
reg = <0x10003000 0x600>;
|
||||
interrupts = <29>;
|
||||
/* clocks = <&clkctl 25>; */
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
aliases {
|
||||
gpio0 = &gpio0;
|
||||
gpio1 = &gpio1;
|
||||
spi0 = &lsspi;
|
||||
spi1 = &hsspi;
|
||||
};
|
||||
|
||||
cpus {
|
||||
@@ -40,6 +42,7 @@
|
||||
#size-cells = <1>;
|
||||
ranges;
|
||||
compatible = "simple-bus";
|
||||
interrupt-parent = <&periph_intc>;
|
||||
|
||||
ext_intc: interrupt-controller@10000018 {
|
||||
compatible = "brcm,bcm6345-ext-intc";
|
||||
@@ -48,7 +51,6 @@
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <2>;
|
||||
|
||||
interrupt-parent = <&periph_intc>;
|
||||
interrupts = <44>, <45>, <46>, <47>;
|
||||
};
|
||||
|
||||
@@ -85,5 +87,23 @@
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
};
|
||||
|
||||
lsspi: spi@10000800 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "brcm,bcm6358-spi";
|
||||
reg = <0x10000800 0x70c>;
|
||||
interrupts = <80>;
|
||||
/* clocks = <&clkctl 15>; */
|
||||
};
|
||||
|
||||
hsspi: spi@10001000 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "brcm,bcm6328-hsspi";
|
||||
reg = <0x10001000 0x600>;
|
||||
interrupts = <6>;
|
||||
/* clocks = <&clkctl 16>; */
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
|
||||
aliases {
|
||||
gpio0 = &gpio0;
|
||||
spi1 = &hsspi;
|
||||
};
|
||||
|
||||
cpus {
|
||||
@@ -33,6 +34,7 @@
|
||||
#size-cells = <1>;
|
||||
ranges;
|
||||
compatible = "simple-bus";
|
||||
interrupt-parent = <&periph_intc>;
|
||||
|
||||
ext_intc: interrupt-controller@10000018 {
|
||||
compatible = "brcm,bcm6345-ext-intc";
|
||||
@@ -41,7 +43,6 @@
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <2>;
|
||||
|
||||
interrupt-parent = <&periph_intc>;
|
||||
interrupts = <24>, <25>, <26>, <27>;
|
||||
};
|
||||
|
||||
@@ -68,5 +69,14 @@
|
||||
interrupt-names = "gpio12", "gpio15",
|
||||
"gpio23", "gpio24";
|
||||
};
|
||||
|
||||
hsspi: spi@10001000 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "brcm,bcm6328-hsspi";
|
||||
reg = <0x10001000 0x600>;
|
||||
interrupts = <29>;
|
||||
/* clocks = <&clkctl 9>; */
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
aliases {
|
||||
pflash = &pflash;
|
||||
gpio0 = &gpio0;
|
||||
spi0 = &lsspi;
|
||||
};
|
||||
|
||||
cpus {
|
||||
@@ -44,6 +45,7 @@
|
||||
#size-cells = <1>;
|
||||
ranges;
|
||||
compatible = "simple-bus";
|
||||
interrupt-parent = <&periph_intc>;
|
||||
|
||||
periph_intc: interrupt-controller@fffe000c {
|
||||
compatible = "brcm,bcm6345-l1-intc";
|
||||
@@ -76,5 +78,14 @@
|
||||
|
||||
ngpios = <8>;
|
||||
};
|
||||
|
||||
lsspi: spi@fffe0c00 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "brcm,bcm6348-spi";
|
||||
reg = <0xfffe0c00 0x40>;
|
||||
interrupts = <1>;
|
||||
/* clocks = <&clkctl 9>; */
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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>; */
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
pflash = &pflash;
|
||||
gpio0 = &gpio0;
|
||||
gpio1 = &gpio1;
|
||||
spi0 = &lsspi;
|
||||
};
|
||||
|
||||
cpus {
|
||||
@@ -51,6 +52,7 @@
|
||||
#size-cells = <1>;
|
||||
ranges;
|
||||
compatible = "simple-bus";
|
||||
interrupt-parent = <&periph_intc>;
|
||||
|
||||
periph_intc: interrupt-controller@fffe000c {
|
||||
compatible = "brcm,bcm6345-l1-intc";
|
||||
@@ -71,7 +73,6 @@
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <2>;
|
||||
|
||||
interrupt-parent = <&periph_intc>;
|
||||
interrupts = <25>, <26>, <27>, <28>;
|
||||
};
|
||||
|
||||
@@ -82,7 +83,6 @@
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <2>;
|
||||
|
||||
interrupt-parent = <&periph_intc>;
|
||||
interrupts = <20>, <21>;
|
||||
};
|
||||
|
||||
@@ -112,5 +112,14 @@
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
};
|
||||
|
||||
lsspi: spi@fffe0800 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "brcm,bcm6358-spi";
|
||||
reg = <0xfffe0800 0x70c>;
|
||||
interrupts = <1>;
|
||||
/* clocks = <&clkctl 9>; */
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
aliases {
|
||||
gpio0 = &gpio0;
|
||||
gpio1 = &gpio1;
|
||||
spi0 = &lsspi;
|
||||
spi1 = &hsspi;
|
||||
};
|
||||
|
||||
cpus {
|
||||
@@ -40,6 +42,7 @@
|
||||
#size-cells = <1>;
|
||||
ranges;
|
||||
compatible = "simple-bus";
|
||||
interrupt-parent = <&periph_intc>;
|
||||
|
||||
ext_intc: interrupt-controller@10000018 {
|
||||
compatible = "brcm,bcm6345-ext-intc";
|
||||
@@ -48,7 +51,6 @@
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <2>;
|
||||
|
||||
interrupt-parent = <&periph_intc>;
|
||||
interrupts = <40>, <41>, <42>, <43>;
|
||||
};
|
||||
|
||||
@@ -86,5 +88,23 @@
|
||||
interrupt-names = "gpio24", "gpio25",
|
||||
"gpio26", "gpio27";
|
||||
};
|
||||
|
||||
lsspi: spi@10000800 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "brcm,bcm6358-spi";
|
||||
reg = <0x10000800 0x70c>;
|
||||
interrupts = <2>;
|
||||
/* clocks = <&clkctl 15>; */
|
||||
};
|
||||
|
||||
hsspi: spi@10001000 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "brcm,bcm6328-hsspi";
|
||||
reg = <0x10001000 0x600>;
|
||||
interrupts = <5>;
|
||||
/* clocks = <&clkctl 16>; */
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
pflash = &pflash;
|
||||
gpio0 = &gpio0;
|
||||
gpio1 = &gpio1;
|
||||
spi0 = &lsspi;
|
||||
};
|
||||
|
||||
cpus {
|
||||
@@ -41,6 +42,7 @@
|
||||
#size-cells = <1>;
|
||||
ranges;
|
||||
compatible = "simple-bus";
|
||||
interrupt-parent = <&periph_intc>;
|
||||
|
||||
ext_intc0: interrupt-controller@10000018 {
|
||||
compatible = "brcm,bcm6345-ext-intc";
|
||||
@@ -49,7 +51,6 @@
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <2>;
|
||||
|
||||
interrupt-parent = <&periph_intc>;
|
||||
interrupts = <20>, <21>, <22>, <23>;
|
||||
};
|
||||
|
||||
@@ -60,7 +61,6 @@
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <2>;
|
||||
|
||||
interrupt-parent = <&periph_intc>;
|
||||
interrupts = <24>, <25>;
|
||||
};
|
||||
|
||||
@@ -102,6 +102,15 @@
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
};
|
||||
|
||||
lsspi: spi@10000800 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "brcm,bcm6358-spi";
|
||||
reg = <0x10000800 0x70c>;
|
||||
interrupts = <1>;
|
||||
/* clocks = <&clkctl 9>; */
|
||||
};
|
||||
};
|
||||
|
||||
pflash: nor@18000000 {
|
||||
|
||||
Reference in New Issue
Block a user