Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  * Device Tree for DA850 EVM board
0004  *
0005  * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
0006  */
0007 /dts-v1/;
0008 #include "da850.dtsi"
0009 #include <dt-bindings/gpio/gpio.h>
0010 
0011 / {
0012         compatible = "ti,da850-evm", "ti,da850";
0013         model = "DA850/AM1808/OMAP-L138 EVM";
0014 
0015         chosen {
0016                 stdout-path = &serial2;
0017         };
0018 
0019         aliases {
0020                 serial0 = &serial0;
0021                 serial1 = &serial1;
0022                 serial2 = &serial2;
0023                 ethernet0 = &eth0;
0024                 spi0 = &spi1;
0025         };
0026 
0027         backlight: backlight-pwm {
0028                 pinctrl-names = "default";
0029                 pinctrl-0 = <&ecap2_pins>;
0030                 power-supply = <&backlight_lcd>;
0031                 compatible = "pwm-backlight";
0032                 /*
0033                  * The PWM here corresponds to production hardware. The
0034                  * schematic needs to be 1015171 (15 March 2010), Rev A
0035                  * or newer.
0036                  */
0037                 pwms = <&ecap2 0 50000 0>;
0038                 brightness-levels = <0 10 20 30 40 50 60 70 80 90 99>;
0039                 default-brightness-level = <7>;
0040         };
0041 
0042         panel {
0043                 compatible = "ti,tilcdc,panel";
0044                 pinctrl-names = "default";
0045                 pinctrl-0 = <&lcd_pins>;
0046                 /*
0047                  * The vpif and the LCD are mutually exclusive.
0048                  * To enable VPIF, change the status below to 'disabled' then
0049                  * then change the status of the vpif below to 'okay'
0050                  */
0051                 status = "okay";
0052                 enable-gpios = <&gpio 40 GPIO_ACTIVE_HIGH>; /* lcd_panel_pwr */
0053 
0054                 panel-info {
0055                         ac-bias = <255>;
0056                         ac-bias-intrpt = <0>;
0057                         dma-burst-sz = <16>;
0058                         bpp = <16>;
0059                         fdd = <0x80>;
0060                         sync-edge = <0>;
0061                         sync-ctrl = <1>;
0062                         raster-order = <0>;
0063                         fifo-th = <0>;
0064                 };
0065 
0066                 display-timings {
0067                         native-mode = <&timing0>;
0068                         timing0: 480x272 {
0069                                 clock-frequency = <9000000>;
0070                                 hactive = <480>;
0071                                 vactive = <272>;
0072                                 hfront-porch = <3>;
0073                                 hback-porch = <2>;
0074                                 hsync-len = <42>;
0075                                 vback-porch = <3>;
0076                                 vfront-porch = <4>;
0077                                 vsync-len = <11>;
0078                                 hsync-active = <0>;
0079                                 vsync-active = <0>;
0080                                 de-active = <1>;
0081                                 pixelclk-active = <1>;
0082                         };
0083                 };
0084         };
0085 
0086         vbat: fixedregulator0 {
0087                 compatible = "regulator-fixed";
0088                 regulator-name = "vbat";
0089                 regulator-min-microvolt = <5000000>;
0090                 regulator-max-microvolt = <5000000>;
0091                 regulator-boot-on;
0092         };
0093 
0094         baseboard_3v3: fixedregulator-3v3 {
0095                 /* TPS73701DCQ */
0096                 compatible = "regulator-fixed";
0097                 regulator-name = "baseboard_3v3";
0098                 regulator-min-microvolt = <3300000>;
0099                 regulator-max-microvolt = <3300000>;
0100                 vin-supply = <&vbat>;
0101                 regulator-always-on;
0102                 regulator-boot-on;
0103         };
0104 
0105         baseboard_1v8: fixedregulator-1v8 {
0106                 /* TPS73701DCQ */
0107                 compatible = "regulator-fixed";
0108                 regulator-name = "baseboard_1v8";
0109                 regulator-min-microvolt = <1800000>;
0110                 regulator-max-microvolt = <1800000>;
0111                 vin-supply = <&vbat>;
0112                 regulator-always-on;
0113                 regulator-boot-on;
0114         };
0115 
0116         backlight_lcd: backlight-regulator {
0117                 compatible = "regulator-fixed";
0118                 regulator-name = "lcd_backlight_pwr";
0119                 regulator-min-microvolt = <3300000>;
0120                 regulator-max-microvolt = <3300000>;
0121                 gpio = <&gpio 47 GPIO_ACTIVE_HIGH>; /* lcd_backlight_pwr */
0122                 enable-active-high;
0123         };
0124 
0125         sound {
0126                 compatible = "simple-audio-card";
0127                 simple-audio-card,name = "DA850-OMAPL138 EVM";
0128                 simple-audio-card,widgets =
0129                         "Line", "Line In",
0130                         "Line", "Line Out";
0131                 simple-audio-card,routing =
0132                         "LINE1L", "Line In",
0133                         "LINE1R", "Line In",
0134                         "Line Out", "LLOUT",
0135                         "Line Out", "RLOUT";
0136                 simple-audio-card,format = "dsp_b";
0137                 simple-audio-card,bitclock-master = <&link0_codec>;
0138                 simple-audio-card,frame-master = <&link0_codec>;
0139                 simple-audio-card,bitclock-inversion;
0140 
0141                 simple-audio-card,cpu {
0142                         sound-dai = <&mcasp0>;
0143                         system-clock-frequency = <24576000>;
0144                 };
0145 
0146                 link0_codec: simple-audio-card,codec {
0147                         sound-dai = <&tlv320aic3106>;
0148                         system-clock-frequency = <24576000>;
0149                 };
0150         };
0151 };
0152 
0153 &ecap2 {
0154         status = "okay";
0155 };
0156 
0157 &ref_clk {
0158         clock-frequency = <24000000>;
0159 };
0160 
0161 &pmx_core {
0162         status = "okay";
0163 
0164         mcasp0_pins: pinmux_mcasp0_pins {
0165                 pinctrl-single,bits = <
0166                         /*
0167                          * AHCLKX, ACLKX, AFSX, AHCLKR, ACLKR,
0168                          * AFSR, AMUTE
0169                          */
0170                         0x00 0x11111111 0xffffffff
0171                         /* AXR11, AXR12 */
0172                         0x04 0x00011000 0x000ff000
0173                 >;
0174         };
0175         nand_pins: nand_pins {
0176                 pinctrl-single,bits = <
0177                         /* EMA_WAIT[0], EMA_OE, EMA_WE, EMA_CS[4], EMA_CS[3] */
0178                         0x1c 0x10110110  0xf0ff0ff0
0179                         /*
0180                          * EMA_D[0], EMA_D[1], EMA_D[2],
0181                          * EMA_D[3], EMA_D[4], EMA_D[5],
0182                          * EMA_D[6], EMA_D[7]
0183                          */
0184                         0x24 0x11111111  0xffffffff
0185                         /* EMA_A[1], EMA_A[2] */
0186                         0x30 0x01100000  0x0ff00000
0187                 >;
0188         };
0189 };
0190 
0191 &cpu {
0192         cpu-supply = <&vdcdc3_reg>;
0193 };
0194 
0195 /*
0196  * The standard da850-evm kits and SOM's are 375MHz so enable this operating
0197  * point by default. Higher frequencies must be enabled for custom boards with
0198  * other variants of the SoC.
0199  */
0200 &opp_375 {
0201         status = "okay";
0202 };
0203 
0204 &sata {
0205         status = "okay";
0206 };
0207 
0208 &serial0 {
0209         status = "okay";
0210 };
0211 
0212 &serial1 {
0213         status = "okay";
0214 };
0215 
0216 &serial2 {
0217         status = "okay";
0218 };
0219 
0220 &rtc0 {
0221         status = "okay";
0222 };
0223 
0224 &lcdc {
0225         status = "okay";
0226 };
0227 
0228 &i2c0 {
0229         status = "okay";
0230         clock-frequency = <100000>;
0231         pinctrl-names = "default";
0232         pinctrl-0 = <&i2c0_pins>;
0233 
0234         tps: tps@48 {
0235                 reg = <0x48>;
0236         };
0237         tlv320aic3106: tlv320aic3106@18 {
0238                 #sound-dai-cells = <0>;
0239                 compatible = "ti,tlv320aic3106";
0240                 reg = <0x18>;
0241                 status = "okay";
0242 
0243                 /* Regulators */
0244                 IOVDD-supply = <&vdcdc2_reg>;
0245                 AVDD-supply = <&baseboard_3v3>;
0246                 DRVDD-supply = <&baseboard_3v3>;
0247                 DVDD-supply = <&baseboard_1v8>;
0248         };
0249         tca6416: gpio@20 {
0250                 compatible = "ti,tca6416";
0251                 reg = <0x20>;
0252                 gpio-controller;
0253                 #gpio-cells = <2>;
0254         };
0255         tca6416_bb: gpio@21 {
0256                 compatible = "ti,tca6416";
0257                 reg = <0x21>;
0258                 gpio-controller;
0259                 #gpio-cells = <2>;
0260         };
0261 };
0262 
0263 &wdt {
0264         status = "okay";
0265 };
0266 
0267 &mmc0 {
0268         max-frequency = <50000000>;
0269         bus-width = <4>;
0270         status = "okay";
0271         pinctrl-names = "default";
0272         pinctrl-0 = <&mmc0_pins>;
0273         cd-gpios = <&gpio 64 GPIO_ACTIVE_LOW>;
0274         wp-gpios = <&gpio 65 GPIO_ACTIVE_HIGH>;
0275 };
0276 
0277 &spi1 {
0278         status = "okay";
0279         pinctrl-names = "default";
0280         pinctrl-0 = <&spi1_pins &spi1_cs0_pin>;
0281         flash: flash@0 {
0282                 #address-cells = <1>;
0283                 #size-cells = <1>;
0284                 compatible = "jedec,spi-nor";
0285                 spi-max-frequency = <30000000>;
0286                 m25p,fast-read;
0287                 reg = <0>;
0288                 partition@0 {
0289                         label = "U-Boot-SPL";
0290                         reg = <0x00000000 0x00010000>;
0291                         read-only;
0292                 };
0293                 partition@1 {
0294                         label = "U-Boot";
0295                         reg = <0x00010000 0x00080000>;
0296                         read-only;
0297                 };
0298                 partition@2 {
0299                         label = "U-Boot-Env";
0300                         reg = <0x00090000 0x00010000>;
0301                         read-only;
0302                 };
0303                 partition@3 {
0304                         label = "Kernel";
0305                         reg = <0x000a0000 0x00280000>;
0306                 };
0307                 partition@4 {
0308                         label = "Filesystem";
0309                         reg = <0x00320000 0x00400000>;
0310                 };
0311                 partition@5 {
0312                         label = "MAC-Address";
0313                         reg = <0x007f0000 0x00010000>;
0314                         read-only;
0315                 };
0316         };
0317 };
0318 
0319 &mdio {
0320         status = "okay";
0321         pinctrl-names = "default";
0322         pinctrl-0 = <&mdio_pins>;
0323         bus_freq = <2200000>;
0324 };
0325 
0326 &eth0 {
0327         status = "okay";
0328         pinctrl-names = "default";
0329         pinctrl-0 = <&mii_pins>;
0330 };
0331 
0332 &gpio {
0333         status = "okay";
0334 };
0335 
0336 /include/ "tps6507x.dtsi"
0337 
0338 &tps {
0339         vdcdc1_2-supply = <&vbat>;
0340         vdcdc3-supply = <&vbat>;
0341         vldo1_2-supply = <&vbat>;
0342 
0343         regulators {
0344                 vdcdc1_reg: regulator@0 {
0345                         regulator-name = "VDCDC1_3.3V";
0346                         regulator-min-microvolt = <3150000>;
0347                         regulator-max-microvolt = <3450000>;
0348                         regulator-always-on;
0349                         regulator-boot-on;
0350                 };
0351 
0352                 vdcdc2_reg: regulator@1 {
0353                         regulator-name = "VDCDC2_3.3V";
0354                         regulator-min-microvolt = <1710000>;
0355                         regulator-max-microvolt = <3450000>;
0356                         regulator-always-on;
0357                         regulator-boot-on;
0358                         ti,defdcdc_default = <1>;
0359                 };
0360 
0361                 vdcdc3_reg: regulator@2 {
0362                         regulator-name = "VDCDC3_1.2V";
0363                         regulator-min-microvolt = <950000>;
0364                         regulator-max-microvolt = <1350000>;
0365                         regulator-always-on;
0366                         regulator-boot-on;
0367                         ti,defdcdc_default = <1>;
0368                 };
0369 
0370                 ldo1_reg: regulator@3 {
0371                         regulator-name = "LDO1_1.8V";
0372                         regulator-min-microvolt = <1710000>;
0373                         regulator-max-microvolt = <1890000>;
0374                         regulator-always-on;
0375                         regulator-boot-on;
0376                 };
0377 
0378                 ldo2_reg: regulator@4 {
0379                         regulator-name = "LDO2_1.2V";
0380                         regulator-min-microvolt = <1140000>;
0381                         regulator-max-microvolt = <1320000>;
0382                         regulator-always-on;
0383                         regulator-boot-on;
0384                 };
0385         };
0386 };
0387 
0388 &mcasp0 {
0389         #sound-dai-cells = <0>;
0390         status = "okay";
0391         pinctrl-names = "default";
0392         pinctrl-0 = <&mcasp0_pins>;
0393 
0394         op-mode = <0>;          /* MCASP_IIS_MODE */
0395         tdm-slots = <2>;
0396         /* 4 serializer */
0397         serial-dir = <  /* 0: INACTIVE, 1: TX, 2: RX */
0398                 0 0 0 0
0399                 0 0 0 0
0400                 0 0 0 1
0401                 2 0 0 0
0402         >;
0403         tx-num-evt = <32>;
0404         rx-num-evt = <32>;
0405 };
0406 
0407 &edma0 {
0408         ti,edma-reserved-slot-ranges = <32 50>;
0409 };
0410 
0411 &edma1 {
0412         ti,edma-reserved-slot-ranges = <32 90>;
0413 };
0414 
0415 &aemif {
0416         pinctrl-names = "default";
0417         pinctrl-0 = <&nand_pins>;
0418         status = "ok";
0419         cs3 {
0420                 #address-cells = <2>;
0421                 #size-cells = <1>;
0422                 clock-ranges;
0423                 ranges;
0424 
0425                 ti,cs-chipselect = <3>;
0426 
0427                 nand@2000000,0 {
0428                         compatible = "ti,davinci-nand";
0429                         #address-cells = <1>;
0430                         #size-cells = <1>;
0431                         reg = <0 0x02000000 0x02000000
0432                                1 0x00000000 0x00008000>;
0433 
0434                         ti,davinci-chipselect = <1>;
0435                         ti,davinci-mask-ale = <0>;
0436                         ti,davinci-mask-cle = <0>;
0437                         ti,davinci-mask-chipsel = <0>;
0438                         ti,davinci-ecc-mode = "hw";
0439                         ti,davinci-ecc-bits = <4>;
0440                         ti,davinci-nand-use-bbt;
0441                 };
0442         };
0443 };
0444 
0445 &usb_phy {
0446         status = "okay";
0447 };
0448 
0449 &usb0 {
0450         status = "okay";
0451 };
0452 
0453 &usb1 {
0454         status = "okay";
0455 };
0456 
0457 &vpif {
0458         pinctrl-names = "default";
0459         pinctrl-0 = <&vpif_capture_pins>, <&vpif_display_pins>;
0460         /*
0461          * The vpif and the LCD are mutually exclusive.
0462          * To enable VPIF, disable the ti,tilcdc,panel then
0463          * change the status below to 'okay'
0464          */
0465         status = "disabled";
0466 };