arm: tegra: dts: Mark USB1 as an OTG port on Seaboard
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / tegra-seaboard.dts
1 /dts-v1/;
2
3 /include/ "tegra20.dtsi"
4
5 / {
6         model = "NVIDIA Seaboard";
7         compatible = "nvidia,seaboard", "nvidia,tegra20";
8
9         memory {
10                 device_type = "memory";
11                 reg = < 0x00000000 0x40000000 >;
12         };
13
14         i2c@7000c000 {
15                 clock-frequency = <400000>;
16
17                 wm8903: wm8903@1a {
18                         compatible = "wlf,wm8903";
19                         reg = <0x1a>;
20                         interrupt-parent = <&gpio>;
21                         interrupts = < 187 0x04 >;
22
23                         gpio-controller;
24                         #gpio-cells = <2>;
25
26                         micdet-cfg = <0>;
27                         micdet-delay = <100>;
28                         gpio-cfg = < 0xffffffff 0xffffffff 0 0xffffffff 0xffffffff >;
29                 };
30         };
31
32         i2c@7000c400 {
33                 clock-frequency = <400000>;
34         };
35
36         i2c@7000c500 {
37                 clock-frequency = <400000>;
38         };
39
40         i2c@7000d000 {
41                 clock-frequency = <400000>;
42
43                 adt7461@4c {
44                         compatible = "adt7461";
45                         reg = <0x4c>;
46                 };
47         };
48
49         i2s@70002a00 {
50                 status = "disable";
51         };
52
53         sound {
54                 compatible = "nvidia,tegra-audio-wm8903-seaboard",
55                              "nvidia,tegra-audio-wm8903";
56                 nvidia,model = "NVIDIA Tegra Seaboard";
57
58                 nvidia,audio-routing =
59                         "Headphone Jack", "HPOUTR",
60                         "Headphone Jack", "HPOUTL",
61                         "Int Spk", "ROP",
62                         "Int Spk", "RON",
63                         "Int Spk", "LOP",
64                         "Int Spk", "LON",
65                         "Mic Jack", "MICBIAS",
66                         "IN1R", "Mic Jack";
67
68                 nvidia,i2s-controller = <&tegra_i2s1>;
69                 nvidia,audio-codec = <&wm8903>;
70
71                 nvidia,spkr-en-gpios = <&wm8903 2 0>;
72                 nvidia,hp-det-gpios = <&gpio 185 0>; /* gpio PX1 */
73         };
74
75         serial@70006000 {
76                 status = "disable";
77         };
78
79         serial@70006040 {
80                 status = "disable";
81         };
82
83         serial@70006200 {
84                 status = "disable";
85         };
86
87         serial@70006300 {
88                 clock-frequency = < 216000000 >;
89         };
90
91         serial@70006400 {
92                 status = "disable";
93         };
94
95         sdhci@c8000000 {
96                 status = "disable";
97         };
98
99         sdhci@c8000200 {
100                 status = "disable";
101         };
102
103         sdhci@c8000400 {
104                 cd-gpios = <&gpio 69 0>; /* gpio PI5 */
105                 wp-gpios = <&gpio 57 0>; /* gpio PH1 */
106                 power-gpios = <&gpio 70 0>; /* gpio PI6 */
107         };
108
109         sdhci@c8000600 {
110                 support-8bit;
111         };
112
113         usb@c5000000 {
114                 nvidia,vbus-gpio = <&gpio 24 0>; /* PD0 */
115                 dr_mode = "otg";
116         };
117
118         gpio-keys {
119                 compatible = "gpio-keys";
120
121                 power {
122                         label = "Power";
123                         gpios = <&gpio 170 1>; /* gpio PV2, active low */
124                         linux,code = <116>; /* KEY_POWER */
125                         gpio-key,wakeup;
126                 };
127
128                 lid {
129                         label = "Lid";
130                         gpios = <&gpio 23 0>; /* gpio PC7 */
131                         linux,input-type = <5>; /* EV_SW */
132                         linux,code = <0>; /* SW_LID */
133                         debounce-interval = <1>;
134                         gpio-key,wakeup;
135                 };
136         };
137
138         emc@7000f400 {
139                 emc-table@190000 {
140                         reg = < 190000 >;
141                         compatible = "nvidia,tegra20-emc-table";
142                         clock-frequency = < 190000 >;
143                         nvidia,emc-registers = < 0x0000000c 0x00000026
144                                 0x00000009 0x00000003 0x00000004 0x00000004
145                                 0x00000002 0x0000000c 0x00000003 0x00000003
146                                 0x00000002 0x00000001 0x00000004 0x00000005
147                                 0x00000004 0x00000009 0x0000000d 0x0000059f
148                                 0x00000000 0x00000003 0x00000003 0x00000003
149                                 0x00000003 0x00000001 0x0000000b 0x000000c8
150                                 0x00000003 0x00000007 0x00000004 0x0000000f
151                                 0x00000002 0x00000000 0x00000000 0x00000002
152                                 0x00000000 0x00000000 0x00000083 0xa06204ae
153                                 0x007dc010 0x00000000 0x00000000 0x00000000
154                                 0x00000000 0x00000000 0x00000000 0x00000000 >;
155                 };
156
157                 emc-table@380000 {
158                         reg = < 380000 >;
159                         compatible = "nvidia,tegra20-emc-table";
160                         clock-frequency = < 380000 >;
161                         nvidia,emc-registers = < 0x00000017 0x0000004b
162                                 0x00000012 0x00000006 0x00000004 0x00000005
163                                 0x00000003 0x0000000c 0x00000006 0x00000006
164                                 0x00000003 0x00000001 0x00000004 0x00000005
165                                 0x00000004 0x00000009 0x0000000d 0x00000b5f
166                                 0x00000000 0x00000003 0x00000003 0x00000006
167                                 0x00000006 0x00000001 0x00000011 0x000000c8
168                                 0x00000003 0x0000000e 0x00000007 0x0000000f
169                                 0x00000002 0x00000000 0x00000000 0x00000002
170                                 0x00000000 0x00000000 0x00000083 0xe044048b
171                                 0x007d8010 0x00000000 0x00000000 0x00000000
172                                 0x00000000 0x00000000 0x00000000 0x00000000 >;
173                 };
174         };
175 };