ARM: tegra: fix sdmmc2-sdslot regulator configuration
[linux-3.10.git] / arch / arm / boot / dts / tegra124-platforms / tegra124-tn8-e1936-fixed.dtsi
1 #include <dt-bindings/gpio/tegra-gpio.h>
2
3 / {
4         regulators {
5                 compatible = "simple-bus";
6                 #address-cells = <1>;
7                 #size-cells = <0>;
8
9                 vdd_ac_bat_reg: regulator@0 {
10                         compatible = "regulator-fixed";
11                         reg = <0>;
12                         regulator-name = "vdd_ac_bat";
13                         regulator-min-microvolt = <5000000>;
14                         regulator-max-microvolt = <5000000>;
15                         regulator-always-on;
16
17                         consumers {
18                                 c1 {
19                                         regulator-consumer-supply = "vdd_sys_bl";
20                                 };
21                                 c2 {
22                                         regulator-consumer-supply = "vdd_wwan_mdm";
23                                 };
24                         };
25                 };
26
27                 en_lcd_bl: regulator@1 {
28                         compatible = "regulator-fixed-sync";
29                         reg = <1>;
30                         regulator-name = "en-lcd-bl";
31                         regulator-min-microvolt = <5000000>;
32                         regulator-max-microvolt = <5000000>;
33                         enable-active-high;
34                         gpio = <&gpio TEGRA_GPIO(H, 2) 0>;
35
36                         consumers {
37                                 c1 {
38                                         regulator-consumer-supply = "vdd_lcd_bl_en";
39                                         regulator-consumer-device = "tegradc.0";
40                                 };
41                         };
42                 };
43
44                 vddio_sd: regulator@2 {
45                         compatible = "regulator-fixed-sync";
46                         reg = <2>;
47                         regulator-name = "vddio_sd";
48                         regulator-min-microvolt = <3300000>;
49                         regulator-max-microvolt = <3300000>;
50                         gpio = <&gpio TEGRA_GPIO(R, 0) GPIO_ACTIVE_HIGH>;
51                         enable-active-high;
52                         vin-supply = <&palmas_smps9>;
53
54                         consumers {
55                                 c1 {
56                                         regulator-consumer-supply = "vddio_sd_slot";
57                                         regulator-consumer-device = "sdhci-tegra.2";
58                                 };
59                         };
60                 };
61
62                 vddio_dvdd_lcd: regulator@3 {
63                         compatible = "regulator-fixed-sync";
64                         reg = <3>;
65                         regulator-name = "vddio_dvdd_lcd";
66                         regulator-min-microvolt = <1800000>;
67                         regulator-max-microvolt = <1800000>;
68                         gpio = <&palmas_gpio 6 0>;
69                         enable-active-high;
70                         vin-supply = <&palmas_smps8>;
71
72                         consumers {
73                                 c1 {
74                                         regulator-consumer-supply = "dvdd_lcd";
75                                         regulator-consumer-device = "tegradc.0";
76                                 };
77                                 c2 {
78                                         regulator-consumer-supply = "vdd_lcd_1v8_s";
79                                 };
80                         };
81                 };
82
83                 vdd_cam_af: regulator@4 {
84                         compatible = "regulator-fixed-sync";
85                         reg = <4>;
86                         regulator-name = "vdd_cam_af";
87                         regulator-min-microvolt = <1800000>;
88                         regulator-max-microvolt = <1800000>;
89                         gpio = <&palmas_gpio 4 0>;
90                         enable-active-high;
91                         vin-supply = <&palmas_smps8>;
92
93                         consumers {
94                                 c1 {
95                                         regulator-consumer-supply = "vif";
96                                         regulator-consumer-device = "2-0010";
97                                 };
98                                 c2 {
99                                         regulator-consumer-supply = "vif";
100                                         regulator-consumer-device = "2-0036";
101                                 };
102                                 c3 {
103                                         regulator-consumer-supply = "vif";
104                                         regulator-consumer-device = "2-0048";
105                                 };
106                                 c4 {
107                                         regulator-consumer-supply = "vddio_cam";
108                                         regulator-consumer-device = "tegra_camera";
109                                 };
110                                 c5 {
111                                         regulator-consumer-supply = "vddio_cam";
112                                         regulator-consumer-device = "vi";
113                                 };
114                                 c6 {
115                                         regulator-consumer-supply = "vdd_cam_1v8_mb";
116                                 };
117                                 c7 {
118                                         regulator-consumer-supply = "dovdd";
119                                         regulator-consumer-device = "2-0010";
120                                 };
121                                 c8 {
122                                         regulator-consumer-supply = "vif";
123                                         regulator-consumer-device = "2-000c";
124                                 };
125                                 c9 {
126                                         regulator-consumer-supply = "vdd_i2c";
127                                         regulator-consumer-device = "2-000c";
128                                 };
129
130                         };
131                 };
132         };
133 };