1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-only 2724ba675SRob Herring/* 3724ba675SRob Herring * Device Tree for DA850 EVM board 4724ba675SRob Herring * 5724ba675SRob Herring * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/ 6724ba675SRob Herring */ 7724ba675SRob Herring/dts-v1/; 8724ba675SRob Herring#include "da850.dtsi" 9724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 10724ba675SRob Herring 11724ba675SRob Herring/ { 12724ba675SRob Herring compatible = "ti,da850-evm", "ti,da850"; 13724ba675SRob Herring model = "DA850/AM1808/OMAP-L138 EVM"; 14724ba675SRob Herring 15724ba675SRob Herring chosen { 16724ba675SRob Herring stdout-path = &serial2; 17724ba675SRob Herring }; 18724ba675SRob Herring 19724ba675SRob Herring aliases { 20724ba675SRob Herring serial0 = &serial0; 21724ba675SRob Herring serial1 = &serial1; 22724ba675SRob Herring serial2 = &serial2; 23724ba675SRob Herring ethernet0 = ð0; 24724ba675SRob Herring spi0 = &spi1; 25724ba675SRob Herring }; 26724ba675SRob Herring 27724ba675SRob Herring backlight: backlight-pwm { 28724ba675SRob Herring pinctrl-names = "default"; 29724ba675SRob Herring pinctrl-0 = <&ecap2_pins>; 30724ba675SRob Herring power-supply = <&backlight_lcd>; 31724ba675SRob Herring compatible = "pwm-backlight"; 32724ba675SRob Herring /* 33724ba675SRob Herring * The PWM here corresponds to production hardware. The 34724ba675SRob Herring * schematic needs to be 1015171 (15 March 2010), Rev A 35724ba675SRob Herring * or newer. 36724ba675SRob Herring */ 37724ba675SRob Herring pwms = <&ecap2 0 50000 0>; 38724ba675SRob Herring brightness-levels = <0 10 20 30 40 50 60 70 80 90 99>; 39724ba675SRob Herring default-brightness-level = <7>; 40724ba675SRob Herring }; 41724ba675SRob Herring 42724ba675SRob Herring panel { 43724ba675SRob Herring compatible = "ti,tilcdc,panel"; 44724ba675SRob Herring pinctrl-names = "default"; 45724ba675SRob Herring pinctrl-0 = <&lcd_pins>; 46724ba675SRob Herring /* 47724ba675SRob Herring * The vpif and the LCD are mutually exclusive. 48724ba675SRob Herring * To enable VPIF, change the status below to 'disabled' then 49724ba675SRob Herring * then change the status of the vpif below to 'okay' 50724ba675SRob Herring */ 51724ba675SRob Herring status = "okay"; 52724ba675SRob Herring enable-gpios = <&gpio 40 GPIO_ACTIVE_HIGH>; /* lcd_panel_pwr */ 53724ba675SRob Herring 54724ba675SRob Herring panel-info { 55724ba675SRob Herring ac-bias = <255>; 56724ba675SRob Herring ac-bias-intrpt = <0>; 57724ba675SRob Herring dma-burst-sz = <16>; 58724ba675SRob Herring bpp = <16>; 59724ba675SRob Herring fdd = <0x80>; 60724ba675SRob Herring sync-edge = <0>; 61724ba675SRob Herring sync-ctrl = <1>; 62724ba675SRob Herring raster-order = <0>; 63724ba675SRob Herring fifo-th = <0>; 64724ba675SRob Herring }; 65724ba675SRob Herring 66724ba675SRob Herring display-timings { 67724ba675SRob Herring native-mode = <&timing0>; 68724ba675SRob Herring timing0: 480x272 { 69724ba675SRob Herring clock-frequency = <9000000>; 70724ba675SRob Herring hactive = <480>; 71724ba675SRob Herring vactive = <272>; 72724ba675SRob Herring hfront-porch = <3>; 73724ba675SRob Herring hback-porch = <2>; 74724ba675SRob Herring hsync-len = <42>; 75724ba675SRob Herring vback-porch = <3>; 76724ba675SRob Herring vfront-porch = <4>; 77724ba675SRob Herring vsync-len = <11>; 78724ba675SRob Herring hsync-active = <0>; 79724ba675SRob Herring vsync-active = <0>; 80724ba675SRob Herring de-active = <1>; 81724ba675SRob Herring pixelclk-active = <1>; 82724ba675SRob Herring }; 83724ba675SRob Herring }; 84724ba675SRob Herring }; 85724ba675SRob Herring 86724ba675SRob Herring vbat: fixedregulator0 { 87724ba675SRob Herring compatible = "regulator-fixed"; 88724ba675SRob Herring regulator-name = "vbat"; 89724ba675SRob Herring regulator-min-microvolt = <5000000>; 90724ba675SRob Herring regulator-max-microvolt = <5000000>; 91724ba675SRob Herring regulator-boot-on; 92724ba675SRob Herring }; 93724ba675SRob Herring 94724ba675SRob Herring baseboard_3v3: fixedregulator-3v3 { 95724ba675SRob Herring /* TPS73701DCQ */ 96724ba675SRob Herring compatible = "regulator-fixed"; 97724ba675SRob Herring regulator-name = "baseboard_3v3"; 98724ba675SRob Herring regulator-min-microvolt = <3300000>; 99724ba675SRob Herring regulator-max-microvolt = <3300000>; 100724ba675SRob Herring vin-supply = <&vbat>; 101724ba675SRob Herring regulator-always-on; 102724ba675SRob Herring regulator-boot-on; 103724ba675SRob Herring }; 104724ba675SRob Herring 105724ba675SRob Herring baseboard_1v8: fixedregulator-1v8 { 106724ba675SRob Herring /* TPS73701DCQ */ 107724ba675SRob Herring compatible = "regulator-fixed"; 108724ba675SRob Herring regulator-name = "baseboard_1v8"; 109724ba675SRob Herring regulator-min-microvolt = <1800000>; 110724ba675SRob Herring regulator-max-microvolt = <1800000>; 111724ba675SRob Herring vin-supply = <&vbat>; 112724ba675SRob Herring regulator-always-on; 113724ba675SRob Herring regulator-boot-on; 114724ba675SRob Herring }; 115724ba675SRob Herring 116724ba675SRob Herring backlight_lcd: backlight-regulator { 117724ba675SRob Herring compatible = "regulator-fixed"; 118724ba675SRob Herring regulator-name = "lcd_backlight_pwr"; 119724ba675SRob Herring regulator-min-microvolt = <3300000>; 120724ba675SRob Herring regulator-max-microvolt = <3300000>; 121724ba675SRob Herring gpio = <&gpio 47 GPIO_ACTIVE_HIGH>; /* lcd_backlight_pwr */ 122724ba675SRob Herring enable-active-high; 123724ba675SRob Herring }; 124724ba675SRob Herring 125724ba675SRob Herring sound { 126724ba675SRob Herring compatible = "simple-audio-card"; 127724ba675SRob Herring simple-audio-card,name = "DA850-OMAPL138 EVM"; 128724ba675SRob Herring simple-audio-card,widgets = 129724ba675SRob Herring "Line", "Line In", 130724ba675SRob Herring "Line", "Line Out"; 131724ba675SRob Herring simple-audio-card,routing = 132724ba675SRob Herring "LINE1L", "Line In", 133724ba675SRob Herring "LINE1R", "Line In", 134724ba675SRob Herring "Line Out", "LLOUT", 135724ba675SRob Herring "Line Out", "RLOUT"; 136724ba675SRob Herring simple-audio-card,format = "dsp_b"; 137724ba675SRob Herring simple-audio-card,bitclock-master = <&link0_codec>; 138724ba675SRob Herring simple-audio-card,frame-master = <&link0_codec>; 139724ba675SRob Herring simple-audio-card,bitclock-inversion; 140724ba675SRob Herring 141724ba675SRob Herring simple-audio-card,cpu { 142724ba675SRob Herring sound-dai = <&mcasp0>; 143724ba675SRob Herring system-clock-frequency = <24576000>; 144724ba675SRob Herring }; 145724ba675SRob Herring 146724ba675SRob Herring link0_codec: simple-audio-card,codec { 147724ba675SRob Herring sound-dai = <&tlv320aic3106>; 148724ba675SRob Herring system-clock-frequency = <24576000>; 149724ba675SRob Herring }; 150724ba675SRob Herring }; 151724ba675SRob Herring}; 152724ba675SRob Herring 153724ba675SRob Herring&ecap2 { 154724ba675SRob Herring status = "okay"; 155724ba675SRob Herring}; 156724ba675SRob Herring 157724ba675SRob Herring&ref_clk { 158724ba675SRob Herring clock-frequency = <24000000>; 159724ba675SRob Herring}; 160724ba675SRob Herring 161724ba675SRob Herring&pmx_core { 162724ba675SRob Herring status = "okay"; 163724ba675SRob Herring 164*d49b1e4fSTony Lindgren mcasp0_pins: mcasp0-pins { 165724ba675SRob Herring pinctrl-single,bits = < 166724ba675SRob Herring /* 167724ba675SRob Herring * AHCLKX, ACLKX, AFSX, AHCLKR, ACLKR, 168724ba675SRob Herring * AFSR, AMUTE 169724ba675SRob Herring */ 170724ba675SRob Herring 0x00 0x11111111 0xffffffff 171724ba675SRob Herring /* AXR11, AXR12 */ 172724ba675SRob Herring 0x04 0x00011000 0x000ff000 173724ba675SRob Herring >; 174724ba675SRob Herring }; 175*d49b1e4fSTony Lindgren nand_pins: nand-pins { 176724ba675SRob Herring pinctrl-single,bits = < 177724ba675SRob Herring /* EMA_WAIT[0], EMA_OE, EMA_WE, EMA_CS[4], EMA_CS[3] */ 178724ba675SRob Herring 0x1c 0x10110110 0xf0ff0ff0 179724ba675SRob Herring /* 180724ba675SRob Herring * EMA_D[0], EMA_D[1], EMA_D[2], 181724ba675SRob Herring * EMA_D[3], EMA_D[4], EMA_D[5], 182724ba675SRob Herring * EMA_D[6], EMA_D[7] 183724ba675SRob Herring */ 184724ba675SRob Herring 0x24 0x11111111 0xffffffff 185724ba675SRob Herring /* EMA_A[1], EMA_A[2] */ 186724ba675SRob Herring 0x30 0x01100000 0x0ff00000 187724ba675SRob Herring >; 188724ba675SRob Herring }; 189724ba675SRob Herring}; 190724ba675SRob Herring 191724ba675SRob Herring&cpu { 192724ba675SRob Herring cpu-supply = <&vdcdc3_reg>; 193724ba675SRob Herring}; 194724ba675SRob Herring 195724ba675SRob Herring/* 196724ba675SRob Herring * The standard da850-evm kits and SOM's are 375MHz so enable this operating 197724ba675SRob Herring * point by default. Higher frequencies must be enabled for custom boards with 198724ba675SRob Herring * other variants of the SoC. 199724ba675SRob Herring */ 200724ba675SRob Herring&opp_375 { 201724ba675SRob Herring status = "okay"; 202724ba675SRob Herring}; 203724ba675SRob Herring 204724ba675SRob Herring&sata { 205724ba675SRob Herring status = "okay"; 206724ba675SRob Herring}; 207724ba675SRob Herring 208724ba675SRob Herring&serial0 { 209724ba675SRob Herring status = "okay"; 210724ba675SRob Herring}; 211724ba675SRob Herring 212724ba675SRob Herring&serial1 { 213724ba675SRob Herring status = "okay"; 214724ba675SRob Herring}; 215724ba675SRob Herring 216724ba675SRob Herring&serial2 { 217724ba675SRob Herring status = "okay"; 218724ba675SRob Herring}; 219724ba675SRob Herring 220724ba675SRob Herring&rtc0 { 221724ba675SRob Herring status = "okay"; 222724ba675SRob Herring}; 223724ba675SRob Herring 224724ba675SRob Herring&lcdc { 225724ba675SRob Herring status = "okay"; 226724ba675SRob Herring}; 227724ba675SRob Herring 228724ba675SRob Herring&i2c0 { 229724ba675SRob Herring status = "okay"; 230724ba675SRob Herring clock-frequency = <100000>; 231724ba675SRob Herring pinctrl-names = "default"; 232724ba675SRob Herring pinctrl-0 = <&i2c0_pins>; 233724ba675SRob Herring 234724ba675SRob Herring tps: tps@48 { 235724ba675SRob Herring reg = <0x48>; 236724ba675SRob Herring }; 237724ba675SRob Herring tlv320aic3106: tlv320aic3106@18 { 238724ba675SRob Herring #sound-dai-cells = <0>; 239724ba675SRob Herring compatible = "ti,tlv320aic3106"; 240724ba675SRob Herring reg = <0x18>; 241724ba675SRob Herring status = "okay"; 242724ba675SRob Herring 243724ba675SRob Herring /* Regulators */ 244724ba675SRob Herring IOVDD-supply = <&vdcdc2_reg>; 245724ba675SRob Herring AVDD-supply = <&baseboard_3v3>; 246724ba675SRob Herring DRVDD-supply = <&baseboard_3v3>; 247724ba675SRob Herring DVDD-supply = <&baseboard_1v8>; 248724ba675SRob Herring }; 249724ba675SRob Herring tca6416: gpio@20 { 250724ba675SRob Herring compatible = "ti,tca6416"; 251724ba675SRob Herring reg = <0x20>; 252724ba675SRob Herring gpio-controller; 253724ba675SRob Herring #gpio-cells = <2>; 254724ba675SRob Herring }; 255724ba675SRob Herring tca6416_bb: gpio@21 { 256724ba675SRob Herring compatible = "ti,tca6416"; 257724ba675SRob Herring reg = <0x21>; 258724ba675SRob Herring gpio-controller; 259724ba675SRob Herring #gpio-cells = <2>; 260724ba675SRob Herring }; 261724ba675SRob Herring}; 262724ba675SRob Herring 263724ba675SRob Herring&wdt { 264724ba675SRob Herring status = "okay"; 265724ba675SRob Herring}; 266724ba675SRob Herring 267724ba675SRob Herring&mmc0 { 268724ba675SRob Herring max-frequency = <50000000>; 269724ba675SRob Herring bus-width = <4>; 270724ba675SRob Herring status = "okay"; 271724ba675SRob Herring pinctrl-names = "default"; 272724ba675SRob Herring pinctrl-0 = <&mmc0_pins>; 273724ba675SRob Herring cd-gpios = <&gpio 64 GPIO_ACTIVE_LOW>; 274724ba675SRob Herring wp-gpios = <&gpio 65 GPIO_ACTIVE_HIGH>; 275724ba675SRob Herring}; 276724ba675SRob Herring 277724ba675SRob Herring&spi1 { 278724ba675SRob Herring status = "okay"; 279724ba675SRob Herring pinctrl-names = "default"; 280724ba675SRob Herring pinctrl-0 = <&spi1_pins &spi1_cs0_pin>; 281724ba675SRob Herring flash: flash@0 { 282724ba675SRob Herring #address-cells = <1>; 283724ba675SRob Herring #size-cells = <1>; 284724ba675SRob Herring compatible = "jedec,spi-nor"; 285724ba675SRob Herring spi-max-frequency = <30000000>; 286724ba675SRob Herring m25p,fast-read; 287724ba675SRob Herring reg = <0>; 288724ba675SRob Herring partition@0 { 289724ba675SRob Herring label = "U-Boot-SPL"; 290724ba675SRob Herring reg = <0x00000000 0x00010000>; 291724ba675SRob Herring read-only; 292724ba675SRob Herring }; 293724ba675SRob Herring partition@1 { 294724ba675SRob Herring label = "U-Boot"; 295724ba675SRob Herring reg = <0x00010000 0x00080000>; 296724ba675SRob Herring read-only; 297724ba675SRob Herring }; 298724ba675SRob Herring partition@2 { 299724ba675SRob Herring label = "U-Boot-Env"; 300724ba675SRob Herring reg = <0x00090000 0x00010000>; 301724ba675SRob Herring read-only; 302724ba675SRob Herring }; 303724ba675SRob Herring partition@3 { 304724ba675SRob Herring label = "Kernel"; 305724ba675SRob Herring reg = <0x000a0000 0x00280000>; 306724ba675SRob Herring }; 307724ba675SRob Herring partition@4 { 308724ba675SRob Herring label = "Filesystem"; 309724ba675SRob Herring reg = <0x00320000 0x00400000>; 310724ba675SRob Herring }; 311724ba675SRob Herring partition@5 { 312724ba675SRob Herring label = "MAC-Address"; 313724ba675SRob Herring reg = <0x007f0000 0x00010000>; 314724ba675SRob Herring read-only; 315724ba675SRob Herring }; 316724ba675SRob Herring }; 317724ba675SRob Herring}; 318724ba675SRob Herring 319724ba675SRob Herring&mdio { 320724ba675SRob Herring status = "okay"; 321724ba675SRob Herring pinctrl-names = "default"; 322724ba675SRob Herring pinctrl-0 = <&mdio_pins>; 323724ba675SRob Herring bus_freq = <2200000>; 324724ba675SRob Herring}; 325724ba675SRob Herring 326724ba675SRob Herringð0 { 327724ba675SRob Herring status = "okay"; 328724ba675SRob Herring pinctrl-names = "default"; 329724ba675SRob Herring pinctrl-0 = <&mii_pins>; 330724ba675SRob Herring}; 331724ba675SRob Herring 332724ba675SRob Herring&gpio { 333724ba675SRob Herring status = "okay"; 334724ba675SRob Herring}; 335724ba675SRob Herring 336724ba675SRob Herring/include/ "../../tps6507x.dtsi" 337724ba675SRob Herring 338724ba675SRob Herring&tps { 339724ba675SRob Herring vdcdc1_2-supply = <&vbat>; 340724ba675SRob Herring vdcdc3-supply = <&vbat>; 341724ba675SRob Herring vldo1_2-supply = <&vbat>; 342724ba675SRob Herring 343724ba675SRob Herring regulators { 344724ba675SRob Herring vdcdc1_reg: regulator@0 { 345724ba675SRob Herring regulator-name = "VDCDC1_3.3V"; 346724ba675SRob Herring regulator-min-microvolt = <3150000>; 347724ba675SRob Herring regulator-max-microvolt = <3450000>; 348724ba675SRob Herring regulator-always-on; 349724ba675SRob Herring regulator-boot-on; 350724ba675SRob Herring }; 351724ba675SRob Herring 352724ba675SRob Herring vdcdc2_reg: regulator@1 { 353724ba675SRob Herring regulator-name = "VDCDC2_3.3V"; 354724ba675SRob Herring regulator-min-microvolt = <1710000>; 355724ba675SRob Herring regulator-max-microvolt = <3450000>; 356724ba675SRob Herring regulator-always-on; 357724ba675SRob Herring regulator-boot-on; 358724ba675SRob Herring ti,defdcdc_default = <1>; 359724ba675SRob Herring }; 360724ba675SRob Herring 361724ba675SRob Herring vdcdc3_reg: regulator@2 { 362724ba675SRob Herring regulator-name = "VDCDC3_1.2V"; 363724ba675SRob Herring regulator-min-microvolt = <950000>; 364724ba675SRob Herring regulator-max-microvolt = <1350000>; 365724ba675SRob Herring regulator-always-on; 366724ba675SRob Herring regulator-boot-on; 367724ba675SRob Herring ti,defdcdc_default = <1>; 368724ba675SRob Herring }; 369724ba675SRob Herring 370724ba675SRob Herring ldo1_reg: regulator@3 { 371724ba675SRob Herring regulator-name = "LDO1_1.8V"; 372724ba675SRob Herring regulator-min-microvolt = <1710000>; 373724ba675SRob Herring regulator-max-microvolt = <1890000>; 374724ba675SRob Herring regulator-always-on; 375724ba675SRob Herring regulator-boot-on; 376724ba675SRob Herring }; 377724ba675SRob Herring 378724ba675SRob Herring ldo2_reg: regulator@4 { 379724ba675SRob Herring regulator-name = "LDO2_1.2V"; 380724ba675SRob Herring regulator-min-microvolt = <1140000>; 381724ba675SRob Herring regulator-max-microvolt = <1320000>; 382724ba675SRob Herring regulator-always-on; 383724ba675SRob Herring regulator-boot-on; 384724ba675SRob Herring }; 385724ba675SRob Herring }; 386724ba675SRob Herring}; 387724ba675SRob Herring 388724ba675SRob Herring&mcasp0 { 389724ba675SRob Herring #sound-dai-cells = <0>; 390724ba675SRob Herring status = "okay"; 391724ba675SRob Herring pinctrl-names = "default"; 392724ba675SRob Herring pinctrl-0 = <&mcasp0_pins>; 393724ba675SRob Herring 394724ba675SRob Herring op-mode = <0>; /* MCASP_IIS_MODE */ 395724ba675SRob Herring tdm-slots = <2>; 396724ba675SRob Herring /* 4 serializer */ 397724ba675SRob Herring serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */ 398724ba675SRob Herring 0 0 0 0 399724ba675SRob Herring 0 0 0 0 400724ba675SRob Herring 0 0 0 1 401724ba675SRob Herring 2 0 0 0 402724ba675SRob Herring >; 403724ba675SRob Herring tx-num-evt = <32>; 404724ba675SRob Herring rx-num-evt = <32>; 405724ba675SRob Herring}; 406724ba675SRob Herring 407724ba675SRob Herring&edma0 { 408724ba675SRob Herring ti,edma-reserved-slot-ranges = <32 50>; 409724ba675SRob Herring}; 410724ba675SRob Herring 411724ba675SRob Herring&edma1 { 412724ba675SRob Herring ti,edma-reserved-slot-ranges = <32 90>; 413724ba675SRob Herring}; 414724ba675SRob Herring 415724ba675SRob Herring&aemif { 416724ba675SRob Herring pinctrl-names = "default"; 417724ba675SRob Herring pinctrl-0 = <&nand_pins>; 418724ba675SRob Herring status = "okay"; 419724ba675SRob Herring cs3 { 420724ba675SRob Herring #address-cells = <2>; 421724ba675SRob Herring #size-cells = <1>; 422724ba675SRob Herring clock-ranges; 423724ba675SRob Herring ranges; 424724ba675SRob Herring 425724ba675SRob Herring ti,cs-chipselect = <3>; 426724ba675SRob Herring 427724ba675SRob Herring nand@2000000,0 { 428724ba675SRob Herring compatible = "ti,davinci-nand"; 429724ba675SRob Herring #address-cells = <1>; 430724ba675SRob Herring #size-cells = <1>; 431724ba675SRob Herring reg = <0 0x02000000 0x02000000 432724ba675SRob Herring 1 0x00000000 0x00008000>; 433724ba675SRob Herring 434724ba675SRob Herring ti,davinci-chipselect = <1>; 435724ba675SRob Herring ti,davinci-mask-ale = <0>; 436724ba675SRob Herring ti,davinci-mask-cle = <0>; 437724ba675SRob Herring ti,davinci-mask-chipsel = <0>; 438724ba675SRob Herring ti,davinci-ecc-mode = "hw"; 439724ba675SRob Herring ti,davinci-ecc-bits = <4>; 440724ba675SRob Herring ti,davinci-nand-use-bbt; 441724ba675SRob Herring }; 442724ba675SRob Herring }; 443724ba675SRob Herring}; 444724ba675SRob Herring 445724ba675SRob Herring&usb_phy { 446724ba675SRob Herring status = "okay"; 447724ba675SRob Herring}; 448724ba675SRob Herring 449724ba675SRob Herring&usb0 { 450724ba675SRob Herring status = "okay"; 451724ba675SRob Herring}; 452724ba675SRob Herring 453724ba675SRob Herring&usb1 { 454724ba675SRob Herring status = "okay"; 455724ba675SRob Herring}; 456724ba675SRob Herring 457724ba675SRob Herring&vpif { 458724ba675SRob Herring pinctrl-names = "default"; 459724ba675SRob Herring pinctrl-0 = <&vpif_capture_pins>, <&vpif_display_pins>; 460724ba675SRob Herring /* 461724ba675SRob Herring * The vpif and the LCD are mutually exclusive. 462724ba675SRob Herring * To enable VPIF, disable the ti,tilcdc,panel then 463724ba675SRob Herring * change the status below to 'okay' 464724ba675SRob Herring */ 465724ba675SRob Herring status = "disabled"; 466724ba675SRob Herring}; 467