vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 Vishnu Patekar |
| 3 | * |
| 4 | * Vishnu Patekar <vishnupatekar0510@gmail.com> |
| 5 | * |
| 6 | * This file is dual-licensed: you can use it either under the terms |
| 7 | * of the GPL or the X11 license, at your option. Note that this dual |
| 8 | * licensing only applies to this file, and not this project as a |
| 9 | * whole. |
| 10 | * |
| 11 | * a) This file is free software; you can redistribute it and/or |
| 12 | * modify it under the terms of the GNU General Public License as |
| 13 | * published by the Free Software Foundation; either version 2 of the |
| 14 | * License, or (at your option) any later version. |
| 15 | * |
| 16 | * This file is distributed in the hope that it will be useful, |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 | * GNU General Public License for more details. |
| 20 | * |
| 21 | * Or, alternatively, |
| 22 | * |
| 23 | * b) Permission is hereby granted, free of charge, to any person |
| 24 | * obtaining a copy of this software and associated documentation |
| 25 | * files (the "Software"), to deal in the Software without |
| 26 | * restriction, including without limitation the rights to use, |
| 27 | * copy, modify, merge, publish, distribute, sublicense, and/or |
| 28 | * sell copies of the Software, and to permit persons to whom the |
| 29 | * Software is furnished to do so, subject to the following |
| 30 | * conditions: |
| 31 | * |
| 32 | * The above copyright notice and this permission notice shall be |
| 33 | * included in all copies or substantial portions of the Software. |
| 34 | * |
| 35 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 36 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 37 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 38 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 39 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 40 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 41 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 42 | * OTHER DEALINGS IN THE SOFTWARE. |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 43 | */ |
| 44 | |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 45 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 46 | |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 47 | #include <dt-bindings/clock/sun8i-a83t-ccu.h> |
| 48 | #include <dt-bindings/clock/sun8i-de2.h> |
| 49 | #include <dt-bindings/clock/sun8i-r-ccu.h> |
| 50 | #include <dt-bindings/reset/sun8i-a83t-ccu.h> |
| 51 | #include <dt-bindings/reset/sun8i-de2.h> |
| 52 | #include <dt-bindings/reset/sun8i-r-ccu.h> |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 53 | #include <dt-bindings/thermal/thermal.h> |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 54 | |
| 55 | / { |
| 56 | interrupt-parent = <&gic>; |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 57 | #address-cells = <1>; |
| 58 | #size-cells = <1>; |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 59 | |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 60 | cpus { |
| 61 | #address-cells = <1>; |
| 62 | #size-cells = <0>; |
| 63 | |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 64 | cpu0: cpu@0 { |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 65 | compatible = "arm,cortex-a7"; |
| 66 | device_type = "cpu"; |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 67 | clocks = <&ccu CLK_C0CPUX>; |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 68 | operating-points-v2 = <&cpu0_opp_table>; |
| 69 | cci-control-port = <&cci_control0>; |
| 70 | enable-method = "allwinner,sun8i-a83t-smp"; |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 71 | reg = <0>; |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 72 | #cooling-cells = <2>; |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 73 | }; |
| 74 | |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 75 | cpu1: cpu@1 { |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 76 | compatible = "arm,cortex-a7"; |
| 77 | device_type = "cpu"; |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 78 | clocks = <&ccu CLK_C0CPUX>; |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 79 | operating-points-v2 = <&cpu0_opp_table>; |
| 80 | cci-control-port = <&cci_control0>; |
| 81 | enable-method = "allwinner,sun8i-a83t-smp"; |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 82 | reg = <1>; |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 83 | #cooling-cells = <2>; |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 84 | }; |
| 85 | |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 86 | cpu2: cpu@2 { |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 87 | compatible = "arm,cortex-a7"; |
| 88 | device_type = "cpu"; |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 89 | clocks = <&ccu CLK_C0CPUX>; |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 90 | operating-points-v2 = <&cpu0_opp_table>; |
| 91 | cci-control-port = <&cci_control0>; |
| 92 | enable-method = "allwinner,sun8i-a83t-smp"; |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 93 | reg = <2>; |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 94 | #cooling-cells = <2>; |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 95 | }; |
| 96 | |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 97 | cpu3: cpu@3 { |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 98 | compatible = "arm,cortex-a7"; |
| 99 | device_type = "cpu"; |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 100 | clocks = <&ccu CLK_C0CPUX>; |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 101 | operating-points-v2 = <&cpu0_opp_table>; |
| 102 | cci-control-port = <&cci_control0>; |
| 103 | enable-method = "allwinner,sun8i-a83t-smp"; |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 104 | reg = <3>; |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 105 | #cooling-cells = <2>; |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 106 | }; |
Hans de Goede | 19888a4 | 2016-03-14 17:37:09 +0100 | [diff] [blame] | 107 | |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 108 | cpu100: cpu@100 { |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 109 | compatible = "arm,cortex-a7"; |
| 110 | device_type = "cpu"; |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 111 | clocks = <&ccu CLK_C1CPUX>; |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 112 | operating-points-v2 = <&cpu1_opp_table>; |
| 113 | cci-control-port = <&cci_control1>; |
| 114 | enable-method = "allwinner,sun8i-a83t-smp"; |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 115 | reg = <0x100>; |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 116 | #cooling-cells = <2>; |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 117 | }; |
| 118 | |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 119 | cpu101: cpu@101 { |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 120 | compatible = "arm,cortex-a7"; |
| 121 | device_type = "cpu"; |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 122 | clocks = <&ccu CLK_C1CPUX>; |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 123 | operating-points-v2 = <&cpu1_opp_table>; |
| 124 | cci-control-port = <&cci_control1>; |
| 125 | enable-method = "allwinner,sun8i-a83t-smp"; |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 126 | reg = <0x101>; |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 127 | #cooling-cells = <2>; |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 128 | }; |
Hans de Goede | 19888a4 | 2016-03-14 17:37:09 +0100 | [diff] [blame] | 129 | |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 130 | cpu102: cpu@102 { |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 131 | compatible = "arm,cortex-a7"; |
| 132 | device_type = "cpu"; |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 133 | clocks = <&ccu CLK_C1CPUX>; |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 134 | operating-points-v2 = <&cpu1_opp_table>; |
| 135 | cci-control-port = <&cci_control1>; |
| 136 | enable-method = "allwinner,sun8i-a83t-smp"; |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 137 | reg = <0x102>; |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 138 | #cooling-cells = <2>; |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 139 | }; |
| 140 | |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 141 | cpu103: cpu@103 { |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 142 | compatible = "arm,cortex-a7"; |
| 143 | device_type = "cpu"; |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 144 | clocks = <&ccu CLK_C1CPUX>; |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 145 | operating-points-v2 = <&cpu1_opp_table>; |
| 146 | cci-control-port = <&cci_control1>; |
| 147 | enable-method = "allwinner,sun8i-a83t-smp"; |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 148 | reg = <0x103>; |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 149 | #cooling-cells = <2>; |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 150 | }; |
| 151 | }; |
| 152 | |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 153 | timer { |
| 154 | compatible = "arm,armv7-timer"; |
Hans de Goede | 19888a4 | 2016-03-14 17:37:09 +0100 | [diff] [blame] | 155 | interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>, |
| 156 | <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>, |
| 157 | <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>, |
| 158 | <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>; |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 159 | }; |
| 160 | |
| 161 | clocks { |
| 162 | #address-cells = <1>; |
| 163 | #size-cells = <1>; |
| 164 | ranges; |
| 165 | |
Hans de Goede | 19888a4 | 2016-03-14 17:37:09 +0100 | [diff] [blame] | 166 | /* TODO: PRCM block has a mux for this. */ |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 167 | osc24M: osc24M_clk { |
| 168 | #clock-cells = <0>; |
| 169 | compatible = "fixed-clock"; |
| 170 | clock-frequency = <24000000>; |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 171 | clock-accuracy = <50000>; |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 172 | clock-output-names = "osc24M"; |
| 173 | }; |
| 174 | |
Hans de Goede | 19888a4 | 2016-03-14 17:37:09 +0100 | [diff] [blame] | 175 | /* |
| 176 | * This is called "internal OSC" in some places. |
| 177 | * It is an internal RC-based oscillator. |
| 178 | * TODO: Its controls are in the PRCM block. |
| 179 | */ |
| 180 | osc16M: osc16M_clk { |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 181 | #clock-cells = <0>; |
| 182 | compatible = "fixed-clock"; |
Hans de Goede | 19888a4 | 2016-03-14 17:37:09 +0100 | [diff] [blame] | 183 | clock-frequency = <16000000>; |
| 184 | clock-output-names = "osc16M"; |
| 185 | }; |
| 186 | |
| 187 | osc16Md512: osc16Md512_clk { |
| 188 | #clock-cells = <0>; |
| 189 | compatible = "fixed-factor-clock"; |
| 190 | clock-div = <512>; |
| 191 | clock-mult = <1>; |
| 192 | clocks = <&osc16M>; |
| 193 | clock-output-names = "osc16M-d512"; |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 194 | }; |
| 195 | }; |
| 196 | |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 197 | de: display-engine { |
| 198 | compatible = "allwinner,sun8i-a83t-display-engine"; |
| 199 | allwinner,pipelines = <&mixer0>, <&mixer1>; |
| 200 | status = "disabled"; |
| 201 | }; |
| 202 | |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 203 | cpu0_opp_table: opp-table-cluster0 { |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 204 | compatible = "operating-points-v2"; |
| 205 | opp-shared; |
| 206 | |
| 207 | opp-480000000 { |
| 208 | opp-hz = /bits/ 64 <480000000>; |
| 209 | opp-microvolt = <840000>; |
| 210 | clock-latency-ns = <244144>; /* 8 32k periods */ |
| 211 | }; |
| 212 | |
| 213 | opp-600000000 { |
| 214 | opp-hz = /bits/ 64 <600000000>; |
| 215 | opp-microvolt = <840000>; |
| 216 | clock-latency-ns = <244144>; /* 8 32k periods */ |
| 217 | }; |
| 218 | |
| 219 | opp-720000000 { |
| 220 | opp-hz = /bits/ 64 <720000000>; |
| 221 | opp-microvolt = <840000>; |
| 222 | clock-latency-ns = <244144>; /* 8 32k periods */ |
| 223 | }; |
| 224 | |
| 225 | opp-864000000 { |
| 226 | opp-hz = /bits/ 64 <864000000>; |
| 227 | opp-microvolt = <840000>; |
| 228 | clock-latency-ns = <244144>; /* 8 32k periods */ |
| 229 | }; |
| 230 | |
| 231 | opp-912000000 { |
| 232 | opp-hz = /bits/ 64 <912000000>; |
| 233 | opp-microvolt = <840000>; |
| 234 | clock-latency-ns = <244144>; /* 8 32k periods */ |
| 235 | }; |
| 236 | |
| 237 | opp-1008000000 { |
| 238 | opp-hz = /bits/ 64 <1008000000>; |
| 239 | opp-microvolt = <840000>; |
| 240 | clock-latency-ns = <244144>; /* 8 32k periods */ |
| 241 | }; |
| 242 | |
| 243 | opp-1128000000 { |
| 244 | opp-hz = /bits/ 64 <1128000000>; |
| 245 | opp-microvolt = <840000>; |
| 246 | clock-latency-ns = <244144>; /* 8 32k periods */ |
| 247 | }; |
| 248 | |
| 249 | opp-1200000000 { |
| 250 | opp-hz = /bits/ 64 <1200000000>; |
| 251 | opp-microvolt = <840000>; |
| 252 | clock-latency-ns = <244144>; /* 8 32k periods */ |
| 253 | }; |
| 254 | }; |
| 255 | |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 256 | cpu1_opp_table: opp-table-cluster1 { |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 257 | compatible = "operating-points-v2"; |
| 258 | opp-shared; |
| 259 | |
| 260 | opp-480000000 { |
| 261 | opp-hz = /bits/ 64 <480000000>; |
| 262 | opp-microvolt = <840000>; |
| 263 | clock-latency-ns = <244144>; /* 8 32k periods */ |
| 264 | }; |
| 265 | |
| 266 | opp-600000000 { |
| 267 | opp-hz = /bits/ 64 <600000000>; |
| 268 | opp-microvolt = <840000>; |
| 269 | clock-latency-ns = <244144>; /* 8 32k periods */ |
| 270 | }; |
| 271 | |
| 272 | opp-720000000 { |
| 273 | opp-hz = /bits/ 64 <720000000>; |
| 274 | opp-microvolt = <840000>; |
| 275 | clock-latency-ns = <244144>; /* 8 32k periods */ |
| 276 | }; |
| 277 | |
| 278 | opp-864000000 { |
| 279 | opp-hz = /bits/ 64 <864000000>; |
| 280 | opp-microvolt = <840000>; |
| 281 | clock-latency-ns = <244144>; /* 8 32k periods */ |
| 282 | }; |
| 283 | |
| 284 | opp-912000000 { |
| 285 | opp-hz = /bits/ 64 <912000000>; |
| 286 | opp-microvolt = <840000>; |
| 287 | clock-latency-ns = <244144>; /* 8 32k periods */ |
| 288 | }; |
| 289 | |
| 290 | opp-1008000000 { |
| 291 | opp-hz = /bits/ 64 <1008000000>; |
| 292 | opp-microvolt = <840000>; |
| 293 | clock-latency-ns = <244144>; /* 8 32k periods */ |
| 294 | }; |
| 295 | |
| 296 | opp-1128000000 { |
| 297 | opp-hz = /bits/ 64 <1128000000>; |
| 298 | opp-microvolt = <840000>; |
| 299 | clock-latency-ns = <244144>; /* 8 32k periods */ |
| 300 | }; |
| 301 | |
| 302 | opp-1200000000 { |
| 303 | opp-hz = /bits/ 64 <1200000000>; |
| 304 | opp-microvolt = <840000>; |
| 305 | clock-latency-ns = <244144>; /* 8 32k periods */ |
| 306 | }; |
| 307 | }; |
| 308 | |
Hans de Goede | 19888a4 | 2016-03-14 17:37:09 +0100 | [diff] [blame] | 309 | soc { |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 310 | compatible = "simple-bus"; |
| 311 | #address-cells = <1>; |
| 312 | #size-cells = <1>; |
| 313 | ranges; |
| 314 | |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 315 | display_clocks: clock@1000000 { |
| 316 | compatible = "allwinner,sun8i-a83t-de2-clk"; |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 317 | reg = <0x01000000 0x10000>; |
| 318 | clocks = <&ccu CLK_BUS_DE>, |
| 319 | <&ccu CLK_PLL_DE>; |
| 320 | clock-names = "bus", |
| 321 | "mod"; |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 322 | resets = <&ccu RST_BUS_DE>; |
| 323 | #clock-cells = <1>; |
| 324 | #reset-cells = <1>; |
| 325 | }; |
| 326 | |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 327 | rotate: rotate@1020000 { |
| 328 | compatible = "allwinner,sun8i-a83t-de2-rotate"; |
| 329 | reg = <0x1020000 0x10000>; |
| 330 | interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>; |
| 331 | clocks = <&display_clocks CLK_BUS_ROT>, |
| 332 | <&display_clocks CLK_ROT>; |
| 333 | clock-names = "bus", |
| 334 | "mod"; |
| 335 | resets = <&display_clocks RST_ROT>; |
| 336 | }; |
| 337 | |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 338 | mixer0: mixer@1100000 { |
| 339 | compatible = "allwinner,sun8i-a83t-de2-mixer-0"; |
| 340 | reg = <0x01100000 0x100000>; |
| 341 | clocks = <&display_clocks CLK_BUS_MIXER0>, |
| 342 | <&display_clocks CLK_MIXER0>; |
| 343 | clock-names = "bus", |
| 344 | "mod"; |
| 345 | resets = <&display_clocks RST_MIXER0>; |
| 346 | |
| 347 | ports { |
| 348 | #address-cells = <1>; |
| 349 | #size-cells = <0>; |
| 350 | |
| 351 | mixer0_out: port@1 { |
| 352 | #address-cells = <1>; |
| 353 | #size-cells = <0>; |
| 354 | reg = <1>; |
| 355 | |
| 356 | mixer0_out_tcon0: endpoint@0 { |
| 357 | reg = <0>; |
| 358 | remote-endpoint = <&tcon0_in_mixer0>; |
| 359 | }; |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 360 | |
| 361 | mixer0_out_tcon1: endpoint@1 { |
| 362 | reg = <1>; |
| 363 | remote-endpoint = <&tcon1_in_mixer0>; |
| 364 | }; |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 365 | }; |
| 366 | }; |
| 367 | }; |
| 368 | |
| 369 | mixer1: mixer@1200000 { |
| 370 | compatible = "allwinner,sun8i-a83t-de2-mixer-1"; |
| 371 | reg = <0x01200000 0x100000>; |
| 372 | clocks = <&display_clocks CLK_BUS_MIXER1>, |
| 373 | <&display_clocks CLK_MIXER1>; |
| 374 | clock-names = "bus", |
| 375 | "mod"; |
| 376 | resets = <&display_clocks RST_WB>; |
| 377 | |
| 378 | ports { |
| 379 | #address-cells = <1>; |
| 380 | #size-cells = <0>; |
| 381 | |
| 382 | mixer1_out: port@1 { |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 383 | #address-cells = <1>; |
| 384 | #size-cells = <0>; |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 385 | reg = <1>; |
| 386 | |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 387 | mixer1_out_tcon0: endpoint@0 { |
| 388 | reg = <0>; |
| 389 | remote-endpoint = <&tcon0_in_mixer1>; |
| 390 | }; |
| 391 | |
| 392 | mixer1_out_tcon1: endpoint@1 { |
| 393 | reg = <1>; |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 394 | remote-endpoint = <&tcon1_in_mixer1>; |
| 395 | }; |
| 396 | }; |
| 397 | }; |
| 398 | }; |
| 399 | |
| 400 | cpucfg@1700000 { |
| 401 | compatible = "allwinner,sun8i-a83t-cpucfg"; |
| 402 | reg = <0x01700000 0x400>; |
| 403 | }; |
| 404 | |
| 405 | cci@1790000 { |
| 406 | compatible = "arm,cci-400"; |
| 407 | #address-cells = <1>; |
| 408 | #size-cells = <1>; |
| 409 | reg = <0x01790000 0x10000>; |
| 410 | ranges = <0x0 0x01790000 0x10000>; |
| 411 | |
| 412 | cci_control0: slave-if@4000 { |
| 413 | compatible = "arm,cci-400-ctrl-if"; |
| 414 | interface-type = "ace"; |
| 415 | reg = <0x4000 0x1000>; |
| 416 | }; |
| 417 | |
| 418 | cci_control1: slave-if@5000 { |
| 419 | compatible = "arm,cci-400-ctrl-if"; |
| 420 | interface-type = "ace"; |
| 421 | reg = <0x5000 0x1000>; |
| 422 | }; |
| 423 | |
| 424 | pmu@9000 { |
| 425 | compatible = "arm,cci-400-pmu,r1"; |
| 426 | reg = <0x9000 0x5000>; |
| 427 | interrupts = <GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH>, |
| 428 | <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>, |
| 429 | <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>, |
| 430 | <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>, |
| 431 | <GIC_SPI 151 IRQ_TYPE_LEVEL_HIGH>, |
| 432 | <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>, |
| 433 | <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>, |
| 434 | <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>; |
| 435 | }; |
| 436 | }; |
| 437 | |
| 438 | syscon: syscon@1c00000 { |
| 439 | compatible = "allwinner,sun8i-a83t-system-controller", |
| 440 | "syscon"; |
| 441 | reg = <0x01c00000 0x1000>; |
| 442 | }; |
| 443 | |
| 444 | dma: dma-controller@1c02000 { |
| 445 | compatible = "allwinner,sun8i-a83t-dma"; |
| 446 | reg = <0x01c02000 0x1000>; |
| 447 | interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>; |
| 448 | clocks = <&ccu CLK_BUS_DMA>; |
| 449 | resets = <&ccu RST_BUS_DMA>; |
| 450 | #dma-cells = <1>; |
| 451 | }; |
| 452 | |
| 453 | tcon0: lcd-controller@1c0c000 { |
| 454 | compatible = "allwinner,sun8i-a83t-tcon-lcd"; |
| 455 | reg = <0x01c0c000 0x1000>; |
| 456 | interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; |
| 457 | clocks = <&ccu CLK_BUS_TCON0>, <&ccu CLK_TCON0>; |
| 458 | clock-names = "ahb", "tcon-ch0"; |
Andre Przywara | 3cb7757 | 2023-10-19 15:45:32 +0100 | [diff] [blame] | 459 | clock-output-names = "tcon-data-clock"; |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 460 | #clock-cells = <0>; |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 461 | resets = <&ccu RST_BUS_TCON0>, <&ccu RST_BUS_LVDS>; |
| 462 | reset-names = "lcd", "lvds"; |
| 463 | |
| 464 | ports { |
| 465 | #address-cells = <1>; |
| 466 | #size-cells = <0>; |
| 467 | |
| 468 | tcon0_in: port@0 { |
| 469 | #address-cells = <1>; |
| 470 | #size-cells = <0>; |
| 471 | reg = <0>; |
| 472 | |
| 473 | tcon0_in_mixer0: endpoint@0 { |
| 474 | reg = <0>; |
| 475 | remote-endpoint = <&mixer0_out_tcon0>; |
| 476 | }; |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 477 | |
| 478 | tcon0_in_mixer1: endpoint@1 { |
| 479 | reg = <1>; |
| 480 | remote-endpoint = <&mixer1_out_tcon0>; |
| 481 | }; |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 482 | }; |
| 483 | |
| 484 | tcon0_out: port@1 { |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 485 | reg = <1>; |
| 486 | }; |
| 487 | }; |
| 488 | }; |
| 489 | |
| 490 | tcon1: lcd-controller@1c0d000 { |
| 491 | compatible = "allwinner,sun8i-a83t-tcon-tv"; |
| 492 | reg = <0x01c0d000 0x1000>; |
| 493 | interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>; |
| 494 | clocks = <&ccu CLK_BUS_TCON1>, <&ccu CLK_TCON1>; |
| 495 | clock-names = "ahb", "tcon-ch1"; |
| 496 | resets = <&ccu RST_BUS_TCON1>; |
| 497 | reset-names = "lcd"; |
| 498 | |
| 499 | ports { |
| 500 | #address-cells = <1>; |
| 501 | #size-cells = <0>; |
| 502 | |
| 503 | tcon1_in: port@0 { |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 504 | #address-cells = <1>; |
| 505 | #size-cells = <0>; |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 506 | reg = <0>; |
| 507 | |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 508 | tcon1_in_mixer0: endpoint@0 { |
| 509 | reg = <0>; |
| 510 | remote-endpoint = <&mixer0_out_tcon1>; |
| 511 | }; |
| 512 | |
| 513 | tcon1_in_mixer1: endpoint@1 { |
| 514 | reg = <1>; |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 515 | remote-endpoint = <&mixer1_out_tcon1>; |
| 516 | }; |
| 517 | }; |
| 518 | |
| 519 | tcon1_out: port@1 { |
| 520 | #address-cells = <1>; |
| 521 | #size-cells = <0>; |
| 522 | reg = <1>; |
| 523 | |
| 524 | tcon1_out_hdmi: endpoint@1 { |
| 525 | reg = <1>; |
| 526 | remote-endpoint = <&hdmi_in_tcon1>; |
| 527 | }; |
| 528 | }; |
| 529 | }; |
| 530 | }; |
| 531 | |
| 532 | mmc0: mmc@1c0f000 { |
| 533 | compatible = "allwinner,sun8i-a83t-mmc", |
| 534 | "allwinner,sun7i-a20-mmc"; |
| 535 | reg = <0x01c0f000 0x1000>; |
| 536 | clocks = <&ccu CLK_BUS_MMC0>, |
| 537 | <&ccu CLK_MMC0>, |
| 538 | <&ccu CLK_MMC0_OUTPUT>, |
| 539 | <&ccu CLK_MMC0_SAMPLE>; |
| 540 | clock-names = "ahb", |
| 541 | "mmc", |
| 542 | "output", |
| 543 | "sample"; |
| 544 | resets = <&ccu RST_BUS_MMC0>; |
| 545 | reset-names = "ahb"; |
| 546 | interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>; |
| 547 | status = "disabled"; |
| 548 | #address-cells = <1>; |
| 549 | #size-cells = <0>; |
| 550 | }; |
| 551 | |
| 552 | mmc1: mmc@1c10000 { |
| 553 | compatible = "allwinner,sun8i-a83t-mmc", |
| 554 | "allwinner,sun7i-a20-mmc"; |
| 555 | reg = <0x01c10000 0x1000>; |
| 556 | clocks = <&ccu CLK_BUS_MMC1>, |
| 557 | <&ccu CLK_MMC1>, |
| 558 | <&ccu CLK_MMC1_OUTPUT>, |
| 559 | <&ccu CLK_MMC1_SAMPLE>; |
| 560 | clock-names = "ahb", |
| 561 | "mmc", |
| 562 | "output", |
| 563 | "sample"; |
| 564 | resets = <&ccu RST_BUS_MMC1>; |
| 565 | reset-names = "ahb"; |
| 566 | interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>; |
| 567 | pinctrl-names = "default"; |
| 568 | pinctrl-0 = <&mmc1_pins>; |
| 569 | status = "disabled"; |
| 570 | #address-cells = <1>; |
| 571 | #size-cells = <0>; |
| 572 | }; |
| 573 | |
| 574 | mmc2: mmc@1c11000 { |
| 575 | compatible = "allwinner,sun8i-a83t-emmc"; |
| 576 | reg = <0x01c11000 0x1000>; |
| 577 | clocks = <&ccu CLK_BUS_MMC2>, |
| 578 | <&ccu CLK_MMC2>, |
| 579 | <&ccu CLK_MMC2_OUTPUT>, |
| 580 | <&ccu CLK_MMC2_SAMPLE>; |
| 581 | clock-names = "ahb", |
| 582 | "mmc", |
| 583 | "output", |
| 584 | "sample"; |
| 585 | resets = <&ccu RST_BUS_MMC2>; |
| 586 | reset-names = "ahb"; |
| 587 | interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>; |
| 588 | status = "disabled"; |
| 589 | #address-cells = <1>; |
| 590 | #size-cells = <0>; |
| 591 | }; |
| 592 | |
| 593 | sid: eeprom@1c14000 { |
| 594 | compatible = "allwinner,sun8i-a83t-sid"; |
| 595 | reg = <0x1c14000 0x400>; |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 596 | #address-cells = <1>; |
| 597 | #size-cells = <1>; |
| 598 | |
| 599 | ths_calibration: thermal-sensor-calibration@34 { |
| 600 | reg = <0x34 8>; |
| 601 | }; |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 602 | }; |
| 603 | |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 604 | crypto: crypto@1c15000 { |
| 605 | compatible = "allwinner,sun8i-a83t-crypto"; |
| 606 | reg = <0x01c15000 0x1000>; |
| 607 | interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>; |
| 608 | resets = <&ccu RST_BUS_SS>; |
| 609 | clocks = <&ccu CLK_BUS_SS>, <&ccu CLK_SS>; |
| 610 | clock-names = "bus", "mod"; |
| 611 | }; |
| 612 | |
| 613 | msgbox: mailbox@1c17000 { |
| 614 | compatible = "allwinner,sun8i-a83t-msgbox", |
| 615 | "allwinner,sun6i-a31-msgbox"; |
| 616 | reg = <0x01c17000 0x1000>; |
| 617 | clocks = <&ccu CLK_BUS_MSGBOX>; |
| 618 | resets = <&ccu RST_BUS_MSGBOX>; |
| 619 | interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>; |
| 620 | #mbox-cells = <1>; |
| 621 | }; |
| 622 | |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 623 | usb_otg: usb@1c19000 { |
| 624 | compatible = "allwinner,sun8i-a83t-musb", |
| 625 | "allwinner,sun8i-a33-musb"; |
| 626 | reg = <0x01c19000 0x0400>; |
| 627 | clocks = <&ccu CLK_BUS_OTG>; |
| 628 | resets = <&ccu RST_BUS_OTG>; |
| 629 | interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>; |
| 630 | interrupt-names = "mc"; |
| 631 | phys = <&usbphy 0>; |
| 632 | phy-names = "usb"; |
| 633 | extcon = <&usbphy 0>; |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 634 | dr_mode = "otg"; |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 635 | status = "disabled"; |
| 636 | }; |
| 637 | |
| 638 | usbphy: phy@1c19400 { |
| 639 | compatible = "allwinner,sun8i-a83t-usb-phy"; |
| 640 | reg = <0x01c19400 0x10>, |
| 641 | <0x01c1a800 0x14>, |
| 642 | <0x01c1b800 0x14>; |
| 643 | reg-names = "phy_ctrl", |
| 644 | "pmu1", |
| 645 | "pmu2"; |
| 646 | clocks = <&ccu CLK_USB_PHY0>, |
| 647 | <&ccu CLK_USB_PHY1>, |
| 648 | <&ccu CLK_USB_HSIC>, |
| 649 | <&ccu CLK_USB_HSIC_12M>; |
| 650 | clock-names = "usb0_phy", |
| 651 | "usb1_phy", |
| 652 | "usb2_phy", |
| 653 | "usb2_hsic_12M"; |
| 654 | resets = <&ccu RST_USB_PHY0>, |
| 655 | <&ccu RST_USB_PHY1>, |
| 656 | <&ccu RST_USB_HSIC>; |
| 657 | reset-names = "usb0_reset", |
| 658 | "usb1_reset", |
| 659 | "usb2_reset"; |
| 660 | status = "disabled"; |
| 661 | #phy-cells = <1>; |
| 662 | }; |
| 663 | |
| 664 | ehci0: usb@1c1a000 { |
| 665 | compatible = "allwinner,sun8i-a83t-ehci", |
| 666 | "generic-ehci"; |
| 667 | reg = <0x01c1a000 0x100>; |
| 668 | interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>; |
| 669 | clocks = <&ccu CLK_BUS_EHCI0>; |
| 670 | resets = <&ccu RST_BUS_EHCI0>; |
| 671 | phys = <&usbphy 1>; |
| 672 | phy-names = "usb"; |
| 673 | status = "disabled"; |
| 674 | }; |
| 675 | |
| 676 | ohci0: usb@1c1a400 { |
| 677 | compatible = "allwinner,sun8i-a83t-ohci", |
| 678 | "generic-ohci"; |
| 679 | reg = <0x01c1a400 0x100>; |
| 680 | interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>; |
| 681 | clocks = <&ccu CLK_BUS_OHCI0>, <&ccu CLK_USB_OHCI0>; |
| 682 | resets = <&ccu RST_BUS_OHCI0>; |
| 683 | phys = <&usbphy 1>; |
| 684 | phy-names = "usb"; |
| 685 | status = "disabled"; |
| 686 | }; |
| 687 | |
| 688 | ehci1: usb@1c1b000 { |
| 689 | compatible = "allwinner,sun8i-a83t-ehci", |
| 690 | "generic-ehci"; |
| 691 | reg = <0x01c1b000 0x100>; |
| 692 | interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>; |
| 693 | clocks = <&ccu CLK_BUS_EHCI1>; |
| 694 | resets = <&ccu RST_BUS_EHCI1>; |
| 695 | phys = <&usbphy 2>; |
| 696 | phy-names = "usb"; |
| 697 | status = "disabled"; |
| 698 | }; |
| 699 | |
| 700 | ccu: clock@1c20000 { |
| 701 | compatible = "allwinner,sun8i-a83t-ccu"; |
| 702 | reg = <0x01c20000 0x400>; |
| 703 | clocks = <&osc24M>, <&osc16Md512>; |
| 704 | clock-names = "hosc", "losc"; |
| 705 | #clock-cells = <1>; |
| 706 | #reset-cells = <1>; |
| 707 | }; |
| 708 | |
| 709 | pio: pinctrl@1c20800 { |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 710 | compatible = "allwinner,sun8i-a83t-pinctrl"; |
| 711 | interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>, |
Hans de Goede | 19888a4 | 2016-03-14 17:37:09 +0100 | [diff] [blame] | 712 | <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>, |
| 713 | <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>; |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 714 | reg = <0x01c20800 0x400>; |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 715 | clocks = <&ccu CLK_BUS_PIO>, <&osc24M>, <&osc16Md512>; |
| 716 | clock-names = "apb", "hosc", "losc"; |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 717 | gpio-controller; |
| 718 | interrupt-controller; |
| 719 | #interrupt-cells = <3>; |
| 720 | #gpio-cells = <3>; |
| 721 | |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 722 | /omit-if-no-ref/ |
| 723 | csi_8bit_parallel_pins: csi-8bit-parallel-pins { |
| 724 | pins = "PE0", "PE2", "PE3", "PE6", "PE7", |
| 725 | "PE8", "PE9", "PE10", "PE11", |
| 726 | "PE12", "PE13"; |
| 727 | function = "csi"; |
| 728 | }; |
| 729 | |
| 730 | /omit-if-no-ref/ |
| 731 | csi_mclk_pin: csi-mclk-pin { |
| 732 | pins = "PE1"; |
| 733 | function = "csi"; |
| 734 | }; |
| 735 | |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 736 | emac_rgmii_pins: emac-rgmii-pins { |
| 737 | pins = "PD2", "PD3", "PD4", "PD5", "PD6", "PD7", |
| 738 | "PD11", "PD12", "PD13", "PD14", "PD18", |
| 739 | "PD19", "PD21", "PD22", "PD23"; |
| 740 | function = "gmac"; |
| 741 | /* |
| 742 | * data lines in RGMII mode use DDR mode |
| 743 | * and need a higher signal drive strength |
| 744 | */ |
| 745 | drive-strength = <40>; |
| 746 | }; |
| 747 | |
| 748 | hdmi_pins: hdmi-pins { |
| 749 | pins = "PH6", "PH7", "PH8"; |
| 750 | function = "hdmi"; |
| 751 | }; |
| 752 | |
| 753 | i2c0_pins: i2c0-pins { |
| 754 | pins = "PH0", "PH1"; |
| 755 | function = "i2c0"; |
| 756 | }; |
| 757 | |
| 758 | i2c1_pins: i2c1-pins { |
| 759 | pins = "PH2", "PH3"; |
| 760 | function = "i2c1"; |
| 761 | }; |
| 762 | |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 763 | /omit-if-no-ref/ |
| 764 | i2c2_pe_pins: i2c2-pe-pins { |
| 765 | pins = "PE14", "PE15"; |
| 766 | function = "i2c2"; |
| 767 | }; |
| 768 | |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 769 | i2c2_ph_pins: i2c2-ph-pins { |
| 770 | pins = "PH4", "PH5"; |
| 771 | function = "i2c2"; |
| 772 | }; |
| 773 | |
| 774 | i2s1_pins: i2s1-pins { |
| 775 | /* I2S1 does not have external MCLK pin */ |
| 776 | pins = "PG10", "PG11", "PG12", "PG13"; |
| 777 | function = "i2s1"; |
| 778 | }; |
| 779 | |
| 780 | lcd_lvds_pins: lcd-lvds-pins { |
| 781 | pins = "PD18", "PD19", "PD20", "PD21", "PD22", |
| 782 | "PD23", "PD24", "PD25", "PD26", "PD27"; |
| 783 | function = "lvds0"; |
| 784 | }; |
| 785 | |
| 786 | mmc0_pins: mmc0-pins { |
| 787 | pins = "PF0", "PF1", "PF2", |
| 788 | "PF3", "PF4", "PF5"; |
| 789 | function = "mmc0"; |
| 790 | drive-strength = <30>; |
| 791 | bias-pull-up; |
| 792 | }; |
| 793 | |
| 794 | mmc1_pins: mmc1-pins { |
| 795 | pins = "PG0", "PG1", "PG2", |
| 796 | "PG3", "PG4", "PG5"; |
| 797 | function = "mmc1"; |
| 798 | drive-strength = <30>; |
| 799 | bias-pull-up; |
| 800 | }; |
| 801 | |
| 802 | mmc2_8bit_emmc_pins: mmc2-8bit-emmc-pins { |
| 803 | pins = "PC5", "PC6", "PC8", "PC9", |
| 804 | "PC10", "PC11", "PC12", "PC13", |
| 805 | "PC14", "PC15", "PC16"; |
| 806 | function = "mmc2"; |
| 807 | drive-strength = <30>; |
| 808 | bias-pull-up; |
| 809 | }; |
| 810 | |
| 811 | pwm_pin: pwm-pin { |
| 812 | pins = "PD28"; |
| 813 | function = "pwm"; |
| 814 | }; |
| 815 | |
| 816 | spdif_tx_pin: spdif-tx-pin { |
| 817 | pins = "PE18"; |
| 818 | function = "spdif"; |
| 819 | }; |
| 820 | |
| 821 | uart0_pb_pins: uart0-pb-pins { |
| 822 | pins = "PB9", "PB10"; |
| 823 | function = "uart0"; |
| 824 | }; |
| 825 | |
| 826 | uart0_pf_pins: uart0-pf-pins { |
| 827 | pins = "PF2", "PF4"; |
| 828 | function = "uart0"; |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 829 | }; |
| 830 | |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 831 | uart1_pins: uart1-pins { |
| 832 | pins = "PG6", "PG7"; |
| 833 | function = "uart1"; |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 834 | }; |
| 835 | |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 836 | uart1_rts_cts_pins: uart1-rts-cts-pins { |
| 837 | pins = "PG8", "PG9"; |
| 838 | function = "uart1"; |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 839 | }; |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 840 | |
| 841 | /omit-if-no-ref/ |
| 842 | uart2_pb_pins: uart2-pb-pins { |
| 843 | pins = "PB0", "PB1"; |
| 844 | function = "uart2"; |
| 845 | }; |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 846 | }; |
| 847 | |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 848 | timer@1c20c00 { |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 849 | compatible = "allwinner,sun8i-a23-timer"; |
Hans de Goede | 19888a4 | 2016-03-14 17:37:09 +0100 | [diff] [blame] | 850 | reg = <0x01c20c00 0xa0>; |
| 851 | interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>, |
| 852 | <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>; |
| 853 | clocks = <&osc24M>; |
| 854 | }; |
| 855 | |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 856 | watchdog@1c20ca0 { |
Hans de Goede | 19888a4 | 2016-03-14 17:37:09 +0100 | [diff] [blame] | 857 | compatible = "allwinner,sun6i-a31-wdt"; |
| 858 | reg = <0x01c20ca0 0x20>; |
| 859 | interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>; |
| 860 | clocks = <&osc24M>; |
| 861 | }; |
| 862 | |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 863 | spdif: spdif@1c21000 { |
| 864 | #sound-dai-cells = <0>; |
| 865 | compatible = "allwinner,sun8i-a83t-spdif", |
| 866 | "allwinner,sun8i-h3-spdif"; |
| 867 | reg = <0x01c21000 0x400>; |
| 868 | interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; |
| 869 | clocks = <&ccu CLK_BUS_SPDIF>, <&ccu CLK_SPDIF>; |
| 870 | resets = <&ccu RST_BUS_SPDIF>; |
| 871 | clock-names = "apb", "spdif"; |
| 872 | dmas = <&dma 2>; |
| 873 | dma-names = "tx"; |
| 874 | pinctrl-names = "default"; |
| 875 | pinctrl-0 = <&spdif_tx_pin>; |
| 876 | status = "disabled"; |
| 877 | }; |
| 878 | |
| 879 | i2s0: i2s@1c22000 { |
| 880 | #sound-dai-cells = <0>; |
| 881 | compatible = "allwinner,sun8i-a83t-i2s"; |
| 882 | reg = <0x01c22000 0x400>; |
| 883 | interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>; |
| 884 | clocks = <&ccu CLK_BUS_I2S0>, <&ccu CLK_I2S0>; |
| 885 | clock-names = "apb", "mod"; |
| 886 | dmas = <&dma 3>, <&dma 3>; |
| 887 | resets = <&ccu RST_BUS_I2S0>; |
| 888 | dma-names = "rx", "tx"; |
| 889 | status = "disabled"; |
| 890 | }; |
| 891 | |
| 892 | i2s1: i2s@1c22400 { |
| 893 | #sound-dai-cells = <0>; |
| 894 | compatible = "allwinner,sun8i-a83t-i2s"; |
| 895 | reg = <0x01c22400 0x400>; |
| 896 | interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>; |
| 897 | clocks = <&ccu CLK_BUS_I2S1>, <&ccu CLK_I2S1>; |
| 898 | clock-names = "apb", "mod"; |
| 899 | dmas = <&dma 4>, <&dma 4>; |
| 900 | resets = <&ccu RST_BUS_I2S1>; |
| 901 | dma-names = "rx", "tx"; |
| 902 | pinctrl-names = "default"; |
| 903 | pinctrl-0 = <&i2s1_pins>; |
| 904 | status = "disabled"; |
| 905 | }; |
| 906 | |
| 907 | i2s2: i2s@1c22800 { |
| 908 | #sound-dai-cells = <0>; |
| 909 | compatible = "allwinner,sun8i-a83t-i2s"; |
| 910 | reg = <0x01c22800 0x400>; |
| 911 | interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>; |
| 912 | clocks = <&ccu CLK_BUS_I2S2>, <&ccu CLK_I2S2>; |
| 913 | clock-names = "apb", "mod"; |
| 914 | dmas = <&dma 27>; |
| 915 | resets = <&ccu RST_BUS_I2S2>; |
| 916 | dma-names = "tx"; |
| 917 | status = "disabled"; |
| 918 | }; |
| 919 | |
| 920 | pwm: pwm@1c21400 { |
| 921 | compatible = "allwinner,sun8i-a83t-pwm", |
| 922 | "allwinner,sun8i-h3-pwm"; |
| 923 | reg = <0x01c21400 0x400>; |
| 924 | clocks = <&osc24M>; |
| 925 | #pwm-cells = <3>; |
| 926 | status = "disabled"; |
| 927 | }; |
| 928 | |
| 929 | uart0: serial@1c28000 { |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 930 | compatible = "snps,dw-apb-uart"; |
| 931 | reg = <0x01c28000 0x400>; |
| 932 | interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>; |
| 933 | reg-shift = <2>; |
| 934 | reg-io-width = <4>; |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 935 | clocks = <&ccu CLK_BUS_UART0>; |
| 936 | resets = <&ccu RST_BUS_UART0>; |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 937 | status = "disabled"; |
| 938 | }; |
Hans de Goede | 19888a4 | 2016-03-14 17:37:09 +0100 | [diff] [blame] | 939 | |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 940 | uart1: serial@1c28400 { |
| 941 | compatible = "snps,dw-apb-uart"; |
| 942 | reg = <0x01c28400 0x400>; |
| 943 | interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; |
| 944 | reg-shift = <2>; |
| 945 | reg-io-width = <4>; |
| 946 | clocks = <&ccu CLK_BUS_UART1>; |
| 947 | resets = <&ccu RST_BUS_UART1>; |
| 948 | status = "disabled"; |
| 949 | }; |
| 950 | |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 951 | uart2: serial@1c28800 { |
| 952 | compatible = "snps,dw-apb-uart"; |
| 953 | reg = <0x01c28800 0x400>; |
| 954 | interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>; |
| 955 | reg-shift = <2>; |
| 956 | reg-io-width = <4>; |
| 957 | clocks = <&ccu CLK_BUS_UART2>; |
| 958 | resets = <&ccu RST_BUS_UART2>; |
| 959 | status = "disabled"; |
| 960 | }; |
| 961 | |
| 962 | uart3: serial@1c28c00 { |
| 963 | compatible = "snps,dw-apb-uart"; |
| 964 | reg = <0x01c28c00 0x400>; |
| 965 | interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; |
| 966 | reg-shift = <2>; |
| 967 | reg-io-width = <4>; |
| 968 | clocks = <&ccu CLK_BUS_UART3>; |
| 969 | resets = <&ccu RST_BUS_UART3>; |
| 970 | status = "disabled"; |
| 971 | }; |
| 972 | |
| 973 | uart4: serial@1c29000 { |
| 974 | compatible = "snps,dw-apb-uart"; |
| 975 | reg = <0x01c29000 0x400>; |
| 976 | interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>; |
| 977 | reg-shift = <2>; |
| 978 | reg-io-width = <4>; |
| 979 | clocks = <&ccu CLK_BUS_UART4>; |
| 980 | resets = <&ccu RST_BUS_UART4>; |
| 981 | status = "disabled"; |
| 982 | }; |
| 983 | |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 984 | i2c0: i2c@1c2ac00 { |
| 985 | compatible = "allwinner,sun8i-a83t-i2c", |
| 986 | "allwinner,sun6i-a31-i2c"; |
| 987 | reg = <0x01c2ac00 0x400>; |
| 988 | interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>; |
| 989 | clocks = <&ccu CLK_BUS_I2C0>; |
| 990 | resets = <&ccu RST_BUS_I2C0>; |
| 991 | pinctrl-names = "default"; |
| 992 | pinctrl-0 = <&i2c0_pins>; |
| 993 | status = "disabled"; |
| 994 | #address-cells = <1>; |
| 995 | #size-cells = <0>; |
| 996 | }; |
| 997 | |
| 998 | i2c1: i2c@1c2b000 { |
| 999 | compatible = "allwinner,sun8i-a83t-i2c", |
| 1000 | "allwinner,sun6i-a31-i2c"; |
| 1001 | reg = <0x01c2b000 0x400>; |
| 1002 | interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; |
| 1003 | clocks = <&ccu CLK_BUS_I2C1>; |
| 1004 | resets = <&ccu RST_BUS_I2C1>; |
| 1005 | pinctrl-names = "default"; |
| 1006 | pinctrl-0 = <&i2c1_pins>; |
| 1007 | status = "disabled"; |
| 1008 | #address-cells = <1>; |
| 1009 | #size-cells = <0>; |
| 1010 | }; |
| 1011 | |
| 1012 | i2c2: i2c@1c2b400 { |
| 1013 | compatible = "allwinner,sun8i-a83t-i2c", |
| 1014 | "allwinner,sun6i-a31-i2c"; |
| 1015 | reg = <0x01c2b400 0x400>; |
| 1016 | interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; |
| 1017 | clocks = <&ccu CLK_BUS_I2C2>; |
| 1018 | resets = <&ccu RST_BUS_I2C2>; |
| 1019 | status = "disabled"; |
| 1020 | #address-cells = <1>; |
| 1021 | #size-cells = <0>; |
| 1022 | }; |
| 1023 | |
| 1024 | emac: ethernet@1c30000 { |
| 1025 | compatible = "allwinner,sun8i-a83t-emac"; |
| 1026 | syscon = <&syscon>; |
| 1027 | reg = <0x01c30000 0x104>; |
| 1028 | interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>; |
| 1029 | interrupt-names = "macirq"; |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 1030 | clocks = <&ccu CLK_BUS_EMAC>; |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 1031 | clock-names = "stmmaceth"; |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 1032 | resets = <&ccu RST_BUS_EMAC>; |
| 1033 | reset-names = "stmmaceth"; |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 1034 | status = "disabled"; |
| 1035 | |
| 1036 | mdio: mdio { |
| 1037 | compatible = "snps,dwmac-mdio"; |
| 1038 | #address-cells = <1>; |
| 1039 | #size-cells = <0>; |
| 1040 | }; |
| 1041 | }; |
| 1042 | |
| 1043 | gic: interrupt-controller@1c81000 { |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 1044 | compatible = "arm,gic-400"; |
Hans de Goede | 19888a4 | 2016-03-14 17:37:09 +0100 | [diff] [blame] | 1045 | reg = <0x01c81000 0x1000>, |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 1046 | <0x01c82000 0x2000>, |
Hans de Goede | 19888a4 | 2016-03-14 17:37:09 +0100 | [diff] [blame] | 1047 | <0x01c84000 0x2000>, |
| 1048 | <0x01c86000 0x2000>; |
| 1049 | interrupt-controller; |
| 1050 | #interrupt-cells = <3>; |
| 1051 | interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>; |
| 1052 | }; |
Chen-Yu Tsai | 82c7a8b | 2016-03-30 00:27:00 +0800 | [diff] [blame] | 1053 | |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 1054 | csi: camera@1cb0000 { |
| 1055 | compatible = "allwinner,sun8i-a83t-csi"; |
| 1056 | reg = <0x01cb0000 0x1000>; |
| 1057 | interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>; |
| 1058 | clocks = <&ccu CLK_BUS_CSI>, |
| 1059 | <&ccu CLK_CSI_SCLK>, |
| 1060 | <&ccu CLK_DRAM_CSI>; |
| 1061 | clock-names = "bus", "mod", "ram"; |
| 1062 | resets = <&ccu RST_BUS_CSI>; |
| 1063 | status = "disabled"; |
| 1064 | }; |
| 1065 | |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 1066 | hdmi: hdmi@1ee0000 { |
| 1067 | compatible = "allwinner,sun8i-a83t-dw-hdmi"; |
| 1068 | reg = <0x01ee0000 0x10000>; |
| 1069 | reg-io-width = <1>; |
| 1070 | interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>; |
| 1071 | clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_SLOW>, |
| 1072 | <&ccu CLK_HDMI>; |
| 1073 | clock-names = "iahb", "isfr", "tmds"; |
| 1074 | resets = <&ccu RST_BUS_HDMI1>; |
| 1075 | reset-names = "ctrl"; |
| 1076 | phys = <&hdmi_phy>; |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 1077 | phy-names = "phy"; |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 1078 | pinctrl-names = "default"; |
| 1079 | pinctrl-0 = <&hdmi_pins>; |
Chen-Yu Tsai | 82c7a8b | 2016-03-30 00:27:00 +0800 | [diff] [blame] | 1080 | status = "disabled"; |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 1081 | |
| 1082 | ports { |
| 1083 | #address-cells = <1>; |
| 1084 | #size-cells = <0>; |
| 1085 | |
| 1086 | hdmi_in: port@0 { |
| 1087 | reg = <0>; |
| 1088 | |
| 1089 | hdmi_in_tcon1: endpoint { |
| 1090 | remote-endpoint = <&tcon1_out_hdmi>; |
| 1091 | }; |
| 1092 | }; |
| 1093 | |
| 1094 | hdmi_out: port@1 { |
| 1095 | reg = <1>; |
| 1096 | }; |
| 1097 | }; |
Chen-Yu Tsai | 82c7a8b | 2016-03-30 00:27:00 +0800 | [diff] [blame] | 1098 | }; |
| 1099 | |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 1100 | hdmi_phy: hdmi-phy@1ef0000 { |
| 1101 | compatible = "allwinner,sun8i-a83t-hdmi-phy"; |
| 1102 | reg = <0x01ef0000 0x10000>; |
| 1103 | clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_SLOW>; |
| 1104 | clock-names = "bus", "mod"; |
| 1105 | resets = <&ccu RST_BUS_HDMI0>; |
| 1106 | reset-names = "phy"; |
| 1107 | #phy-cells = <0>; |
Jagan Teki | 3c2d9d9 | 2018-05-07 13:03:43 +0530 | [diff] [blame] | 1108 | }; |
| 1109 | |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 1110 | r_intc: interrupt-controller@1f00c00 { |
| 1111 | compatible = "allwinner,sun8i-a83t-r-intc", |
| 1112 | "allwinner,sun6i-a31-r-intc"; |
| 1113 | interrupt-controller; |
| 1114 | #interrupt-cells = <2>; |
| 1115 | reg = <0x01f00c00 0x400>; |
| 1116 | interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; |
Chen-Yu Tsai | 82c7a8b | 2016-03-30 00:27:00 +0800 | [diff] [blame] | 1117 | }; |
| 1118 | |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 1119 | r_ccu: clock@1f01400 { |
| 1120 | compatible = "allwinner,sun8i-a83t-r-ccu"; |
| 1121 | reg = <0x01f01400 0x400>; |
| 1122 | clocks = <&osc24M>, <&osc16Md512>, <&osc16M>, |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 1123 | <&ccu CLK_PLL_PERIPH>; |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 1124 | clock-names = "hosc", "losc", "iosc", "pll-periph"; |
| 1125 | #clock-cells = <1>; |
| 1126 | #reset-cells = <1>; |
Chen-Yu Tsai | 82c7a8b | 2016-03-30 00:27:00 +0800 | [diff] [blame] | 1127 | }; |
| 1128 | |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 1129 | r_cpucfg@1f01c00 { |
| 1130 | compatible = "allwinner,sun8i-a83t-r-cpucfg"; |
| 1131 | reg = <0x1f01c00 0x400>; |
Chen-Yu Tsai | 82c7a8b | 2016-03-30 00:27:00 +0800 | [diff] [blame] | 1132 | }; |
| 1133 | |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 1134 | r_cir: ir@1f02000 { |
| 1135 | compatible = "allwinner,sun8i-a83t-ir", |
| 1136 | "allwinner,sun6i-a31-ir"; |
| 1137 | clocks = <&r_ccu CLK_APB0_IR>, <&r_ccu CLK_IR>; |
| 1138 | clock-names = "apb", "ir"; |
| 1139 | resets = <&r_ccu RST_APB0_IR>; |
| 1140 | interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; |
| 1141 | reg = <0x01f02000 0x400>; |
| 1142 | pinctrl-names = "default"; |
| 1143 | pinctrl-0 = <&r_cir_pin>; |
| 1144 | status = "disabled"; |
| 1145 | }; |
| 1146 | |
| 1147 | r_lradc: lradc@1f03c00 { |
| 1148 | compatible = "allwinner,sun8i-a83t-r-lradc"; |
| 1149 | reg = <0x01f03c00 0x100>; |
| 1150 | interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>; |
| 1151 | status = "disabled"; |
| 1152 | }; |
| 1153 | |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 1154 | r_pio: pinctrl@1f02c00 { |
Chen-Yu Tsai | 82c7a8b | 2016-03-30 00:27:00 +0800 | [diff] [blame] | 1155 | compatible = "allwinner,sun8i-a83t-r-pinctrl"; |
| 1156 | reg = <0x01f02c00 0x400>; |
| 1157 | interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>; |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 1158 | clocks = <&r_ccu CLK_APB0_PIO>, <&osc24M>, |
| 1159 | <&osc16Md512>; |
| 1160 | clock-names = "apb", "hosc", "losc"; |
| 1161 | gpio-controller; |
| 1162 | #gpio-cells = <3>; |
| 1163 | interrupt-controller; |
| 1164 | #interrupt-cells = <3>; |
| 1165 | |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 1166 | r_cir_pin: r-cir-pin { |
| 1167 | pins = "PL12"; |
| 1168 | function = "s_cir_rx"; |
| 1169 | }; |
| 1170 | |
Jagan Teki | ea990f3 | 2018-08-05 00:40:12 +0530 | [diff] [blame] | 1171 | r_rsb_pins: r-rsb-pins { |
| 1172 | pins = "PL0", "PL1"; |
| 1173 | function = "s_rsb"; |
| 1174 | drive-strength = <20>; |
| 1175 | bias-pull-up; |
| 1176 | }; |
| 1177 | }; |
| 1178 | |
| 1179 | r_rsb: rsb@1f03400 { |
| 1180 | compatible = "allwinner,sun8i-a83t-rsb", |
| 1181 | "allwinner,sun8i-a23-rsb"; |
| 1182 | reg = <0x01f03400 0x400>; |
| 1183 | interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; |
| 1184 | clocks = <&r_ccu CLK_APB0_RSB>; |
| 1185 | clock-frequency = <3000000>; |
| 1186 | resets = <&r_ccu RST_APB0_RSB>; |
| 1187 | pinctrl-names = "default"; |
| 1188 | pinctrl-0 = <&r_rsb_pins>; |
| 1189 | status = "disabled"; |
| 1190 | #address-cells = <1>; |
| 1191 | #size-cells = <0>; |
Chen-Yu Tsai | 82c7a8b | 2016-03-30 00:27:00 +0800 | [diff] [blame] | 1192 | }; |
Samuel Holland | b288729 | 2022-04-27 15:31:26 -0500 | [diff] [blame] | 1193 | |
| 1194 | ths: thermal-sensor@1f04000 { |
| 1195 | compatible = "allwinner,sun8i-a83t-ths"; |
| 1196 | reg = <0x01f04000 0x100>; |
| 1197 | interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; |
| 1198 | nvmem-cells = <&ths_calibration>; |
| 1199 | nvmem-cell-names = "calibration"; |
| 1200 | #thermal-sensor-cells = <1>; |
| 1201 | }; |
| 1202 | }; |
| 1203 | |
| 1204 | thermal-zones { |
| 1205 | cpu0_thermal: cpu0-thermal { |
| 1206 | polling-delay-passive = <0>; |
| 1207 | polling-delay = <0>; |
| 1208 | thermal-sensors = <&ths 0>; |
| 1209 | |
| 1210 | trips { |
| 1211 | cpu0_hot: cpu-hot { |
| 1212 | temperature = <80000>; |
| 1213 | hysteresis = <2000>; |
| 1214 | type = "passive"; |
| 1215 | }; |
| 1216 | |
| 1217 | cpu0_very_hot: cpu-very-hot { |
| 1218 | temperature = <100000>; |
| 1219 | hysteresis = <0>; |
| 1220 | type = "critical"; |
| 1221 | }; |
| 1222 | }; |
| 1223 | |
| 1224 | cooling-maps { |
| 1225 | cpu-hot-limit { |
| 1226 | trip = <&cpu0_hot>; |
| 1227 | cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 1228 | <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 1229 | <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 1230 | <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
| 1231 | }; |
| 1232 | }; |
| 1233 | }; |
| 1234 | |
| 1235 | cpu1_thermal: cpu1-thermal { |
| 1236 | polling-delay-passive = <0>; |
| 1237 | polling-delay = <0>; |
| 1238 | thermal-sensors = <&ths 1>; |
| 1239 | |
| 1240 | trips { |
| 1241 | cpu1_hot: cpu-hot { |
| 1242 | temperature = <80000>; |
| 1243 | hysteresis = <2000>; |
| 1244 | type = "passive"; |
| 1245 | }; |
| 1246 | |
| 1247 | cpu1_very_hot: cpu-very-hot { |
| 1248 | temperature = <100000>; |
| 1249 | hysteresis = <0>; |
| 1250 | type = "critical"; |
| 1251 | }; |
| 1252 | }; |
| 1253 | |
| 1254 | cooling-maps { |
| 1255 | cpu-hot-limit { |
| 1256 | trip = <&cpu1_hot>; |
| 1257 | cooling-device = <&cpu100 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 1258 | <&cpu101 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 1259 | <&cpu102 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 1260 | <&cpu103 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
| 1261 | }; |
| 1262 | }; |
| 1263 | }; |
| 1264 | |
| 1265 | gpu_thermal: gpu-thermal { |
| 1266 | polling-delay-passive = <0>; |
| 1267 | polling-delay = <0>; |
| 1268 | thermal-sensors = <&ths 2>; |
| 1269 | }; |
vishnupatekar | 48afb79 | 2015-11-29 01:07:26 +0800 | [diff] [blame] | 1270 | }; |
| 1271 | }; |