diff options
author | Jonas Gorski <jonas.gorski@gmail.com> | 2017-02-07 12:31:02 +0100 |
---|---|---|
committer | Jonas Gorski <jonas.gorski@gmail.com> | 2017-06-04 11:33:43 +0200 |
commit | b50fd8c2b3abdd557bd7d2bb5628f03b20801350 (patch) | |
tree | a4f71f0f10c0c3b2c2f0a5000f695bfd699ca5d8 /target/linux/brcm63xx/dts | |
parent | 2a2b16210bbc8c5881286d2ff742f3bdf1a7fd9c (diff) | |
download | upstream-b50fd8c2b3abdd557bd7d2bb5628f03b20801350.tar.gz upstream-b50fd8c2b3abdd557bd7d2bb5628f03b20801350.tar.bz2 upstream-b50fd8c2b3abdd557bd7d2bb5628f03b20801350.zip |
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>
Diffstat (limited to 'target/linux/brcm63xx/dts')
-rw-r--r-- | target/linux/brcm63xx/dts/bcm3368.dtsi | 12 | ||||
-rw-r--r-- | target/linux/brcm63xx/dts/bcm6318.dtsi | 12 | ||||
-rw-r--r-- | target/linux/brcm63xx/dts/bcm63268.dtsi | 22 | ||||
-rw-r--r-- | target/linux/brcm63xx/dts/bcm6328.dtsi | 12 | ||||
-rw-r--r-- | target/linux/brcm63xx/dts/bcm6338.dtsi | 11 | ||||
-rw-r--r-- | target/linux/brcm63xx/dts/bcm6348.dtsi | 12 | ||||
-rw-r--r-- | target/linux/brcm63xx/dts/bcm6358.dtsi | 13 | ||||
-rw-r--r-- | target/linux/brcm63xx/dts/bcm6362.dtsi | 22 | ||||
-rw-r--r-- | target/linux/brcm63xx/dts/bcm6368.dtsi | 13 |
9 files changed, 120 insertions, 9 deletions
diff --git a/target/linux/brcm63xx/dts/bcm3368.dtsi b/target/linux/brcm63xx/dts/bcm3368.dtsi index 5c2052962c..29dae01d79 100644 --- a/target/linux/brcm63xx/dts/bcm3368.dtsi +++ b/target/linux/brcm63xx/dts/bcm3368.dtsi @@ -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>; */ + }; }; }; diff --git a/target/linux/brcm63xx/dts/bcm6318.dtsi b/target/linux/brcm63xx/dts/bcm6318.dtsi index 0371617978..a199b03cc0 100644 --- a/target/linux/brcm63xx/dts/bcm6318.dtsi +++ b/target/linux/brcm63xx/dts/bcm6318.dtsi @@ -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>; */ + }; }; }; diff --git a/target/linux/brcm63xx/dts/bcm63268.dtsi b/target/linux/brcm63xx/dts/bcm63268.dtsi index 5a0a909563..a2b683af77 100644 --- a/target/linux/brcm63xx/dts/bcm63268.dtsi +++ b/target/linux/brcm63xx/dts/bcm63268.dtsi @@ -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>; */ + }; }; }; diff --git a/target/linux/brcm63xx/dts/bcm6328.dtsi b/target/linux/brcm63xx/dts/bcm6328.dtsi index 5eec6dec3a..9a17869f0b 100644 --- a/target/linux/brcm63xx/dts/bcm6328.dtsi +++ b/target/linux/brcm63xx/dts/bcm6328.dtsi @@ -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>; */ + }; }; }; diff --git a/target/linux/brcm63xx/dts/bcm6338.dtsi b/target/linux/brcm63xx/dts/bcm6338.dtsi index 7d48e86b8c..1811acfed8 100644 --- a/target/linux/brcm63xx/dts/bcm6338.dtsi +++ b/target/linux/brcm63xx/dts/bcm6338.dtsi @@ -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>; */ + }; }; }; diff --git a/target/linux/brcm63xx/dts/bcm6348.dtsi b/target/linux/brcm63xx/dts/bcm6348.dtsi index d1219c031f..47c06d0ce0 100644 --- a/target/linux/brcm63xx/dts/bcm6348.dtsi +++ b/target/linux/brcm63xx/dts/bcm6348.dtsi @@ -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>; */ + + }; }; }; diff --git a/target/linux/brcm63xx/dts/bcm6358.dtsi b/target/linux/brcm63xx/dts/bcm6358.dtsi index 9d95849b3a..e4aecf7970 100644 --- a/target/linux/brcm63xx/dts/bcm6358.dtsi +++ b/target/linux/brcm63xx/dts/bcm6358.dtsi @@ -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>; */ + }; }; }; diff --git a/target/linux/brcm63xx/dts/bcm6362.dtsi b/target/linux/brcm63xx/dts/bcm6362.dtsi index a6a5c1f1d0..2085fd53bf 100644 --- a/target/linux/brcm63xx/dts/bcm6362.dtsi +++ b/target/linux/brcm63xx/dts/bcm6362.dtsi @@ -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>; */ + }; }; }; diff --git a/target/linux/brcm63xx/dts/bcm6368.dtsi b/target/linux/brcm63xx/dts/bcm6368.dtsi index 59ef41af47..40f2f0f07a 100644 --- a/target/linux/brcm63xx/dts/bcm6368.dtsi +++ b/target/linux/brcm63xx/dts/bcm6368.dtsi @@ -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 { |