Álvaro Fernández Rojas | ff1e41e | 2017-04-25 00:39:25 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com> |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
Álvaro Fernández Rojas | efe3737 | 2017-05-07 20:13:04 +0200 | [diff] [blame] | 7 | #include <dt-bindings/clock/bcm63268-clock.h> |
Álvaro Fernández Rojas | ff1e41e | 2017-04-25 00:39:25 +0200 | [diff] [blame] | 8 | #include <dt-bindings/gpio/gpio.h> |
Álvaro Fernández Rojas | e4af238 | 2017-05-07 20:28:38 +0200 | [diff] [blame] | 9 | #include <dt-bindings/power-domain/bcm63268-power-domain.h> |
Álvaro Fernández Rojas | ad03d99 | 2017-05-03 15:10:24 +0200 | [diff] [blame] | 10 | #include <dt-bindings/reset/bcm63268-reset.h> |
Álvaro Fernández Rojas | ff1e41e | 2017-04-25 00:39:25 +0200 | [diff] [blame] | 11 | #include "skeleton.dtsi" |
| 12 | |
| 13 | / { |
| 14 | compatible = "brcm,bcm63268"; |
| 15 | |
Álvaro Fernández Rojas | e4aee15 | 2018-01-23 17:15:03 +0100 | [diff] [blame] | 16 | aliases { |
| 17 | spi0 = &lsspi; |
Álvaro Fernández Rojas | e637806 | 2018-01-20 02:13:40 +0100 | [diff] [blame] | 18 | spi1 = &hsspi; |
Álvaro Fernández Rojas | e4aee15 | 2018-01-23 17:15:03 +0100 | [diff] [blame] | 19 | }; |
| 20 | |
Álvaro Fernández Rojas | ff1e41e | 2017-04-25 00:39:25 +0200 | [diff] [blame] | 21 | 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 Rojas | e637806 | 2018-01-20 02:13:40 +0100 | [diff] [blame] | 48 | hsspi_pll: hsspi-pll { |
| 49 | compatible = "fixed-clock"; |
| 50 | #clock-cells = <0>; |
| 51 | clock-frequency = <400000000>; |
| 52 | }; |
| 53 | |
Álvaro Fernández Rojas | ff1e41e | 2017-04-25 00:39:25 +0200 | [diff] [blame] | 54 | 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 Rojas | efe3737 | 2017-05-07 20:13:04 +0200 | [diff] [blame] | 60 | |
| 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 Rojas | ff1e41e | 2017-04-25 00:39:25 +0200 | [diff] [blame] | 72 | }; |
| 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 Rojas | ad03d99 | 2017-05-03 15:10:24 +0200 | [diff] [blame] | 92 | periph_rst: reset-controller@10000010 { |
| 93 | compatible = "brcm,bcm6345-reset"; |
| 94 | reg = <0x10000010 0x4>; |
| 95 | #reset-cells = <1>; |
| 96 | }; |
| 97 | |
Álvaro Fernández Rojas | 44fae1c | 2017-05-16 18:29:12 +0200 | [diff] [blame] | 98 | wdt: watchdog@1000009c { |
| 99 | compatible = "brcm,bcm6345-wdt"; |
| 100 | reg = <0x1000009c 0xc>; |
| 101 | clocks = <&periph_osc>; |
| 102 | }; |
| 103 | |
Álvaro Fernández Rojas | 5d29674 | 2017-05-16 18:29:16 +0200 | [diff] [blame] | 104 | wdt-reboot { |
| 105 | compatible = "wdt-reboot"; |
| 106 | wdt = <&wdt>; |
| 107 | }; |
| 108 | |
Álvaro Fernández Rojas | f80b3bd | 2017-05-07 20:09:33 +0200 | [diff] [blame] | 109 | 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 Rojas | ff1e41e | 2017-04-25 00:39:25 +0200 | [diff] [blame] | 128 | 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 Rojas | e4af238 | 2017-05-07 20:28:38 +0200 | [diff] [blame] | 144 | 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 Rojas | e4aee15 | 2018-01-23 17:15:03 +0100 | [diff] [blame] | 150 | 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 Rojas | e637806 | 2018-01-20 02:13:40 +0100 | [diff] [blame] | 163 | 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 Rojas | 4396846 | 2017-05-07 20:10:26 +0200 | [diff] [blame] | 177 | 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 Rojas | ff1e41e | 2017-04-25 00:39:25 +0200 | [diff] [blame] | 186 | memory-controller@10003000 { |
| 187 | compatible = "brcm,bcm6328-mc"; |
Álvaro Fernández Rojas | a627634 | 2017-05-11 11:01:28 +0200 | [diff] [blame] | 188 | reg = <0x10003000 0x894>; |
Álvaro Fernández Rojas | ff1e41e | 2017-04-25 00:39:25 +0200 | [diff] [blame] | 189 | u-boot,dm-pre-reloc; |
| 190 | }; |
| 191 | }; |
| 192 | }; |