hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/arm/boot/dts/exynos4210-universal_c210.dts
....@@ -24,8 +24,8 @@
2424 };
2525
2626 chosen {
27
- bootargs = "console=ttySAC2,115200N8 root=/dev/mmcblk0p5 rw rootwait earlyprintk panic=5 maxcpus=1";
28
- stdout-path = &serial_2;
27
+ bootargs = "root=/dev/mmcblk0p5 rw rootwait earlyprintk panic=5 maxcpus=1";
28
+ stdout-path = "serial2:115200n8";
2929 };
3030
3131
....@@ -39,15 +39,27 @@
3939 compatible = "samsung,clock-xusbxti";
4040 clock-frequency = <24000000>;
4141 };
42
+
43
+ pmic_ap_clk: pmic-ap-clk {
44
+ /* Workaround for missing clock on PMIC */
45
+ compatible = "fixed-clock";
46
+ #clock-cells = <0>;
47
+ clock-frequency = <32768>;
48
+ };
4249 };
4350
4451 vemmc_reg: voltage-regulator {
45
- compatible = "regulator-fixed";
52
+ compatible = "regulator-fixed";
4653 regulator-name = "VMEM_VDD_2_8V";
4754 regulator-min-microvolt = <2800000>;
4855 regulator-max-microvolt = <2800000>;
4956 gpio = <&gpe1 3 GPIO_ACTIVE_HIGH>;
5057 enable-active-high;
58
+ };
59
+
60
+ wlan_pwrseq: sdhci3-pwrseq {
61
+ compatible = "mmc-pwrseq-simple";
62
+ reset-gpios = <&gpe3 1 GPIO_ACTIVE_LOW>;
5163 };
5264
5365 gpio-keys {
....@@ -99,7 +111,7 @@
99111 };
100112
101113 tsp_reg: voltage-regulator {
102
- compatible = "regulator-fixed";
114
+ compatible = "regulator-fixed";
103115 regulator-name = "TSP_2_8V";
104116 regulator-min-microvolt = <2800000>;
105117 regulator-max-microvolt = <2800000>;
....@@ -107,15 +119,15 @@
107119 enable-active-high;
108120 };
109121
110
- spi-lcd {
122
+ spi-3 {
111123 compatible = "spi-gpio";
112124 #address-cells = <1>;
113125 #size-cells = <0>;
114126
115
- gpio-sck = <&gpy3 1 GPIO_ACTIVE_HIGH>;
116
- gpio-mosi = <&gpy3 3 GPIO_ACTIVE_HIGH>;
127
+ sck-gpios = <&gpy3 1 GPIO_ACTIVE_HIGH>;
128
+ mosi-gpios = <&gpy3 3 GPIO_ACTIVE_HIGH>;
117129 num-chipselects = <1>;
118
- cs-gpios = <&gpy4 3 GPIO_ACTIVE_HIGH>;
130
+ cs-gpios = <&gpy4 3 GPIO_ACTIVE_LOW>;
119131
120132 lcd@0 {
121133 compatible = "samsung,ld9040";
....@@ -124,8 +136,6 @@
124136 vci-supply = <&ldo17_reg>;
125137 reset-gpios = <&gpy4 5 GPIO_ACTIVE_HIGH>;
126138 spi-max-frequency = <1200000>;
127
- spi-cpol;
128
- spi-cpha;
129139 power-on-delay = <10>;
130140 reset-delay = <10>;
131141 panel-width-mm = <90>;
....@@ -166,7 +176,8 @@
166176
167177 hdmi_ddc: i2c-ddc {
168178 compatible = "i2c-gpio";
169
- gpios = <&gpe4 2 GPIO_ACTIVE_HIGH &gpe4 3 GPIO_ACTIVE_HIGH>;
179
+ sda-gpios = <&gpe4 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
180
+ scl-gpios = <&gpe4 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
170181 i2c-gpio,delay-us = <100>;
171182 #address-cells = <1>;
172183 #size-cells = <0>;
....@@ -188,11 +199,23 @@
188199 cpu0-supply = <&vdd_arm_reg>;
189200 };
190201
202
+&cpu_thermal {
203
+ cooling-maps {
204
+ map0 {
205
+ /* Corresponds to 800MHz */
206
+ cooling-device = <&cpu0 2 2>;
207
+ };
208
+ map1 {
209
+ /* Corresponds to 200MHz */
210
+ cooling-device = <&cpu0 4 4>;
211
+ };
212
+ };
213
+};
214
+
191215 &ehci {
192216 status = "okay";
193
- port@0 {
194
- status = "okay";
195
- };
217
+ phys = <&exynos_usbphy 1>;
218
+ phy-names = "host";
196219 };
197220
198221 &exynos_usbphy {
....@@ -248,6 +271,11 @@
248271 };
249272 };
250273
274
+&gpu {
275
+ mali-supply = <&buck2_reg>;
276
+ status = "okay";
277
+};
278
+
251279 &hdmi {
252280 hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>;
253281 pinctrl-names = "default";
....@@ -301,7 +329,7 @@
301329 max8952,sync-freq = <0>;
302330 max8952,ramp-speed = <0>;
303331
304
- regulator-name = "vdd_arm";
332
+ regulator-name = "VARM_1.2V_C210";
305333 regulator-min-microvolt = <770000>;
306334 regulator-max-microvolt = <1400000>;
307335 regulator-always-on;
....@@ -310,6 +338,9 @@
310338
311339 pmic@66 {
312340 compatible = "national,lp3974";
341
+ interrupts-extended = <&gpx0 7 0>, <&gpx2 7 0>;
342
+ pinctrl-names = "default";
343
+ pinctrl-0 = <&lp3974_irq>;
313344 reg = <0x66>;
314345
315346 max8998,pmic-buck1-default-dvs-idx = <0>;
....@@ -488,7 +519,8 @@
488519 };
489520
490521 &mdma1 {
491
- reg = <0x12840000 0x1000>;
522
+ /* Use the secure mdma0 */
523
+ status = "disabled";
492524 };
493525
494526 &mixer {
....@@ -497,12 +529,14 @@
497529
498530 &ohci {
499531 status = "okay";
500
- port@0 {
501
- status = "okay";
502
- };
503532 };
504533
505534 &pinctrl_1 {
535
+ lp3974_irq: lp3974-irq {
536
+ samsung,pins = "gpx0-7", "gpx2-7";
537
+ samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
538
+ };
539
+
506540 hdmi_hpd: hdmi-hpd {
507541 samsung,pins = "gpx3-7";
508542 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
....@@ -523,6 +557,12 @@
523557 status = "okay";
524558 };
525559
560
+&rtc {
561
+ status = "okay";
562
+ clocks = <&clock CLK_RTC>, <&pmic_ap_clk>;
563
+ clock-names = "rtc", "rtc_src";
564
+};
565
+
526566 &sdhci_0 {
527567 bus-width = <8>;
528568 non-removable;
....@@ -537,9 +577,31 @@
537577 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4>;
538578 pinctrl-names = "default";
539579 vmmc-supply = <&ldo5_reg>;
540
- cd-gpios = <&gpx3 4 GPIO_ACTIVE_HIGH>;
541
- cd-inverted;
580
+ cd-gpios = <&gpx3 4 GPIO_ACTIVE_LOW>;
542581 status = "okay";
582
+};
583
+
584
+&sdhci_3 {
585
+ status = "okay";
586
+
587
+ #address-cells = <1>;
588
+ #size-cells = <0>;
589
+
590
+ non-removable;
591
+ bus-width = <4>;
592
+ mmc-pwrseq = <&wlan_pwrseq>;
593
+ vmmc-supply = <&ldo5_reg>;
594
+
595
+ pinctrl-names = "default";
596
+ pinctrl-0 = <&sd3_clk>, <&sd3_cmd>, <&sd3_bus4>;
597
+
598
+ brcmf: wifi@1 {
599
+ compatible = "brcm,bcm4330-fmac";
600
+ reg = <1>;
601
+ interrupt-parent = <&gpx2>;
602
+ interrupts = <5 IRQ_TYPE_LEVEL_HIGH>;
603
+ interrupt-names = "host-wake";
604
+ };
543605 };
544606
545607 &serial_0 {
....@@ -566,17 +628,31 @@
566628 /delete-property/dma-names;
567629 };
568630
631
+&soc {
632
+ mdma0: mdma@12840000 {
633
+ compatible = "arm,pl330", "arm,primecell";
634
+ reg = <0x12840000 0x1000>;
635
+ interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
636
+ clocks = <&clock CLK_MDMA>;
637
+ clock-names = "apb_pclk";
638
+ #dma-cells = <1>;
639
+ #dma-channels = <8>;
640
+ #dma-requests = <1>;
641
+ power-domains = <&pd_lcd0>;
642
+ };
643
+};
644
+
569645 &sysram {
570
- smp-sysram@0 {
646
+ smp-sram@0 {
571647 status = "disabled";
572648 };
573649
574
- smp-sysram@5000 {
650
+ smp-sram@5000 {
575651 compatible = "samsung,exynos4210-sysram";
576652 reg = <0x5000 0x1000>;
577653 };
578654
579
- smp-sysram@1f000 {
655
+ smp-sram@1f000 {
580656 status = "disabled";
581657 };
582658 };