| 1 |
// SPDX-License-Identifier: GPL-2.0-only |
| 2 |
/dts-v1/; |
| 3 |
|
| 4 |
#include "dm814x.dtsi" |
| 5 |
#include <dt-bindings/interrupt-controller/irq.h> |
| 6 |
|
| 7 |
/ { |
| 8 |
model = "DM8148 EVM"; |
| 9 |
compatible = "ti,dm8148-evm", "ti,dm8148", "ti,dm814"; |
| 10 |
|
| 11 |
memory@80000000 { |
| 12 |
device_type = "memory"; |
| 13 |
reg = <0x80000000 0x40000000>; /* 1 GB */ |
| 14 |
}; |
| 15 |
|
| 16 |
/* MIC94060YC6 controlled by SD1_POW pin */ |
| 17 |
vmmcsd_fixed: fixedregulator0 { |
| 18 |
compatible = "regulator-fixed"; |
| 19 |
regulator-name = "vmmcsd_fixed"; |
| 20 |
regulator-min-microvolt = <3300000>; |
| 21 |
regulator-max-microvolt = <3300000>; |
| 22 |
}; |
| 23 |
}; |
| 24 |
|
| 25 |
&cpsw_emac0 { |
| 26 |
phy-handle = <ðphy0>; |
| 27 |
phy-mode = "rgmii-id"; |
| 28 |
}; |
| 29 |
|
| 30 |
&cpsw_emac1 { |
| 31 |
phy-handle = <ðphy1>; |
| 32 |
phy-mode = "rgmii-id"; |
| 33 |
}; |
| 34 |
|
| 35 |
&davinci_mdio { |
| 36 |
ethphy0: ethernet-phy@0 { |
| 37 |
reg = <0>; |
| 38 |
}; |
| 39 |
|
| 40 |
ethphy1: ethernet-phy@1 { |
| 41 |
reg = <1>; |
| 42 |
}; |
| 43 |
}; |
| 44 |
|
| 45 |
&gpmc { |
| 46 |
ranges = <0 0 0x04000000 0x01000000>; /* CS0: 16MB for NAND */ |
| 47 |
|
| 48 |
nand@0,0 { |
| 49 |
compatible = "ti,omap2-nand"; |
| 50 |
reg = <0 0 4>; /* CS0, offset 0, IO size 4 */ |
| 51 |
interrupt-parent = <&gpmc>; |
| 52 |
interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */ |
| 53 |
<1 IRQ_TYPE_NONE>; /* termcount */ |
| 54 |
#address-cells = <1>; |
| 55 |
#size-cells = <1>; |
| 56 |
ti,nand-ecc-opt = "bch8"; |
| 57 |
nand-bus-width = <16>; |
| 58 |
gpmc,device-width = <2>; |
| 59 |
gpmc,sync-clk-ps = <0>; |
| 60 |
gpmc,cs-on-ns = <0>; |
| 61 |
gpmc,cs-rd-off-ns = <44>; |
| 62 |
gpmc,cs-wr-off-ns = <44>; |
| 63 |
gpmc,adv-on-ns = <6>; |
| 64 |
gpmc,adv-rd-off-ns = <34>; |
| 65 |
gpmc,adv-wr-off-ns = <44>; |
| 66 |
gpmc,we-on-ns = <0>; |
| 67 |
gpmc,we-off-ns = <40>; |
| 68 |
gpmc,oe-on-ns = <0>; |
| 69 |
gpmc,oe-off-ns = <54>; |
| 70 |
gpmc,access-ns = <64>; |
| 71 |
gpmc,rd-cycle-ns = <82>; |
| 72 |
gpmc,wr-cycle-ns = <82>; |
| 73 |
gpmc,bus-turnaround-ns = <0>; |
| 74 |
gpmc,cycle2cycle-delay-ns = <0>; |
| 75 |
gpmc,clk-activation-ns = <0>; |
| 76 |
gpmc,wr-access-ns = <40>; |
| 77 |
gpmc,wr-data-mux-bus-ns = <0>; |
| 78 |
partition@0 { |
| 79 |
label = "X-Loader"; |
| 80 |
reg = <0 0x80000>; |
| 81 |
}; |
| 82 |
partition@80000 { |
| 83 |
label = "U-Boot"; |
| 84 |
reg = <0x80000 0x1c0000>; |
| 85 |
}; |
| 86 |
partition@1c0000 { |
| 87 |
label = "Environment"; |
| 88 |
reg = <0x240000 0x40000>; |
| 89 |
}; |
| 90 |
partition@280000 { |
| 91 |
label = "Kernel"; |
| 92 |
reg = <0x280000 0x500000>; |
| 93 |
}; |
| 94 |
partition@780000 { |
| 95 |
label = "Filesystem"; |
| 96 |
reg = <0x780000 0xf880000>; |
| 97 |
}; |
| 98 |
}; |
| 99 |
}; |
| 100 |
|
| 101 |
&mmc1 { |
| 102 |
status = "disabled"; |
| 103 |
}; |
| 104 |
|
| 105 |
&mmc2 { |
| 106 |
pinctrl-names = "default"; |
| 107 |
pinctrl-0 = <&sd1_pins>; |
| 108 |
vmmc-supply = <&vmmcsd_fixed>; |
| 109 |
bus-width = <4>; |
| 110 |
cd-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>; |
| 111 |
}; |
| 112 |
|
| 113 |
&mmc3 { |
| 114 |
status = "disabled"; |
| 115 |
}; |
| 116 |
|
| 117 |
&pincntl { |
| 118 |
sd1_pins: sd1-pins { |
| 119 |
pinctrl-single,pins = < |
| 120 |
DM814X_IOPAD(0x0800, PIN_INPUT | 0x1) /* SD1_CLK */ |
| 121 |
DM814X_IOPAD(0x0804, PIN_INPUT_PULLUP | 0x1) /* SD1_CMD */ |
| 122 |
DM814X_IOPAD(0x0808, PIN_INPUT_PULLUP | 0x1) /* SD1_DAT[0] */ |
| 123 |
DM814X_IOPAD(0x080c, PIN_INPUT_PULLUP | 0x1) /* SD1_DAT[1] */ |
| 124 |
DM814X_IOPAD(0x0810, PIN_INPUT_PULLUP | 0x1) /* SD1_DAT[2] */ |
| 125 |
DM814X_IOPAD(0x0814, PIN_INPUT_PULLUP | 0x1) /* SD1_DAT[3] */ |
| 126 |
DM814X_IOPAD(0x0924, PIN_OUTPUT | 0x40) /* SD1_POW */ |
| 127 |
DM814X_IOPAD(0x093C, PIN_INPUT_PULLUP | 0x80) /* GP1[6] */ |
| 128 |
>; |
| 129 |
}; |
| 130 |
|
| 131 |
usb0_pins: usb0-pins { |
| 132 |
pinctrl-single,pins = < |
| 133 |
DM814X_IOPAD(0x0c34, PIN_OUTPUT | 0x1) /* USB0_DRVVBUS */ |
| 134 |
>; |
| 135 |
}; |
| 136 |
|
| 137 |
usb1_pins: usb1-pins { |
| 138 |
pinctrl-single,pins = < |
| 139 |
DM814X_IOPAD(0x0834, PIN_OUTPUT | 0x80) /* USB1_DRVVBUS */ |
| 140 |
>; |
| 141 |
}; |
| 142 |
}; |
| 143 |
|
| 144 |
&usb0 { |
| 145 |
pinctrl-names = "default"; |
| 146 |
pinctrl-0 = <&usb0_pins>; |
| 147 |
dr_mode = "host"; |
| 148 |
}; |
| 149 |
|
| 150 |
&usb1 { |
| 151 |
pinctrl-names = "default"; |
| 152 |
pinctrl-0 = <&usb1_pins>; |
| 153 |
dr_mode = "host"; |
| 154 |
}; |