Hannes Schmelzer | fbc7c7d | 2018-07-06 15:41:28 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright (C) 2018 B&R Industrial Automation GmbH |
| 4 | * http://www.br-automation.com |
| 5 | * |
| 6 | */ |
| 7 | /dts-v1/; |
| 8 | |
| 9 | #include "am33xx.dtsi" |
| 10 | |
| 11 | / { |
| 12 | model = "BRPPT1 (MMC) Panel"; |
| 13 | compatible = "ti,am33xx"; |
| 14 | |
| 15 | fset: factory-settings { |
| 16 | bl-version = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456890"; |
| 17 | version = <0x0100>; |
| 18 | order-no = "6PPT30 (SPI)"; |
| 19 | hw-revision = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456890"; |
| 20 | serial-no = "0"; |
| 21 | device-id = <0x0>; |
| 22 | parent-id = <0x0>; |
| 23 | hw-variant = <0x1>; |
| 24 | }; |
| 25 | |
| 26 | aliases { |
| 27 | ds1bkl0 = &pwmbacklight; |
| 28 | ds1bkl1 = &tps_bl; |
| 29 | ds1timing = &timing0; |
| 30 | ds1ctrl = &lcdc; |
| 31 | gpmc = &gpmc; |
| 32 | mmc = &mmc2; |
| 33 | spi0 = &spi0; |
| 34 | fset = &fset; |
| 35 | }; |
| 36 | |
| 37 | chosen { |
| 38 | bootargs = "console=ttyO0,115200 earlyprintk"; |
| 39 | stdout-path = &uart0; |
| 40 | }; |
| 41 | |
| 42 | memory { |
| 43 | device_type = "memory"; |
| 44 | reg = <0x80000000 0x10000000>; /* 256 MB */ |
| 45 | }; |
| 46 | |
| 47 | panel { |
| 48 | status = "disabled"; |
| 49 | |
| 50 | compatible = "ti,tilcdc,panel"; |
| 51 | enable-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; |
| 52 | |
| 53 | backlight = <&pwmbacklight>; |
| 54 | bkl-pwm = <&pwmbacklight>; |
| 55 | bkl-tps = <&tps_bl>; |
| 56 | |
Dario Binacchi | 72e0a0e | 2020-02-22 14:05:46 +0100 | [diff] [blame] | 57 | u-boot,dm-pre-reloc; |
| 58 | |
Hannes Schmelzer | fbc7c7d | 2018-07-06 15:41:28 +0200 | [diff] [blame] | 59 | panel-info { |
| 60 | ac-bias = <255>; |
| 61 | ac-bias-intrpt = <0>; |
| 62 | dma-burst-sz = <16>; |
| 63 | bpp = <32>; |
| 64 | fdd = <0x80>; |
| 65 | sync-edge = <0>; |
| 66 | sync-ctrl = <1>; |
| 67 | raster-order = <0>; |
| 68 | fifo-th = <0>; |
| 69 | }; |
| 70 | |
| 71 | display-timings { |
| 72 | native-mode = <&timing0>; |
| 73 | timing0: lcd { |
| 74 | clock-frequency = <32000000>; |
| 75 | hactive = <800>; |
| 76 | vactive = <480>; |
| 77 | hfront-porch = <2>; |
| 78 | hback-porch = <192>; |
| 79 | hsync-len = <1>; |
| 80 | vfront-porch = <20>; |
| 81 | vback-porch = <2>; |
| 82 | vsync-len = <1>; |
| 83 | hsync-active = <1>; |
| 84 | vsync-active = <1>; |
| 85 | pupdelay = <10>; |
| 86 | pondelay = <10>; |
| 87 | }; |
| 88 | }; |
| 89 | }; |
| 90 | |
| 91 | vmmcsd_fixed: fixedregulator@0 { |
| 92 | compatible = "regulator-fixed"; |
| 93 | regulator-name = "vmmcsd_fixed"; |
| 94 | regulator-min-microvolt = <3300000>; |
| 95 | regulator-max-microvolt = <3300000>; |
| 96 | }; |
| 97 | |
| 98 | pwm0: omap-pwm@timer5 { |
| 99 | compatible = "ti,omap-dmtimer-pwm"; |
| 100 | ti,timers = <&timer5>; |
| 101 | #pwm-cells = <3>; |
| 102 | }; |
| 103 | |
| 104 | pwm1: omap-pwm@timer6 { |
| 105 | compatible = "ti,omap-dmtimer-pwm"; |
| 106 | ti,timers = <&timer6>; |
| 107 | #pwm-cells = <3>; |
| 108 | }; |
| 109 | |
| 110 | beeper: pwm-beep { |
| 111 | compatible = "pwm-beeper"; |
| 112 | pwms = <&pwm0 0 0 0>; |
| 113 | }; |
| 114 | |
| 115 | pwmbacklight: pwm-bkl { |
| 116 | compatible = "pwm-backlight"; |
| 117 | pwms = <&pwm1 0 5000000 0>; |
| 118 | |
| 119 | default-brightness-level = <255>; |
| 120 | brightness-levels = <0 16 32 64 128 170 202 234 255>; |
| 121 | |
| 122 | power-supply = <&vmmcsd_fixed>; |
| 123 | enable-gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; |
| 124 | }; |
| 125 | }; |
| 126 | |
| 127 | &uart0 { /* console uart */ |
| 128 | u-boot,dm-spl; |
| 129 | status = "okay"; |
| 130 | }; |
| 131 | |
| 132 | &uart1 { |
| 133 | status = "okay"; |
| 134 | }; |
| 135 | |
| 136 | &i2c0 { |
| 137 | u-boot,dm-spl; |
| 138 | status = "okay"; |
| 139 | clock-frequency = <400000>; |
| 140 | |
| 141 | tps: tps@24 { /* PMIC controller */ |
| 142 | u-boot,dm-spl; |
| 143 | reg = <0x24>; |
| 144 | compatible = "ti,tps65217"; |
| 145 | |
| 146 | tps_bl: backlight { |
| 147 | compatible = "ti,tps65217-bl"; |
| 148 | isel = <1>; /* 1 - ISET1, 2 ISET2 */ |
| 149 | fdim = <1000>; /* TPS65217_BL_FDIM_1kHZ */ |
| 150 | default-brightness = <50>; |
| 151 | }; |
| 152 | }; |
| 153 | }; |
| 154 | |
| 155 | &i2c2 { |
| 156 | status = "okay"; |
| 157 | clock-frequency = <100000>; |
| 158 | }; |
| 159 | |
| 160 | &spi0 { |
| 161 | u-boot,dm-spl; |
| 162 | status = "okay"; |
| 163 | |
| 164 | cs-gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>, |
| 165 | <&gpio0 6 GPIO_ACTIVE_HIGH>, |
| 166 | <0>, |
| 167 | <0>; |
| 168 | |
| 169 | spi-max-frequency = <24000000>; |
| 170 | |
| 171 | spi_flash: spiflash@0 { |
| 172 | u-boot,dm-spl; |
| 173 | u-boot,dm-pre-reloc; |
Neil Armstrong | ffd4c7c | 2019-02-10 10:16:20 +0000 | [diff] [blame] | 174 | compatible = "spidev", "jedec,spi-nor"; |
Hannes Schmelzer | fbc7c7d | 2018-07-06 15:41:28 +0200 | [diff] [blame] | 175 | spi-max-frequency = <24000000>; |
| 176 | reg = <0>; |
| 177 | }; |
| 178 | }; |
| 179 | |
| 180 | &edma { |
| 181 | status = "okay"; |
| 182 | }; |
| 183 | |
| 184 | &cppi41dma { |
| 185 | status = "okay"; |
| 186 | }; |
| 187 | |
| 188 | &usb { |
| 189 | status = "okay"; |
| 190 | }; |
| 191 | |
| 192 | &usb_ctrl_mod { |
| 193 | status = "okay"; |
| 194 | }; |
| 195 | |
| 196 | &usb0_phy { |
| 197 | status = "okay"; |
| 198 | }; |
| 199 | |
| 200 | &usb1_phy { |
| 201 | status = "okay"; |
| 202 | }; |
| 203 | |
| 204 | &usb0 { |
| 205 | status = "okay"; |
| 206 | dr_mode = "host"; |
| 207 | }; |
| 208 | |
| 209 | &usb1 { |
| 210 | status = "okay"; |
| 211 | dr_mode = "host"; |
| 212 | }; |
| 213 | |
| 214 | &davinci_mdio { |
| 215 | status = "okay"; |
| 216 | |
| 217 | phy0: ethernet-phy@0 { |
| 218 | reg = <1>; |
| 219 | }; |
| 220 | |
| 221 | phy1: ethernet-phy@1 { |
| 222 | reg = <2>; |
| 223 | }; |
| 224 | }; |
| 225 | |
| 226 | &mac { |
| 227 | status = "okay"; |
| 228 | }; |
| 229 | |
| 230 | &cpsw_emac0 { |
| 231 | phy-handle = <&phy0>; |
| 232 | dual_emac_res_vlan = <1>; |
| 233 | phy-mode = "mii"; |
| 234 | }; |
| 235 | |
| 236 | &cpsw_emac1 { |
| 237 | phy-handle = <&phy1>; |
| 238 | dual_emac_res_vlan = <2>; |
| 239 | phy-mode = "mii"; |
| 240 | }; |
| 241 | |
| 242 | &mmc1 { |
| 243 | u-boot,dm-spl; |
| 244 | vmmc-supply = <&vmmcsd_fixed>; |
| 245 | bus-width = <0x4>; |
| 246 | ti,non-removable; |
| 247 | ti,needs-special-hs-handling; |
| 248 | ti,vcc-aux-disable-is-sleep; |
| 249 | status = "okay"; |
| 250 | }; |
| 251 | |
| 252 | &mmc2 { |
| 253 | u-boot,dm-spl; |
| 254 | vmmc-supply = <&vmmcsd_fixed>; |
| 255 | bus-width = <0x8>; |
| 256 | ti,non-removable; |
| 257 | ti,needs-special-hs-handling; |
| 258 | ti,vcc-aux-disable-is-sleep; |
| 259 | status = "okay"; |
| 260 | }; |
| 261 | |
| 262 | &lcdc { |
| 263 | status = "disabled"; |
| 264 | }; |
| 265 | |
| 266 | &elm { |
| 267 | status = "okay"; |
| 268 | }; |
| 269 | |
| 270 | &sham { |
| 271 | status = "okay"; |
| 272 | }; |
| 273 | |
| 274 | &aes { |
| 275 | status = "okay"; |
| 276 | }; |
| 277 | |
| 278 | &gpio0 { |
| 279 | u-boot,dm-spl; |
| 280 | ti,no-reset-on-init; |
| 281 | }; |
| 282 | |
| 283 | &gpio1 { |
| 284 | u-boot,dm-spl; |
| 285 | ti,no-reset-on-init; |
| 286 | }; |
| 287 | |
| 288 | &gpio2 { |
| 289 | u-boot,dm-spl; |
| 290 | ti,no-reset-on-init; |
| 291 | }; |
| 292 | |
| 293 | &gpio3 { |
| 294 | u-boot,dm-spl; |
| 295 | ti,no-reset-on-init; |
| 296 | }; |
| 297 | |
| 298 | &wdt2 { |
| 299 | ti,no-reset-on-init; |
| 300 | ti,no-idle-on-init; |
| 301 | }; |
| 302 | |
| 303 | &tscadc { |
| 304 | status = "okay"; |
| 305 | tsc { |
| 306 | ti,wires = <4>; |
| 307 | ti,x-plate-resistance = <200>; |
| 308 | ti,zx-cutoff-ratio = <40>; |
| 309 | ti,min_deviation = <60>; |
| 310 | ti,max_deviation = <600>; |
| 311 | ti,coordinate-readouts = <5>; |
| 312 | ti,wire-config = <0x00 0x11 0x22 0x33>; |
| 313 | |
| 314 | bnr-buttons { |
| 315 | Home-Button {}; |
| 316 | }; |
| 317 | }; |
| 318 | |
| 319 | adc { |
| 320 | ti,adc-channels = <5 6 7>; |
| 321 | }; |
| 322 | }; |
| 323 | |
| 324 | &timer6 { /* used for cpsw end device */ |
| 325 | status = "okay"; |
| 326 | ti,no-reset-on-init; |
| 327 | ti,no-idle-on-init; |
| 328 | }; |
| 329 | |
| 330 | &timer7 { /* used for cpsw end device */ |
| 331 | status = "okay"; |
| 332 | ti,no-reset-on-init; |
| 333 | ti,no-idle-on-init; |
| 334 | }; |
| 335 | |
| 336 | &wdt2 { |
| 337 | status = "okay"; |
| 338 | ti,no-reset-on-init; |
| 339 | ti,no-idle-on-init; |
| 340 | }; |
| 341 | |
| 342 | &epwmss0 { |
| 343 | status = "okay"; |
| 344 | }; |
| 345 | |
| 346 | &tscadc { |
| 347 | status = "okay"; |
| 348 | }; |
| 349 | |
| 350 | &dcan0 { |
| 351 | status = "okay"; |
| 352 | }; |
| 353 | |
| 354 | &dcan1 { |
| 355 | status = "okay"; |
| 356 | }; |
| 357 | |
| 358 | &sham { |
| 359 | status = "disabled"; |
| 360 | }; |
| 361 | |
| 362 | &aes { |
| 363 | status = "disabled"; |
| 364 | }; |
| 365 | |
| 366 | &rng { |
| 367 | status = "disabled"; |
| 368 | }; |