blob: 62c440e6759f0f89d7bf2fc3482da3c564888755 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Álvaro Fernández Rojasff1e41e2017-04-25 00:39:25 +02002/*
3 * Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com>
Álvaro Fernández Rojasff1e41e2017-04-25 00:39:25 +02004 */
5
Álvaro Fernández Rojasefe37372017-05-07 20:13:04 +02006#include <dt-bindings/clock/bcm63268-clock.h>
Álvaro Fernández Rojasff1e41e2017-04-25 00:39:25 +02007#include <dt-bindings/gpio/gpio.h>
Álvaro Fernández Rojase4af2382017-05-07 20:28:38 +02008#include <dt-bindings/power-domain/bcm63268-power-domain.h>
Álvaro Fernández Rojasad03d992017-05-03 15:10:24 +02009#include <dt-bindings/reset/bcm63268-reset.h>
Álvaro Fernández Rojasff1e41e2017-04-25 00:39:25 +020010#include "skeleton.dtsi"
11
12/ {
13 compatible = "brcm,bcm63268";
14
Álvaro Fernández Rojase4aee152018-01-23 17:15:03 +010015 aliases {
16 spi0 = &lsspi;
Álvaro Fernández Rojase6378062018-01-20 02:13:40 +010017 spi1 = &hsspi;
Álvaro Fernández Rojase4aee152018-01-23 17:15:03 +010018 };
19
Álvaro Fernández Rojasff1e41e2017-04-25 00:39:25 +020020 cpus {
21 reg = <0x10000000 0x4>;
22 #address-cells = <1>;
23 #size-cells = <0>;
24 u-boot,dm-pre-reloc;
25
26 cpu@0 {
27 compatible = "brcm,bcm63268-cpu", "mips,mips4Kc";
28 device_type = "cpu";
29 reg = <0>;
30 u-boot,dm-pre-reloc;
31 };
32
33 cpu@1 {
34 compatible = "brcm,bcm63268-cpu", "mips,mips4Kc";
35 device_type = "cpu";
36 reg = <1>;
37 u-boot,dm-pre-reloc;
38 };
39 };
40
41 clocks {
42 compatible = "simple-bus";
43 #address-cells = <1>;
44 #size-cells = <1>;
45 u-boot,dm-pre-reloc;
46
Álvaro Fernández Rojase6378062018-01-20 02:13:40 +010047 hsspi_pll: hsspi-pll {
48 compatible = "fixed-clock";
49 #clock-cells = <0>;
50 clock-frequency = <400000000>;
51 };
52
Álvaro Fernández Rojasff1e41e2017-04-25 00:39:25 +020053 periph_osc: periph-osc {
54 compatible = "fixed-clock";
55 #clock-cells = <0>;
56 clock-frequency = <50000000>;
57 u-boot,dm-pre-reloc;
58 };
Álvaro Fernández Rojasefe37372017-05-07 20:13:04 +020059
60 periph_clk: periph-clk {
61 compatible = "brcm,bcm6345-clk";
62 reg = <0x10000004 0x4>;
63 #clock-cells = <1>;
64 };
65
66 timer_clk: timer-clk {
67 compatible = "brcm,bcm6345-clk";
68 reg = <0x100000ac 0x4>;
69 #clock-cells = <1>;
70 };
Álvaro Fernández Rojasff1e41e2017-04-25 00:39:25 +020071 };
72
73 ubus {
74 compatible = "simple-bus";
75 #address-cells = <1>;
76 #size-cells = <1>;
77 u-boot,dm-pre-reloc;
78
79 pll_cntl: syscon@10000008 {
80 compatible = "syscon";
81 reg = <0x10000008 0x4>;
82 };
83
84 syscon-reboot {
85 compatible = "syscon-reboot";
86 regmap = <&pll_cntl>;
87 offset = <0x0>;
88 mask = <0x1>;
89 };
90
Álvaro Fernández Rojasad03d992017-05-03 15:10:24 +020091 periph_rst: reset-controller@10000010 {
92 compatible = "brcm,bcm6345-reset";
93 reg = <0x10000010 0x4>;
94 #reset-cells = <1>;
95 };
96
Álvaro Fernández Rojas44fae1c2017-05-16 18:29:12 +020097 wdt: watchdog@1000009c {
98 compatible = "brcm,bcm6345-wdt";
99 reg = <0x1000009c 0xc>;
100 clocks = <&periph_osc>;
101 };
102
Álvaro Fernández Rojas5d296742017-05-16 18:29:16 +0200103 wdt-reboot {
104 compatible = "wdt-reboot";
105 wdt = <&wdt>;
106 };
107
Álvaro Fernández Rojasf80b3bd2017-05-07 20:09:33 +0200108 gpio1: gpio-controller@100000c0 {
109 compatible = "brcm,bcm6345-gpio";
110 reg = <0x100000c0 0x4>, <0x100000c8 0x4>;
111 gpio-controller;
112 #gpio-cells = <2>;
113 ngpios = <20>;
114
115 status = "disabled";
116 };
117
118 gpio0: gpio-controller@100000c4 {
119 compatible = "brcm,bcm6345-gpio";
120 reg = <0x100000c4 0x4>, <0x100000cc 0x4>;
121 gpio-controller;
122 #gpio-cells = <2>;
123
124 status = "disabled";
125 };
126
Álvaro Fernández Rojasff1e41e2017-04-25 00:39:25 +0200127 uart0: serial@10000180 {
128 compatible = "brcm,bcm6345-uart";
129 reg = <0x10000180 0x18>;
130 clocks = <&periph_osc>;
131
132 status = "disabled";
133 };
134
135 uart1: serial@100001a0 {
136 compatible = "brcm,bcm6345-uart";
137 reg = <0x100001a0 0x18>;
138 clocks = <&periph_osc>;
139
140 status = "disabled";
141 };
142
Álvaro Fernández Rojase4af2382017-05-07 20:28:38 +0200143 periph_pwr: power-controller@1000184c {
144 compatible = "brcm,bcm6328-power-domain";
145 reg = <0x1000184c 0x4>;
146 #power-domain-cells = <1>;
147 };
148
Álvaro Fernández Rojase4aee152018-01-23 17:15:03 +0100149 lsspi: spi@10000800 {
150 compatible = "brcm,bcm6358-spi";
151 reg = <0x10000800 0x70c>;
152 #address-cells = <1>;
153 #size-cells = <0>;
154 clocks = <&periph_clk BCM63268_CLK_SPI>;
155 resets = <&periph_rst BCM63268_RST_SPI>;
156 spi-max-frequency = <20000000>;
157 num-cs = <8>;
158
159 status = "disabled";
160 };
161
Álvaro Fernández Rojase6378062018-01-20 02:13:40 +0100162 hsspi: spi@10001000 {
163 compatible = "brcm,bcm6328-hsspi";
164 #address-cells = <1>;
165 #size-cells = <0>;
166 reg = <0x10001000 0x600>;
167 clocks = <&periph_clk BCM63268_CLK_HSSPI>, <&hsspi_pll>;
168 clock-names = "hsspi", "pll";
169 resets = <&periph_rst BCM63268_RST_SPI>;
170 spi-max-frequency = <50000000>;
171 num-cs = <8>;
172
173 status = "disabled";
174 };
175
Álvaro Fernández Rojas43968462017-05-07 20:10:26 +0200176 leds: led-controller@10001900 {
177 compatible = "brcm,bcm6328-leds";
178 reg = <0x10001900 0x24>;
179 #address-cells = <1>;
180 #size-cells = <0>;
181
182 status = "disabled";
183 };
184
Álvaro Fernández Rojas037e5f52018-02-04 21:10:20 +0100185 ehci: usb-controller@10002500 {
186 compatible = "brcm,bcm63268-ehci", "generic-ehci";
187 reg = <0x10002500 0x100>;
188 phys = <&usbh>;
189 big-endian;
190
191 status = "disabled";
192 };
193
194 ohci: usb-controller@10002600 {
195 compatible = "brcm,bcm63268-ohci", "generic-ohci";
196 reg = <0x10002600 0x100>;
197 phys = <&usbh>;
198 big-endian;
199
200 status = "disabled";
201 };
202
203 usbh: usb-phy@10002700 {
204 compatible = "brcm,bcm63268-usbh";
205 reg = <0x10002700 0x38>;
206 #phy-cells = <0>;
207 clocks = <&periph_clk BCM63268_CLK_USBH>, <&timer_clk BCM63268_TCLK_USB_REF>;
208 clock-names = "usbh", "usb_ref";
209 power-domains = <&periph_pwr BCM63268_PWR_USBH>;
210 resets = <&periph_rst BCM63268_RST_USBH>;
211
212 status = "disabled";
213 };
214
Álvaro Fernández Rojasff1e41e2017-04-25 00:39:25 +0200215 memory-controller@10003000 {
216 compatible = "brcm,bcm6328-mc";
Álvaro Fernández Rojasa6276342017-05-11 11:01:28 +0200217 reg = <0x10003000 0x894>;
Álvaro Fernández Rojasff1e41e2017-04-25 00:39:25 +0200218 u-boot,dm-pre-reloc;
219 };
220 };
221};