kernel: update 4.1 to 4.1.13
[openwrt.git] / target / linux / mediatek / patches / 0074-dts.patch
1 From df59c3b7030b6d7802fe5e5abda81467fcdf2178 Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Fri, 3 Jul 2015 05:46:13 +0200
4 Subject: [PATCH 74/76] dts
5
6 ---
7  arch/arm/boot/dts/mt7623-evb.dts |  124 +++++++++++++++++++++++++++++++++++++-
8  arch/arm/boot/dts/mt7623.dtsi    |   11 ++++
9  2 files changed, 133 insertions(+), 2 deletions(-)
10
11 --- a/arch/arm/boot/dts/mt7623-evb.dts
12 +++ b/arch/arm/boot/dts/mt7623-evb.dts
13 @@ -145,8 +145,8 @@
14         bus-width = <8>;
15         max-frequency = <50000000>;
16         cap-mmc-highspeed;
17 -//     vmmc-supply = <&mt6397_vemc_3v3_reg>;
18 -//     vqmmc-supply = <&mt6397_vio18_reg>;
19 +//     vmmc-supply = <&mt6323_vemc_3v3_reg>;
20 +//     vqmmc-supply = <&mt6323_vio18_reg>;
21         non-removable;
22  };
23  
24 @@ -160,3 +160,123 @@
25         pinctrl-names = "default";
26          pinctrl-0 = <&pinctrl_pcie_default>;
27  };
28 +
29 +&pwrap {
30 +       pmic: mt6323 {
31 +               compatible = "mediatek,mt6323";
32 +
33 +               mt6323regulator: mt6323regulator {
34 +                       compatible = "mediatek,mt6323-regulator";
35 +
36 +                       mt6323_vproc_reg: buck_vproc {
37 +                               regulator-compatible = "buck_vproc";
38 +                               regulator-name = "vproc";
39 +                               regulator-min-microvolt = < 700000>;
40 +                               regulator-max-microvolt = <1493750>;
41 +                               regulator-ramp-delay = <6250>;
42 +                               regulator-always-on;
43 +                       };
44 +
45 +                       mt6323_vsys_reg: buck_vsys {
46 +                               regulator-compatible = "buck_vsys";
47 +                               regulator-name = "vsys";
48 +                               regulator-min-microvolt = <1400000>;
49 +                               regulator-max-microvolt = <3000000>;
50 +                               regulator-ramp-delay = <12500>;
51 +                               regulator-always-on;
52 +                       };
53 +
54 +                       mt6323_vpa_reg: buck_vpa {
55 +                               regulator-compatible = "buck_vpa";
56 +                               regulator-name = "vpa";
57 +                               regulator-min-microvolt = < 500000>;
58 +                               regulator-max-microvolt = <3650000>;
59 +                               regulator-ramp-delay = <50000>;
60 +                               regulator-always-on;
61 +                       };
62 +
63 +                       mt6323_vtcxo_reg: ldo_vtcxo {
64 +                               regulator-compatible = "ldo_vtcxo";
65 +                               regulator-name = "vtcxo";
66 +                               regulator-always-on;
67 +                       };
68 +
69 +                       mt6323_va_reg: ldo_va {
70 +                               regulator-compatible = "ldo_va";
71 +                               regulator-name = "va";
72 +                               regulator-always-on;
73 +                       };
74 +
75 +                       mt6323_vcn28_reg: ldo_vcn28 {
76 +                               regulator-compatible = "ldo_vcn28";
77 +                               regulator-name = "vcn28";
78 +                               regulator-always-on;
79 +                       };
80 +
81 +                       mt6323_vcn33_reg: ldo_vcn33 {
82 +                               regulator-compatible = "ldo_vcn33";
83 +                               regulator-name = "vcn33";
84 +                               regulator-always-on;
85 +                       };
86 +
87 +                       mt6323_vcama_reg: ldo_vcama {
88 +                               regulator-compatible = "ldo_vcama";
89 +                               regulator-name = "vcama";
90 +                               regulator-min-microvolt = <1500000>;
91 +                               regulator-max-microvolt = <2800000>;
92 +                               regulator-enable-ramp-delay = <218>;
93 +                       };
94 +
95 +                       mt6323_vio28_reg: ldo_vio28 {
96 +                               regulator-compatible = "ldo_vio28";
97 +                               regulator-name = "vio28";
98 +                               regulator-always-on;
99 +                       };
100 +
101 +                       mt6323_vusb_reg: ldo_vusb {
102 +                               regulator-compatible = "ldo_vusb";
103 +                               regulator-name = "vusb";
104 +                       };
105 +
106 +                       mt6323_vmc_reg: ldo_vmc {
107 +                               regulator-compatible = "ldo_vmc";
108 +                               regulator-name = "vmc";
109 +                               regulator-min-microvolt = <1800000>;
110 +                               regulator-max-microvolt = <3300000>;
111 +                               regulator-enable-ramp-delay = <218>;
112 +                       };
113 +
114 +                       mt6323_vmch_reg: ldo_vmch {
115 +                               regulator-compatible = "ldo_vmch";
116 +                               regulator-name = "vmch";
117 +                               regulator-min-microvolt = <3000000>;
118 +                               regulator-max-microvolt = <3300000>;
119 +                               regulator-enable-ramp-delay = <218>;
120 +                       };
121 +
122 +                       mt6323_vemc_3v3_reg: ldo_vemc3v3 {
123 +                               regulator-compatible = "ldo_vemc3v3";
124 +                               regulator-name = "vemc_3v3";
125 +                               regulator-min-microvolt = <3000000>;
126 +                               regulator-max-microvolt = <3300000>;
127 +                               regulator-enable-ramp-delay = <218>;
128 +                       };
129 +
130 +                       mt6323_vgp1_reg: ldo_vgp1 {
131 +                               regulator-compatible = "ldo_vgp1";
132 +                               regulator-name = "vcamd";
133 +                               regulator-min-microvolt = <1220000>;
134 +                               regulator-max-microvolt = <3300000>;
135 +                               regulator-enable-ramp-delay = <240>;
136 +                       };
137 +
138 +                       mt6323_vgp2_reg: ldo_vgp2 {
139 +                               regulator-compatible = "ldo_vgp2";
140 +                               regulator-name = "vcamio";
141 +                               regulator-min-microvolt = <1000000>;
142 +                               regulator-max-microvolt = <3300000>;
143 +                               regulator-enable-ramp-delay = <218>;
144 +                       };
145 +               };
146 +       };
147 +};
148 --- a/arch/arm/boot/dts/mt7623.dtsi
149 +++ b/arch/arm/boot/dts/mt7623.dtsi
150 @@ -150,6 +150,17 @@
151                         clock-names = "system-clk", "rtc-clk";
152                 };
153  
154 +               pwrap: pwrap@1000f000 {
155 +                       compatible = "mediatek,mt7623-pwrap";
156 +                       reg = <0 0x1000f000 0 0x1000>;
157 +                       reg-names = "pwrap";
158 +                       interrupts = <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>;
159 +                       resets = <&infracfg MT7623_INFRA_PMIC_WRAP_RST>;
160 +                       reset-names = "pwrap";
161 +                       clocks = <&clk26m>, <&clk26m>;
162 +                       clock-names = "spi", "wrap";
163 +               };
164 +
165                 sysirq: interrupt-controller@10200100 {
166                         compatible = "mediatek,mt7623-sysirq",
167                                      "mediatek,mt6577-sysirq";
168 @@ -311,6 +322,7 @@
169                 device_type = "pci";
170  
171                 bus-range = <0 255>;
172 +               status = "disabled";
173                 ranges = <
174                         0x02000000 0 0 0x00000000 0x60000000 0 0x10000000 /* pci memory */
175                         0x01000000 0 0 0x00000000 0x1A160000 0 0x00010000 /* io space */
176 @@ -343,6 +355,5 @@
177                         device_type = "pci";
178                 };
179  
180 -               status = "disabled";
181         };
182  };