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 | /* * Copyright (c) 2017 Google LLC. * * SPDX-License-Identifier: Apache-2.0 */ #include <mem.h> #include <arm/armv6-m.dtsi> #include <zephyr/dt-bindings/gpio/gpio.h> #include <zephyr/dt-bindings/i2c/i2c.h> #include <zephyr/dt-bindings/pwm/pwm.h> / { aliases { watchdog0 = &wdog; }; chosen { zephyr,flash-controller = &nvmctrl; }; cpus { #address-cells = <1>; #size-cells = <0>; cpu0: cpu@0 { device_type = "cpu"; compatible = "arm,cortex-m0+"; reg = <0>; }; }; sram0: memory@20000000 { compatible = "mmio-sram"; reg = <0x20000000 0x8000>; }; id: device_id@80a00c { compatible = "atmel,sam0-id"; reg = <0x0080A00C 0x4>, <0x0080A040 0x4>, <0x0080A044 0x4>, <0x0080A048 0x4>; }; aliases { port-a = &porta; port-b = &portb; adc-0 = &adc; sercom-0 = &sercom0; sercom-1 = &sercom1; sercom-2 = &sercom2; sercom-3 = &sercom3; sercom-4 = &sercom4; sercom-5 = &sercom5; tc-4 = &tc4; }; soc { nvmctrl: nvmctrl@41004000 { compatible = "atmel,sam0-nvmctrl"; label = "FLASH_CTRL"; reg = <0x41004000 0x22>; interrupts = <5 0>; lock-regions = <16>; #address-cells = <1>; #size-cells = <1>; flash0: flash@0 { compatible = "soc-nv-flash"; label = "FLASH_0"; reg = <0 0x40000>; write-block-size = <4>; }; }; pm: pm@40000400 { compatible = "atmel,samd2x-pm"; reg = <0x40000400 0x400>; interrupts = <0 0>; #clock-cells = <2>; }; gclk: gclk@40000c00 { compatible = "atmel,samd2x-gclk"; reg = <0x40000c00 0x400>; #clock-cells = <1>; }; eic: eic@40001800 { compatible = "atmel,sam0-eic"; reg = <0x40001800 0x1C>; interrupts = <4 0>; label = "EIC"; }; pinmux_a: pinmux@41004400 { compatible = "atmel,sam0-pinmux"; reg = <0x41004400 0x80>; }; pinmux_b: pinmux@41004480 { compatible = "atmel,sam0-pinmux"; reg = <0x41004480 0x80>; }; wdog: watchdog@40001000 { compatible = "atmel,sam0-watchdog"; reg = <0x40001000 9>; interrupts = <2 0>; label = "WATCHDOG_0"; }; sercom0: sercom@42000800 { compatible = "atmel,sam0-sercom"; reg = <0x42000800 0x40>; status = "disabled"; label = "SERCOM0"; }; sercom1: sercom@42000c00 { compatible = "atmel,sam0-sercom"; reg = <0x42000c00 0x40>; status = "disabled"; label = "SERCOM1"; }; sercom2: sercom@42001000 { compatible = "atmel,sam0-sercom"; reg = <0x42001000 0x40>; status = "disabled"; label = "SERCOM2"; }; sercom3: sercom@42001400 { compatible = "atmel,sam0-sercom"; reg = <0x42001400 0x40>; status = "disabled"; label = "SERCOM3"; }; sercom4: sercom@42001800 { compatible = "atmel,sam0-sercom"; reg = <0x42001800 0x40>; status = "disabled"; label = "SERCOM4"; }; sercom5: sercom@42001c00 { compatible = "atmel,sam0-sercom"; reg = <0x42001c00 0x40>; status = "disabled"; label = "SERCOM5"; }; tc4: tc@42003000 { compatible = "atmel,sam0-tc32"; reg = <0x42003000 0x20>; label = "TIMER_4"; }; pinctrl: pinctrl@41004400 { compatible = "atmel,sam0-pinctrl"; #address-cells = <1>; #size-cells = <1>; ranges = <0x41004400 0x41004400 0x100>; porta: gpio@41004400 { compatible = "atmel,sam0-gpio"; reg = <0x41004400 0x80>; label = "PORTA"; gpio-controller; #gpio-cells = <2>; #atmel,pin-cells = <2>; }; portb: gpio@41004480 { compatible = "atmel,sam0-gpio"; reg = <0x41004480 0x80>; label = "PORTB"; gpio-controller; #gpio-cells = <2>; #atmel,pin-cells = <2>; }; }; rtc: rtc@40001400 { compatible = "atmel,sam0-rtc"; reg = <0x40001400 0x1C>; interrupts = <3 0>; clock-generator = <0>; status = "disabled"; label = "RTC"; }; adc: adc@42004000 { compatible = "atmel,sam0-adc"; reg = <0x42004000 0x2B>; label = "ADC_0"; /* * 2.1 MHz max, so clock it with the * 8 MHz GCLK / 4 = 2 MHz */ gclk = <3>; prescaler = <4>; #io-channel-cells = <1>; }; dac0: dac@42004800 { compatible = "atmel,sam0-dac"; status = "disabled"; reg = <0x42004800 0x10>; label = "DAC_0"; #io-channel-cells = <0>; }; }; }; &nvic { arm,num-irq-priority-bits = <2>; }; |