hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/arm64/boot/dts/mediatek/mt7622.dtsi
....@@ -70,7 +70,7 @@
7070
7171 cpu0: cpu@0 {
7272 device_type = "cpu";
73
- compatible = "arm,cortex-a53", "arm,armv8";
73
+ compatible = "arm,cortex-a53";
7474 reg = <0x0 0x0>;
7575 clocks = <&infracfg CLK_INFRA_MUX1_SEL>,
7676 <&apmixedsys CLK_APMIXED_MAIN_CORE_EN>;
....@@ -79,11 +79,12 @@
7979 #cooling-cells = <2>;
8080 enable-method = "psci";
8181 clock-frequency = <1300000000>;
82
+ cci-control-port = <&cci_control2>;
8283 };
8384
8485 cpu1: cpu@1 {
8586 device_type = "cpu";
86
- compatible = "arm,cortex-a53", "arm,armv8";
87
+ compatible = "arm,cortex-a53";
8788 reg = <0x0 0x1>;
8889 clocks = <&infracfg CLK_INFRA_MUX1_SEL>,
8990 <&apmixedsys CLK_APMIXED_MAIN_CORE_EN>;
....@@ -92,6 +93,7 @@
9293 #cooling-cells = <2>;
9394 enable-method = "psci";
9495 clock-frequency = <1300000000>;
96
+ cci-control-port = <&cci_control2>;
9597 };
9698 };
9799
....@@ -111,6 +113,13 @@
111113 psci {
112114 compatible = "arm,psci-0.2";
113115 method = "smc";
116
+ };
117
+
118
+ pmu {
119
+ compatible = "arm,cortex-a53-pmu";
120
+ interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_LOW>,
121
+ <GIC_SPI 9 IRQ_TYPE_LEVEL_LOW>;
122
+ interrupt-affinity = <&cpu0>, <&cpu1>;
114123 };
115124
116125 reserved-memory {
....@@ -161,17 +170,20 @@
161170 cooling-maps {
162171 map0 {
163172 trip = <&cpu_passive>;
164
- cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
173
+ cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
174
+ <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
165175 };
166176
167177 map1 {
168178 trip = <&cpu_active>;
169
- cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
179
+ cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
180
+ <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
170181 };
171182
172183 map2 {
173184 trip = <&cpu_hot>;
174
- cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
185
+ cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
186
+ <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
175187 };
176188 };
177189 };
....@@ -218,7 +230,7 @@
218230 #reset-cells = <1>;
219231 };
220232
221
- scpsys: scpsys@10006000 {
233
+ scpsys: power-controller@10006000 {
222234 compatible = "mediatek,mt7622-scpsys",
223235 "syscon";
224236 #power-domain-cells = <1>;
....@@ -325,6 +337,42 @@
325337 <0 0x10360000 0 0x2000>;
326338 };
327339
340
+ cci: cci@10390000 {
341
+ compatible = "arm,cci-400";
342
+ #address-cells = <1>;
343
+ #size-cells = <1>;
344
+ reg = <0 0x10390000 0 0x1000>;
345
+ ranges = <0 0 0x10390000 0x10000>;
346
+
347
+ cci_control0: slave-if@1000 {
348
+ compatible = "arm,cci-400-ctrl-if";
349
+ interface-type = "ace-lite";
350
+ reg = <0x1000 0x1000>;
351
+ };
352
+
353
+ cci_control1: slave-if@4000 {
354
+ compatible = "arm,cci-400-ctrl-if";
355
+ interface-type = "ace";
356
+ reg = <0x4000 0x1000>;
357
+ };
358
+
359
+ cci_control2: slave-if@5000 {
360
+ compatible = "arm,cci-400-ctrl-if";
361
+ interface-type = "ace";
362
+ reg = <0x5000 0x1000>;
363
+ };
364
+
365
+ pmu@9000 {
366
+ compatible = "arm,cci-400-pmu,r1";
367
+ reg = <0x9000 0x5000>;
368
+ interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
369
+ <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
370
+ <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
371
+ <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>,
372
+ <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
373
+ };
374
+ };
375
+
328376 auxadc: adc@11001000 {
329377 compatible = "mediatek,mt7622-auxadc";
330378 reg = <0 0x11001000 0 0x1000>;
....@@ -380,6 +428,7 @@
380428 pwm: pwm@11006000 {
381429 compatible = "mediatek,mt7622-pwm";
382430 reg = <0 0x11006000 0 0x1000>;
431
+ #pwm-cells = <2>;
383432 interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_LOW>;
384433 clocks = <&topckgen CLK_TOP_PWM_SEL>,
385434 <&pericfg CLK_PERI_PWM_PD>,
....@@ -475,6 +524,13 @@
475524 reg-shift = <2>;
476525 reg-io-width = <4>;
477526 status = "disabled";
527
+
528
+ bluetooth {
529
+ compatible = "mediatek,mt7622-bluetooth";
530
+ power-domains = <&scpsys MT7622_POWER_DOMAIN_WB>;
531
+ clocks = <&clk25m>;
532
+ clock-names = "ref";
533
+ };
478534 };
479535
480536 nandc: nfi@1100d000 {
....@@ -631,6 +687,8 @@
631687 clocks = <&pericfg CLK_PERI_MSDC30_0_PD>,
632688 <&topckgen CLK_TOP_MSDC50_0_SEL>;
633689 clock-names = "source", "hclk";
690
+ resets = <&pericfg MT7622_PERI_MSDC0_SW_RST>;
691
+ reset-names = "hrst";
634692 status = "disabled";
635693 };
636694
....@@ -644,6 +702,17 @@
644702 resets = <&pericfg MT7622_PERI_MSDC1_SW_RST>;
645703 reset-names = "hrst";
646704 status = "disabled";
705
+ };
706
+
707
+ wmac: wmac@18000000 {
708
+ compatible = "mediatek,mt7622-wmac";
709
+ reg = <0 0x18000000 0 0x100000>;
710
+ interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_LOW>;
711
+
712
+ mediatek,infracfg = <&infracfg>;
713
+ status = "disabled";
714
+
715
+ power-domains = <&scpsys MT7622_POWER_DOMAIN_WB>;
647716 };
648717
649718 ssusbsys: ssusbsys@1a000000 {
....@@ -752,7 +821,6 @@
752821 ranges;
753822 status = "disabled";
754823
755
- num-lanes = <1>;
756824 interrupt-map-mask = <0 0 0 7>;
757825 interrupt-map = <0 0 0 1 &pcie_intc0 0>,
758826 <0 0 0 2 &pcie_intc0 1>,
....@@ -773,7 +841,6 @@
773841 ranges;
774842 status = "disabled";
775843
776
- num-lanes = <1>;
777844 interrupt-map-mask = <0 0 0 7>;
778845 interrupt-map = <0 0 0 1 &pcie_intc1 0>,
779846 <0 0 0 2 &pcie_intc1 1>,
....@@ -878,7 +945,7 @@
878945 sgmiisys: sgmiisys@1b128000 {
879946 compatible = "mediatek,mt7622-sgmiisys",
880947 "syscon";
881
- reg = <0 0x1b128000 0 0x1000>;
948
+ reg = <0 0x1b128000 0 0x3000>;
882949 #clock-cells = <1>;
883950 };
884951 };