Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /dts-v1/;
0003 
0004 #include "dra62x.dtsi"
0005 #include <dt-bindings/interrupt-controller/irq.h>
0006 
0007 / {
0008         model = "DRA62x J5 Eco EVM";
0009         compatible = "ti,dra62x-j5eco-evm", "ti,dra62x", "ti,dm8148", "ti,dm814";
0010 
0011         memory@80000000 {
0012                 device_type = "memory";
0013                 reg = <0x80000000 0x40000000>;  /* 1 GB */
0014         };
0015 
0016         /* MIC94060YC6 controlled by SD1_POW pin */
0017         vmmcsd_fixed: fixedregulator0 {
0018                 compatible = "regulator-fixed";
0019                 regulator-name = "vmmcsd_fixed";
0020                 regulator-min-microvolt = <3300000>;
0021                 regulator-max-microvolt = <3300000>;
0022         };
0023 };
0024 
0025 &cpsw_emac0 {
0026         phy-handle = <&ethphy0>;
0027         phy-mode = "rgmii-id";
0028 };
0029 
0030 &cpsw_emac1 {
0031         phy-handle = <&ethphy1>;
0032         phy-mode = "rgmii-id";
0033 };
0034 
0035 &davinci_mdio {
0036         ethphy0: ethernet-phy@0 {
0037                 reg = <0>;
0038         };
0039 
0040         ethphy1: ethernet-phy@1 {
0041                 reg = <1>;
0042         };
0043 };
0044 
0045 &gpmc {
0046         ranges = <0 0 0x04000000 0x01000000>;   /* CS0: 16MB for NAND */
0047 
0048         nand@0,0 {
0049                 compatible = "ti,omap2-nand";
0050                 reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
0051                 interrupt-parent = <&gpmc>;
0052                 interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
0053                              <1 IRQ_TYPE_NONE>; /* termcount */
0054                 linux,mtd-name = "micron,mt29f2g16aadwp";
0055                 #address-cells = <1>;
0056                 #size-cells = <1>;
0057                 ti,nand-ecc-opt = "bch8";
0058                 nand-bus-width = <16>;
0059                 gpmc,device-width = <2>;
0060                 gpmc,sync-clk-ps = <0>;
0061                 gpmc,cs-on-ns = <0>;
0062                 gpmc,cs-rd-off-ns = <44>;
0063                 gpmc,cs-wr-off-ns = <44>;
0064                 gpmc,adv-on-ns = <6>;
0065                 gpmc,adv-rd-off-ns = <34>;
0066                 gpmc,adv-wr-off-ns = <44>;
0067                 gpmc,we-on-ns = <0>;
0068                 gpmc,we-off-ns = <40>;
0069                 gpmc,oe-on-ns = <0>;
0070                 gpmc,oe-off-ns = <54>;
0071                 gpmc,access-ns = <64>;
0072                 gpmc,rd-cycle-ns = <82>;
0073                 gpmc,wr-cycle-ns = <82>;
0074                 gpmc,bus-turnaround-ns = <0>;
0075                 gpmc,cycle2cycle-delay-ns = <0>;
0076                 gpmc,clk-activation-ns = <0>;
0077                 gpmc,wr-access-ns = <40>;
0078                 gpmc,wr-data-mux-bus-ns = <0>;
0079                 partition@0 {
0080                         label = "X-Loader";
0081                         reg = <0 0x80000>;
0082                 };
0083                 partition@80000 {
0084                         label = "U-Boot";
0085                         reg = <0x80000 0x1c0000>;
0086                 };
0087                 partition@1c0000 {
0088                         label = "Environment";
0089                         reg = <0x240000 0x40000>;
0090                 };
0091                 partition@280000 {
0092                         label = "Kernel";
0093                         reg = <0x280000 0x500000>;
0094                 };
0095                 partition@780000 {
0096                         label = "Filesystem";
0097                         reg = <0x780000 0xf880000>;
0098                 };
0099         };
0100 };
0101 
0102 &mmc2 {
0103         pinctrl-names = "default";
0104         pinctrl-0 = <&sd1_pins>;
0105         vmmc-supply = <&vmmcsd_fixed>;
0106         bus-width = <4>;
0107         cd-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
0108 };
0109 
0110 &pincntl {
0111         sd1_pins: pinmux_sd1_pins {
0112                 pinctrl-single,pins = <
0113                         DM814X_IOPAD(0x0800, PIN_INPUT | 0x1)   /* SD1_CLK */
0114                         DM814X_IOPAD(0x0804, PIN_INPUT_PULLUP |  0x1)   /* SD1_CMD */
0115                         DM814X_IOPAD(0x0808, PIN_INPUT_PULLUP |  0x1)   /* SD1_DAT[0] */
0116                         DM814X_IOPAD(0x080c, PIN_INPUT_PULLUP |  0x1)   /* SD1_DAT[1] */
0117                         DM814X_IOPAD(0x0810, PIN_INPUT_PULLUP |  0x1)   /* SD1_DAT[2] */
0118                         DM814X_IOPAD(0x0814, PIN_INPUT_PULLUP |  0x1)   /* SD1_DAT[3] */
0119                         DM814X_IOPAD(0x0924, PIN_OUTPUT |  0x40)        /* SD1_POW */
0120                         DM814X_IOPAD(0x093C, PIN_INPUT_PULLUP |  0x80)  /* GP1[6] */
0121                         >;
0122         };
0123 
0124         usb0_pins: pinmux_usb0_pins {
0125                 pinctrl-single,pins = <
0126                         DM814X_IOPAD(0x0c34, PIN_OUTPUT | 0x1)  /* USB0_DRVVBUS */
0127                         >;
0128         };
0129 };
0130 
0131 /* USB0_ID pin state: SW10[1] = 0 cable detection, SW10[1] = 1 ID grounded */
0132 &usb0 {
0133         pinctrl-names = "default";
0134         pinctrl-0 = <&usb0_pins>;
0135         dr_mode = "otg";
0136 };
0137 
0138 &usb1_phy {
0139         status = "disabled";
0140 };
0141 
0142 &usb1 {
0143         status = "disabled";
0144 };