Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Florian Fainelli | 46d4bca | 2014-02-20 16:11:28 -0800 | [diff] [blame] | 2 | /* |
| 3 | * Broadcom BCM63138 DSL SoCs Device Tree |
| 4 | */ |
| 5 | |
| 6 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 7 | #include <dt-bindings/interrupt-controller/irq.h> |
| 8 | |
Florian Fainelli | 46d4bca | 2014-02-20 16:11:28 -0800 | [diff] [blame] | 9 | / { |
Rob Herring | abe60a3 | 2019-01-09 10:26:14 -0600 | [diff] [blame] | 10 | #address-cells = <1>; |
| 11 | #size-cells = <1>; |
Florian Fainelli | 46d4bca | 2014-02-20 16:11:28 -0800 | [diff] [blame] | 12 | compatible = "brcm,bcm63138"; |
| 13 | model = "Broadcom BCM63138 DSL SoC"; |
| 14 | interrupt-parent = <&gic>; |
| 15 | |
| 16 | aliases { |
| 17 | uart0 = &serial0; |
| 18 | uart1 = &serial1; |
| 19 | }; |
| 20 | |
| 21 | cpus { |
| 22 | #address-cells = <1>; |
| 23 | #size-cells = <0>; |
| 24 | |
| 25 | cpu@0 { |
| 26 | device_type = "cpu"; |
| 27 | compatible = "arm,cortex-a9"; |
| 28 | next-level-cache = <&L2>; |
| 29 | reg = <0>; |
Florian Fainelli | 9f98802 | 2015-04-17 11:27:51 -0700 | [diff] [blame] | 30 | enable-method = "brcm,bcm63138"; |
Florian Fainelli | 46d4bca | 2014-02-20 16:11:28 -0800 | [diff] [blame] | 31 | }; |
| 32 | |
| 33 | cpu@1 { |
| 34 | device_type = "cpu"; |
| 35 | compatible = "arm,cortex-a9"; |
| 36 | next-level-cache = <&L2>; |
| 37 | reg = <1>; |
Florian Fainelli | 9f98802 | 2015-04-17 11:27:51 -0700 | [diff] [blame] | 38 | enable-method = "brcm,bcm63138"; |
| 39 | resets = <&pmb0 4 1>; |
Florian Fainelli | 46d4bca | 2014-02-20 16:11:28 -0800 | [diff] [blame] | 40 | }; |
| 41 | }; |
| 42 | |
| 43 | clocks { |
Florian Fainelli | 511d304 | 2015-10-29 18:23:19 -0700 | [diff] [blame] | 44 | /* UBUS peripheral clock */ |
Florian Fainelli | 46d4bca | 2014-02-20 16:11:28 -0800 | [diff] [blame] | 45 | periph_clk: periph_clk { |
| 46 | #clock-cells = <0>; |
| 47 | compatible = "fixed-clock"; |
| 48 | clock-frequency = <50000000>; |
| 49 | clock-output-names = "periph"; |
| 50 | }; |
Florian Fainelli | 511d304 | 2015-10-29 18:23:19 -0700 | [diff] [blame] | 51 | |
| 52 | /* peripheral clock for system timer */ |
| 53 | axi_clk: axi_clk { |
| 54 | #clock-cells = <0>; |
| 55 | compatible = "fixed-factor-clock"; |
| 56 | clocks = <&armpll>; |
| 57 | clock-div = <2>; |
| 58 | clock-mult = <1>; |
| 59 | }; |
| 60 | |
| 61 | /* APB bus clock */ |
| 62 | apb_clk: apb_clk { |
| 63 | #clock-cells = <0>; |
| 64 | compatible = "fixed-factor-clock"; |
| 65 | clocks = <&armpll>; |
| 66 | clock-div = <4>; |
| 67 | clock-mult = <1>; |
| 68 | }; |
Florian Fainelli | 46d4bca | 2014-02-20 16:11:28 -0800 | [diff] [blame] | 69 | }; |
| 70 | |
| 71 | /* ARM bus */ |
| 72 | axi@80000000 { |
| 73 | compatible = "simple-bus"; |
| 74 | ranges = <0 0x80000000 0x784000>; |
| 75 | #address-cells = <1>; |
| 76 | #size-cells = <1>; |
| 77 | |
| 78 | L2: cache-controller@1d000 { |
| 79 | compatible = "arm,pl310-cache"; |
| 80 | reg = <0x1d000 0x1000>; |
| 81 | cache-unified; |
| 82 | cache-level = <2>; |
Florian Fainelli | 9df1182 | 2015-02-10 17:33:07 -0800 | [diff] [blame] | 83 | cache-size = <524288>; |
| 84 | cache-sets = <1024>; |
| 85 | cache-line-size = <32>; |
Florian Fainelli | 46d4bca | 2014-02-20 16:11:28 -0800 | [diff] [blame] | 86 | interrupts = <GIC_PPI 0 IRQ_TYPE_LEVEL_HIGH>; |
| 87 | }; |
| 88 | |
| 89 | scu: scu@1e000 { |
| 90 | compatible = "arm,cortex-a9-scu"; |
| 91 | reg = <0x1e000 0x100>; |
| 92 | }; |
| 93 | |
Florian Fainelli | f6bf172 | 2019-05-28 16:01:32 -0700 | [diff] [blame] | 94 | gic: interrupt-controller@1f000 { |
Florian Fainelli | 46d4bca | 2014-02-20 16:11:28 -0800 | [diff] [blame] | 95 | compatible = "arm,cortex-a9-gic"; |
| 96 | reg = <0x1f000 0x1000 |
| 97 | 0x1e100 0x100>; |
| 98 | #interrupt-cells = <3>; |
| 99 | #address-cells = <0>; |
| 100 | interrupt-controller; |
| 101 | }; |
| 102 | |
| 103 | global_timer: timer@1e200 { |
| 104 | compatible = "arm,cortex-a9-global-timer"; |
| 105 | reg = <0x1e200 0x20>; |
Florian Fainelli | 3ab9794 | 2018-09-19 17:14:01 -0700 | [diff] [blame] | 106 | interrupts = <GIC_PPI 11 IRQ_TYPE_EDGE_RISING>; |
Florian Fainelli | 511d304 | 2015-10-29 18:23:19 -0700 | [diff] [blame] | 107 | clocks = <&axi_clk>; |
Florian Fainelli | 46d4bca | 2014-02-20 16:11:28 -0800 | [diff] [blame] | 108 | }; |
| 109 | |
| 110 | local_timer: local-timer@1e600 { |
| 111 | compatible = "arm,cortex-a9-twd-timer"; |
| 112 | reg = <0x1e600 0x20>; |
Florian Fainelli | 3ab9794 | 2018-09-19 17:14:01 -0700 | [diff] [blame] | 113 | interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | |
| 114 | IRQ_TYPE_EDGE_RISING)>; |
Florian Fainelli | 511d304 | 2015-10-29 18:23:19 -0700 | [diff] [blame] | 115 | clocks = <&axi_clk>; |
Florian Fainelli | 46d4bca | 2014-02-20 16:11:28 -0800 | [diff] [blame] | 116 | }; |
| 117 | |
| 118 | twd_watchdog: watchdog@1e620 { |
| 119 | compatible = "arm,cortex-a9-twd-wdt"; |
| 120 | reg = <0x1e620 0x20>; |
Florian Fainelli | 3ab9794 | 2018-09-19 17:14:01 -0700 | [diff] [blame] | 121 | interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | |
| 122 | IRQ_TYPE_LEVEL_HIGH)>; |
Florian Fainelli | 46d4bca | 2014-02-20 16:11:28 -0800 | [diff] [blame] | 123 | }; |
Florian Fainelli | 39afb98 | 2015-04-16 11:37:51 -0700 | [diff] [blame] | 124 | |
Florian Fainelli | f6bf172 | 2019-05-28 16:01:32 -0700 | [diff] [blame] | 125 | armpll: armpll@20000 { |
Florian Fainelli | 511d304 | 2015-10-29 18:23:19 -0700 | [diff] [blame] | 126 | #clock-cells = <0>; |
| 127 | compatible = "brcm,bcm63138-armpll"; |
| 128 | clocks = <&periph_clk>; |
| 129 | reg = <0x20000 0xf00>; |
| 130 | }; |
| 131 | |
Florian Fainelli | 39afb98 | 2015-04-16 11:37:51 -0700 | [diff] [blame] | 132 | pmb0: reset-controller@4800c0 { |
| 133 | compatible = "brcm,bcm63138-pmb"; |
| 134 | reg = <0x4800c0 0x10>; |
| 135 | #reset-cells = <2>; |
| 136 | }; |
| 137 | |
| 138 | pmb1: reset-controller@4800e0 { |
| 139 | compatible = "brcm,bcm63138-pmb"; |
| 140 | reg = <0x4800e0 0x10>; |
| 141 | #reset-cells = <2>; |
| 142 | }; |
Florian Fainelli | 2af764d | 2015-03-20 16:30:21 -0700 | [diff] [blame] | 143 | |
Florian Fainelli | f6bf172 | 2019-05-28 16:01:32 -0700 | [diff] [blame] | 144 | ahci: sata@a000 { |
Florian Fainelli | 2af764d | 2015-03-20 16:30:21 -0700 | [diff] [blame] | 145 | compatible = "brcm,bcm63138-ahci", "brcm,sata3-ahci"; |
| 146 | reg-names = "ahci", "top-ctrl"; |
| 147 | reg = <0xa000 0x9ac>, <0x8040 0x24>; |
| 148 | interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>; |
| 149 | #address-cells = <1>; |
| 150 | #size-cells = <0>; |
| 151 | resets = <&pmb0 3 1>; |
| 152 | reset-names = "ahci"; |
| 153 | status = "disabled"; |
| 154 | |
| 155 | sata0: sata-port@0 { |
| 156 | reg = <0>; |
| 157 | phys = <&sata_phy0>; |
| 158 | }; |
| 159 | }; |
| 160 | |
| 161 | sata_phy: sata-phy@8100 { |
| 162 | compatible = "brcm,bcm63138-sata-phy", "brcm,phy-sata3"; |
| 163 | reg = <0x8100 0x1e00>; |
| 164 | reg-names = "phy"; |
| 165 | #address-cells = <1>; |
| 166 | #size-cells = <0>; |
| 167 | status = "disabled"; |
| 168 | |
| 169 | sata_phy0: sata-phy@0 { |
| 170 | reg = <0>; |
| 171 | #phy-cells = <0>; |
| 172 | }; |
| 173 | }; |
Florian Fainelli | 46d4bca | 2014-02-20 16:11:28 -0800 | [diff] [blame] | 174 | }; |
| 175 | |
| 176 | /* Legacy UBUS base */ |
| 177 | ubus@fffe8000 { |
| 178 | compatible = "simple-bus"; |
| 179 | #address-cells = <1>; |
| 180 | #size-cells = <1>; |
| 181 | ranges = <0 0xfffe8000 0x8100>; |
| 182 | |
Florian Fainelli | 8ab1428 | 2015-04-23 15:57:21 -0700 | [diff] [blame] | 183 | timer: timer@80 { |
| 184 | compatible = "brcm,bcm6328-timer", "syscon"; |
| 185 | reg = <0x80 0x3c>; |
| 186 | }; |
| 187 | |
Florian Fainelli | 46d4bca | 2014-02-20 16:11:28 -0800 | [diff] [blame] | 188 | serial0: serial@600 { |
| 189 | compatible = "brcm,bcm6345-uart"; |
| 190 | reg = <0x600 0x1b>; |
Florian Fainelli | 3ab9794 | 2018-09-19 17:14:01 -0700 | [diff] [blame] | 191 | interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; |
Florian Fainelli | 46d4bca | 2014-02-20 16:11:28 -0800 | [diff] [blame] | 192 | clocks = <&periph_clk>; |
| 193 | clock-names = "periph"; |
| 194 | status = "disabled"; |
| 195 | }; |
| 196 | |
| 197 | serial1: serial@620 { |
| 198 | compatible = "brcm,bcm6345-uart"; |
| 199 | reg = <0x620 0x1b>; |
Florian Fainelli | 3ab9794 | 2018-09-19 17:14:01 -0700 | [diff] [blame] | 200 | interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; |
Florian Fainelli | 46d4bca | 2014-02-20 16:11:28 -0800 | [diff] [blame] | 201 | clocks = <&periph_clk>; |
| 202 | clock-names = "periph"; |
| 203 | status = "disabled"; |
| 204 | }; |
Florian Fainelli | 9f98802 | 2015-04-17 11:27:51 -0700 | [diff] [blame] | 205 | |
Rafał Miłecki | 75e2f01 | 2021-04-16 15:37:52 +0200 | [diff] [blame] | 206 | nand_controller: nand-controller@2000 { |
Florian Fainelli | 9d7ef1b | 2015-05-26 20:27:30 -0700 | [diff] [blame] | 207 | #address-cells = <1>; |
| 208 | #size-cells = <0>; |
| 209 | compatible = "brcm,nand-bcm63138", "brcm,brcmnand-v7.0", "brcm,brcmnand"; |
| 210 | reg = <0x2000 0x600>, <0xf0 0x10>; |
| 211 | reg-names = "nand", "nand-int-base"; |
| 212 | status = "disabled"; |
Florian Fainelli | 3ab9794 | 2018-09-19 17:14:01 -0700 | [diff] [blame] | 213 | interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>; |
Florian Fainelli | 9d7ef1b | 2015-05-26 20:27:30 -0700 | [diff] [blame] | 214 | interrupt-names = "nand"; |
| 215 | }; |
| 216 | |
Florian Fainelli | 9f98802 | 2015-04-17 11:27:51 -0700 | [diff] [blame] | 217 | bootlut: bootlut@8000 { |
| 218 | compatible = "brcm,bcm63138-bootlut"; |
| 219 | reg = <0x8000 0x50>; |
| 220 | }; |
Florian Fainelli | 8ab1428 | 2015-04-23 15:57:21 -0700 | [diff] [blame] | 221 | |
| 222 | reboot { |
| 223 | compatible = "syscon-reboot"; |
| 224 | regmap = <&timer>; |
| 225 | offset = <0x34>; |
| 226 | mask = <1>; |
| 227 | }; |
Florian Fainelli | 46d4bca | 2014-02-20 16:11:28 -0800 | [diff] [blame] | 228 | }; |
| 229 | }; |