]> git.ipfire.org Git - thirdparty/kernel/stable.git/blob - arch/arm/boot/dts/dm8148-t410.dts
63301bcacf19ac00e0172de02f3b25f46c05aed8
[thirdparty/kernel/stable.git] / arch / arm / boot / dts / dm8148-t410.dts
1 /*
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"
9
10 / {
11 model = "HP t410 Smart Zero Client";
12 compatible = "hp,t410", "ti,dm8148", "ti,dm814";
13
14 memory@80000000 {
15 device_type = "memory";
16 reg = <0x80000000 0x40000000>; /* 1 GB */
17 };
18
19 /* gpio9 seems to control USB VBUS regulator and/or hub power */
20 usb_power: regulator@9 {
21 compatible = "regulator-fixed";
22 regulator-name = "usb_power";
23 regulator-min-microvolt = <5000000>;
24 regulator-max-microvolt = <5000000>;
25 gpio = <&gpio1 9 GPIO_ACTIVE_HIGH>;
26 enable-active-high;
27 regulator-always-on;
28 };
29
30 vmmcsd_fixed: fixedregulator0 {
31 compatible = "regulator-fixed";
32 regulator-name = "vmmcsd_fixed";
33 regulator-min-microvolt = <3300000>;
34 regulator-max-microvolt = <3300000>;
35 };
36 };
37
38 &cpsw_emac0 {
39 phy-handle = <&ethphy0>;
40 phy-mode = "rgmii";
41 };
42
43 &cpsw_emac1 {
44 phy-handle = <&ethphy1>;
45 phy-mode = "rgmii";
46 };
47
48 &davinci_mdio {
49 ethphy0: ethernet-phy@0 {
50 reg = <0>;
51 };
52
53 ethphy1: ethernet-phy@1 {
54 reg = <1>;
55 };
56 };
57
58 &mmc1 {
59 status = "disabled";
60 };
61
62 &mmc2 {
63 status = "disabled";
64 };
65
66 &mmc3 {
67 pinctrl-names = "default";
68 pinctrl-0 = <&sd2_pins>;
69 vmmc-supply = <&vmmcsd_fixed>;
70 bus-width = <8>;
71 dmas = <&edma_xbar 8 0 1 /* use SDTXEVT1 instead of MCASP0TX */
72 &edma_xbar 9 0 2>; /* use SDRXEVT1 instead of MCASP0RX */
73 dma-names = "tx", "rx";
74 non-removable;
75 };
76
77 &pincntl {
78 sd2_pins: pinmux_sd2_pins {
79 pinctrl-single,pins = <
80 DM814X_IOPAD(0x09c0, PIN_INPUT_PULLUP | 0x1) /* SD2_DAT[7] */
81 DM814X_IOPAD(0x09c4, PIN_INPUT_PULLUP | 0x1) /* SD2_DAT[6] */
82 DM814X_IOPAD(0x09c8, PIN_INPUT_PULLUP | 0x1) /* SD2_DAT[5] */
83 DM814X_IOPAD(0x09cc, PIN_INPUT_PULLUP | 0x1) /* SD2_DAT[4] */
84 DM814X_IOPAD(0x09d0, PIN_INPUT_PULLUP | 0x1) /* SD2_DAT[3] */
85 DM814X_IOPAD(0x09d4, PIN_INPUT_PULLUP | 0x1) /* SD2_DAT[2] */
86 DM814X_IOPAD(0x09d8, PIN_INPUT_PULLUP | 0x1) /* SD2_DAT[1] */
87 DM814X_IOPAD(0x09dc, PIN_INPUT_PULLUP | 0x1) /* SD2_DAT[0] */
88 DM814X_IOPAD(0x09e0, PIN_INPUT | 0x1) /* SD2_CLK */
89 DM814X_IOPAD(0x09f4, PIN_INPUT_PULLUP | 0x2) /* SD2_CMD */
90 DM814X_IOPAD(0x0920, PIN_INPUT | 0x40) /* SD2_SDCD */
91 >;
92 };
93
94 usb0_pins: pinmux_usb0_pins {
95 pinctrl-single,pins = <
96 DM814X_IOPAD(0x0c34, PIN_OUTPUT | 0x1) /* USB0_DRVVBUS */
97 >;
98 };
99
100 usb1_pins: pinmux_usb1_pins {
101 pinctrl-single,pins = <
102 DM814X_IOPAD(0x0834, PIN_OUTPUT | 0x80) /* USB1_DRVVBUS */
103 >;
104 };
105 };
106
107 &usb0 {
108 pinctrl-names = "default";
109 pinctrl-0 = <&usb0_pins>;
110 dr_mode = "host";
111 };
112
113 &usb1 {
114 pinctrl-names = "default";
115 pinctrl-0 = <&usb1_pins>;
116 dr_mode = "host";
117 };