| .. | .. |
|---|
| 56 | 56 | }; |
|---|
| 57 | 57 | |
|---|
| 58 | 58 | cpu0: cpu@0 { |
|---|
| 59 | | - compatible = "arm,cortex-a53", "arm,armv8"; |
|---|
| 59 | + compatible = "arm,cortex-a53"; |
|---|
| 60 | 60 | device_type = "cpu"; |
|---|
| 61 | 61 | reg = <0x0 0x0>; |
|---|
| 62 | 62 | enable-method = "psci"; |
|---|
| .. | .. |
|---|
| 70 | 70 | }; |
|---|
| 71 | 71 | |
|---|
| 72 | 72 | cpu1: cpu@1 { |
|---|
| 73 | | - compatible = "arm,cortex-a53", "arm,armv8"; |
|---|
| 73 | + compatible = "arm,cortex-a53"; |
|---|
| 74 | 74 | device_type = "cpu"; |
|---|
| 75 | 75 | reg = <0x0 0x1>; |
|---|
| 76 | 76 | enable-method = "psci"; |
|---|
| .. | .. |
|---|
| 79 | 79 | capacity-dmips-mhz = <592>; |
|---|
| 80 | 80 | clocks = <&stub_clock HI3660_CLK_STUB_CLUSTER0>; |
|---|
| 81 | 81 | operating-points-v2 = <&cluster0_opp>; |
|---|
| 82 | + #cooling-cells = <2>; |
|---|
| 82 | 83 | }; |
|---|
| 83 | 84 | |
|---|
| 84 | 85 | cpu2: cpu@2 { |
|---|
| 85 | | - compatible = "arm,cortex-a53", "arm,armv8"; |
|---|
| 86 | + compatible = "arm,cortex-a53"; |
|---|
| 86 | 87 | device_type = "cpu"; |
|---|
| 87 | 88 | reg = <0x0 0x2>; |
|---|
| 88 | 89 | enable-method = "psci"; |
|---|
| .. | .. |
|---|
| 91 | 92 | capacity-dmips-mhz = <592>; |
|---|
| 92 | 93 | clocks = <&stub_clock HI3660_CLK_STUB_CLUSTER0>; |
|---|
| 93 | 94 | operating-points-v2 = <&cluster0_opp>; |
|---|
| 95 | + #cooling-cells = <2>; |
|---|
| 94 | 96 | }; |
|---|
| 95 | 97 | |
|---|
| 96 | 98 | cpu3: cpu@3 { |
|---|
| 97 | | - compatible = "arm,cortex-a53", "arm,armv8"; |
|---|
| 99 | + compatible = "arm,cortex-a53"; |
|---|
| 98 | 100 | device_type = "cpu"; |
|---|
| 99 | 101 | reg = <0x0 0x3>; |
|---|
| 100 | 102 | enable-method = "psci"; |
|---|
| .. | .. |
|---|
| 103 | 105 | capacity-dmips-mhz = <592>; |
|---|
| 104 | 106 | clocks = <&stub_clock HI3660_CLK_STUB_CLUSTER0>; |
|---|
| 105 | 107 | operating-points-v2 = <&cluster0_opp>; |
|---|
| 108 | + #cooling-cells = <2>; |
|---|
| 106 | 109 | }; |
|---|
| 107 | 110 | |
|---|
| 108 | 111 | cpu4: cpu@100 { |
|---|
| 109 | | - compatible = "arm,cortex-a73", "arm,armv8"; |
|---|
| 112 | + compatible = "arm,cortex-a73"; |
|---|
| 110 | 113 | device_type = "cpu"; |
|---|
| 111 | 114 | reg = <0x0 0x100>; |
|---|
| 112 | 115 | enable-method = "psci"; |
|---|
| .. | .. |
|---|
| 120 | 123 | }; |
|---|
| 121 | 124 | |
|---|
| 122 | 125 | cpu5: cpu@101 { |
|---|
| 123 | | - compatible = "arm,cortex-a73", "arm,armv8"; |
|---|
| 126 | + compatible = "arm,cortex-a73"; |
|---|
| 124 | 127 | device_type = "cpu"; |
|---|
| 125 | 128 | reg = <0x0 0x101>; |
|---|
| 126 | 129 | enable-method = "psci"; |
|---|
| .. | .. |
|---|
| 129 | 132 | capacity-dmips-mhz = <1024>; |
|---|
| 130 | 133 | clocks = <&stub_clock HI3660_CLK_STUB_CLUSTER1>; |
|---|
| 131 | 134 | operating-points-v2 = <&cluster1_opp>; |
|---|
| 135 | + #cooling-cells = <2>; |
|---|
| 132 | 136 | }; |
|---|
| 133 | 137 | |
|---|
| 134 | 138 | cpu6: cpu@102 { |
|---|
| 135 | | - compatible = "arm,cortex-a73", "arm,armv8"; |
|---|
| 139 | + compatible = "arm,cortex-a73"; |
|---|
| 136 | 140 | device_type = "cpu"; |
|---|
| 137 | 141 | reg = <0x0 0x102>; |
|---|
| 138 | 142 | enable-method = "psci"; |
|---|
| .. | .. |
|---|
| 141 | 145 | capacity-dmips-mhz = <1024>; |
|---|
| 142 | 146 | clocks = <&stub_clock HI3660_CLK_STUB_CLUSTER1>; |
|---|
| 143 | 147 | operating-points-v2 = <&cluster1_opp>; |
|---|
| 148 | + #cooling-cells = <2>; |
|---|
| 144 | 149 | }; |
|---|
| 145 | 150 | |
|---|
| 146 | 151 | cpu7: cpu@103 { |
|---|
| 147 | | - compatible = "arm,cortex-a73", "arm,armv8"; |
|---|
| 152 | + compatible = "arm,cortex-a73"; |
|---|
| 148 | 153 | device_type = "cpu"; |
|---|
| 149 | 154 | reg = <0x0 0x103>; |
|---|
| 150 | 155 | enable-method = "psci"; |
|---|
| .. | .. |
|---|
| 153 | 158 | capacity-dmips-mhz = <1024>; |
|---|
| 154 | 159 | clocks = <&stub_clock HI3660_CLK_STUB_CLUSTER1>; |
|---|
| 155 | 160 | operating-points-v2 = <&cluster1_opp>; |
|---|
| 161 | + #cooling-cells = <2>; |
|---|
| 156 | 162 | }; |
|---|
| 157 | 163 | |
|---|
| 158 | 164 | idle-states { |
|---|
| .. | .. |
|---|
| 425 | 431 | resets = <&iomcu_rst 0x20 4>; |
|---|
| 426 | 432 | pinctrl-names = "default"; |
|---|
| 427 | 433 | pinctrl-0 = <&i2c1_pmx_func &i2c1_cfg_func>; |
|---|
| 428 | | - status = "disabled"; |
|---|
| 434 | + status = "ok"; |
|---|
| 429 | 435 | }; |
|---|
| 430 | 436 | |
|---|
| 431 | 437 | i2c3: i2c@fdf0c000 { |
|---|
| .. | .. |
|---|
| 472 | 478 | compatible = "arm,pl011", "arm,primecell"; |
|---|
| 473 | 479 | reg = <0x0 0xfdf00000 0x0 0x1000>; |
|---|
| 474 | 480 | interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>; |
|---|
| 481 | + dma-names = "rx", "tx"; |
|---|
| 482 | + dmas = <&dma0 2 &dma0 3>; |
|---|
| 475 | 483 | clocks = <&crg_ctrl HI3660_CLK_GATE_UART1>, |
|---|
| 476 | 484 | <&crg_ctrl HI3660_CLK_GATE_UART1>; |
|---|
| 477 | 485 | clock-names = "uartclk", "apb_pclk"; |
|---|
| .. | .. |
|---|
| 484 | 492 | compatible = "arm,pl011", "arm,primecell"; |
|---|
| 485 | 493 | reg = <0x0 0xfdf03000 0x0 0x1000>; |
|---|
| 486 | 494 | interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>; |
|---|
| 495 | + dma-names = "rx", "tx"; |
|---|
| 496 | + dmas = <&dma0 4 &dma0 5>; |
|---|
| 487 | 497 | clocks = <&crg_ctrl HI3660_CLK_GATE_UART2>, |
|---|
| 488 | 498 | <&crg_ctrl HI3660_PCLK>; |
|---|
| 489 | 499 | clock-names = "uartclk", "apb_pclk"; |
|---|
| .. | .. |
|---|
| 508 | 518 | compatible = "arm,pl011", "arm,primecell"; |
|---|
| 509 | 519 | reg = <0x0 0xfdf01000 0x0 0x1000>; |
|---|
| 510 | 520 | interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>; |
|---|
| 521 | + dma-names = "rx", "tx"; |
|---|
| 522 | + dmas = <&dma0 6 &dma0 7>; |
|---|
| 511 | 523 | clocks = <&crg_ctrl HI3660_CLK_GATE_UART4>, |
|---|
| 512 | 524 | <&crg_ctrl HI3660_CLK_GATE_UART4>; |
|---|
| 513 | 525 | clock-names = "uartclk", "apb_pclk"; |
|---|
| .. | .. |
|---|
| 520 | 532 | compatible = "arm,pl011", "arm,primecell"; |
|---|
| 521 | 533 | reg = <0x0 0xfdf05000 0x0 0x1000>; |
|---|
| 522 | 534 | interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>; |
|---|
| 535 | + dma-names = "rx", "tx"; |
|---|
| 536 | + dmas = <&dma0 8 &dma0 9>; |
|---|
| 523 | 537 | clocks = <&crg_ctrl HI3660_CLK_GATE_UART5>, |
|---|
| 524 | 538 | <&crg_ctrl HI3660_CLK_GATE_UART5>; |
|---|
| 525 | 539 | clock-names = "uartclk", "apb_pclk"; |
|---|
| .. | .. |
|---|
| 546 | 560 | #dma-cells = <1>; |
|---|
| 547 | 561 | dma-channels = <16>; |
|---|
| 548 | 562 | dma-requests = <32>; |
|---|
| 549 | | - dma-min-chan = <1>; |
|---|
| 563 | + dma-channel-mask = <0xfffe>; |
|---|
| 550 | 564 | interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>; |
|---|
| 551 | 565 | clocks = <&crg_ctrl HI3660_CLK_GATE_DMAC>; |
|---|
| 552 | 566 | dma-no-cci; |
|---|
| 553 | 567 | dma-type = "hi3660_dma"; |
|---|
| 568 | + }; |
|---|
| 569 | + |
|---|
| 570 | + asp_dmac: dma-controller@e804b000 { |
|---|
| 571 | + compatible = "hisilicon,hisi-pcm-asp-dma-1.0"; |
|---|
| 572 | + reg = <0x0 0xe804b000 0x0 0x1000>; |
|---|
| 573 | + #dma-cells = <1>; |
|---|
| 574 | + dma-channels = <16>; |
|---|
| 575 | + dma-requests = <32>; |
|---|
| 576 | + interrupts = <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>; |
|---|
| 577 | + interrupt-names = "asp_dma_irq"; |
|---|
| 554 | 578 | }; |
|---|
| 555 | 579 | |
|---|
| 556 | 580 | rtc0: rtc@fff04000 { |
|---|
| .. | .. |
|---|
| 950 | 974 | clocks = <&crg_ctrl HI3660_CLK_GATE_SPI2>; |
|---|
| 951 | 975 | clock-names = "apb_pclk"; |
|---|
| 952 | 976 | pinctrl-names = "default"; |
|---|
| 953 | | - pinctrl-0 = <&spi2_pmx_func>; |
|---|
| 977 | + pinctrl-0 = <&spi2_pmx_func &spi2_cfg_func>; |
|---|
| 954 | 978 | num-cs = <1>; |
|---|
| 955 | 979 | cs-gpios = <&gpio27 2 0>; |
|---|
| 956 | 980 | status = "disabled"; |
|---|
| .. | .. |
|---|
| 965 | 989 | clocks = <&crg_ctrl HI3660_CLK_GATE_SPI3>; |
|---|
| 966 | 990 | clock-names = "apb_pclk"; |
|---|
| 967 | 991 | pinctrl-names = "default"; |
|---|
| 968 | | - pinctrl-0 = <&spi3_pmx_func>; |
|---|
| 992 | + pinctrl-0 = <&spi3_pmx_func &spi3_cfg_func>; |
|---|
| 969 | 993 | num-cs = <1>; |
|---|
| 970 | 994 | cs-gpios = <&gpio18 5 0>; |
|---|
| 971 | 995 | status = "disabled"; |
|---|
| .. | .. |
|---|
| 1065 | 1089 | compatible = "arm,sp805", "arm,primecell"; |
|---|
| 1066 | 1090 | reg = <0x0 0xe8a06000 0x0 0x1000>; |
|---|
| 1067 | 1091 | interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>; |
|---|
| 1068 | | - clocks = <&crg_ctrl HI3660_OSC32K>; |
|---|
| 1069 | | - clock-names = "apb_pclk"; |
|---|
| 1092 | + clocks = <&crg_ctrl HI3660_OSC32K>, |
|---|
| 1093 | + <&crg_ctrl HI3660_OSC32K>; |
|---|
| 1094 | + clock-names = "wdog_clk", "apb_pclk"; |
|---|
| 1070 | 1095 | }; |
|---|
| 1071 | 1096 | |
|---|
| 1072 | 1097 | watchdog1: watchdog@e8a07000 { |
|---|
| 1073 | 1098 | compatible = "arm,sp805", "arm,primecell"; |
|---|
| 1074 | 1099 | reg = <0x0 0xe8a07000 0x0 0x1000>; |
|---|
| 1075 | 1100 | interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>; |
|---|
| 1076 | | - clocks = <&crg_ctrl HI3660_OSC32K>; |
|---|
| 1077 | | - clock-names = "apb_pclk"; |
|---|
| 1101 | + clocks = <&crg_ctrl HI3660_OSC32K>, |
|---|
| 1102 | + <&crg_ctrl HI3660_OSC32K>; |
|---|
| 1103 | + clock-names = "wdog_clk", "apb_pclk"; |
|---|
| 1078 | 1104 | }; |
|---|
| 1079 | 1105 | |
|---|
| 1080 | 1106 | tsensor: tsensor@fff30000 { |
|---|
| .. | .. |
|---|
| 1112 | 1138 | map0 { |
|---|
| 1113 | 1139 | trip = <&target>; |
|---|
| 1114 | 1140 | contribution = <1024>; |
|---|
| 1115 | | - cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
|---|
| 1141 | + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
|---|
| 1142 | + <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
|---|
| 1143 | + <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
|---|
| 1144 | + <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
|---|
| 1116 | 1145 | }; |
|---|
| 1117 | 1146 | map1 { |
|---|
| 1118 | 1147 | trip = <&target>; |
|---|
| 1119 | 1148 | contribution = <512>; |
|---|
| 1120 | | - cooling-device = <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
|---|
| 1149 | + cooling-device = <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
|---|
| 1150 | + <&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
|---|
| 1151 | + <&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
|---|
| 1152 | + <&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
|---|
| 1121 | 1153 | }; |
|---|
| 1122 | 1154 | }; |
|---|
| 1123 | 1155 | }; |
|---|
| 1124 | 1156 | }; |
|---|
| 1157 | + |
|---|
| 1158 | + usb3_otg_bc: usb3_otg_bc@ff200000 { |
|---|
| 1159 | + compatible = "syscon", "simple-mfd"; |
|---|
| 1160 | + reg = <0x0 0xff200000 0x0 0x1000>; |
|---|
| 1161 | + |
|---|
| 1162 | + usb_phy: usb-phy { |
|---|
| 1163 | + compatible = "hisilicon,hi3660-usb-phy"; |
|---|
| 1164 | + #phy-cells = <0>; |
|---|
| 1165 | + hisilicon,pericrg-syscon = <&crg_ctrl>; |
|---|
| 1166 | + hisilicon,pctrl-syscon = <&pctrl>; |
|---|
| 1167 | + hisilicon,eye-diagram-param = <0x22466e4>; |
|---|
| 1168 | + }; |
|---|
| 1169 | + }; |
|---|
| 1170 | + |
|---|
| 1171 | + dwc3: dwc3@ff100000 { |
|---|
| 1172 | + compatible = "snps,dwc3"; |
|---|
| 1173 | + reg = <0x0 0xff100000 0x0 0x100000>; |
|---|
| 1174 | + |
|---|
| 1175 | + clocks = <&crg_ctrl HI3660_CLK_ABB_USB>, |
|---|
| 1176 | + <&crg_ctrl HI3660_ACLK_GATE_USB3OTG>; |
|---|
| 1177 | + clock-names = "ref", "bus_early"; |
|---|
| 1178 | + |
|---|
| 1179 | + assigned-clocks = <&crg_ctrl HI3660_ACLK_GATE_USB3OTG>; |
|---|
| 1180 | + assigned-clock-rates = <229000000>; |
|---|
| 1181 | + |
|---|
| 1182 | + resets = <&crg_rst 0x90 8>, |
|---|
| 1183 | + <&crg_rst 0x90 7>, |
|---|
| 1184 | + <&crg_rst 0x90 6>, |
|---|
| 1185 | + <&crg_rst 0x90 5>; |
|---|
| 1186 | + |
|---|
| 1187 | + interrupts = <0 159 4>, <0 161 4>; |
|---|
| 1188 | + phys = <&usb_phy>; |
|---|
| 1189 | + phy-names = "usb3-phy"; |
|---|
| 1190 | + }; |
|---|
| 1125 | 1191 | }; |
|---|
| 1126 | 1192 | }; |
|---|
| 1193 | + |
|---|
| 1194 | +#include "hi3660-coresight.dtsi" |
|---|