Hannes Schmelzer | 8208848 | 2019-08-01 07:04:46 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright (C) 2017 B&R Industrial Automation GmbH |
| 4 | * http://www.br-automation.com |
| 5 | * |
| 6 | */ |
| 7 | /dts-v1/; |
| 8 | |
| 9 | #include "am33xx.dtsi" |
| 10 | #include "dt-bindings/thermal/thermal.h" |
| 11 | |
| 12 | / { |
| 13 | model = "BRSMARC1 SoM"; |
| 14 | compatible = "ti,am33xx"; |
| 15 | |
| 16 | fset: factory-settings { |
| 17 | bl-version = " "; |
| 18 | order-no = " "; |
| 19 | cpu-order-no = " "; |
| 20 | hw-revision = " "; |
| 21 | serial-no = <0>; |
| 22 | device-id = <0x0>; |
| 23 | parent-id = <0x0>; |
| 24 | hw-variant = <0x0>; |
| 25 | hw-platform = <0x7>; |
| 26 | fram-offset = <0x100>; |
| 27 | fram-size = <0x1F00>; |
| 28 | cache-disable = <0x0>; |
| 29 | cpu-clock = <0x0>; |
| 30 | }; |
| 31 | |
| 32 | chosen { |
| 33 | bootargs = "console=ttyO0,115200 earlyprintk"; |
| 34 | stdout-path = &uart0; |
| 35 | }; |
| 36 | |
| 37 | aliases { |
| 38 | fset = &fset; |
| 39 | mmc = &mmc2; |
| 40 | spi0 = &spi0; |
| 41 | spi1 = &spi1; |
| 42 | touch0 = &burtouch0; |
| 43 | screen0 = &lcdscreen0; |
| 44 | }; |
| 45 | |
| 46 | memory { |
| 47 | device_type = "memory"; |
| 48 | reg = <0x80000000 0x10000000>; /* 256 MB */ |
| 49 | }; |
| 50 | |
| 51 | vmmcsd_fixed: fixedregulator@0 { |
| 52 | compatible = "regulator-fixed"; |
| 53 | regulator-name = "vmmcsd_fixed"; |
| 54 | regulator-min-microvolt = <3300000>; |
| 55 | regulator-max-microvolt = <3300000>; |
| 56 | }; |
| 57 | |
| 58 | lcdscreen0: lcdscreen@0 { |
| 59 | /*backlight = <&tps_bl>; */ |
| 60 | compatible = "ti,tilcdc,panel"; |
| 61 | status = "okay"; |
| 62 | |
| 63 | panel-info { |
| 64 | ac-bias = <255>; |
| 65 | ac-bias-intrpt = <0>; |
| 66 | dma-burst-sz = <16>; |
| 67 | bpp = <32>; |
| 68 | fdd = <0x80>; |
| 69 | sync-edge = <0>; |
| 70 | sync-ctrl = <1>; |
| 71 | raster-order = <0>; |
| 72 | fifo-th = <0>; |
| 73 | rotation = <0>; |
| 74 | pupdelay = <0>; |
| 75 | pondelay = <0>; |
| 76 | pwrpin = <0x000000B1>; |
| 77 | brightdrv = <0>; |
| 78 | brightfdim = <100>; |
| 79 | brightdef = <50>; |
| 80 | }; |
| 81 | |
| 82 | display-timings { |
| 83 | default { |
| 84 | clock-frequency = <0>; |
| 85 | hactive = <0>; |
| 86 | vactive = <0>; |
| 87 | hfront-porch = <0>; |
| 88 | hback-porch = <0>; |
| 89 | hsync-len = <0>; |
| 90 | vfront-porch = <0>; |
| 91 | vback-porch = <0>; |
| 92 | vsync-len = <0>; |
| 93 | hsync-active = <0>; |
| 94 | vsync-active = <0>; |
| 95 | pupdelay = <10>; |
| 96 | pondelay = <10>; |
| 97 | }; |
| 98 | }; |
| 99 | }; |
| 100 | |
| 101 | board_thermal: board-thermal { |
| 102 | polling-delay-passive = <1000>; /* milliseconds */ |
| 103 | polling-delay = <2500>; /* milliseconds */ |
| 104 | |
| 105 | thermal-sensors = <&cputemp>; |
| 106 | |
| 107 | trips { |
| 108 | crit_trip: crit-trip { |
| 109 | temperature = <95000>; /* millicelsius */ |
| 110 | hysteresis = <5000>; /* millicelsius */ |
| 111 | type = "critical"; |
| 112 | }; |
| 113 | }; |
| 114 | cooling-maps { |
| 115 | map0 { |
| 116 | trip = <&crit_trip>; |
| 117 | cooling-device = |
| 118 | <&resetc THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
| 119 | }; |
| 120 | }; |
| 121 | }; |
| 122 | }; |
| 123 | |
| 124 | &uart0 { /* console uart */ |
| 125 | u-boot,dm-spl; |
| 126 | status = "okay"; |
| 127 | }; |
| 128 | |
| 129 | &uart2 { /* X2X - P2P */ |
| 130 | status = "okay"; |
| 131 | }; |
| 132 | |
| 133 | &uart3 { /* RS485 */ |
| 134 | status = "okay"; |
| 135 | }; |
| 136 | |
| 137 | &uart4 { /* RS232 */ |
| 138 | status = "okay"; |
| 139 | }; |
| 140 | |
| 141 | &i2c0 { |
| 142 | u-boot,dm-spl; |
| 143 | status = "okay"; |
| 144 | clock-frequency = <100000>; |
| 145 | |
| 146 | tps: tps@24 { /* PMIC controller */ |
| 147 | u-boot,dm-spl; |
| 148 | reg = <0x24>; |
| 149 | compatible = "ti,tps65217"; |
| 150 | }; |
| 151 | |
| 152 | cputemp: temperature-sensor@48 { /* cpu temperature */ |
| 153 | #thermal-sensor-cells = <0>; |
| 154 | compatible = "nxp,pct2075"; |
| 155 | reg = <0x48>; |
| 156 | }; |
| 157 | |
| 158 | basetemp: temperature-sensor@49 { /* baseboard temperature */ |
| 159 | #thermal-sensor-cells = <0>; |
| 160 | compatible = "nxp,pct2075"; |
| 161 | reg = <0x49>; |
| 162 | }; |
| 163 | extrtc: rtc@51 { /* realtime clock */ |
| 164 | compatible = "epson,rx8571"; |
| 165 | reg = <0x51>; |
| 166 | }; |
| 167 | |
| 168 | resetc: reset-controller@60 { |
| 169 | compatible = "bur,rststm"; |
| 170 | reg = <0x60>; |
| 171 | |
| 172 | cooling-min-state = <0>; |
| 173 | cooling-max-state = <1>; /* reset gets fired */ |
| 174 | #cooling-cells = <2>; /* min followed by max */ |
| 175 | }; |
| 176 | }; |
| 177 | |
| 178 | &i2c1 { |
| 179 | u-boot,dm-spl; |
| 180 | status = "okay"; |
| 181 | }; |
| 182 | |
| 183 | &spi0 { |
| 184 | u-boot,dm-spl; |
| 185 | status = "okay"; |
| 186 | |
| 187 | cs-gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>, |
| 188 | <&gpio0 6 GPIO_ACTIVE_HIGH>, |
| 189 | <0>, |
| 190 | <0>; |
| 191 | |
| 192 | spi-max-frequency = <24000000>; |
| 193 | |
| 194 | spi_flash: spiflash@0 { |
| 195 | u-boot,dm-spl; |
| 196 | u-boot,dm-pre-reloc; |
| 197 | compatible = "spidev", "spi-flash"; |
| 198 | spi-max-frequency = <24000000>; |
| 199 | reg = <0>; |
| 200 | }; |
| 201 | }; |
| 202 | |
| 203 | &spi1 { |
| 204 | u-boot,dm-spl; |
| 205 | status = "okay"; |
| 206 | cs-gpios = <&gpio3 17 GPIO_ACTIVE_HIGH>, |
| 207 | <&gpio0 19 GPIO_ACTIVE_HIGH>, |
| 208 | <0>, |
| 209 | <0>; |
| 210 | |
| 211 | spi-max-frequency = <24000000>; |
| 212 | }; |
| 213 | |
| 214 | &edma { |
| 215 | status = "okay"; |
| 216 | }; |
| 217 | |
| 218 | &cppi41dma { |
| 219 | status = "okay"; |
| 220 | }; |
| 221 | |
| 222 | &usb { |
| 223 | status = "okay"; |
| 224 | }; |
| 225 | |
| 226 | &usb_ctrl_mod { |
| 227 | status = "okay"; |
| 228 | }; |
| 229 | |
| 230 | &usb0_phy { |
| 231 | status = "okay"; |
| 232 | }; |
| 233 | |
| 234 | &usb1_phy { |
| 235 | status = "okay"; |
| 236 | }; |
| 237 | |
| 238 | &usb0 { |
| 239 | status = "okay"; |
| 240 | dr_mode = "host"; |
| 241 | }; |
| 242 | |
| 243 | &usb1 { |
| 244 | status = "okay"; |
| 245 | dr_mode = "host"; |
| 246 | }; |
| 247 | |
| 248 | &davinci_mdio { |
| 249 | status = "okay"; |
Grygorii Strashko | a6f37dc | 2019-08-31 10:30:34 +0300 | [diff] [blame] | 250 | |
| 251 | ethphy0: ethernet-phy@1 { |
| 252 | reg = <1>; |
| 253 | }; |
| 254 | |
| 255 | ethphy1: ethernet-phy@3 { |
| 256 | reg = <3>; |
| 257 | }; |
Hannes Schmelzer | 8208848 | 2019-08-01 07:04:46 +0200 | [diff] [blame] | 258 | }; |
| 259 | |
| 260 | &mac { |
| 261 | status = "okay"; |
| 262 | }; |
| 263 | |
| 264 | &phy_sel { |
| 265 | rmii-clock-ext; |
| 266 | }; |
| 267 | |
| 268 | &cpsw_emac0 { |
Grygorii Strashko | a6f37dc | 2019-08-31 10:30:34 +0300 | [diff] [blame] | 269 | phy-handle = <ðphy0>; |
Hannes Schmelzer | 8208848 | 2019-08-01 07:04:46 +0200 | [diff] [blame] | 270 | phy-mode = "rmii"; |
| 271 | ti,ledcr = <0x0480>; |
| 272 | }; |
| 273 | |
| 274 | &cpsw_emac1 { |
Grygorii Strashko | a6f37dc | 2019-08-31 10:30:34 +0300 | [diff] [blame] | 275 | phy-handle = <ðphy1>; |
Hannes Schmelzer | 8208848 | 2019-08-01 07:04:46 +0200 | [diff] [blame] | 276 | phy-mode = "rmii"; |
| 277 | ti,ledcr = <0x0480>; |
| 278 | }; |
| 279 | |
| 280 | &mmc1 { |
| 281 | vmmc-supply = <&vmmcsd_fixed>; |
| 282 | bus-width = <0x4>; |
| 283 | ti,non-removable; |
| 284 | ti,needs-special-hs-handling; |
| 285 | ti,vcc-aux-disable-is-sleep; |
| 286 | status = "okay"; |
| 287 | }; |
| 288 | |
| 289 | &mmc2 { |
| 290 | vmmc-supply = <&vmmcsd_fixed>; |
| 291 | bus-width = <0x8>; |
| 292 | ti,non-removable; |
| 293 | ti,needs-special-hs-handling; |
| 294 | ti,vcc-aux-disable-is-sleep; |
| 295 | status = "okay"; |
| 296 | }; |
| 297 | |
| 298 | &lcdc { |
| 299 | status = "okay"; |
| 300 | ti,no-reset-on-init; |
| 301 | ti,no-idle-on-init; |
| 302 | }; |
| 303 | |
| 304 | &elm { |
| 305 | status = "okay"; |
| 306 | }; |
| 307 | |
| 308 | &sham { |
| 309 | status = "okay"; |
| 310 | }; |
| 311 | |
| 312 | &aes { |
| 313 | status = "okay"; |
| 314 | }; |
| 315 | |
| 316 | &gpio0 { |
| 317 | u-boot,dm-spl; |
| 318 | ti,no-reset-on-init; |
| 319 | }; |
| 320 | |
| 321 | &gpio1 { |
| 322 | u-boot,dm-spl; |
| 323 | ti,no-reset-on-init; |
| 324 | }; |
| 325 | |
| 326 | &gpio2 { |
| 327 | u-boot,dm-spl; |
| 328 | ti,no-reset-on-init; |
| 329 | }; |
| 330 | |
| 331 | &gpio3 { |
| 332 | u-boot,dm-spl; |
| 333 | ti,no-reset-on-init; |
| 334 | }; |
| 335 | |
| 336 | &timer1 { /* today unused */ |
| 337 | status = "okay"; |
| 338 | ti,no-reset-on-init; |
| 339 | ti,no-idle-on-init; |
| 340 | }; |
| 341 | |
| 342 | &timer2 { /* used for vxworks primary timer device */ |
| 343 | status = "okay"; |
| 344 | ti,no-reset-on-init; |
| 345 | ti,no-idle-on-init; |
| 346 | }; |
| 347 | |
| 348 | &timer3 { /* used sysdelay and hal tsc counter*/ |
| 349 | status = "okay"; |
| 350 | ti,no-reset-on-init; |
| 351 | ti,no-idle-on-init; |
| 352 | }; |
| 353 | |
| 354 | &timer4 { /* used for PWM beeper */ |
| 355 | status = "okay"; |
| 356 | ti,no-reset-on-init; |
| 357 | ti,no-idle-on-init; |
| 358 | }; |
| 359 | |
| 360 | &timer5 { /* used for PWM backlight */ |
| 361 | status = "okay"; |
| 362 | ti,no-reset-on-init; |
| 363 | ti,no-idle-on-init; |
| 364 | }; |
| 365 | |
| 366 | &timer6 { /* used for cpsw end device */ |
| 367 | status = "okay"; |
| 368 | ti,no-reset-on-init; |
| 369 | ti,no-idle-on-init; |
| 370 | }; |
| 371 | |
| 372 | &timer7 { /* used for cpsw end device */ |
| 373 | status = "okay"; |
| 374 | ti,no-reset-on-init; |
| 375 | ti,no-idle-on-init; |
| 376 | }; |
| 377 | |
| 378 | &wdt2 { |
| 379 | status = "okay"; |
| 380 | ti,no-reset-on-init; |
| 381 | ti,no-idle-on-init; |
| 382 | }; |
| 383 | |
| 384 | &epwmss0 { |
| 385 | status = "okay"; |
| 386 | }; |
| 387 | |
| 388 | &tscadc { |
| 389 | status = "okay"; |
| 390 | |
| 391 | tsc { |
| 392 | burtouch0: burtouch@0 { |
| 393 | status = "okay"; |
| 394 | compatible = "bur,DdVxSfTouchXXX"; |
| 395 | bur,hwtree = "IF7"; |
| 396 | bur,KX0 = <0x0>; |
| 397 | bur,KX1 = <0x0>; |
| 398 | bur,KX2 = <0x0>; |
| 399 | bur,KY0 = <0x0>; |
| 400 | bur,KY1 = <0x0>; |
| 401 | bur,KY2 = <0x0>; |
| 402 | }; |
| 403 | }; |
| 404 | }; |
| 405 | |
| 406 | &dcan0 { |
| 407 | status = "okay"; |
| 408 | }; |
| 409 | |
| 410 | &dcan1 { |
| 411 | status = "okay"; |
| 412 | }; |
| 413 | |
| 414 | &sham { |
| 415 | status = "disabled"; |
| 416 | }; |
| 417 | |
| 418 | &aes { |
| 419 | status = "disabled"; |
| 420 | }; |
| 421 | |
| 422 | &rng { |
| 423 | status = "disabled"; |
| 424 | }; |