mips: bmips: enable the SPI flash on the Sagem F@ST1704
[oweals/u-boot.git] / arch / mips / dts / brcm,bcm63268.dtsi
1 /*
2  * Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com>
3  *
4  * SPDX-License-Identifier:     GPL-2.0+
5  */
6
7 #include <dt-bindings/clock/bcm63268-clock.h>
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/power-domain/bcm63268-power-domain.h>
10 #include <dt-bindings/reset/bcm63268-reset.h>
11 #include "skeleton.dtsi"
12
13 / {
14         compatible = "brcm,bcm63268";
15
16         aliases {
17                 spi0 = &lsspi;
18         };
19
20         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
47                 periph_osc: periph-osc {
48                         compatible = "fixed-clock";
49                         #clock-cells = <0>;
50                         clock-frequency = <50000000>;
51                         u-boot,dm-pre-reloc;
52                 };
53
54                 periph_clk: periph-clk {
55                         compatible = "brcm,bcm6345-clk";
56                         reg = <0x10000004 0x4>;
57                         #clock-cells = <1>;
58                 };
59
60                 timer_clk: timer-clk {
61                         compatible = "brcm,bcm6345-clk";
62                         reg = <0x100000ac 0x4>;
63                         #clock-cells = <1>;
64                 };
65         };
66
67         ubus {
68                 compatible = "simple-bus";
69                 #address-cells = <1>;
70                 #size-cells = <1>;
71                 u-boot,dm-pre-reloc;
72
73                 pll_cntl: syscon@10000008 {
74                         compatible = "syscon";
75                         reg = <0x10000008 0x4>;
76                 };
77
78                 syscon-reboot {
79                         compatible = "syscon-reboot";
80                         regmap = <&pll_cntl>;
81                         offset = <0x0>;
82                         mask = <0x1>;
83                 };
84
85                 periph_rst: reset-controller@10000010 {
86                         compatible = "brcm,bcm6345-reset";
87                         reg = <0x10000010 0x4>;
88                         #reset-cells = <1>;
89                 };
90
91                 wdt: watchdog@1000009c {
92                         compatible = "brcm,bcm6345-wdt";
93                         reg = <0x1000009c 0xc>;
94                         clocks = <&periph_osc>;
95                 };
96
97                 wdt-reboot {
98                         compatible = "wdt-reboot";
99                         wdt = <&wdt>;
100                 };
101
102                 gpio1: gpio-controller@100000c0 {
103                         compatible = "brcm,bcm6345-gpio";
104                         reg = <0x100000c0 0x4>, <0x100000c8 0x4>;
105                         gpio-controller;
106                         #gpio-cells = <2>;
107                         ngpios = <20>;
108
109                         status = "disabled";
110                 };
111
112                 gpio0: gpio-controller@100000c4 {
113                         compatible = "brcm,bcm6345-gpio";
114                         reg = <0x100000c4 0x4>, <0x100000cc 0x4>;
115                         gpio-controller;
116                         #gpio-cells = <2>;
117
118                         status = "disabled";
119                 };
120
121                 uart0: serial@10000180 {
122                         compatible = "brcm,bcm6345-uart";
123                         reg = <0x10000180 0x18>;
124                         clocks = <&periph_osc>;
125
126                         status = "disabled";
127                 };
128
129                 uart1: serial@100001a0 {
130                         compatible = "brcm,bcm6345-uart";
131                         reg = <0x100001a0 0x18>;
132                         clocks = <&periph_osc>;
133
134                         status = "disabled";
135                 };
136
137                 periph_pwr: power-controller@1000184c {
138                         compatible = "brcm,bcm6328-power-domain";
139                         reg = <0x1000184c 0x4>;
140                         #power-domain-cells = <1>;
141                 };
142
143                 lsspi: spi@10000800 {
144                         compatible = "brcm,bcm6358-spi";
145                         reg = <0x10000800 0x70c>;
146                         #address-cells = <1>;
147                         #size-cells = <0>;
148                         clocks = <&periph_clk BCM63268_CLK_SPI>;
149                         resets = <&periph_rst BCM63268_RST_SPI>;
150                         spi-max-frequency = <20000000>;
151                         num-cs = <8>;
152
153                         status = "disabled";
154                 };
155
156                 leds: led-controller@10001900 {
157                         compatible = "brcm,bcm6328-leds";
158                         reg = <0x10001900 0x24>;
159                         #address-cells = <1>;
160                         #size-cells = <0>;
161
162                         status = "disabled";
163                 };
164
165                 memory-controller@10003000 {
166                         compatible = "brcm,bcm6328-mc";
167                         reg = <0x10003000 0x894>;
168                         u-boot,dm-pre-reloc;
169                 };
170         };
171 };