blob: 2d201719ba6968618ca6b4377c9e4efc281f9bd8 [file] [log] [blame]
Tony Lindgren73db9e02015-07-23 22:33:18 -07001/*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License version 2 as
4 * published by the Free Software Foundation.
5 */
6/dts-v1/;
7
8#include "dm814x.dtsi"
Roger Quadros0c3e1922016-03-01 15:44:47 +02009#include <dt-bindings/interrupt-controller/irq.h>
Tony Lindgren73db9e02015-07-23 22:33:18 -070010
11/ {
12 model = "DM8148 EVM";
Graeme Smecher647efef2018-05-02 17:32:36 -070013 compatible = "ti,dm8148-evm", "ti,dm8148", "ti,dm814";
Tony Lindgren73db9e02015-07-23 22:33:18 -070014
Javier Martinez Canillasc5ee1b42016-08-31 12:35:34 +020015 memory@80000000 {
Tony Lindgren73db9e02015-07-23 22:33:18 -070016 device_type = "memory";
17 reg = <0x80000000 0x40000000>; /* 1 GB */
18 };
Tony Lindgren67b5e9e2015-12-22 16:00:51 -080019
20 /* MIC94060YC6 controlled by SD1_POW pin */
Javier Martinez Canillas0b0d9122016-08-01 12:46:59 -040021 vmmcsd_fixed: fixedregulator0 {
Tony Lindgren67b5e9e2015-12-22 16:00:51 -080022 compatible = "regulator-fixed";
23 regulator-name = "vmmcsd_fixed";
24 regulator-min-microvolt = <3300000>;
25 regulator-max-microvolt = <3300000>;
26 };
Tony Lindgren73db9e02015-07-23 22:33:18 -070027};
28
29&cpsw_emac0 {
Grygorii Strashkoabf878d2018-09-10 17:57:53 -050030 phy-handle = <&ethphy0>;
Tony Lindgren87ee15e2015-09-14 07:07:28 -070031 phy-mode = "rgmii";
Tony Lindgren73db9e02015-07-23 22:33:18 -070032};
33
34&cpsw_emac1 {
Grygorii Strashkoabf878d2018-09-10 17:57:53 -050035 phy-handle = <&ethphy1>;
Tony Lindgren87ee15e2015-09-14 07:07:28 -070036 phy-mode = "rgmii";
Tony Lindgren73db9e02015-07-23 22:33:18 -070037};
Tony Lindgren67b5e9e2015-12-22 16:00:51 -080038
Grygorii Strashkoabf878d2018-09-10 17:57:53 -050039&davinci_mdio {
40 ethphy0: ethernet-phy@0 {
41 reg = <0>;
42 };
43
44 ethphy1: ethernet-phy@1 {
45 reg = <1>;
46 };
47};
48
Tony Lindgren0589df62016-02-12 13:25:14 -080049&gpmc {
50 ranges = <0 0 0x04000000 0x01000000>; /* CS0: 16MB for NAND */
51
52 nand@0,0 {
Roger Quadros0c3e1922016-03-01 15:44:47 +020053 compatible = "ti,omap2-nand";
Tony Lindgren0589df62016-02-12 13:25:14 -080054 reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
Roger Quadros0c3e1922016-03-01 15:44:47 +020055 interrupt-parent = <&gpmc>;
56 interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
57 <1 IRQ_TYPE_NONE>; /* termcount */
58 linux,mtd-name= "micron,mt29f2g16aadwp";
Tony Lindgren0589df62016-02-12 13:25:14 -080059 #address-cells = <1>;
60 #size-cells = <1>;
61 ti,nand-ecc-opt = "bch8";
62 nand-bus-width = <16>;
63 gpmc,device-width = <2>;
64 gpmc,sync-clk-ps = <0>;
65 gpmc,cs-on-ns = <0>;
66 gpmc,cs-rd-off-ns = <44>;
67 gpmc,cs-wr-off-ns = <44>;
68 gpmc,adv-on-ns = <6>;
69 gpmc,adv-rd-off-ns = <34>;
70 gpmc,adv-wr-off-ns = <44>;
71 gpmc,we-on-ns = <0>;
72 gpmc,we-off-ns = <40>;
73 gpmc,oe-on-ns = <0>;
74 gpmc,oe-off-ns = <54>;
75 gpmc,access-ns = <64>;
76 gpmc,rd-cycle-ns = <82>;
77 gpmc,wr-cycle-ns = <82>;
Tony Lindgren0589df62016-02-12 13:25:14 -080078 gpmc,bus-turnaround-ns = <0>;
79 gpmc,cycle2cycle-delay-ns = <0>;
80 gpmc,clk-activation-ns = <0>;
Tony Lindgren0589df62016-02-12 13:25:14 -080081 gpmc,wr-access-ns = <40>;
82 gpmc,wr-data-mux-bus-ns = <0>;
83 partition@0 {
84 label = "X-Loader";
85 reg = <0 0x80000>;
86 };
87 partition@0x80000 {
88 label = "U-Boot";
89 reg = <0x80000 0x1c0000>;
90 };
91 partition@0x1c0000 {
92 label = "Environment";
93 reg = <0x240000 0x40000>;
94 };
95 partition@0x280000 {
96 label = "Kernel";
97 reg = <0x280000 0x500000>;
98 };
99 partition@0x780000 {
100 label = "Filesystem";
101 reg = <0x780000 0xf880000>;
102 };
103 };
104};
105
Nicolas Chauvet1ddbef42016-05-10 12:14:58 +0200106&mmc1 {
107 status = "disabled";
108};
109
Tony Lindgren67b5e9e2015-12-22 16:00:51 -0800110&mmc2 {
111 pinctrl-names = "default";
112 pinctrl-0 = <&sd1_pins>;
113 vmmc-supply = <&vmmcsd_fixed>;
114 bus-width = <4>;
115 cd-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
116};
117
Nicolas Chauvet1ddbef42016-05-10 12:14:58 +0200118&mmc3 {
119 status = "disabled";
120};
121
Tony Lindgren67b5e9e2015-12-22 16:00:51 -0800122&pincntl {
123 sd1_pins: pinmux_sd1_pins {
124 pinctrl-single,pins = <
125 DM814X_IOPAD(0x0800, PIN_INPUT | 0x1) /* SD1_CLK */
126 DM814X_IOPAD(0x0804, PIN_INPUT_PULLUP | 0x1) /* SD1_CMD */
127 DM814X_IOPAD(0x0808, PIN_INPUT_PULLUP | 0x1) /* SD1_DAT[0] */
128 DM814X_IOPAD(0x080c, PIN_INPUT_PULLUP | 0x1) /* SD1_DAT[1] */
129 DM814X_IOPAD(0x0810, PIN_INPUT_PULLUP | 0x1) /* SD1_DAT[2] */
130 DM814X_IOPAD(0x0814, PIN_INPUT_PULLUP | 0x1) /* SD1_DAT[3] */
131 DM814X_IOPAD(0x0924, PIN_OUTPUT | 0x40) /* SD1_POW */
132 DM814X_IOPAD(0x093C, PIN_INPUT_PULLUP | 0x80) /* GP1[6] */
133 >;
134 };
Tony Lindgrene0320132015-12-22 16:01:16 -0800135
136 usb0_pins: pinmux_usb0_pins {
137 pinctrl-single,pins = <
138 DM814X_IOPAD(0x0c34, PIN_OUTPUT | 0x1) /* USB0_DRVVBUS */
139 >;
140 };
141
142 usb1_pins: pinmux_usb1_pins {
143 pinctrl-single,pins = <
144 DM814X_IOPAD(0x0834, PIN_OUTPUT | 0x80) /* USB1_DRVVBUS */
145 >;
146 };
147};
148
149&usb0 {
150 pinctrl-names = "default";
151 pinctrl-0 = <&usb0_pins>;
152 dr_mode = "host";
153};
154
155&usb1 {
156 pinctrl-names = "default";
157 pinctrl-0 = <&usb1_pins>;
158 dr_mode = "host";
Tony Lindgren67b5e9e2015-12-22 16:00:51 -0800159};