blob: 79ccdd4470f4cb61cd2f9aca0cb7faca172276a6 [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001// SPDX-License-Identifier: GPL-2.0-only
Tony Lindgren285f3692015-07-23 22:33:19 -07002/dts-v1/;
3
4#include "dm814x.dtsi"
5
6/ {
Nicolas Chauvet60fdcb82015-09-03 17:34:40 +02007 model = "HP t410 Smart Zero Client";
Graeme Smecher647efef2018-05-02 17:32:36 -07008 compatible = "hp,t410", "ti,dm8148", "ti,dm814";
Tony Lindgren285f3692015-07-23 22:33:19 -07009
Javier Martinez Canillasc5ee1b42016-08-31 12:35:34 +020010 memory@80000000 {
Tony Lindgren285f3692015-07-23 22:33:19 -070011 device_type = "memory";
12 reg = <0x80000000 0x40000000>; /* 1 GB */
13 };
Tony Lindgrenf24f1bd2015-12-22 16:01:03 -080014
Tony Lindgren868e2472015-12-22 16:01:37 -080015 /* gpio9 seems to control USB VBUS regulator and/or hub power */
16 usb_power: regulator@9 {
17 compatible = "regulator-fixed";
18 regulator-name = "usb_power";
19 regulator-min-microvolt = <5000000>;
20 regulator-max-microvolt = <5000000>;
21 gpio = <&gpio1 9 GPIO_ACTIVE_HIGH>;
22 enable-active-high;
23 regulator-always-on;
24 };
25
Javier Martinez Canillas0b0d9122016-08-01 12:46:59 -040026 vmmcsd_fixed: fixedregulator0 {
Tony Lindgrenf24f1bd2015-12-22 16:01:03 -080027 compatible = "regulator-fixed";
28 regulator-name = "vmmcsd_fixed";
29 regulator-min-microvolt = <3300000>;
30 regulator-max-microvolt = <3300000>;
31 };
Tony Lindgren285f3692015-07-23 22:33:19 -070032};
33
34&cpsw_emac0 {
Grygorii Strashko3a251282018-09-10 17:57:54 -050035 phy-handle = <&ethphy0>;
Tony Lindgrenb46b2b72020-03-03 13:18:36 -080036 phy-mode = "rgmii-id";
Tony Lindgren285f3692015-07-23 22:33:19 -070037};
38
39&cpsw_emac1 {
Grygorii Strashko3a251282018-09-10 17:57:54 -050040 phy-handle = <&ethphy1>;
Tony Lindgrenb46b2b72020-03-03 13:18:36 -080041 phy-mode = "rgmii-id";
Tony Lindgren285f3692015-07-23 22:33:19 -070042};
Tony Lindgrenf24f1bd2015-12-22 16:01:03 -080043
Grygorii Strashko3a251282018-09-10 17:57:54 -050044&davinci_mdio {
45 ethphy0: ethernet-phy@0 {
46 reg = <0>;
47 };
48
49 ethphy1: ethernet-phy@1 {
50 reg = <1>;
51 };
52};
53
Nicolas Chauvet1ddbef42016-05-10 12:14:58 +020054&mmc1 {
55 status = "disabled";
56};
57
58&mmc2 {
59 status = "disabled";
60};
61
Tony Lindgrenf24f1bd2015-12-22 16:01:03 -080062&mmc3 {
63 pinctrl-names = "default";
64 pinctrl-0 = <&sd2_pins>;
65 vmmc-supply = <&vmmcsd_fixed>;
66 bus-width = <8>;
67 dmas = <&edma_xbar 8 0 1 /* use SDTXEVT1 instead of MCASP0TX */
68 &edma_xbar 9 0 2>; /* use SDRXEVT1 instead of MCASP0RX */
69 dma-names = "tx", "rx";
Nicolas Chauvet54c78872016-05-10 12:14:57 +020070 non-removable;
Tony Lindgrenf24f1bd2015-12-22 16:01:03 -080071};
72
73&pincntl {
74 sd2_pins: pinmux_sd2_pins {
75 pinctrl-single,pins = <
76 DM814X_IOPAD(0x09c0, PIN_INPUT_PULLUP | 0x1) /* SD2_DAT[7] */
77 DM814X_IOPAD(0x09c4, PIN_INPUT_PULLUP | 0x1) /* SD2_DAT[6] */
78 DM814X_IOPAD(0x09c8, PIN_INPUT_PULLUP | 0x1) /* SD2_DAT[5] */
79 DM814X_IOPAD(0x09cc, PIN_INPUT_PULLUP | 0x1) /* SD2_DAT[4] */
80 DM814X_IOPAD(0x09d0, PIN_INPUT_PULLUP | 0x1) /* SD2_DAT[3] */
81 DM814X_IOPAD(0x09d4, PIN_INPUT_PULLUP | 0x1) /* SD2_DAT[2] */
82 DM814X_IOPAD(0x09d8, PIN_INPUT_PULLUP | 0x1) /* SD2_DAT[1] */
83 DM814X_IOPAD(0x09dc, PIN_INPUT_PULLUP | 0x1) /* SD2_DAT[0] */
84 DM814X_IOPAD(0x09e0, PIN_INPUT | 0x1) /* SD2_CLK */
85 DM814X_IOPAD(0x09f4, PIN_INPUT_PULLUP | 0x2) /* SD2_CMD */
Graeme Smecher8dfa7552018-05-03 10:03:01 -070086 DM814X_IOPAD(0x0920, PIN_INPUT | 0x40) /* SD2_SDCD */
Tony Lindgrenf24f1bd2015-12-22 16:01:03 -080087 >;
88 };
Tony Lindgren868e2472015-12-22 16:01:37 -080089
90 usb0_pins: pinmux_usb0_pins {
91 pinctrl-single,pins = <
92 DM814X_IOPAD(0x0c34, PIN_OUTPUT | 0x1) /* USB0_DRVVBUS */
93 >;
94 };
95
96 usb1_pins: pinmux_usb1_pins {
97 pinctrl-single,pins = <
98 DM814X_IOPAD(0x0834, PIN_OUTPUT | 0x80) /* USB1_DRVVBUS */
99 >;
100 };
101};
102
103&usb0 {
104 pinctrl-names = "default";
105 pinctrl-0 = <&usb0_pins>;
106 dr_mode = "host";
107};
108
109&usb1 {
110 pinctrl-names = "default";
111 pinctrl-0 = <&usb1_pins>;
112 dr_mode = "host";
Tony Lindgrenf24f1bd2015-12-22 16:01:03 -0800113};