2014-02-04 00:01:45 +01:00
|
|
|
/*
|
|
|
|
* Broadcom BCM470X / BCM5301X ARM platform code.
|
|
|
|
* Generic DTS part for all BCM53010, BCM53011, BCM53012, BCM53014, BCM53015,
|
|
|
|
* BCM53016, BCM53017, BCM53018, BCM4707, BCM4708 and BCM4709 SoCs
|
|
|
|
*
|
|
|
|
* Licensed under the GNU/GPL. See COPYING for details.
|
|
|
|
*/
|
|
|
|
|
2023-05-03 14:16:10 +02:00
|
|
|
#include "bcm-ns.dtsi"
|
2014-02-04 00:01:45 +01:00
|
|
|
|
|
|
|
/ {
|
2021-08-19 08:57:00 +02:00
|
|
|
mpcore-bus@19000000 {
|
2017-10-13 12:54:51 -05:00
|
|
|
a9pll: arm_clk@0 {
|
2015-11-20 10:17:18 -05:00
|
|
|
#clock-cells = <0>;
|
|
|
|
compatible = "brcm,nsp-armpll";
|
|
|
|
clocks = <&osc>;
|
|
|
|
reg = <0x00000 0x1000>;
|
|
|
|
};
|
|
|
|
|
2017-03-06 11:24:44 -05:00
|
|
|
watchdog@20620 {
|
|
|
|
compatible = "arm,cortex-a9-twd-wdt";
|
|
|
|
reg = <0x20620 0x20>;
|
|
|
|
interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) |
|
|
|
|
IRQ_TYPE_EDGE_RISING)>;
|
2015-11-20 10:17:18 -05:00
|
|
|
clocks = <&periph_clk>;
|
2014-02-04 00:01:45 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
clocks {
|
|
|
|
#address-cells = <1>;
|
2015-11-20 10:17:18 -05:00
|
|
|
#size-cells = <1>;
|
|
|
|
ranges;
|
2014-02-04 00:01:45 +01:00
|
|
|
|
2015-11-20 10:17:18 -05:00
|
|
|
osc: oscillator {
|
|
|
|
#clock-cells = <0>;
|
2014-02-04 00:01:45 +01:00
|
|
|
compatible = "fixed-clock";
|
2015-11-20 10:17:18 -05:00
|
|
|
clock-frequency = <25000000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
iprocmed: iprocmed {
|
|
|
|
#clock-cells = <0>;
|
|
|
|
compatible = "fixed-factor-clock";
|
|
|
|
clocks = <&genpll BCM_NSP_GENPLL_IPROCFAST_CLK>;
|
|
|
|
clock-div = <2>;
|
|
|
|
clock-mult = <1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
iprocslow: iprocslow {
|
|
|
|
#clock-cells = <0>;
|
|
|
|
compatible = "fixed-factor-clock";
|
|
|
|
clocks = <&genpll BCM_NSP_GENPLL_IPROCFAST_CLK>;
|
|
|
|
clock-div = <4>;
|
|
|
|
clock-mult = <1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
periph_clk: periph_clk {
|
2014-02-04 00:01:45 +01:00
|
|
|
#clock-cells = <0>;
|
2015-11-20 10:17:18 -05:00
|
|
|
compatible = "fixed-factor-clock";
|
|
|
|
clocks = <&a9pll>;
|
|
|
|
clock-div = <2>;
|
|
|
|
clock-mult = <1>;
|
2014-02-04 00:01:45 +01:00
|
|
|
};
|
|
|
|
};
|
2014-10-01 15:45:28 +02:00
|
|
|
|
2017-03-06 11:24:45 -05:00
|
|
|
i2c0: i2c@18009000 {
|
|
|
|
compatible = "brcm,iproc-i2c";
|
|
|
|
reg = <0x18009000 0x50>;
|
2021-10-27 12:37:29 -07:00
|
|
|
interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
|
2017-03-06 11:24:45 -05:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
clock-frequency = <100000>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2021-08-19 08:57:00 +02:00
|
|
|
dmu-bus@1800c000 {
|
2021-10-29 18:05:23 +02:00
|
|
|
cru-bus@100 {
|
|
|
|
lcpll0: clock-controller@100 {
|
2020-11-11 15:55:38 +01:00
|
|
|
#clock-cells = <1>;
|
|
|
|
compatible = "brcm,nsp-lcpll0";
|
|
|
|
reg = <0x100 0x14>;
|
|
|
|
clocks = <&osc>;
|
|
|
|
clock-output-names = "lcpll0", "pcie_phy",
|
|
|
|
"sdio", "ddr_phy";
|
|
|
|
};
|
|
|
|
|
2021-10-29 18:05:23 +02:00
|
|
|
genpll: clock-controller@140 {
|
2020-11-11 15:55:38 +01:00
|
|
|
#clock-cells = <1>;
|
|
|
|
compatible = "brcm,nsp-genpll";
|
|
|
|
reg = <0x140 0x24>;
|
|
|
|
clocks = <&osc>;
|
|
|
|
clock-output-names = "genpll", "phy",
|
|
|
|
"ethernetclk",
|
|
|
|
"usbclk", "iprocfast",
|
|
|
|
"sata1", "sata2";
|
|
|
|
};
|
|
|
|
};
|
2017-04-14 23:42:28 +02:00
|
|
|
};
|
|
|
|
|
2017-02-08 15:45:16 -05:00
|
|
|
spi@18029200 {
|
2020-08-26 16:45:29 -07:00
|
|
|
compatible = "brcm,spi-nsp-qspi", "brcm,spi-bcm-qspi";
|
2017-02-08 15:45:16 -05:00
|
|
|
reg = <0x18029200 0x184>,
|
|
|
|
<0x18029000 0x124>,
|
|
|
|
<0x1811b408 0x004>,
|
|
|
|
<0x180293a0 0x01c>;
|
|
|
|
reg-names = "mspi", "bspi", "intr_regs", "intr_status_reg";
|
ARM: dts: BCM5301X: Fixup SPI binding
1. Reorder interrupts
2. Fix typo: s/spi_lr_overhead/spi_lr_overread/
3. Rename node: s/spi-nor@0/flash@0/
This fixes:
arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dt.yaml: spi@18029200: interrupt-names: 'oneOf' conditional failed, one must be fixed:
['spi_lr_fullness_reached', 'spi_lr_session_aborted', 'spi_lr_impatient', 'spi_lr_session_done', 'spi_lr_overhead', 'mspi_done', 'mspi_halted'] is too long
Additional items are not allowed ('spi_lr_session_aborted', 'spi_lr_impatient', 'spi_lr_session_done', 'spi_lr_overhead', 'mspi_done', 'mspi_halted' were unexpected)
'mspi_done' was expected
'spi_l1_intr' was expected
'mspi_halted' was expected
'spi_lr_fullness_reached' was expected
'spi_lr_session_aborted' was expected
'spi_lr_impatient' was expected
'spi_lr_session_done' was expected
'spi_lr_overread' was expected
From schema: Documentation/devicetree/bindings/spi/brcm,spi-bcm-qspi.yaml
arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dt.yaml: spi-nor@0: $nodename:0: 'spi-nor@0' does not match '^flash(@.*)?$'
From schema: Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2021-05-12 15:07:09 +02:00
|
|
|
interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
|
2017-02-08 15:45:16 -05:00
|
|
|
<GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>,
|
ARM: dts: BCM5301X: Fixup SPI binding
1. Reorder interrupts
2. Fix typo: s/spi_lr_overhead/spi_lr_overread/
3. Rename node: s/spi-nor@0/flash@0/
This fixes:
arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dt.yaml: spi@18029200: interrupt-names: 'oneOf' conditional failed, one must be fixed:
['spi_lr_fullness_reached', 'spi_lr_session_aborted', 'spi_lr_impatient', 'spi_lr_session_done', 'spi_lr_overhead', 'mspi_done', 'mspi_halted'] is too long
Additional items are not allowed ('spi_lr_session_aborted', 'spi_lr_impatient', 'spi_lr_session_done', 'spi_lr_overhead', 'mspi_done', 'mspi_halted' were unexpected)
'mspi_done' was expected
'spi_l1_intr' was expected
'mspi_halted' was expected
'spi_lr_fullness_reached' was expected
'spi_lr_session_aborted' was expected
'spi_lr_impatient' was expected
'spi_lr_session_done' was expected
'spi_lr_overread' was expected
From schema: Documentation/devicetree/bindings/spi/brcm,spi-bcm-qspi.yaml
arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dt.yaml: spi-nor@0: $nodename:0: 'spi-nor@0' does not match '^flash(@.*)?$'
From schema: Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2021-05-12 15:07:09 +02:00
|
|
|
<GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
interrupt-names = "mspi_done",
|
|
|
|
"mspi_halted",
|
|
|
|
"spi_lr_fullness_reached",
|
2017-02-08 15:45:16 -05:00
|
|
|
"spi_lr_session_aborted",
|
|
|
|
"spi_lr_impatient",
|
|
|
|
"spi_lr_session_done",
|
ARM: dts: BCM5301X: Fixup SPI binding
1. Reorder interrupts
2. Fix typo: s/spi_lr_overhead/spi_lr_overread/
3. Rename node: s/spi-nor@0/flash@0/
This fixes:
arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dt.yaml: spi@18029200: interrupt-names: 'oneOf' conditional failed, one must be fixed:
['spi_lr_fullness_reached', 'spi_lr_session_aborted', 'spi_lr_impatient', 'spi_lr_session_done', 'spi_lr_overhead', 'mspi_done', 'mspi_halted'] is too long
Additional items are not allowed ('spi_lr_session_aborted', 'spi_lr_impatient', 'spi_lr_session_done', 'spi_lr_overhead', 'mspi_done', 'mspi_halted' were unexpected)
'mspi_done' was expected
'spi_l1_intr' was expected
'mspi_halted' was expected
'spi_lr_fullness_reached' was expected
'spi_lr_session_aborted' was expected
'spi_lr_impatient' was expected
'spi_lr_session_done' was expected
'spi_lr_overread' was expected
From schema: Documentation/devicetree/bindings/spi/brcm,spi-bcm-qspi.yaml
arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dt.yaml: spi-nor@0: $nodename:0: 'spi-nor@0' does not match '^flash(@.*)?$'
From schema: Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2021-05-12 15:07:09 +02:00
|
|
|
"spi_lr_overread";
|
2017-02-08 15:45:16 -05:00
|
|
|
clocks = <&iprocmed>;
|
|
|
|
num-cs = <2>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
ARM: dts: BCM5301X: Fixup SPI binding
1. Reorder interrupts
2. Fix typo: s/spi_lr_overhead/spi_lr_overread/
3. Rename node: s/spi-nor@0/flash@0/
This fixes:
arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dt.yaml: spi@18029200: interrupt-names: 'oneOf' conditional failed, one must be fixed:
['spi_lr_fullness_reached', 'spi_lr_session_aborted', 'spi_lr_impatient', 'spi_lr_session_done', 'spi_lr_overhead', 'mspi_done', 'mspi_halted'] is too long
Additional items are not allowed ('spi_lr_session_aborted', 'spi_lr_impatient', 'spi_lr_session_done', 'spi_lr_overhead', 'mspi_done', 'mspi_halted' were unexpected)
'mspi_done' was expected
'spi_l1_intr' was expected
'mspi_halted' was expected
'spi_lr_fullness_reached' was expected
'spi_lr_session_aborted' was expected
'spi_lr_impatient' was expected
'spi_lr_session_done' was expected
'spi_lr_overread' was expected
From schema: Documentation/devicetree/bindings/spi/brcm,spi-bcm-qspi.yaml
arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dt.yaml: spi-nor@0: $nodename:0: 'spi-nor@0' does not match '^flash(@.*)?$'
From schema: Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2021-05-12 15:07:09 +02:00
|
|
|
spi_nor: flash@0 {
|
2017-02-08 15:45:16 -05:00
|
|
|
compatible = "jedec,spi-nor";
|
|
|
|
reg = <0>;
|
|
|
|
spi-max-frequency = <20000000>;
|
|
|
|
status = "disabled";
|
2018-07-28 14:13:57 +02:00
|
|
|
|
|
|
|
partitions {
|
|
|
|
compatible = "brcm,bcm947xx-cfe-partitions";
|
|
|
|
};
|
2017-02-08 15:45:16 -05:00
|
|
|
};
|
|
|
|
};
|
2014-02-04 00:01:45 +01:00
|
|
|
};
|