Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 | /* * Copyright (c) 2018 Christian Taedcke <hacking@taedcke.com> * Copyright (c) 2019 Lemonbeat GmbH * * SPDX-License-Identifier: Apache-2.0 */ #include <arm/armv7-m.dtsi> #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/i2c/i2c.h> #include "gpio_gecko.h" / { chosen { zephyr,entropy = &trng0; zephyr,flash-controller = &msc; }; cpus { #address-cells = <1>; #size-cells = <0>; }; sram0: memory@20000000 { compatible = "mmio-sram"; }; soc { msc: flash-controller@400e0000 { compatible = "silabs,gecko-flash-controller"; label = "FLASH_CTRL"; reg = <0x400e0000 0x104>; interrupts = <25 0>; #address-cells = <1>; #size-cells = <1>; flash0: flash@0 { compatible = "soc-nv-flash"; label = "FLASH_0"; write-block-size = <4>; erase-block-size = <2048>; }; }; usart0: usart@40010000 { /* USART0 */ compatible = "silabs,gecko-usart"; reg = <0x40010000 0x400>; interrupts = <12 0 13 0>; interrupt-names = "rx", "tx"; peripheral-id = <0>; status = "disabled"; label = "USART_0"; }; usart1: usart@40010400 { /* USART1 */ compatible = "silabs,gecko-usart"; reg = <0x40010400 0x400>; interrupts = <20 0 21 0>; interrupt-names = "rx", "tx"; peripheral-id = <1>; status = "disabled"; label = "USART_1"; }; usart2: usart@40010800 { /* USART2 */ compatible = "silabs,gecko-usart"; reg = <0x40010800 0x400>; interrupts = <40 0 41 0>; interrupt-names = "rx", "tx"; peripheral-id = <2>; status = "disabled"; label = "USART_2"; }; usart3: usart@40010c00 { /* USART3 */ compatible = "silabs,gecko-usart"; reg = <0x40010c00 0x400>; interrupts = <43 0 44 0>; interrupt-names = "rx", "tx"; peripheral-id = <3>; status = "disabled"; label = "USART_3"; }; leuart0: leuart@4004a000 { /* LEUART0 */ compatible = "silabs,gecko-leuart"; reg = <0x4004a000 0x400>; interrupts = <22 0>; peripheral-id = <0>; status = "disabled"; label = "LEUART_0"; }; i2c0: i2c@4000c000 { compatible = "silabs,gecko-i2c"; clock-frequency = <I2C_BITRATE_STANDARD>; #address-cells = <1>; #size-cells = <0>; reg = <0x4000c000 0x400>; interrupts = <17 0>; label = "I2C_0"; status = "disabled"; }; i2c1: i2c@4000c400 { compatible = "silabs,gecko-i2c"; clock-frequency = <I2C_BITRATE_STANDARD>; #address-cells = <1>; #size-cells = <0>; reg = <0x4000c400 0x400>; interrupts = <42 0>; label = "I2C_1"; status = "disabled"; }; rtcc0: rtcc@40042000 { compatible = "silabs,gecko-rtcc"; reg = <0x40042000 0x184>; interrupts = <30 0>; clock-frequency = <32768>; prescaler = <1>; status = "disabled"; label = "RTCC_0"; }; gpio: gpio@4000a400 { compatible = "silabs,gecko-gpio"; reg = <0x4000a400 0xf00>; interrupts = <1 2 11 2>; interrupt-names = "GPIO_EVEN", "GPIO_ODD"; label = "GPIO"; ranges; #address-cells = <1>; #size-cells = <1>; gpioa: gpio@4000a000 { compatible = "silabs,gecko-gpio-port"; reg = <0x4000a000 0x30>; peripheral-id = <0>; label = "GPIO_A"; gpio-controller; #gpio-cells = <2>; status = "disabled"; }; gpiob: gpio@4000a030 { compatible = "silabs,gecko-gpio-port"; reg = <0x4000a030 0x30>; peripheral-id = <1>; label = "GPIO_B"; gpio-controller; #gpio-cells = <2>; status = "disabled"; }; gpioc: gpio@4000a060 { compatible = "silabs,gecko-gpio-port"; reg = <0x4000a060 0x30>; peripheral-id = <2>; label = "GPIO_C"; gpio-controller; #gpio-cells = <2>; status = "disabled"; }; gpiod: gpio@4000a090 { compatible = "silabs,gecko-gpio-port"; reg = <0x4000a090 0x30>; peripheral-id = <3>; label = "GPIO_D"; gpio-controller; #gpio-cells = <2>; status = "disabled"; }; gpioe: gpio@4000a0c0 { compatible = "silabs,gecko-gpio-port"; reg = <0x4000a0c0 0x30>; peripheral-id = <4>; label = "GPIO_E"; gpio-controller; #gpio-cells = <2>; status = "disabled"; }; gpiof: gpio@4000a0f0 { compatible = "silabs,gecko-gpio-port"; reg = <0x4000a0f0 0x30>; peripheral-id = <5>; label = "GPIO_F"; gpio-controller; #gpio-cells = <2>; status = "disabled"; }; gpioi: gpio@4000a180 { compatible = "silabs,gecko-gpio-port"; reg = <0x4000a180 0x30>; peripheral-id = <8>; label = "GPIO_I"; gpio-controller; #gpio-cells = <2>; status = "disabled"; }; gpioj: gpio@4000a1b0 { compatible = "silabs,gecko-gpio-port"; reg = <0x4000a1b0 0x30>; peripheral-id = <9>; label = "GPIO_J"; gpio-controller; #gpio-cells = <2>; status = "disabled"; }; gpiok: gpio@4000a1e0 { compatible = "silabs,gecko-gpio-port"; reg = <0x4000a1e0 0x30>; peripheral-id = <10>; label = "GPIO_K"; gpio-controller; #gpio-cells = <2>; status = "disabled"; }; wdog0: wdog@40052000 { compatible = "silabs,gecko-wdog"; reg = <0x40052000 0x2C>; peripheral-id = <0>; label = "WDOG0"; interrupts = <2 0>; status = "disabled"; }; wdog1: wdog@40052400 { compatible = "silabs,gecko-wdog"; reg = <0x40052400 0x2C>; peripheral-id = <1>; label = "WDOG1"; interrupts = <3 0>; status = "disabled"; }; trng0: trng@4001d000 { compatible = "silabs,gecko-trng"; reg = <0x4001d000 0x400>; interrupts = <49 0>; label = "TRNG0"; status = "disabled"; }; }; }; }; &nvic { arm,num-irq-priority-bits = <3>; }; |