blob: e00a2950e22a54230555d72254168ad5153ef904 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Álvaro Fernández Rojas3aa45762017-04-25 00:39:23 +02002/*
3 * Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com>
Álvaro Fernández Rojas3aa45762017-04-25 00:39:23 +02004 */
5
Álvaro Fernández Rojas4db71852017-05-07 20:13:03 +02006#include <dt-bindings/clock/bcm6328-clock.h>
Álvaro Fernández Rojas3aa45762017-04-25 00:39:23 +02007#include <dt-bindings/gpio/gpio.h>
Álvaro Fernández Rojase672d322017-05-07 20:28:37 +02008#include <dt-bindings/power-domain/bcm6328-power-domain.h>
Álvaro Fernández Rojasea0526c2017-05-03 15:10:23 +02009#include <dt-bindings/reset/bcm6328-reset.h>
Álvaro Fernández Rojas3aa45762017-04-25 00:39:23 +020010#include "skeleton.dtsi"
11
12/ {
13 compatible = "brcm,bcm6328";
14
Álvaro Fernández Rojas0f885d82018-01-20 02:13:39 +010015 aliases {
16 spi0 = &spi;
17 };
18
Álvaro Fernández Rojas3aa45762017-04-25 00:39:23 +020019 cpus {
20 reg = <0x10000000 0x4>;
21 #address-cells = <1>;
22 #size-cells = <0>;
23 u-boot,dm-pre-reloc;
24
25 cpu@0 {
26 compatible = "brcm,bcm6328-cpu", "mips,mips4Kc";
27 device_type = "cpu";
28 reg = <0>;
29 u-boot,dm-pre-reloc;
30 };
31
32 cpu@1 {
33 compatible = "brcm,bcm6328-cpu", "mips,mips4Kc";
34 device_type = "cpu";
35 reg = <1>;
36 u-boot,dm-pre-reloc;
37 };
38 };
39
40 clocks {
41 compatible = "simple-bus";
42 #address-cells = <1>;
43 #size-cells = <1>;
44 u-boot,dm-pre-reloc;
45
Álvaro Fernández Rojas0f885d82018-01-20 02:13:39 +010046 hsspi_pll: hsspi-pll {
47 compatible = "fixed-clock";
48 #clock-cells = <0>;
49 clock-frequency = <133333333>;
50 };
51
Álvaro Fernández Rojas3aa45762017-04-25 00:39:23 +020052 periph_osc: periph-osc {
53 compatible = "fixed-clock";
54 #clock-cells = <0>;
55 clock-frequency = <50000000>;
56 u-boot,dm-pre-reloc;
57 };
Álvaro Fernández Rojas4db71852017-05-07 20:13:03 +020058
59 periph_clk: periph-clk {
60 compatible = "brcm,bcm6345-clk";
61 reg = <0x10000004 0x4>;
62 #clock-cells = <1>;
63 };
Álvaro Fernández Rojas3aa45762017-04-25 00:39:23 +020064 };
65
66 ubus {
67 compatible = "simple-bus";
68 #address-cells = <1>;
69 #size-cells = <1>;
70 u-boot,dm-pre-reloc;
71
Álvaro Fernández Rojasea0526c2017-05-03 15:10:23 +020072 periph_rst: reset-controller@10000010 {
73 compatible = "brcm,bcm6345-reset";
74 reg = <0x10000010 0x4>;
75 #reset-cells = <1>;
76 };
77
Álvaro Fernández Rojas3aa45762017-04-25 00:39:23 +020078 pll_cntl: syscon@10000068 {
79 compatible = "syscon";
80 reg = <0x10000068 0x4>;
81 };
82
83 syscon-reboot {
84 compatible = "syscon-reboot";
85 regmap = <&pll_cntl>;
86 offset = <0x0>;
87 mask = <0x1>;
88 };
89
Álvaro Fernández Rojas608468a2017-05-16 18:29:11 +020090 wdt: watchdog@1000005c {
91 compatible = "brcm,bcm6345-wdt";
92 reg = <0x1000005c 0xc>;
93 clocks = <&periph_osc>;
94 };
95
Álvaro Fernández Rojas0ef843f2017-05-16 18:29:15 +020096 wdt-reboot {
97 compatible = "wdt-reboot";
98 wdt = <&wdt>;
99 };
100
Álvaro Fernández Rojas1e38d4f2017-05-07 20:09:32 +0200101 gpio: gpio-controller@10000084 {
102 compatible = "brcm,bcm6345-gpio";
103 reg = <0x10000084 0x4>, <0x1000008c 0x4>;
104 gpio-controller;
105 #gpio-cells = <2>;
106
107 status = "disabled";
108 };
109
Álvaro Fernández Rojas3aa45762017-04-25 00:39:23 +0200110 uart0: serial@10000100 {
111 compatible = "brcm,bcm6345-uart";
112 reg = <0x10000100 0x18>;
113 clocks = <&periph_osc>;
114
115 status = "disabled";
116 };
117
118 uart1: serial@10000120 {
119 compatible = "brcm,bcm6345-uart";
120 reg = <0x10000120 0x18>;
121 clocks = <&periph_osc>;
122
123 status = "disabled";
124 };
125
Álvaro Fernández Rojas87ec0362017-05-07 20:10:25 +0200126 leds: led-controller@10000800 {
127 compatible = "brcm,bcm6328-leds";
128 reg = <0x10000800 0x24>;
129 #address-cells = <1>;
130 #size-cells = <0>;
131
132 status = "disabled";
133 };
134
Álvaro Fernández Rojas0f885d82018-01-20 02:13:39 +0100135 spi: spi@10001000 {
136 compatible = "brcm,bcm6328-hsspi";
137 #address-cells = <1>;
138 #size-cells = <0>;
139 reg = <0x10001000 0x600>;
140 clocks = <&periph_clk BCM6328_CLK_HSSPI>, <&hsspi_pll>;
141 clock-names = "hsspi", "pll";
142 resets = <&periph_rst BCM6328_RST_SPI>;
143 spi-max-frequency = <33333334>;
144 num-cs = <3>;
145
146 status = "disabled";
147 };
148
Álvaro Fernández Rojase672d322017-05-07 20:28:37 +0200149 periph_pwr: power-controller@10001848 {
150 compatible = "brcm,bcm6328-power-domain";
151 reg = <0x10001848 0x4>;
152 #power-domain-cells = <1>;
153 };
154
Álvaro Fernández Rojas95b1c832018-02-04 21:10:16 +0100155 ehci: usb-controller@10002500 {
156 compatible = "brcm,bcm6328-ehci", "generic-ehci";
157 reg = <0x10002500 0x100>;
158 phys = <&usbh>;
159 big-endian;
160
161 status = "disabled";
162 };
163
164 ohci: usb-controller@10002600 {
165 compatible = "brcm,bcm6328-ohci", "generic-ohci";
166 reg = <0x10002600 0x100>;
167 phys = <&usbh>;
168 big-endian;
169
170 status = "disabled";
171 };
172
173 usbh: usb-phy@10002700 {
174 compatible = "brcm,bcm6328-usbh";
175 reg = <0x10002700 0x38>;
176 #phy-cells = <0>;
177 clocks = <&periph_clk BCM6328_CLK_USBH>;
178 clock-names = "usbh";
179 power-domains = <&periph_pwr BCM6328_PWR_USBH>;
180 resets = <&periph_rst BCM6328_RST_USBH>;
181
182 status = "disabled";
183 };
184
Álvaro Fernández Rojas3aa45762017-04-25 00:39:23 +0200185 memory-controller@10003000 {
186 compatible = "brcm,bcm6328-mc";
Álvaro Fernández Rojas9a5b0f72017-05-11 11:01:27 +0200187 reg = <0x10003000 0x864>;
Álvaro Fernández Rojas3aa45762017-04-25 00:39:23 +0200188 u-boot,dm-pre-reloc;
189 };
190 };
191};