blob: 4d4e36ccccf27a9f158c7e2c9ea941ef6bd85bc2 [file] [log] [blame]
Álvaro Fernández Rojasff1e41e2017-04-25 00:39:25 +02001/*
2 * Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
Álvaro Fernández Rojasefe37372017-05-07 20:13:04 +02007#include <dt-bindings/clock/bcm63268-clock.h>
Álvaro Fernández Rojasff1e41e2017-04-25 00:39:25 +02008#include <dt-bindings/gpio/gpio.h>
Álvaro Fernández Rojase4af2382017-05-07 20:28:38 +02009#include <dt-bindings/power-domain/bcm63268-power-domain.h>
Álvaro Fernández Rojasad03d992017-05-03 15:10:24 +020010#include <dt-bindings/reset/bcm63268-reset.h>
Álvaro Fernández Rojasff1e41e2017-04-25 00:39:25 +020011#include "skeleton.dtsi"
12
13/ {
14 compatible = "brcm,bcm63268";
15
Álvaro Fernández Rojase4aee152018-01-23 17:15:03 +010016 aliases {
17 spi0 = &lsspi;
Álvaro Fernández Rojase6378062018-01-20 02:13:40 +010018 spi1 = &hsspi;
Álvaro Fernández Rojase4aee152018-01-23 17:15:03 +010019 };
20
Álvaro Fernández Rojasff1e41e2017-04-25 00:39:25 +020021 cpus {
22 reg = <0x10000000 0x4>;
23 #address-cells = <1>;
24 #size-cells = <0>;
25 u-boot,dm-pre-reloc;
26
27 cpu@0 {
28 compatible = "brcm,bcm63268-cpu", "mips,mips4Kc";
29 device_type = "cpu";
30 reg = <0>;
31 u-boot,dm-pre-reloc;
32 };
33
34 cpu@1 {
35 compatible = "brcm,bcm63268-cpu", "mips,mips4Kc";
36 device_type = "cpu";
37 reg = <1>;
38 u-boot,dm-pre-reloc;
39 };
40 };
41
42 clocks {
43 compatible = "simple-bus";
44 #address-cells = <1>;
45 #size-cells = <1>;
46 u-boot,dm-pre-reloc;
47
Álvaro Fernández Rojase6378062018-01-20 02:13:40 +010048 hsspi_pll: hsspi-pll {
49 compatible = "fixed-clock";
50 #clock-cells = <0>;
51 clock-frequency = <400000000>;
52 };
53
Álvaro Fernández Rojasff1e41e2017-04-25 00:39:25 +020054 periph_osc: periph-osc {
55 compatible = "fixed-clock";
56 #clock-cells = <0>;
57 clock-frequency = <50000000>;
58 u-boot,dm-pre-reloc;
59 };
Álvaro Fernández Rojasefe37372017-05-07 20:13:04 +020060
61 periph_clk: periph-clk {
62 compatible = "brcm,bcm6345-clk";
63 reg = <0x10000004 0x4>;
64 #clock-cells = <1>;
65 };
66
67 timer_clk: timer-clk {
68 compatible = "brcm,bcm6345-clk";
69 reg = <0x100000ac 0x4>;
70 #clock-cells = <1>;
71 };
Álvaro Fernández Rojasff1e41e2017-04-25 00:39:25 +020072 };
73
74 ubus {
75 compatible = "simple-bus";
76 #address-cells = <1>;
77 #size-cells = <1>;
78 u-boot,dm-pre-reloc;
79
80 pll_cntl: syscon@10000008 {
81 compatible = "syscon";
82 reg = <0x10000008 0x4>;
83 };
84
85 syscon-reboot {
86 compatible = "syscon-reboot";
87 regmap = <&pll_cntl>;
88 offset = <0x0>;
89 mask = <0x1>;
90 };
91
Álvaro Fernández Rojasad03d992017-05-03 15:10:24 +020092 periph_rst: reset-controller@10000010 {
93 compatible = "brcm,bcm6345-reset";
94 reg = <0x10000010 0x4>;
95 #reset-cells = <1>;
96 };
97
Álvaro Fernández Rojas44fae1c2017-05-16 18:29:12 +020098 wdt: watchdog@1000009c {
99 compatible = "brcm,bcm6345-wdt";
100 reg = <0x1000009c 0xc>;
101 clocks = <&periph_osc>;
102 };
103
Álvaro Fernández Rojas5d296742017-05-16 18:29:16 +0200104 wdt-reboot {
105 compatible = "wdt-reboot";
106 wdt = <&wdt>;
107 };
108
Álvaro Fernández Rojasf80b3bd2017-05-07 20:09:33 +0200109 gpio1: gpio-controller@100000c0 {
110 compatible = "brcm,bcm6345-gpio";
111 reg = <0x100000c0 0x4>, <0x100000c8 0x4>;
112 gpio-controller;
113 #gpio-cells = <2>;
114 ngpios = <20>;
115
116 status = "disabled";
117 };
118
119 gpio0: gpio-controller@100000c4 {
120 compatible = "brcm,bcm6345-gpio";
121 reg = <0x100000c4 0x4>, <0x100000cc 0x4>;
122 gpio-controller;
123 #gpio-cells = <2>;
124
125 status = "disabled";
126 };
127
Álvaro Fernández Rojasff1e41e2017-04-25 00:39:25 +0200128 uart0: serial@10000180 {
129 compatible = "brcm,bcm6345-uart";
130 reg = <0x10000180 0x18>;
131 clocks = <&periph_osc>;
132
133 status = "disabled";
134 };
135
136 uart1: serial@100001a0 {
137 compatible = "brcm,bcm6345-uart";
138 reg = <0x100001a0 0x18>;
139 clocks = <&periph_osc>;
140
141 status = "disabled";
142 };
143
Álvaro Fernández Rojase4af2382017-05-07 20:28:38 +0200144 periph_pwr: power-controller@1000184c {
145 compatible = "brcm,bcm6328-power-domain";
146 reg = <0x1000184c 0x4>;
147 #power-domain-cells = <1>;
148 };
149
Álvaro Fernández Rojase4aee152018-01-23 17:15:03 +0100150 lsspi: spi@10000800 {
151 compatible = "brcm,bcm6358-spi";
152 reg = <0x10000800 0x70c>;
153 #address-cells = <1>;
154 #size-cells = <0>;
155 clocks = <&periph_clk BCM63268_CLK_SPI>;
156 resets = <&periph_rst BCM63268_RST_SPI>;
157 spi-max-frequency = <20000000>;
158 num-cs = <8>;
159
160 status = "disabled";
161 };
162
Álvaro Fernández Rojase6378062018-01-20 02:13:40 +0100163 hsspi: spi@10001000 {
164 compatible = "brcm,bcm6328-hsspi";
165 #address-cells = <1>;
166 #size-cells = <0>;
167 reg = <0x10001000 0x600>;
168 clocks = <&periph_clk BCM63268_CLK_HSSPI>, <&hsspi_pll>;
169 clock-names = "hsspi", "pll";
170 resets = <&periph_rst BCM63268_RST_SPI>;
171 spi-max-frequency = <50000000>;
172 num-cs = <8>;
173
174 status = "disabled";
175 };
176
Álvaro Fernández Rojas43968462017-05-07 20:10:26 +0200177 leds: led-controller@10001900 {
178 compatible = "brcm,bcm6328-leds";
179 reg = <0x10001900 0x24>;
180 #address-cells = <1>;
181 #size-cells = <0>;
182
183 status = "disabled";
184 };
185
Álvaro Fernández Rojasff1e41e2017-04-25 00:39:25 +0200186 memory-controller@10003000 {
187 compatible = "brcm,bcm6328-mc";
Álvaro Fernández Rojasa6276342017-05-11 11:01:28 +0200188 reg = <0x10003000 0x894>;
Álvaro Fernández Rojasff1e41e2017-04-25 00:39:25 +0200189 u-boot,dm-pre-reloc;
190 };
191 };
192};