2 * ox820.dtsi - Device tree file for Oxford Semiconductor OX820 SoC
4 * Copyright (C) 2016 Neil Armstrong <narmstrong@baylibre.com>
6 * Licensed under GPLv2 or later
9 #include <dt-bindings/interrupt-controller/arm-gic.h>
10 #include <dt-bindings/clock/oxsemi,ox820.h>
11 #include <dt-bindings/reset/oxsemi,ox820.h>
16 compatible = "oxsemi,ox820";
21 enable-method = "oxsemi,ox820-smp";
25 compatible = "arm,arm11mpcore";
32 compatible = "arm,arm11mpcore";
39 device_type = "memory";
40 /* Max 512MB @ 0x60000000 */
41 reg = <0x60000000 0x20000000>;
46 compatible = "fixed-clock";
48 clock-frequency = <25000000>;
52 compatible = "fixed-clock";
54 clock-frequency = <125000000>;
58 compatible = "fixed-factor-clock";
66 compatible = "fixed-clock";
68 clock-frequency = <850000000>;
72 compatible = "fixed-factor-clock";
83 compatible = "simple-bus";
85 interrupt-parent = <&gic>;
87 nandc: nand-controller@41000000 {
88 compatible = "oxsemi,ox820-nand";
89 reg = <0x41000000 0x100000>;
90 clocks = <&stdclk CLK_820_NAND>;
91 resets = <&reset RESET_NAND>;
97 etha: ethernet@40400000 {
98 compatible = "oxsemi,ox820-dwmac", "snps,dwmac";
99 reg = <0x40400000 0x2000>;
100 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
101 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
102 interrupt-names = "macirq", "eth_wake_irq";
103 mac-address = [000000000000]; /* Filled in by U-Boot */
106 clocks = <&stdclk CLK_820_ETHA>, <&gmacclk>;
107 clock-names = "gmac", "stmmaceth";
108 resets = <&reset RESET_MAC>;
110 /* Regmap for sys registers */
111 oxsemi,sys-ctrl = <&sys>;
116 apb-bridge@44000000 {
117 #address-cells = <1>;
119 compatible = "simple-bus";
120 ranges = <0 0x44000000 0x1000000>;
123 compatible = "oxsemi,ox820-pinctrl";
125 /* Regmap for sys registers */
126 oxsemi,sys-ctrl = <&sys>;
128 pinctrl_uart0: uart0 {
130 pins = "gpio30", "gpio31";
135 pinctrl_uart0_modem: uart0_modem {
137 pins = "gpio24", "gpio24", "gpio26", "gpio27";
141 pins = "gpio28", "gpio29";
146 pinctrl_uart1: uart1 {
148 pins = "gpio7", "gpio8";
153 pinctrl_uart1_modem: uart1_modem {
155 pins = "gpio5", "gpio6", "gpio40", "gpio41", "gpio42", "gpio43";
160 pinctrl_etha_mdio: etha_mdio {
162 pins = "gpio3", "gpio4";
169 pins = "gpio12", "gpio13", "gpio14", "gpio15",
170 "gpio16", "gpio17", "gpio18", "gpio19",
171 "gpio20", "gpio21", "gpio22", "gpio23",
179 compatible = "oxsemi,ox820-gpio";
180 reg = <0x000000 0x100000>;
181 interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
184 interrupt-controller;
185 #interrupt-cells = <2>;
187 oxsemi,gpio-bank = <0>;
188 gpio-ranges = <&pinctrl 0 0 32>;
192 compatible = "oxsemi,ox820-gpio";
193 reg = <0x100000 0x100000>;
194 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
197 interrupt-controller;
198 #interrupt-cells = <2>;
200 oxsemi,gpio-bank = <1>;
201 gpio-ranges = <&pinctrl 0 32 18>;
204 uart0: serial@200000 {
205 compatible = "ns16550a";
206 reg = <0x200000 0x100000>;
207 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
211 current-speed = <115200>;
215 resets = <&reset RESET_UART1>;
218 uart1: serial@300000 {
219 compatible = "ns16550a";
220 reg = <0x200000 0x100000>;
221 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
225 current-speed = <115200>;
229 resets = <&reset RESET_UART2>;
233 #address-cells = <1>;
235 compatible = "simple-bus";
236 ranges = <0 0x400000 0x100000>;
238 intc: interrupt-controller@0 {
239 compatible = "oxsemi,ox820-rps-irq", "oxsemi,ox810se-rps-irq";
240 interrupt-controller;
242 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
243 #interrupt-cells = <1>;
244 valid-mask = <0xFFFFFFFF>;
249 compatible = "oxsemi,ox820-rps-timer";
252 interrupt-parent = <&intc>;
257 sys: sys-ctrl@e00000 {
258 compatible = "oxsemi,ox820-sys-ctrl", "syscon", "simple-mfd";
259 reg = <0xe00000 0x200000>;
261 reset: reset-controller {
262 compatible = "oxsemi,ox820-reset", "oxsemi,ox810se-reset";
267 compatible = "oxsemi,ox820-stdclk", "oxsemi,ox810se-stdclk";
273 apb-bridge@47000000 {
274 #address-cells = <1>;
276 compatible = "simple-bus";
277 ranges = <0 0x47000000 0x1000000>;
280 compatible = "arm,arm11mp-scu";
285 compatible = "arm,arm11mp-twd-timer";
287 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_RAW(3)|IRQ_TYPE_LEVEL_HIGH)>;
292 compatible = "arm,arm11mp-gic";
293 interrupt-controller;
294 #interrupt-cells = <3>;
295 reg = <0x1000 0x1000>,