Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Álvaro Fernández Rojas | 3aa4576 | 2017-04-25 00:39:23 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com> |
Álvaro Fernández Rojas | 3aa4576 | 2017-04-25 00:39:23 +0200 | [diff] [blame] | 4 | */ |
| 5 | |
Álvaro Fernández Rojas | 4db7185 | 2017-05-07 20:13:03 +0200 | [diff] [blame] | 6 | #include <dt-bindings/clock/bcm6328-clock.h> |
Álvaro Fernández Rojas | 3aa4576 | 2017-04-25 00:39:23 +0200 | [diff] [blame] | 7 | #include <dt-bindings/gpio/gpio.h> |
Álvaro Fernández Rojas | e672d32 | 2017-05-07 20:28:37 +0200 | [diff] [blame] | 8 | #include <dt-bindings/power-domain/bcm6328-power-domain.h> |
Álvaro Fernández Rojas | ea0526c | 2017-05-03 15:10:23 +0200 | [diff] [blame] | 9 | #include <dt-bindings/reset/bcm6328-reset.h> |
Álvaro Fernández Rojas | 3aa4576 | 2017-04-25 00:39:23 +0200 | [diff] [blame] | 10 | #include "skeleton.dtsi" |
| 11 | |
| 12 | / { |
| 13 | compatible = "brcm,bcm6328"; |
| 14 | |
Álvaro Fernández Rojas | 0f885d8 | 2018-01-20 02:13:39 +0100 | [diff] [blame] | 15 | aliases { |
| 16 | spi0 = &spi; |
| 17 | }; |
| 18 | |
Álvaro Fernández Rojas | 3aa4576 | 2017-04-25 00:39:23 +0200 | [diff] [blame] | 19 | 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 Rojas | 0f885d8 | 2018-01-20 02:13:39 +0100 | [diff] [blame] | 46 | hsspi_pll: hsspi-pll { |
| 47 | compatible = "fixed-clock"; |
| 48 | #clock-cells = <0>; |
| 49 | clock-frequency = <133333333>; |
| 50 | }; |
| 51 | |
Álvaro Fernández Rojas | 3aa4576 | 2017-04-25 00:39:23 +0200 | [diff] [blame] | 52 | 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 Rojas | 4db7185 | 2017-05-07 20:13:03 +0200 | [diff] [blame] | 58 | |
| 59 | periph_clk: periph-clk { |
| 60 | compatible = "brcm,bcm6345-clk"; |
| 61 | reg = <0x10000004 0x4>; |
| 62 | #clock-cells = <1>; |
| 63 | }; |
Álvaro Fernández Rojas | 3aa4576 | 2017-04-25 00:39:23 +0200 | [diff] [blame] | 64 | }; |
| 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 Rojas | ea0526c | 2017-05-03 15:10:23 +0200 | [diff] [blame] | 72 | periph_rst: reset-controller@10000010 { |
| 73 | compatible = "brcm,bcm6345-reset"; |
| 74 | reg = <0x10000010 0x4>; |
| 75 | #reset-cells = <1>; |
| 76 | }; |
| 77 | |
Álvaro Fernández Rojas | 3aa4576 | 2017-04-25 00:39:23 +0200 | [diff] [blame] | 78 | 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 Rojas | 608468a | 2017-05-16 18:29:11 +0200 | [diff] [blame] | 90 | wdt: watchdog@1000005c { |
| 91 | compatible = "brcm,bcm6345-wdt"; |
| 92 | reg = <0x1000005c 0xc>; |
| 93 | clocks = <&periph_osc>; |
| 94 | }; |
| 95 | |
Álvaro Fernández Rojas | 0ef843f | 2017-05-16 18:29:15 +0200 | [diff] [blame] | 96 | wdt-reboot { |
| 97 | compatible = "wdt-reboot"; |
| 98 | wdt = <&wdt>; |
| 99 | }; |
| 100 | |
Álvaro Fernández Rojas | 1e38d4f | 2017-05-07 20:09:32 +0200 | [diff] [blame] | 101 | 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 Rojas | 3aa4576 | 2017-04-25 00:39:23 +0200 | [diff] [blame] | 110 | 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 Rojas | 87ec036 | 2017-05-07 20:10:25 +0200 | [diff] [blame] | 126 | 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 Rojas | 0f885d8 | 2018-01-20 02:13:39 +0100 | [diff] [blame] | 135 | 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 Rojas | e672d32 | 2017-05-07 20:28:37 +0200 | [diff] [blame] | 149 | 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 Rojas | 95b1c83 | 2018-02-04 21:10:16 +0100 | [diff] [blame] | 155 | 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 Rojas | 3aa4576 | 2017-04-25 00:39:23 +0200 | [diff] [blame] | 185 | memory-controller@10003000 { |
| 186 | compatible = "brcm,bcm6328-mc"; |
Álvaro Fernández Rojas | 9a5b0f7 | 2017-05-11 11:01:27 +0200 | [diff] [blame] | 187 | reg = <0x10003000 0x864>; |
Álvaro Fernández Rojas | 3aa4576 | 2017-04-25 00:39:23 +0200 | [diff] [blame] | 188 | u-boot,dm-pre-reloc; |
| 189 | }; |
| 190 | }; |
| 191 | }; |