Sandeep Sheriker Mallikarjun | 976c2dc | 2019-09-27 13:08:45 +0000 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | /* |
| 3 | * sam9x60.dtsi - Device Tree Include file for SAM9X60 SoC. |
| 4 | * |
| 5 | * Copyright (C) 2018 Microchip Technology Inc. and its subsidiaries |
| 6 | * |
| 7 | * Author: Sandeep Sheriker M <sandeepsheriker.mallikarjun@microchip.com> |
| 8 | */ |
| 9 | |
| 10 | #include "skeleton.dtsi" |
| 11 | #include <dt-bindings/dma/at91.h> |
| 12 | #include <dt-bindings/pinctrl/at91.h> |
| 13 | #include <dt-bindings/interrupt-controller/irq.h> |
| 14 | #include <dt-bindings/gpio/gpio.h> |
| 15 | #include <dt-bindings/clock/at91.h> |
| 16 | |
| 17 | /{ |
| 18 | model = "Microchip SAM9X60 SoC"; |
| 19 | compatible = "microchip,sam9x60"; |
| 20 | |
| 21 | aliases { |
| 22 | serial0 = &dbgu; |
| 23 | gpio0 = &pioA; |
| 24 | gpio1 = &pioB; |
Eugen Hristev | 94b65ea | 2019-09-30 07:28:58 +0000 | [diff] [blame^] | 25 | gpio3 = &pioD; |
Tudor Ambarus | 6c8b950 | 2019-09-27 13:09:19 +0000 | [diff] [blame] | 26 | spi0 = &qspi; |
Sandeep Sheriker Mallikarjun | 976c2dc | 2019-09-27 13:08:45 +0000 | [diff] [blame] | 27 | }; |
| 28 | |
| 29 | clocks { |
| 30 | slow_xtal: slow_xtal { |
| 31 | compatible = "fixed-clock"; |
| 32 | #clock-cells = <0>; |
| 33 | clock-frequency = <0>; |
| 34 | }; |
| 35 | |
| 36 | main_xtal: main_xtal { |
| 37 | compatible = "fixed-clock"; |
| 38 | #clock-cells = <0>; |
| 39 | clock-frequency = <0>; |
| 40 | }; |
| 41 | }; |
| 42 | |
| 43 | ahb { |
| 44 | compatible = "simple-bus"; |
| 45 | #address-cells = <1>; |
| 46 | #size-cells = <1>; |
| 47 | ranges; |
| 48 | |
| 49 | sdhci0: sdhci-host@80000000 { |
| 50 | compatible = "microchip,sam9x60-sdhci"; |
| 51 | reg = <0x80000000 0x300>; |
| 52 | clocks = <&sdhci0_clk>, <&sdhci0_gclk>, <&main>; |
| 53 | clock-names = "hclock", "multclk", "baseclk"; |
| 54 | bus-width = <4>; |
| 55 | pinctrl-names = "default"; |
| 56 | pinctrl-0 = <&pinctrl_sdhci0>; |
| 57 | }; |
| 58 | |
| 59 | apb { |
| 60 | compatible = "simple-bus"; |
| 61 | #address-cells = <1>; |
| 62 | #size-cells = <1>; |
| 63 | ranges; |
| 64 | |
Tudor Ambarus | 6c8b950 | 2019-09-27 13:09:19 +0000 | [diff] [blame] | 65 | qspi: spi@f0014000 { |
| 66 | compatible = "microchip,sam9x60-qspi"; |
| 67 | reg = <0xf0014000 0x100>, <0x70000000 0x10000000>; |
| 68 | reg-names = "qspi_base", "qspi_mmap"; |
| 69 | clocks = <&qspi_clk>, <&qspick>; |
| 70 | clock-names = "pclk", "qspick"; |
| 71 | #address-cells = <1>; |
| 72 | #size-cells = <0>; |
| 73 | status = "disabled"; |
| 74 | }; |
| 75 | |
Nicolas Ferre | d7d06bf | 2019-09-27 13:08:48 +0000 | [diff] [blame] | 76 | macb0: ethernet@f802c000 { |
| 77 | compatible = "cdns,sam9x60-macb", "cdns,macb"; |
| 78 | reg = <0xf802c000 0x100>; |
| 79 | pinctrl-names = "default"; |
| 80 | pinctrl-0 = <&pinctrl_macb0_rmii>; |
| 81 | clock-names = "hclk", "pclk"; |
| 82 | clocks = <&macb0_clk>, <&macb0_clk>; |
| 83 | status = "disabled"; |
| 84 | }; |
| 85 | |
Sandeep Sheriker Mallikarjun | 976c2dc | 2019-09-27 13:08:45 +0000 | [diff] [blame] | 86 | dbgu: serial@fffff200 { |
| 87 | compatible = "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart"; |
| 88 | reg = <0xfffff200 0x200>; |
| 89 | pinctrl-names = "default"; |
| 90 | pinctrl-0 = <&pinctrl_dbgu>; |
| 91 | clocks = <&dbgu_clk>; |
| 92 | clock-names = "usart"; |
| 93 | }; |
| 94 | |
| 95 | pinctrl { |
| 96 | #address-cells = <1>; |
| 97 | #size-cells = <1>; |
| 98 | compatible = "microchip,sam9x60-pinctrl", "simple-bus"; |
| 99 | ranges = <0xfffff400 0xfffff400 0x800>; |
| 100 | reg = <0xfffff400 0x200 /* pioA */ |
| 101 | 0xfffff600 0x200 /* pioB */ |
| 102 | 0xfffff800 0x200 /* pioC */ |
| 103 | 0xfffffa00 0x200>; /* pioD */ |
| 104 | |
| 105 | /* shared pinctrl settings */ |
| 106 | dbgu { |
| 107 | pinctrl_dbgu: dbgu-0 { |
| 108 | atmel,pins = |
| 109 | <AT91_PIOA 9 AT91_PERIPH_A AT91_PINCTRL_PULL_UP |
| 110 | AT91_PIOA 10 AT91_PERIPH_A AT91_PINCTRL_NONE>; |
| 111 | }; |
| 112 | }; |
| 113 | |
Nicolas Ferre | d7d06bf | 2019-09-27 13:08:48 +0000 | [diff] [blame] | 114 | macb0 { |
| 115 | pinctrl_macb0_rmii: macb0_rmii-0 { |
| 116 | atmel,pins = |
| 117 | <AT91_PIOB 0 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB0 periph A */ |
| 118 | AT91_PIOB 1 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB1 periph A */ |
| 119 | AT91_PIOB 2 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB2 periph A */ |
| 120 | AT91_PIOB 3 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB3 periph A */ |
| 121 | AT91_PIOB 4 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB4 periph A */ |
| 122 | AT91_PIOB 5 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB5 periph A */ |
| 123 | AT91_PIOB 6 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB6 periph A */ |
| 124 | AT91_PIOB 7 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB7 periph A */ |
| 125 | AT91_PIOB 9 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB9 periph A */ |
| 126 | AT91_PIOB 10 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB10 periph A */ |
| 127 | }; |
| 128 | }; |
| 129 | |
Sandeep Sheriker Mallikarjun | 976c2dc | 2019-09-27 13:08:45 +0000 | [diff] [blame] | 130 | sdhci0 { |
| 131 | pinctrl_sdhci0: sdhci0 { |
| 132 | atmel,pins = |
| 133 | <AT91_PIOA 17 AT91_PERIPH_A AT91_PINCTRL_DRIVE_STRENGTH_DEFAULT /* PA17 CK periph A with pullup */ |
| 134 | AT91_PIOA 16 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA16 CMD periph A with pullup */ |
| 135 | AT91_PIOA 15 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA15 DAT0 periph A */ |
| 136 | AT91_PIOA 18 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA18 DAT1 periph A with pullup */ |
| 137 | AT91_PIOA 19 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA19 DAT2 periph A with pullup */ |
| 138 | AT91_PIOA 20 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PA20 DAT3 periph A with pullup */ |
| 139 | }; |
| 140 | }; |
| 141 | }; |
| 142 | |
| 143 | pioA: gpio@fffff400 { |
| 144 | compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; |
| 145 | reg = <0xfffff400 0x200>; |
| 146 | #gpio-cells = <2>; |
| 147 | gpio-controller; |
| 148 | clocks = <&pioA_clk>; |
| 149 | }; |
| 150 | |
| 151 | pioB: gpio@fffff600 { |
| 152 | compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; |
| 153 | reg = <0xfffff600 0x200>; |
| 154 | #gpio-cells = <2>; |
| 155 | gpio-controller; |
| 156 | clocks = <&pioB_clk>; |
| 157 | }; |
| 158 | |
Eugen Hristev | 94b65ea | 2019-09-30 07:28:58 +0000 | [diff] [blame^] | 159 | pioD: gpio@fffffa00 { |
| 160 | compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; |
| 161 | reg = <0xfffffa00 0x200>; |
| 162 | #gpio-cells = <2>; |
| 163 | gpio-controller; |
| 164 | clocks = <&pioD_clk>; |
| 165 | }; |
| 166 | |
Sandeep Sheriker Mallikarjun | 976c2dc | 2019-09-27 13:08:45 +0000 | [diff] [blame] | 167 | pmc: pmc@fffffc00 { |
| 168 | compatible = "atmel,at91sam9x5-pmc"; |
| 169 | reg = <0xfffffc00 0x200>; |
| 170 | #address-cells = <1>; |
| 171 | #size-cells = <0>; |
| 172 | |
| 173 | main: mainck { |
| 174 | compatible = "atmel,at91sam9x5-clk-main"; |
| 175 | #clock-cells = <0>; |
| 176 | }; |
| 177 | |
| 178 | plla: pllack { |
| 179 | compatible = "microchip,sam9x60-clk-pll"; |
| 180 | #clock-cells = <0>; |
| 181 | clocks = <&main>; |
| 182 | reg = <0>; |
| 183 | atmel,clk-input-range = <8000000 24000000>; |
| 184 | #atmel,pll-clk-output-range-cells = <4>; |
| 185 | atmel,pll-clk-output-ranges = <140000000 1200000000 0 0>; |
| 186 | }; |
| 187 | |
| 188 | mck: masterck { |
| 189 | compatible = "atmel,at91sam9x5-clk-master"; |
| 190 | #clock-cells = <0>; |
| 191 | clocks = <&md_slck>, <&main>, <&plla>; |
| 192 | atmel,clk-output-range = <140000000 200000000>; |
| 193 | atmel,clk-divisors = <1 2 4 6>; |
| 194 | }; |
| 195 | |
Tudor Ambarus | 6c8b950 | 2019-09-27 13:09:19 +0000 | [diff] [blame] | 196 | system: systemck { |
| 197 | compatible = "atmel,at91rm9200-clk-system"; |
| 198 | #address-cells = <1>; |
| 199 | #size-cells = <0>; |
| 200 | |
| 201 | qspick: qspick { |
| 202 | #clock-cells = <0>; |
| 203 | reg = <19>; |
| 204 | clocks = <&mck>; |
| 205 | }; |
| 206 | }; |
| 207 | |
Sandeep Sheriker Mallikarjun | 976c2dc | 2019-09-27 13:08:45 +0000 | [diff] [blame] | 208 | periph: periphck { |
| 209 | compatible = "microchip,sam9x60-clk-peripheral"; |
| 210 | #address-cells = <1>; |
| 211 | #size-cells = <0>; |
| 212 | clocks = <&mck>; |
| 213 | |
| 214 | pioA_clk: pioA_clk { |
| 215 | #clock-cells = <0>; |
| 216 | reg = <2>; |
| 217 | }; |
| 218 | |
| 219 | pioB_clk: pioB_clk { |
| 220 | #clock-cells = <0>; |
| 221 | reg = <3>; |
| 222 | }; |
| 223 | |
Eugen Hristev | 94b65ea | 2019-09-30 07:28:58 +0000 | [diff] [blame^] | 224 | pioD_clk: pioD_clk { |
| 225 | #clock-cells = <0>; |
| 226 | reg = <44>; |
| 227 | }; |
| 228 | |
Sandeep Sheriker Mallikarjun | 976c2dc | 2019-09-27 13:08:45 +0000 | [diff] [blame] | 229 | sdhci0_clk: sdhci0_clk { |
| 230 | #clock-cells = <0>; |
| 231 | reg = <12>; |
| 232 | }; |
| 233 | |
| 234 | dbgu_clk: dbgu_clk { |
| 235 | #clock-cells = <0>; |
| 236 | reg = <47>; |
| 237 | }; |
Nicolas Ferre | d7d06bf | 2019-09-27 13:08:48 +0000 | [diff] [blame] | 238 | |
| 239 | macb0_clk: macb0_clk { |
| 240 | #clock-cells = <0>; |
| 241 | reg = <24>; |
| 242 | }; |
Tudor Ambarus | 6c8b950 | 2019-09-27 13:09:19 +0000 | [diff] [blame] | 243 | |
| 244 | qspi_clk: qspi_clk { |
| 245 | #clock-cells = <0>; |
| 246 | reg = <35>; |
| 247 | }; |
Sandeep Sheriker Mallikarjun | 976c2dc | 2019-09-27 13:08:45 +0000 | [diff] [blame] | 248 | }; |
| 249 | |
| 250 | generic: gck { |
| 251 | compatible = "microchip,sam9x60-clk-generated"; |
| 252 | #address-cells = <1>; |
| 253 | #size-cells = <0>; |
| 254 | clocks = <&md_slck>, <&td_slck>, <&main>, <&mck>, <&plla>; |
| 255 | |
| 256 | sdhci0_gclk: sdhci0_gclk { |
| 257 | #clock-cells = <0>; |
| 258 | reg = <12>; |
| 259 | }; |
| 260 | }; |
| 261 | }; |
| 262 | |
| 263 | pit: timer@fffffe40 { |
| 264 | compatible = "atmel,at91sam9260-pit"; |
| 265 | reg = <0xfffffe40 0x10>; |
| 266 | clocks = <&mck>; |
| 267 | }; |
| 268 | |
| 269 | slowckc: sckc@fffffe50 { |
| 270 | compatible = "atmel,at91sam9x5-sckc"; |
| 271 | reg = <0xfffffe50 0x4>; |
| 272 | |
| 273 | slow_osc: slow_osc { |
| 274 | compatible = "atmel,at91sam9x5-clk-slow-osc"; |
| 275 | #clock-cells = <0>; |
| 276 | clocks = <&slow_xtal>; |
| 277 | }; |
| 278 | |
| 279 | slow_rc_osc: slow_rc_osc { |
| 280 | compatible = "atmel,at91sam9x5-clk-slow-rc-osc"; |
| 281 | #clock-cells = <0>; |
| 282 | clock-frequency = <32768>; |
| 283 | }; |
| 284 | |
| 285 | td_slck: td_slck { |
| 286 | compatible = "atmel,at91sam9x5-clk-slow"; |
| 287 | #clock-cells = <0>; |
| 288 | clocks = <&slow_rc_osc>, <&slow_osc>; |
| 289 | }; |
| 290 | |
| 291 | md_slck: md_slck { |
| 292 | compatible = "atmel,at91sam9x5-clk-slow"; |
| 293 | #clock-cells = <0>; |
| 294 | clocks = <&slow_rc_osc>; |
| 295 | }; |
| 296 | }; |
| 297 | }; |
| 298 | }; |
Eugen Hristev | 94b65ea | 2019-09-30 07:28:58 +0000 | [diff] [blame^] | 299 | |
| 300 | onewire_tm: onewire { |
| 301 | compatible = "w1-gpio"; |
| 302 | status = "disabled"; |
| 303 | }; |
Sandeep Sheriker Mallikarjun | 976c2dc | 2019-09-27 13:08:45 +0000 | [diff] [blame] | 304 | }; |