ronnie
2022-10-23 5a83b14855e763445ac36672c35ddb68300e4b42
add boot dts
2 files modified
290 ■■■■ changed files
longan/kernel/linux-4.9/arch/arm64/boot/dts/sunxi/sun50iw10p1-pinctrl.dtsi 138 ●●●●● patch | view | raw | blame | history
longan/kernel/linux-4.9/arch/arm64/boot/dts/sunxi/sun50iw10p1.dtsi 152 ●●●● patch | view | raw | blame | history
longan/kernel/linux-4.9/arch/arm64/boot/dts/sunxi/sun50iw10p1-pinctrl.dtsi
....@@ -151,9 +151,10 @@
151151 };
152152
153153 uart2_pins_a: uart2@0 {
154
- allwinner,pins = "PB0", "PB1", "PB2", "PB3";
155
- allwinner,pname = "uart2_tx", "uart2_rx",
156
- "uart2_rts", "uart2_cts";
154
+ //allwinner,pins = "PB0", "PB1", "PB2", "PB3";
155
+ allwinner,pins = "PB0", "PB1";
156
+ allwinner,pname = "uart2_tx", "uart2_rx";
157
+ // "uart2_rts", "uart2_cts";
157158 allwinner,function = "uart2";
158159 allwinner,muxsel = <2>;
159160 allwinner,drive = <1>;
....@@ -161,7 +162,8 @@
161162 };
162163
163164 uart2_pins_b: uart2@1 {
164
- allwinner,pins = "PB0", "PB1", "PB2", "PB3";
165
+ //allwinner,pins = "PB0", "PB1", "PB2", "PB3";
166
+ allwinner,pins = "PB0", "PB1";
165167 allwinner,function = "io_disabled";
166168 allwinner,muxsel = <7>;
167169 allwinner,drive = <1>;
....@@ -169,9 +171,9 @@
169171 };
170172
171173 uart3_pins_a: uart3@0 {
172
- allwinner,pins = "PH4", "PH5", "PH6", "PH7";
173
- allwinner,pname = "uart3_tx", "uart3_rx",
174
- "uart3_rts", "uart3_cts";
174
+ //allwinner,pins = "PH4", "PH5", "PH6", "PH7";
175
+ allwinner,pname = "uart3_tx", "uart3_rx";
176
+ //"uart3_rts", "uart3_cts";
175177 allwinner,function = "uart3";
176178 allwinner,muxsel = <2>;
177179 allwinner,drive = <1>;
....@@ -179,7 +181,8 @@
179181 };
180182
181183 uart3_pins_b: uart3@1 {
182
- allwinner,pins = "PH4", "PH5", "PH6", "PH7";
184
+ //allwinner,pins = "PH4", "PH5", "PH6", "PH7";
185
+ //allwinner,pins = "PH4", "PH5";
183186 allwinner,function = "io_disabled";
184187 allwinner,muxsel = <7>;
185188 allwinner,drive = <1>;
....@@ -187,9 +190,9 @@
187190 };
188191
189192 uart4_pins_a: uart4@0 {
190
- allwinner,pins = "PD18", "PD19", "PD20", "PD21";
191
- allwinner,pname = "uart4_tx", "uart4_rx",
192
- "uart4_rts", "uart4_cts";
193
+ //allwinner,pins = "PD18", "PD19", "PD20", "PD21";
194
+ allwinner,pname = "uart4_tx", "uart4_rx";
195
+ //"uart4_rts", "uart4_cts";
193196 allwinner,function = "uart4";
194197 allwinner,muxsel = <4>;
195198 allwinner,drive = <1>;
....@@ -197,7 +200,8 @@
197200 };
198201
199202 uart4_pins_b: uart4@1 {
200
- allwinner,pins = "PD18", "PD19", "PD20", "PD21";
203
+ //allwinner,pins = "PD18", "PD19", "PD20", "PD21";
204
+ allwinner,pins = "PD18", "PD19";
201205 allwinner,function = "io_disabled";
202206 allwinner,muxsel = <7>;
203207 allwinner,drive = <1>;
....@@ -241,7 +245,7 @@
241245 };
242246
243247 ir0_pins_a: ir0@0 {
244
- allwinner,pins = "PH3";
248
+ //allwinner,pins = "PH3";
245249 allwinner,pname = "it-tx";
246250 allwinner,function = "ir0";
247251 allwinner,muxsel = <3>;
....@@ -250,7 +254,7 @@
250254 };
251255
252256 ir0_pins_b: ir0@1 {
253
- allwinner,pins = "PH3";
257
+ //allwinner,pins = "PH3";
254258 allwinner,pname = "io_disabled";
255259 allwinner,function = "io_disabled";
256260 allwinner,muxsel = <7>;
....@@ -259,16 +263,19 @@
259263 };
260264
261265 twi0_pins_a: twi0@0 {
262
- allwinner,pins = "PB9", "PB10";
266
+ allwinner,pins = "PH0", "PH1";
267
+ //allwinner,pins = "PD22", "PD23";
263268 allwinner,pname = "twi0_scl", "twi0_sda";
264269 allwinner,function = "twi0";
265
- allwinner,muxsel = <3>;
270
+ //allwinner,muxsel = <3>;
271
+ allwinner,muxsel = <2>;
266272 allwinner,drive = <1>;
267273 allwinner,pull = <0>;
268274 };
269275
270276 twi0_pins_b: twi0@1 {
271
- allwinner,pins = "PB9", "PB10";
277
+ allwinner,pins = "PH0", "PH1";
278
+ //allwinner,pins = "PD22", "PD23";
272279 allwinner,function = "io_disabled";
273280 allwinner,muxsel = <7>;
274281 allwinner,drive = <1>;
....@@ -391,11 +398,14 @@
391398 allwinner,drive = <1>;
392399 allwinner,pull = <0>;
393400 };
394
-
401
+/*
395402 spi0_pins_a: spi0@0 {
396
- allwinner,pins = "PC2", "PC4", "PC12", "PC15", "PC16";
403
+ //allwinner,pins = "PC2", "PC4", "PC12", "PC15", "PC16";
404
+ //allwinner,pname = "spi0_mosi", "spi0_miso",
405
+ // "spi0_sclk", "spi0_wp", "spi0_hold";
406
+ allwinner,pins = "PC2", "PC4", "PC12";
397407 allwinner,pname = "spi0_mosi", "spi0_miso",
398
- "spi0_sclk", "spi0_wp", "spi0_hold";
408
+ "spi0_sclk";
399409 allwinner,function = "spi0";
400410 allwinner,muxsel = <4>;
401411 allwinner,drive = <1>;
....@@ -403,22 +413,23 @@
403413 };
404414
405415 spi0_pins_b: spi0@1 {
406
- allwinner,pins = "PC3", "PC7";
407
- allwinner,pname = "spi0_cs0", "spi0_cs1";
416
+ allwinner,pins = "PC3";
417
+ allwinner,pname = "spi0_cs0";
408418 allwinner,function = "spi0";
409419 allwinner,muxsel = <4>;
410420 allwinner,drive = <1>;
411
- allwinner,pull = <1>; /* only CS should be pulled up */
421
+ allwinner,pull = <1>;
412422 };
413423
414424 spi0_pins_c: spi0@2 {
415
- allwinner,pins = "PC2", "PC3", "PC4", "PC7", "PC12", "PC15", "PC16";
425
+ //allwinner,pins = "PC2", "PC3", "PC4", "PC7", "PC12", "PC15", "PC16";
426
+ allwinner,pins = "PC2", "PC3", "PC4", "PC12";
416427 allwinner,function = "io_disabled";
417428 allwinner,muxsel = <7>;
418429 allwinner,drive = <1>;
419430 allwinner,pull = <0>;
420431 };
421
-
432
+*/
422433 spi1_pins_a: spi1@0 {
423434 allwinner,pins = "PD11", "PD12", "PD13";
424435 allwinner,pname = "spi1_sclk", "spi1_mosi",
....@@ -447,11 +458,11 @@
447458 };
448459
449460 spi2_pins_a: spi2@0 {
450
- allwinner,pins = "PB1", "PB2", "PB3";
461
+ //allwinner,pins = "PB1", "PB2", "PB3";
451462 allwinner,pname = "spi2_sclk", "spi2_mosi",
452463 "spi2_miso";
453464 allwinner,function = "spi2";
454
- allwinner,muxsel = <3>;
465
+ //allwinner,muxsel = <3>;
455466 allwinner,drive = <1>;
456467 allwinner,pull = <0>;
457468 };
....@@ -466,7 +477,7 @@
466477 };
467478
468479 spi2_pins_c: spi2@2 {
469
- allwinner,pins = "PB0", "PB1", "PB2", "PB3";
480
+ //allwinner,pins = "PB0", "PB1", "PB2", "PB3";
470481 allwinner,function = "io_disabled";
471482 allwinner,muxsel = <7>;
472483 allwinner,drive = <1>;
....@@ -613,7 +624,7 @@
613624 };
614625
615626 daudio3_pins_a: daudio3@0 {
616
- allwinner,pins = "PH13", "PH14", "PH15", "PH16", "PH17", "PH18", "PH19";
627
+ //allwinner,pins = "PH13", "PH14", "PH15", "PH16", "PH17", "PH18", "PH19";
617628 allwinner,function = "h_i2s3";
618629 allwinner,muxsel = <4>;
619630 allwinner,drive = <1>;
....@@ -621,7 +632,7 @@
621632 };
622633
623634 daudio3_pins_b: daudio3_sleep@0 {
624
- allwinner,pins = "PH13", "PH14", "PH15", "PH16", "PH17", "PH18", "PH19";
635
+ //allwinner,pins = "PH13", "PH14", "PH15", "PH16", "PH17", "PH18", "PH19";
625636 allwinner,function = "io_disabled";
626637 allwinner,muxsel = <7>;
627638 allwinner,drive = <1>;
....@@ -629,7 +640,7 @@
629640 };
630641
631642 spdif_pins_a: spdif@0 {
632
- allwinner,pins = "PH6", "PH7";
643
+ //allwinner,pins = "PH6", "PH7";
633644 allwinner,function = "spdif";
634645 allwinner,muxsel = <4>;
635646 allwinner,drive = <1>;
....@@ -637,7 +648,7 @@
637648 };
638649
639650 spdif_pins_b: spdif_sleep@0 {
640
- allwinner,pins = "PH6", "PH7";
651
+ //allwinner,pins = "PH6", "PH7";
641652 allwinner,function = "io_disabled";
642653 allwinner,muxsel = <7>;
643654 allwinner,drive = <1>;
....@@ -645,7 +656,8 @@
645656 };
646657
647658 dmic_pins_a: dmic@0 {
648
- allwinner,pins = "PH8", "PH9", "PH10", "PH11", "PH12";
659
+ //allwinner,pins = "PH8", "PH9", "PH10", "PH11", "PH12";
660
+ allwinner,pins = "PH8", "PH11", "PH12";
649661 allwinner,function = "dmic";
650662 allwinner,muxsel = <2>;
651663 allwinner,drive = <1>;
....@@ -653,7 +665,8 @@
653665 };
654666
655667 dmic_pins_b: dmic_sleep@0 {
656
- allwinner,pins = "PH8", "PH9", "PH10", "PH11", "PH12";
668
+ //allwinner,pins = "PH8", "PH9", "PH10", "PH11", "PH12";
669
+ allwinner,pins = "PH8", "PH11", "PH12";
657670 allwinner,function = "io_disabled";
658671 allwinner,muxsel = <7>;
659672 allwinner,drive = <1>;
....@@ -720,8 +733,8 @@
720733 };
721734
722735 scr1_pins_a: scr1@0 {
723
- allwinner,pins = "PH5", "PH6", "PH2",
724
- "PH3", "PH4";
736
+ //allwinner,pins = "PH5", "PH6", "PH2",
737
+ // "PH3", "PH4";
725738 allwinner,pname = "scr1_rst", "scr1_det",
726739 "scr1_vccen", "scr1_sck",
727740 "scr1_sda";
....@@ -732,7 +745,7 @@
732745 };
733746
734747 scr1_pins_b: scr1@1 {
735
- allwinner,pins = "PH0", "PH1";
748
+ //allwinner,pins = "PH0", "PH1";
736749 allwinner,pname = "scr1_vppen", "scr1_vppp";
737750 allwinner,function = "sim1";
738751 allwinner,muxsel = <5>;
....@@ -741,9 +754,9 @@
741754 };
742755
743756 scr1_pins_c: scr1@2 {
744
- allwinner,pins = "PH0", "PH1", "PH2",
745
- "PH3", "PH4", "PH5",
746
- "PH6";
757
+ //allwinner,pins = "PH0", "PH1", "PH2",
758
+ // "PH3", "PH4", "PH5",
759
+ // "PH6";
747760 allwinner,function = "io_disabled";
748761 allwinner,muxsel = <7>;
749762 allwinner,drive = <1>;
....@@ -801,23 +814,29 @@
801814 allwinner,drive = <1>;
802815 allwinner,pull = <0>;
803816 };
804
-
805817 gmac_pins_a: gmac@0 {
818
+ //allwinner,pins = "PH0", "PH1", "PH2", "PH3",
819
+ // "PH4", "PH5", "PH6", "PH7",
820
+ // "PH9", "PH10", "PH13", "PH14",
821
+ // "PH15", "PH16", "PH17", "PH18";
806822 allwinner,pins = "PH0", "PH1", "PH2", "PH3",
807823 "PH4", "PH5", "PH6", "PH7",
808
- "PH9", "PH10", "PH13", "PH14",
809
- "PH15", "PH16", "PH17", "PH18";
824
+ "PH9", "PH10";
810825 allwinner,function = "gmac0";
811826 allwinner,muxsel = <5>;
812827 allwinner,drive = <3>;
813
- allwinner,pull = <0>;
828
+ allwinner,pull = <0xffffffff>;
829
+ allwinner,data = <0xffffffff>;
814830 };
815831
816832 gmac_pins_b: gmac@1 {
833
+ //allwinner,pins = "PH0", "PH1", "PH2", "PH3",
834
+ // "PH4", "PH5", "PH6", "PH7",
835
+ // "PH9", "PH10", "PH13", "PH14",
836
+ // "PH15", "PH16", "PH17", "PH18";
817837 allwinner,pins = "PH0", "PH1", "PH2", "PH3",
818838 "PH4", "PH5", "PH6", "PH7",
819
- "PH9", "PH10", "PH13", "PH14",
820
- "PH15", "PH16", "PH17", "PH18";
839
+ "PH9", "PH10";
821840 allwinner,function = "io_disabled";
822841 allwinner,muxsel = <7>;
823842 allwinner,drive = <3>;
....@@ -861,6 +880,7 @@
861880 allwinner,drive = <1>;
862881 allwinner,pull = <0>;
863882 };
883
+
864884 lvds0_pins_a: lvds0@0 {
865885 allwinner,pins = "PD0", "PD1", "PD2", "PD3", "PD4", "PD5", "PD8", "PD9", "PD6", "PD7";
866886 allwinner,pname = "PD0", "PD1", "PD2", "PD3", "PD4", "PD5", "PD8", "PD9", "PD6", "PD7";
....@@ -962,6 +982,7 @@
962982 allwinner,drive = <3>;
963983 allwinner,pull = <0>;
964984 };
985
+
965986 lvds2link_pins_b: lvds2link@1 {
966987 allwinner,pins = "PD0", "PD1", "PD2", "PD3", "PD4", "PD5", "PD8", "PD9", "PD6", "PD7", \
967988 "PD10", "PD11", "PD12", "PD13", "PD14", "PD15", "PD18", "PD19", "PD16", "PD17";
....@@ -1022,6 +1043,31 @@
10221043 allwinner,pull = <0>;
10231044 };
10241045
1046
+ rgb16_pins_a: rgb16@0 {
1047
+ allwinner,pins = "PD0", "PD1", "PD2", "PD3", "PD4", "PD5", "PD6", "PD7", "PD8", "PD9", \
1048
+ "PD10", "PD11", "PD12", "PD13", "PD14", "PD15", "PD16", "PD17", "PD18", "PD19", \
1049
+ "PD20", "PD21";
1050
+ allwinner,pname = "PD0", "PD1", "PD2", "PD3", "PD4", "PD5", "PD6", "PD7", "PD8", "PD9", \
1051
+ "PD10", "PD11", "PD12", "PD13", "PD14", "PD15", "PD16", "PD17", "PD18", "PD19", \
1052
+ "PD20", "PD21";
1053
+ allwinner,function = "rgb16";
1054
+ allwinner,muxsel = <2>;
1055
+ allwinner,drive = <3>;
1056
+ allwinner,pull = <0>;
1057
+ };
1058
+ rgb16_pins_b: rgb16@1 {
1059
+ allwinner,pins = "PD0", "PD1", "PD2", "PD3", "PD4", "PD5", "PD6", "PD7", "PD8", "PD9", \
1060
+ "PD10", "PD11", "PD12", "PD13", "PD14", "PD15", "PD16", "PD17", "PD18", "PD19", \
1061
+ "PD20", "PD21";
1062
+ allwinner,pname = "PD0", "PD1", "PD2", "PD3", "PD4", "PD5", "PD6", "PD7", "PD8", "PD9", \
1063
+ "PD10", "PD11", "PD12", "PD13", "PD14", "PD15", "PD16", "PD17", "PD18", "PD19", \
1064
+ "PD20", "PD21";
1065
+ allwinner,function = "rgb16_suspend";
1066
+ allwinner,muxsel = <7>;
1067
+ allwinner,drive = <1>;
1068
+ allwinner,pull = <0>;
1069
+ };
1070
+
10251071 eink_pins_a: eink@0 {
10261072 allwinner,pins = "PD0", "PD1", "PD2", "PD3", "PD4", "PD5", "PD6", "PD7", "PD8", "PD9", \
10271073 "PD10", "PD11", "PD12", "PD13", "PD14", "PD15", "PD16", "PD17", "PD18", "PD19", \
longan/kernel/linux-4.9/arch/arm64/boot/dts/sunxi/sun50iw10p1.dtsi
....@@ -12,6 +12,11 @@
1212 #include "sun50iw10p1-clk.dtsi"
1313 #include "sun50iw10p1-pinctrl.dtsi"
1414 #include <dt-bindings/thermal/thermal.h>
15
+
16
+#define V1A 0
17
+#define V1B 1
18
+
19
+
1520 / {
1621 model = "sun50iw10";
1722 compatible = "arm,sun50iw10p1";
....@@ -178,28 +183,39 @@
178183
179184 cpu_opp_l_table: opp_l_table {
180185 compatible = "allwinner,sun50i-operating-points";
181
- nvmem-cells = <&speedbin_efuse>, <&cpubin_efuse>;
182
- nvmem-cell-names = "speed", "bin";
186
+ nvmem-cells = <&speedbin_efuse>, <&cpubin_efuse>, <&cpubin_extend>;
187
+ nvmem-cell-names = "speed", "bin", "bin_ext";
183188 opp-shared;
184189
185
- opp@408000000 {
190
+ opp@408000000-0 {
186191 opp-hz = /bits/ 64 <408000000>;
187192 clock-latency-ns = <244144>; /* 8 32k periods */
188193 opp-microvolt-a0 = <900000>;
189194 opp-microvolt-a1 = <900000>;
190195 opp-microvolt-a2 = <900000>;
196
+ opp-microvolt-a3 = <940000>;
197
+ opp-microvolt-a4 = <940000>;
198
+ opp-microvolt-a5 = <920000>;
199
+ opp-microvolt-a6 = <920000>;
191200 opp-microvolt-b0 = <900000>;
192201 opp-microvolt-b1 = <900000>;
202
+ opp-microvolt-b2 = <940000>;
203
+ opp-microvolt-b3 = <920000>;
193204 };
194
-
195205 opp@600000000 {
196206 opp-hz = /bits/ 64 <600000000>;
197207 clock-latency-ns = <244144>; /* 8 32k periods */
198208 opp-microvolt-a0 = <900000>;
199209 opp-microvolt-a1 = <900000>;
200210 opp-microvolt-a2 = <900000>;
211
+ opp-microvolt-a3 = <940000>;
212
+ opp-microvolt-a4 = <940000>;
213
+ opp-microvolt-a5 = <920000>;
214
+ opp-microvolt-a6 = <920000>;
201215 opp-microvolt-b0 = <900000>;
202216 opp-microvolt-b1 = <900000>;
217
+ opp-microvolt-b2 = <940000>;
218
+ opp-microvolt-b3 = <920000>;
203219 };
204220
205221 opp@816000000 {
....@@ -208,8 +224,14 @@
208224 opp-microvolt-a0 = <940000>;
209225 opp-microvolt-a1 = <900000>;
210226 opp-microvolt-a2 = <900000>;
227
+ opp-microvolt-a3 = <940000>;
228
+ opp-microvolt-a4 = <940000>;
229
+ opp-microvolt-a5 = <920000>;
230
+ opp-microvolt-a6 = <920000>;
211231 opp-microvolt-b0 = <900000>;
212232 opp-microvolt-b1 = <900000>;
233
+ opp-microvolt-b2 = <940000>;
234
+ opp-microvolt-b3 = <920000>;
213235 };
214236
215237 opp@1008000000 {
....@@ -218,8 +240,14 @@
218240 opp-microvolt-a0 = <1020000>;
219241 opp-microvolt-a1 = <980000>;
220242 opp-microvolt-a2 = <950000>;
243
+ opp-microvolt-a3 = <1020000>;
244
+ opp-microvolt-a4 = <960000>;
245
+ opp-microvolt-a5 = <940000>;
246
+ opp-microvolt-a6 = <940000>;
221247 opp-microvolt-b0 = <980000>;
222248 opp-microvolt-b1 = <950000>;
249
+ opp-microvolt-b2 = <960000>;
250
+ opp-microvolt-b3 = <940000>;
223251 };
224252
225253 opp@1200000000 {
....@@ -228,8 +256,14 @@
228256 opp-microvolt-a0 = <1100000>;
229257 opp-microvolt-a1 = <1020000>;
230258 opp-microvolt-a2 = <1000000>;
259
+ opp-microvolt-a3 = <1100000>;
260
+ opp-microvolt-a4 = <980000>;
261
+ opp-microvolt-a5 = <960000>;
262
+ opp-microvolt-a6 = <960000>;
231263 opp-microvolt-b0 = <1020000>;
232264 opp-microvolt-b1 = <1000000>;
265
+ opp-microvolt-b2 = <980000>;
266
+ opp-microvolt-b3 = <960000>;
233267 };
234268
235269 opp@1320000000 {
....@@ -238,23 +272,38 @@
238272 opp-microvolt-a0 = <1160000>;
239273 opp-microvolt-a1 = <1060000>;
240274 opp-microvolt-a2 = <1030000>;
275
+ opp-microvolt-a3 = <1160000>;
276
+ opp-microvolt-a4 = <1020000>;
277
+ opp-microvolt-a5 = <1000000>;
278
+ opp-microvolt-a6 = <1000000>;
241279 opp-microvolt-b0 = <1060000>;
242280 opp-microvolt-b1 = <1030000>;
281
+ opp-microvolt-b2 = <1020000>;
282
+ opp-microvolt-b3 = <1000000>;
243283 };
244284
245285 opp@1416000000 {
246286 opp-hz = /bits/ 64 <1416000000>;
247287 clock-latency-ns = <244144>; /* 8 32k periods */
288
+ opp-microvolt-a0 = <1180000>;
289
+ opp-microvolt-a1 = <1180000>;
290
+ opp-microvolt-a2 = <1130000>;
248291 opp-microvolt-b0 = <1100000>;
249292 opp-microvolt-b1 = <1070000>;
293
+ opp-microvolt-b2 = <1060000>;
294
+ opp-microvolt-b3 = <1040000>;
250295 };
251296
252297 opp@1464000000 {
253298 opp-hz = /bits/ 64 <1464000000>;
254
- clock-latency-ns = <244144>; /* 8 32k periods */
299
+ clock-latency-ns = <244144>;
255300 opp-microvolt-a0 = <1180000>;
256301 opp-microvolt-a1 = <1180000>;
257302 opp-microvolt-a2 = <1130000>;
303
+ opp-microvolt-a3 = <1180000>;
304
+ opp-microvolt-a4 = <1100000>;
305
+ opp-microvolt-a5 = <1080000>;
306
+ opp-microvolt-a6 = <1080000>;
258307 };
259308
260309 opp@1512000000 {
....@@ -262,14 +311,15 @@
262311 clock-latency-ns = <244144>; /* 8 32k periods */
263312 opp-microvolt-b0 = <1180000>;
264313 opp-microvolt-b1 = <1130000 1130000 1140000>;
314
+ opp-microvolt-b2 = <1100000>;
315
+ opp-microvolt-b3 = <1080000>;
265316 };
266
-
267317 opp@1608000000 {
268
- opp-hz = /bits/ 64 <1608000000>;
269
- clock-latency-ns = <244144>; /* 8 32k periods */
318
+ opp-hz = /bits/ 64 <1608000000>;
319
+ clock-latency-ns = <244144>; /* 8 32k periods */
270320 opp-microvolt-b0 = <1180000>;
271321 opp-microvolt-b1 = <1130000 1130000 1140000>;
272
- };
322
+ };
273323 };
274324
275325 psci {
....@@ -438,6 +488,9 @@
438488 cpubin_efuse: calib@1c {
439489 reg = <0x1c 2>;
440490 };
491
+ cpubin_extend: calib@28 {
492
+ reg = <0x28 4>;
493
+ };
441494 };
442495
443496 chipid: sunxi-chipid@03006200 {
....@@ -603,7 +656,7 @@
603656 pinctrl-names = "default";
604657 pinctrl-0 = <&s_cir0_pins_a>;
605658 clocks = <&clk_hosc>,<&clk_cpurcir>;
606
- status = "okay";
659
+ status = "disabled";
607660 };
608661
609662 ir1: ir@0x05071000 {
....@@ -701,7 +754,7 @@
701754 pinctrl-1 = <&uart2_pins_b>;
702755 uart2_port = <2>;
703756 uart2_type = <4>;
704
- status = "disabled";
757
+ status = "okay";
705758 };
706759
707760 uart3: uart@05000c00 {
....@@ -813,7 +866,7 @@
813866 pinctrl-names = "default", "sleep";
814867 pinctrl-0 = <&twi0_pins_a>;
815868 pinctrl-1 = <&twi0_pins_b>;
816
- status = "disabled";
869
+ status = "okay";
817870 };
818871
819872 twi1: twi@0x05002400{
....@@ -843,7 +896,7 @@
843896 pinctrl-names = "default", "sleep";
844897 pinctrl-0 = <&twi2_pins_a>;
845898 pinctrl-1 = <&twi2_pins_b>;
846
- status = "disabled";
899
+ status = "ok";
847900 };
848901
849902 twi3: twi@0x05002c00{
....@@ -858,7 +911,7 @@
858911 pinctrl-names = "default", "sleep";
859912 pinctrl-0 = <&twi3_pins_a>;
860913 pinctrl-1 = <&twi3_pins_b>;
861
- status = "disabled";
914
+ status = "ok";
862915 };
863916
864917 twi4: twi@0x05003000{
....@@ -1001,9 +1054,9 @@
10011054 compatible = "allwinner,sunxi-codec-machine";
10021055 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
10031056 sunxi,audio-codec = <&codec>;
1004
- hp_detect_case = <0x00>;
1057
+ hp_detect_case = <0x01>;
10051058 device_type = "sndcodec";
1006
- status = "disabled";
1059
+ status = "okay";
10071060 };
10081061
10091062 spdif:spdif-controller@0x05094000{
....@@ -1032,14 +1085,14 @@
10321085 pinctrl-0 = <&dmic_pins_a>;
10331086 pinctrl-1 = <&dmic_pins_b>;
10341087 device_type = "dmic";
1035
- status = "disabled";
1088
+ status = "okay";
10361089 };
10371090
10381091 snddmic:sound@2{
10391092 compatible = "allwinner,sunxi-dmic-machine";
10401093 sunxi,dmic-controller = <&dmic>;
10411094 device_type = "snddmic";
1042
- status = "disabled";
1095
+ status = "okay";
10431096 };
10441097
10451098
....@@ -1118,7 +1171,7 @@
11181171 device_type = "snddaudio3";
11191172 status = "disabled";
11201173 };
1121
-
1174
+/*
11221175 spi0: spi@05010000 {
11231176 #address-cells = <1>;
11241177 #size-cells = <0>;
....@@ -1135,7 +1188,7 @@
11351188 spi0_cs_bitmap = <1>;
11361189 status = "disabled";
11371190 };
1138
-
1191
+*/
11391192 spi1: spi@05011000 {
11401193 #address-cells = <1>;
11411194 #size-cells = <0>;
....@@ -1457,7 +1510,7 @@
14571510 <&clk_lvds>,
14581511 <&clk_lvds1>,
14591512 <&clk_mipi_host>;
1460
- boot_disp = <0>;
1513
+ boot_disp = <1>;
14611514 boot_disp1 = <0>;
14621515 boot_disp2 = <0>;
14631516 fb_base = <0>;
....@@ -1768,9 +1821,9 @@
17681821 sensor0:sensor@0 {
17691822 device_type = "sensor0";
17701823 compatible = "allwinner,sunxi-sensor";
1771
- sensor0_mname = "ov5640";
1824
+ sensor0_mname = "ov8858_r2a_4lane";
17721825 sensor0_twi_cci_id = <2>;
1773
- sensor0_twi_addr = <0x78>;
1826
+ sensor0_twi_addr = <0x6C>;
17741827 sensor0_mclk_id = <0>;
17751828 sensor0_pos = "rear";
17761829 sensor0_isp_used = <0>;
....@@ -1779,14 +1832,14 @@
17791832 sensor0_vflip = <0>;
17801833 sensor0_hflip = <0>;
17811834 sensor0_iovdd-supply = <>;
1782
- sensor0_iovdd_vol = <2800000>;
1835
+ sensor0_iovdd_vol = <1800000>;
17831836 sensor0_avdd-supply = <>;
17841837 sensor0_avdd_vol = <2800000>;
17851838 sensor0_dvdd-supply = <>;
1786
- sensor0_dvdd_vol = <1500000>;
1839
+ sensor0_dvdd_vol = <1200000>;
17871840 sensor0_power_en = <>;
1788
- sensor0_reset = <&pio PE 14 1 0 1 0>;
1789
- sensor0_pwdn = <&pio PE 16 1 0 1 0>;
1841
+ sensor0_reset = <&pio PE 6 1 0 1 0>;
1842
+ sensor0_pwdn = <&pio PE 7 1 0 1 0>;
17901843 sensor0_sm_vs = <>;
17911844 flash_handle = <&flash0>;
17921845 act_handle = <&actuator0>;
....@@ -1796,7 +1849,7 @@
17961849 sensor1:sensor@1 {
17971850 device_type = "sensor1";
17981851 compatible = "allwinner,sunxi-sensor";
1799
- sensor1_mname = "ov5647";
1852
+ sensor1_mname = "ov5648_mipi";
18001853 sensor1_twi_cci_id = <3>;
18011854 sensor1_twi_addr = <0x6c>;
18021855 sensor1_mclk_id = <1>;
....@@ -1813,8 +1866,8 @@
18131866 sensor1_dvdd-supply = <>;
18141867 sensor1_dvdd_vol = <1500000>;
18151868 sensor1_power_en = <>;
1816
- sensor1_reset = <&pio PE 14 1 0 1 0>;
1817
- sensor1_pwdn = <&pio PE 15 1 0 1 0>;
1869
+ sensor1_reset = <&pio PE 8 1 0 1 0>;
1870
+ sensor1_pwdn = <&pio PE 9 1 0 1 0>;
18181871 sensor1_sm_vs = <>;
18191872 flash_handle = <>;
18201873 act_handle = <>;
....@@ -2032,7 +2085,17 @@
20322085 key3 = <750 28>;
20332086 key4 = <880 102>;
20342087 };
2035
-
2088
+/*
2089
+ gpio-keys {
2090
+ compatible = "gpio-keys";
2091
+ status = "okay";
2092
+ power {
2093
+ gpios = <&pio PB 2 0 0xffffffff 0xffffffff 0>;
2094
+ label = "KEY1";
2095
+ linux,code = <100>;
2096
+ };
2097
+ };
2098
+*/
20362099 gmac0: eth@05020000 {
20372100 compatible = "allwinner,sunxi-gmac";
20382101 reg = <0x0 0x05020000 0x0 0x10000>,
....@@ -2045,14 +2108,25 @@
20452108 pinctrl-0 = <&gmac_pins_a>;
20462109 pinctrl-1 = <&gmac_pins_b>;
20472110 pinctrl-names = "default", "sleep";
2048
- phy-mode;
2111
+ //phy-mode;
2112
+ phy-mode = "rmii";
20492113 tx-delay = <7>;
2050
- rx-delay = <31>;
2051
- phy-rst;
2052
- gmac-power0;
2053
- gmac-power1;
2054
- gmac-power2;
2055
- status = "disable";
2114
+ rx-delay = <10>;
2115
+ //phy-rst;
2116
+ #if V1A
2117
+ phy-rst = <&pio PH 12 1 0 1 0>;
2118
+ #elif V1B
2119
+ phy-rst = <&pio PB 7 1 0 1 0>;
2120
+ #endif
2121
+ gmac-power0 = <&reg_aldo3>;
2122
+ gmac-power1 = <&reg_fldo1>;
2123
+ gmac-power2 = <&reg_eldo2>;
2124
+
2125
+ gmac-power0-vol = <3300000>;
2126
+ gmac-power1-vol = <1200000>;
2127
+ gmac-power2-vol = <1800000>;
2128
+
2129
+ status = "okay";
20562130 };
20572131
20582132 gmac1: eth@05030000 {
....@@ -2074,7 +2148,7 @@
20742148 gmac-power0;
20752149 gmac-power1;
20762150 gmac-power2;
2077
- status = "disable";
2151
+ status = "disabled";
20782152 };
20792153 };
20802154