1*4882a593Smuzhiyun// SPDX-License-Identifier: GPL-2.0-only 2*4882a593Smuzhiyun/* 3*4882a593Smuzhiyun * Hisilicon Ltd. Hi3620 SoC 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * Copyright (C) 2012-2013 Hisilicon Ltd. 6*4882a593Smuzhiyun * Copyright (C) 2012-2013 Linaro Ltd. 7*4882a593Smuzhiyun * 8*4882a593Smuzhiyun * Author: Haojian Zhuang <haojian.zhuang@linaro.org> 9*4882a593Smuzhiyun */ 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun#include <dt-bindings/clock/hi3620-clock.h> 12*4882a593Smuzhiyun 13*4882a593Smuzhiyun/ { 14*4882a593Smuzhiyun #address-cells = <1>; 15*4882a593Smuzhiyun #size-cells = <1>; 16*4882a593Smuzhiyun 17*4882a593Smuzhiyun aliases { 18*4882a593Smuzhiyun serial0 = &uart0; 19*4882a593Smuzhiyun serial1 = &uart1; 20*4882a593Smuzhiyun serial2 = &uart2; 21*4882a593Smuzhiyun serial3 = &uart3; 22*4882a593Smuzhiyun serial4 = &uart4; 23*4882a593Smuzhiyun }; 24*4882a593Smuzhiyun 25*4882a593Smuzhiyun pclk: clk { 26*4882a593Smuzhiyun compatible = "fixed-clock"; 27*4882a593Smuzhiyun #clock-cells = <0>; 28*4882a593Smuzhiyun clock-frequency = <26000000>; 29*4882a593Smuzhiyun clock-output-names = "apb_pclk"; 30*4882a593Smuzhiyun }; 31*4882a593Smuzhiyun 32*4882a593Smuzhiyun cpus { 33*4882a593Smuzhiyun #address-cells = <1>; 34*4882a593Smuzhiyun #size-cells = <0>; 35*4882a593Smuzhiyun enable-method = "hisilicon,hi3620-smp"; 36*4882a593Smuzhiyun 37*4882a593Smuzhiyun cpu@0 { 38*4882a593Smuzhiyun device_type = "cpu"; 39*4882a593Smuzhiyun compatible = "arm,cortex-a9"; 40*4882a593Smuzhiyun reg = <0x0>; 41*4882a593Smuzhiyun next-level-cache = <&L2>; 42*4882a593Smuzhiyun }; 43*4882a593Smuzhiyun 44*4882a593Smuzhiyun cpu@1 { 45*4882a593Smuzhiyun compatible = "arm,cortex-a9"; 46*4882a593Smuzhiyun device_type = "cpu"; 47*4882a593Smuzhiyun reg = <1>; 48*4882a593Smuzhiyun next-level-cache = <&L2>; 49*4882a593Smuzhiyun }; 50*4882a593Smuzhiyun 51*4882a593Smuzhiyun cpu@2 { 52*4882a593Smuzhiyun compatible = "arm,cortex-a9"; 53*4882a593Smuzhiyun device_type = "cpu"; 54*4882a593Smuzhiyun reg = <2>; 55*4882a593Smuzhiyun next-level-cache = <&L2>; 56*4882a593Smuzhiyun }; 57*4882a593Smuzhiyun 58*4882a593Smuzhiyun cpu@3 { 59*4882a593Smuzhiyun compatible = "arm,cortex-a9"; 60*4882a593Smuzhiyun device_type = "cpu"; 61*4882a593Smuzhiyun reg = <3>; 62*4882a593Smuzhiyun next-level-cache = <&L2>; 63*4882a593Smuzhiyun }; 64*4882a593Smuzhiyun }; 65*4882a593Smuzhiyun 66*4882a593Smuzhiyun amba { 67*4882a593Smuzhiyun 68*4882a593Smuzhiyun #address-cells = <1>; 69*4882a593Smuzhiyun #size-cells = <1>; 70*4882a593Smuzhiyun compatible = "simple-bus"; 71*4882a593Smuzhiyun interrupt-parent = <&gic>; 72*4882a593Smuzhiyun ranges = <0 0xfc000000 0x2000000>; 73*4882a593Smuzhiyun 74*4882a593Smuzhiyun L2: cache-controller { 75*4882a593Smuzhiyun compatible = "arm,pl310-cache"; 76*4882a593Smuzhiyun reg = <0x100000 0x100000>; 77*4882a593Smuzhiyun interrupts = <0 15 4>; 78*4882a593Smuzhiyun cache-unified; 79*4882a593Smuzhiyun cache-level = <2>; 80*4882a593Smuzhiyun }; 81*4882a593Smuzhiyun 82*4882a593Smuzhiyun gic: interrupt-controller@1000 { 83*4882a593Smuzhiyun compatible = "arm,cortex-a9-gic"; 84*4882a593Smuzhiyun #interrupt-cells = <3>; 85*4882a593Smuzhiyun #address-cells = <0>; 86*4882a593Smuzhiyun interrupt-controller; 87*4882a593Smuzhiyun /* gic dist base, gic cpu base */ 88*4882a593Smuzhiyun reg = <0x1000 0x1000>, <0x100 0x100>; 89*4882a593Smuzhiyun }; 90*4882a593Smuzhiyun 91*4882a593Smuzhiyun sysctrl: system-controller@802000 { 92*4882a593Smuzhiyun compatible = "hisilicon,sysctrl", "syscon"; 93*4882a593Smuzhiyun #address-cells = <1>; 94*4882a593Smuzhiyun #size-cells = <1>; 95*4882a593Smuzhiyun ranges = <0 0x802000 0x1000>; 96*4882a593Smuzhiyun reg = <0x802000 0x1000>; 97*4882a593Smuzhiyun 98*4882a593Smuzhiyun smp-offset = <0x31c>; 99*4882a593Smuzhiyun resume-offset = <0x308>; 100*4882a593Smuzhiyun reboot-offset = <0x4>; 101*4882a593Smuzhiyun 102*4882a593Smuzhiyun clock: clock@0 { 103*4882a593Smuzhiyun compatible = "hisilicon,hi3620-clock"; 104*4882a593Smuzhiyun reg = <0 0x10000>; 105*4882a593Smuzhiyun #clock-cells = <1>; 106*4882a593Smuzhiyun }; 107*4882a593Smuzhiyun }; 108*4882a593Smuzhiyun 109*4882a593Smuzhiyun dual_timer0: dual_timer@800000 { 110*4882a593Smuzhiyun compatible = "arm,sp804", "arm,primecell"; 111*4882a593Smuzhiyun reg = <0x800000 0x1000>; 112*4882a593Smuzhiyun /* timer00 & timer01 */ 113*4882a593Smuzhiyun interrupts = <0 0 4>, <0 1 4>; 114*4882a593Smuzhiyun clocks = <&clock HI3620_TIMER0_MUX>, 115*4882a593Smuzhiyun <&clock HI3620_TIMER1_MUX>, 116*4882a593Smuzhiyun <&clock HI3620_TIMER0_MUX>; 117*4882a593Smuzhiyun clock-names = "timer0clk", "timer1clk", "apb_pclk"; 118*4882a593Smuzhiyun status = "disabled"; 119*4882a593Smuzhiyun }; 120*4882a593Smuzhiyun 121*4882a593Smuzhiyun dual_timer1: dual_timer@801000 { 122*4882a593Smuzhiyun compatible = "arm,sp804", "arm,primecell"; 123*4882a593Smuzhiyun reg = <0x801000 0x1000>; 124*4882a593Smuzhiyun /* timer10 & timer11 */ 125*4882a593Smuzhiyun interrupts = <0 2 4>, <0 3 4>; 126*4882a593Smuzhiyun clocks = <&clock HI3620_TIMER2_MUX>, 127*4882a593Smuzhiyun <&clock HI3620_TIMER3_MUX>, 128*4882a593Smuzhiyun <&clock HI3620_TIMER2_MUX>; 129*4882a593Smuzhiyun clock-names = "timer0clk", "timer1clk", "apb_pclk"; 130*4882a593Smuzhiyun status = "disabled"; 131*4882a593Smuzhiyun }; 132*4882a593Smuzhiyun 133*4882a593Smuzhiyun dual_timer2: dual_timer@a01000 { 134*4882a593Smuzhiyun compatible = "arm,sp804", "arm,primecell"; 135*4882a593Smuzhiyun reg = <0xa01000 0x1000>; 136*4882a593Smuzhiyun /* timer20 & timer21 */ 137*4882a593Smuzhiyun interrupts = <0 4 4>, <0 5 4>; 138*4882a593Smuzhiyun clocks = <&clock HI3620_TIMER4_MUX>, 139*4882a593Smuzhiyun <&clock HI3620_TIMER5_MUX>, 140*4882a593Smuzhiyun <&clock HI3620_TIMER4_MUX>; 141*4882a593Smuzhiyun clock-names = "timer0lck", "timer1clk", "apb_pclk"; 142*4882a593Smuzhiyun status = "disabled"; 143*4882a593Smuzhiyun }; 144*4882a593Smuzhiyun 145*4882a593Smuzhiyun dual_timer3: dual_timer@a02000 { 146*4882a593Smuzhiyun compatible = "arm,sp804", "arm,primecell"; 147*4882a593Smuzhiyun reg = <0xa02000 0x1000>; 148*4882a593Smuzhiyun /* timer30 & timer31 */ 149*4882a593Smuzhiyun interrupts = <0 6 4>, <0 7 4>; 150*4882a593Smuzhiyun clocks = <&clock HI3620_TIMER6_MUX>, 151*4882a593Smuzhiyun <&clock HI3620_TIMER7_MUX>, 152*4882a593Smuzhiyun <&clock HI3620_TIMER6_MUX>; 153*4882a593Smuzhiyun clock-names = "timer0clk", "timer1clk", "apb_pclk"; 154*4882a593Smuzhiyun status = "disabled"; 155*4882a593Smuzhiyun }; 156*4882a593Smuzhiyun 157*4882a593Smuzhiyun dual_timer4: dual_timer@a03000 { 158*4882a593Smuzhiyun compatible = "arm,sp804", "arm,primecell"; 159*4882a593Smuzhiyun reg = <0xa03000 0x1000>; 160*4882a593Smuzhiyun /* timer40 & timer41 */ 161*4882a593Smuzhiyun interrupts = <0 96 4>, <0 97 4>; 162*4882a593Smuzhiyun clocks = <&clock HI3620_TIMER8_MUX>, 163*4882a593Smuzhiyun <&clock HI3620_TIMER9_MUX>, 164*4882a593Smuzhiyun <&clock HI3620_TIMER8_MUX>; 165*4882a593Smuzhiyun clock-names = "timer0clk", "timer1clk", "apb_pclk"; 166*4882a593Smuzhiyun status = "disabled"; 167*4882a593Smuzhiyun }; 168*4882a593Smuzhiyun 169*4882a593Smuzhiyun timer5: timer@600 { 170*4882a593Smuzhiyun compatible = "arm,cortex-a9-twd-timer"; 171*4882a593Smuzhiyun reg = <0x600 0x20>; 172*4882a593Smuzhiyun interrupts = <1 13 0xf01>; 173*4882a593Smuzhiyun }; 174*4882a593Smuzhiyun 175*4882a593Smuzhiyun uart0: uart@b00000 { 176*4882a593Smuzhiyun compatible = "arm,pl011", "arm,primecell"; 177*4882a593Smuzhiyun reg = <0xb00000 0x1000>; 178*4882a593Smuzhiyun interrupts = <0 20 4>; 179*4882a593Smuzhiyun clocks = <&clock HI3620_UARTCLK0>; 180*4882a593Smuzhiyun clock-names = "apb_pclk"; 181*4882a593Smuzhiyun status = "disabled"; 182*4882a593Smuzhiyun }; 183*4882a593Smuzhiyun 184*4882a593Smuzhiyun uart1: uart@b01000 { 185*4882a593Smuzhiyun compatible = "arm,pl011", "arm,primecell"; 186*4882a593Smuzhiyun reg = <0xb01000 0x1000>; 187*4882a593Smuzhiyun interrupts = <0 21 4>; 188*4882a593Smuzhiyun clocks = <&clock HI3620_UARTCLK1>; 189*4882a593Smuzhiyun clock-names = "apb_pclk"; 190*4882a593Smuzhiyun status = "disabled"; 191*4882a593Smuzhiyun }; 192*4882a593Smuzhiyun 193*4882a593Smuzhiyun uart2: uart@b02000 { 194*4882a593Smuzhiyun compatible = "arm,pl011", "arm,primecell"; 195*4882a593Smuzhiyun reg = <0xb02000 0x1000>; 196*4882a593Smuzhiyun interrupts = <0 22 4>; 197*4882a593Smuzhiyun clocks = <&clock HI3620_UARTCLK2>; 198*4882a593Smuzhiyun clock-names = "apb_pclk"; 199*4882a593Smuzhiyun status = "disabled"; 200*4882a593Smuzhiyun }; 201*4882a593Smuzhiyun 202*4882a593Smuzhiyun uart3: uart@b03000 { 203*4882a593Smuzhiyun compatible = "arm,pl011", "arm,primecell"; 204*4882a593Smuzhiyun reg = <0xb03000 0x1000>; 205*4882a593Smuzhiyun interrupts = <0 23 4>; 206*4882a593Smuzhiyun clocks = <&clock HI3620_UARTCLK3>; 207*4882a593Smuzhiyun clock-names = "apb_pclk"; 208*4882a593Smuzhiyun status = "disabled"; 209*4882a593Smuzhiyun }; 210*4882a593Smuzhiyun 211*4882a593Smuzhiyun uart4: uart@b04000 { 212*4882a593Smuzhiyun compatible = "arm,pl011", "arm,primecell"; 213*4882a593Smuzhiyun reg = <0xb04000 0x1000>; 214*4882a593Smuzhiyun interrupts = <0 24 4>; 215*4882a593Smuzhiyun clocks = <&clock HI3620_UARTCLK4>; 216*4882a593Smuzhiyun clock-names = "apb_pclk"; 217*4882a593Smuzhiyun status = "disabled"; 218*4882a593Smuzhiyun }; 219*4882a593Smuzhiyun 220*4882a593Smuzhiyun gpio0: gpio@806000 { 221*4882a593Smuzhiyun compatible = "arm,pl061", "arm,primecell"; 222*4882a593Smuzhiyun reg = <0x806000 0x1000>; 223*4882a593Smuzhiyun interrupts = <0 64 0x4>; 224*4882a593Smuzhiyun gpio-controller; 225*4882a593Smuzhiyun #gpio-cells = <2>; 226*4882a593Smuzhiyun gpio-ranges = < &pmx0 2 0 1 &pmx0 3 0 1 &pmx0 4 0 1 227*4882a593Smuzhiyun &pmx0 5 0 1 &pmx0 6 1 1 &pmx0 7 2 1>; 228*4882a593Smuzhiyun interrupt-controller; 229*4882a593Smuzhiyun #interrupt-cells = <2>; 230*4882a593Smuzhiyun clocks = <&clock HI3620_GPIOCLK0>; 231*4882a593Smuzhiyun clock-names = "apb_pclk"; 232*4882a593Smuzhiyun }; 233*4882a593Smuzhiyun 234*4882a593Smuzhiyun gpio1: gpio@807000 { 235*4882a593Smuzhiyun compatible = "arm,pl061", "arm,primecell"; 236*4882a593Smuzhiyun reg = <0x807000 0x1000>; 237*4882a593Smuzhiyun interrupts = <0 65 0x4>; 238*4882a593Smuzhiyun gpio-controller; 239*4882a593Smuzhiyun #gpio-cells = <2>; 240*4882a593Smuzhiyun gpio-ranges = < &pmx0 0 3 1 &pmx0 1 3 1 &pmx0 2 3 1 241*4882a593Smuzhiyun &pmx0 3 3 1 &pmx0 4 3 1 &pmx0 5 4 1 242*4882a593Smuzhiyun &pmx0 6 5 1 &pmx0 7 6 1>; 243*4882a593Smuzhiyun interrupt-controller; 244*4882a593Smuzhiyun #interrupt-cells = <2>; 245*4882a593Smuzhiyun clocks = <&clock HI3620_GPIOCLK1>; 246*4882a593Smuzhiyun clock-names = "apb_pclk"; 247*4882a593Smuzhiyun }; 248*4882a593Smuzhiyun 249*4882a593Smuzhiyun gpio2: gpio@808000 { 250*4882a593Smuzhiyun compatible = "arm,pl061", "arm,primecell"; 251*4882a593Smuzhiyun reg = <0x808000 0x1000>; 252*4882a593Smuzhiyun interrupts = <0 66 0x4>; 253*4882a593Smuzhiyun gpio-controller; 254*4882a593Smuzhiyun #gpio-cells = <2>; 255*4882a593Smuzhiyun gpio-ranges = < &pmx0 0 7 1 &pmx0 1 8 1 &pmx0 2 9 1 256*4882a593Smuzhiyun &pmx0 3 10 1 &pmx0 4 3 1 &pmx0 5 3 1 257*4882a593Smuzhiyun &pmx0 6 3 1 &pmx0 7 3 1>; 258*4882a593Smuzhiyun interrupt-controller; 259*4882a593Smuzhiyun #interrupt-cells = <2>; 260*4882a593Smuzhiyun clocks = <&clock HI3620_GPIOCLK2>; 261*4882a593Smuzhiyun clock-names = "apb_pclk"; 262*4882a593Smuzhiyun }; 263*4882a593Smuzhiyun 264*4882a593Smuzhiyun gpio3: gpio@809000 { 265*4882a593Smuzhiyun compatible = "arm,pl061", "arm,primecell"; 266*4882a593Smuzhiyun reg = <0x809000 0x1000>; 267*4882a593Smuzhiyun interrupts = <0 67 0x4>; 268*4882a593Smuzhiyun gpio-controller; 269*4882a593Smuzhiyun #gpio-cells = <2>; 270*4882a593Smuzhiyun gpio-ranges = < &pmx0 0 3 1 &pmx0 1 3 1 &pmx0 2 3 1 271*4882a593Smuzhiyun &pmx0 3 3 1 &pmx0 4 11 1 &pmx0 5 11 1 272*4882a593Smuzhiyun &pmx0 6 11 1 &pmx0 7 11 1>; 273*4882a593Smuzhiyun interrupt-controller; 274*4882a593Smuzhiyun #interrupt-cells = <2>; 275*4882a593Smuzhiyun clocks = <&clock HI3620_GPIOCLK3>; 276*4882a593Smuzhiyun clock-names = "apb_pclk"; 277*4882a593Smuzhiyun }; 278*4882a593Smuzhiyun 279*4882a593Smuzhiyun gpio4: gpio@80a000 { 280*4882a593Smuzhiyun compatible = "arm,pl061", "arm,primecell"; 281*4882a593Smuzhiyun reg = <0x80a000 0x1000>; 282*4882a593Smuzhiyun interrupts = <0 68 0x4>; 283*4882a593Smuzhiyun gpio-controller; 284*4882a593Smuzhiyun #gpio-cells = <2>; 285*4882a593Smuzhiyun gpio-ranges = < &pmx0 0 11 1 &pmx0 1 11 1 &pmx0 2 11 1 286*4882a593Smuzhiyun &pmx0 3 11 1 &pmx0 4 12 1 &pmx0 5 12 1 287*4882a593Smuzhiyun &pmx0 6 13 1 &pmx0 7 13 1>; 288*4882a593Smuzhiyun interrupt-controller; 289*4882a593Smuzhiyun #interrupt-cells = <2>; 290*4882a593Smuzhiyun clocks = <&clock HI3620_GPIOCLK4>; 291*4882a593Smuzhiyun clock-names = "apb_pclk"; 292*4882a593Smuzhiyun }; 293*4882a593Smuzhiyun 294*4882a593Smuzhiyun gpio5: gpio@80b000 { 295*4882a593Smuzhiyun compatible = "arm,pl061", "arm,primecell"; 296*4882a593Smuzhiyun reg = <0x80b000 0x1000>; 297*4882a593Smuzhiyun interrupts = <0 69 0x4>; 298*4882a593Smuzhiyun gpio-controller; 299*4882a593Smuzhiyun #gpio-cells = <2>; 300*4882a593Smuzhiyun gpio-ranges = < &pmx0 0 14 1 &pmx0 1 15 1 &pmx0 2 16 1 301*4882a593Smuzhiyun &pmx0 3 16 1 &pmx0 4 16 1 &pmx0 5 16 1 302*4882a593Smuzhiyun &pmx0 6 16 1 &pmx0 7 16 1>; 303*4882a593Smuzhiyun interrupt-controller; 304*4882a593Smuzhiyun #interrupt-cells = <2>; 305*4882a593Smuzhiyun clocks = <&clock HI3620_GPIOCLK5>; 306*4882a593Smuzhiyun clock-names = "apb_pclk"; 307*4882a593Smuzhiyun }; 308*4882a593Smuzhiyun 309*4882a593Smuzhiyun gpio6: gpio@80c000 { 310*4882a593Smuzhiyun compatible = "arm,pl061", "arm,primecell"; 311*4882a593Smuzhiyun reg = <0x80c000 0x1000>; 312*4882a593Smuzhiyun interrupts = <0 70 0x4>; 313*4882a593Smuzhiyun gpio-controller; 314*4882a593Smuzhiyun #gpio-cells = <2>; 315*4882a593Smuzhiyun gpio-ranges = < &pmx0 0 16 1 &pmx0 1 16 1 &pmx0 2 17 1 316*4882a593Smuzhiyun &pmx0 3 17 1 &pmx0 4 18 1 &pmx0 5 18 1 317*4882a593Smuzhiyun &pmx0 6 18 1 &pmx0 7 19 1>; 318*4882a593Smuzhiyun interrupt-controller; 319*4882a593Smuzhiyun #interrupt-cells = <2>; 320*4882a593Smuzhiyun clocks = <&clock HI3620_GPIOCLK6>; 321*4882a593Smuzhiyun clock-names = "apb_pclk"; 322*4882a593Smuzhiyun }; 323*4882a593Smuzhiyun 324*4882a593Smuzhiyun gpio7: gpio@80d000 { 325*4882a593Smuzhiyun compatible = "arm,pl061", "arm,primecell"; 326*4882a593Smuzhiyun reg = <0x80d000 0x1000>; 327*4882a593Smuzhiyun interrupts = <0 71 0x4>; 328*4882a593Smuzhiyun gpio-controller; 329*4882a593Smuzhiyun #gpio-cells = <2>; 330*4882a593Smuzhiyun gpio-ranges = < &pmx0 0 19 1 &pmx0 1 20 1 &pmx0 2 21 1 331*4882a593Smuzhiyun &pmx0 3 22 1 &pmx0 4 23 1 &pmx0 5 24 1 332*4882a593Smuzhiyun &pmx0 6 25 1 &pmx0 7 26 1>; 333*4882a593Smuzhiyun interrupt-controller; 334*4882a593Smuzhiyun #interrupt-cells = <2>; 335*4882a593Smuzhiyun clocks = <&clock HI3620_GPIOCLK7>; 336*4882a593Smuzhiyun clock-names = "apb_pclk"; 337*4882a593Smuzhiyun }; 338*4882a593Smuzhiyun 339*4882a593Smuzhiyun gpio8: gpio@80e000 { 340*4882a593Smuzhiyun compatible = "arm,pl061", "arm,primecell"; 341*4882a593Smuzhiyun reg = <0x80e000 0x1000>; 342*4882a593Smuzhiyun interrupts = <0 72 0x4>; 343*4882a593Smuzhiyun gpio-controller; 344*4882a593Smuzhiyun #gpio-cells = <2>; 345*4882a593Smuzhiyun gpio-ranges = < &pmx0 0 27 1 &pmx0 1 28 1 &pmx0 2 29 1 346*4882a593Smuzhiyun &pmx0 3 30 1 &pmx0 4 31 1 &pmx0 5 32 1 347*4882a593Smuzhiyun &pmx0 6 33 1 &pmx0 7 34 1>; 348*4882a593Smuzhiyun interrupt-controller; 349*4882a593Smuzhiyun #interrupt-cells = <2>; 350*4882a593Smuzhiyun clocks = <&clock HI3620_GPIOCLK8>; 351*4882a593Smuzhiyun clock-names = "apb_pclk"; 352*4882a593Smuzhiyun }; 353*4882a593Smuzhiyun 354*4882a593Smuzhiyun gpio9: gpio@80f000 { 355*4882a593Smuzhiyun compatible = "arm,pl061", "arm,primecell"; 356*4882a593Smuzhiyun reg = <0x80f000 0x1000>; 357*4882a593Smuzhiyun interrupts = <0 73 0x4>; 358*4882a593Smuzhiyun gpio-controller; 359*4882a593Smuzhiyun #gpio-cells = <2>; 360*4882a593Smuzhiyun gpio-ranges = < &pmx0 0 35 1 &pmx0 1 36 1 &pmx0 2 37 1 361*4882a593Smuzhiyun &pmx0 3 38 1 &pmx0 4 39 1 &pmx0 5 40 1 362*4882a593Smuzhiyun &pmx0 6 41 1>; 363*4882a593Smuzhiyun interrupt-controller; 364*4882a593Smuzhiyun #interrupt-cells = <2>; 365*4882a593Smuzhiyun clocks = <&clock HI3620_GPIOCLK9>; 366*4882a593Smuzhiyun clock-names = "apb_pclk"; 367*4882a593Smuzhiyun }; 368*4882a593Smuzhiyun 369*4882a593Smuzhiyun gpio10: gpio@810000 { 370*4882a593Smuzhiyun compatible = "arm,pl061", "arm,primecell"; 371*4882a593Smuzhiyun reg = <0x810000 0x1000>; 372*4882a593Smuzhiyun interrupts = <0 74 0x4>; 373*4882a593Smuzhiyun gpio-controller; 374*4882a593Smuzhiyun #gpio-cells = <2>; 375*4882a593Smuzhiyun gpio-ranges = < &pmx0 2 43 1 &pmx0 3 44 1 &pmx0 4 45 1 376*4882a593Smuzhiyun &pmx0 5 45 1 &pmx0 6 46 1 &pmx0 7 46 1>; 377*4882a593Smuzhiyun interrupt-controller; 378*4882a593Smuzhiyun #interrupt-cells = <2>; 379*4882a593Smuzhiyun clocks = <&clock HI3620_GPIOCLK10>; 380*4882a593Smuzhiyun clock-names = "apb_pclk"; 381*4882a593Smuzhiyun }; 382*4882a593Smuzhiyun 383*4882a593Smuzhiyun gpio11: gpio@811000 { 384*4882a593Smuzhiyun compatible = "arm,pl061", "arm,primecell"; 385*4882a593Smuzhiyun reg = <0x811000 0x1000>; 386*4882a593Smuzhiyun interrupts = <0 75 0x4>; 387*4882a593Smuzhiyun gpio-controller; 388*4882a593Smuzhiyun #gpio-cells = <2>; 389*4882a593Smuzhiyun gpio-ranges = < &pmx0 0 47 1 &pmx0 1 47 1 &pmx0 2 47 1 390*4882a593Smuzhiyun &pmx0 3 47 1 &pmx0 4 47 1 &pmx0 5 48 1 391*4882a593Smuzhiyun &pmx0 6 49 1 &pmx0 7 49 1>; 392*4882a593Smuzhiyun interrupt-controller; 393*4882a593Smuzhiyun #interrupt-cells = <2>; 394*4882a593Smuzhiyun clocks = <&clock HI3620_GPIOCLK11>; 395*4882a593Smuzhiyun clock-names = "apb_pclk"; 396*4882a593Smuzhiyun }; 397*4882a593Smuzhiyun 398*4882a593Smuzhiyun gpio12: gpio@812000 { 399*4882a593Smuzhiyun compatible = "arm,pl061", "arm,primecell"; 400*4882a593Smuzhiyun reg = <0x812000 0x1000>; 401*4882a593Smuzhiyun interrupts = <0 76 0x4>; 402*4882a593Smuzhiyun gpio-controller; 403*4882a593Smuzhiyun #gpio-cells = <2>; 404*4882a593Smuzhiyun gpio-ranges = < &pmx0 0 49 1 &pmx0 1 50 1 &pmx0 2 49 1 405*4882a593Smuzhiyun &pmx0 3 49 1 &pmx0 4 51 1 &pmx0 5 51 1 406*4882a593Smuzhiyun &pmx0 6 51 1 &pmx0 7 52 1>; 407*4882a593Smuzhiyun interrupt-controller; 408*4882a593Smuzhiyun #interrupt-cells = <2>; 409*4882a593Smuzhiyun clocks = <&clock HI3620_GPIOCLK12>; 410*4882a593Smuzhiyun clock-names = "apb_pclk"; 411*4882a593Smuzhiyun }; 412*4882a593Smuzhiyun 413*4882a593Smuzhiyun gpio13: gpio@813000 { 414*4882a593Smuzhiyun compatible = "arm,pl061", "arm,primecell"; 415*4882a593Smuzhiyun reg = <0x813000 0x1000>; 416*4882a593Smuzhiyun interrupts = <0 77 0x4>; 417*4882a593Smuzhiyun gpio-controller; 418*4882a593Smuzhiyun #gpio-cells = <2>; 419*4882a593Smuzhiyun gpio-ranges = < &pmx0 0 51 1 &pmx0 1 51 1 &pmx0 2 53 1 420*4882a593Smuzhiyun &pmx0 3 53 1 &pmx0 4 53 1 &pmx0 5 54 1 421*4882a593Smuzhiyun &pmx0 6 55 1 &pmx0 7 56 1>; 422*4882a593Smuzhiyun interrupt-controller; 423*4882a593Smuzhiyun #interrupt-cells = <2>; 424*4882a593Smuzhiyun clocks = <&clock HI3620_GPIOCLK13>; 425*4882a593Smuzhiyun clock-names = "apb_pclk"; 426*4882a593Smuzhiyun }; 427*4882a593Smuzhiyun 428*4882a593Smuzhiyun gpio14: gpio@814000 { 429*4882a593Smuzhiyun compatible = "arm,pl061", "arm,primecell"; 430*4882a593Smuzhiyun reg = <0x814000 0x1000>; 431*4882a593Smuzhiyun interrupts = <0 78 0x4>; 432*4882a593Smuzhiyun gpio-controller; 433*4882a593Smuzhiyun #gpio-cells = <2>; 434*4882a593Smuzhiyun gpio-ranges = < &pmx0 0 57 1 &pmx0 1 97 1 &pmx0 2 97 1 435*4882a593Smuzhiyun &pmx0 3 58 1 &pmx0 4 59 1 &pmx0 5 60 1 436*4882a593Smuzhiyun &pmx0 6 60 1 &pmx0 7 61 1>; 437*4882a593Smuzhiyun interrupt-controller; 438*4882a593Smuzhiyun #interrupt-cells = <2>; 439*4882a593Smuzhiyun clocks = <&clock HI3620_GPIOCLK14>; 440*4882a593Smuzhiyun clock-names = "apb_pclk"; 441*4882a593Smuzhiyun }; 442*4882a593Smuzhiyun 443*4882a593Smuzhiyun gpio15: gpio@815000 { 444*4882a593Smuzhiyun compatible = "arm,pl061", "arm,primecell"; 445*4882a593Smuzhiyun reg = <0x815000 0x1000>; 446*4882a593Smuzhiyun interrupts = <0 79 0x4>; 447*4882a593Smuzhiyun gpio-controller; 448*4882a593Smuzhiyun #gpio-cells = <2>; 449*4882a593Smuzhiyun gpio-ranges = < &pmx0 0 61 1 &pmx0 1 62 1 &pmx0 2 62 1 450*4882a593Smuzhiyun &pmx0 3 63 1 &pmx0 4 63 1 &pmx0 5 64 1 451*4882a593Smuzhiyun &pmx0 6 64 1 &pmx0 7 65 1>; 452*4882a593Smuzhiyun interrupt-controller; 453*4882a593Smuzhiyun #interrupt-cells = <2>; 454*4882a593Smuzhiyun clocks = <&clock HI3620_GPIOCLK15>; 455*4882a593Smuzhiyun clock-names = "apb_pclk"; 456*4882a593Smuzhiyun }; 457*4882a593Smuzhiyun 458*4882a593Smuzhiyun gpio16: gpio@816000 { 459*4882a593Smuzhiyun compatible = "arm,pl061", "arm,primecell"; 460*4882a593Smuzhiyun reg = <0x816000 0x1000>; 461*4882a593Smuzhiyun interrupts = <0 80 0x4>; 462*4882a593Smuzhiyun gpio-controller; 463*4882a593Smuzhiyun #gpio-cells = <2>; 464*4882a593Smuzhiyun gpio-ranges = < &pmx0 0 66 1 &pmx0 1 67 1 &pmx0 2 68 1 465*4882a593Smuzhiyun &pmx0 3 69 1 &pmx0 4 70 1 &pmx0 5 71 1 466*4882a593Smuzhiyun &pmx0 6 72 1 &pmx0 7 73 1>; 467*4882a593Smuzhiyun interrupt-controller; 468*4882a593Smuzhiyun #interrupt-cells = <2>; 469*4882a593Smuzhiyun clocks = <&clock HI3620_GPIOCLK16>; 470*4882a593Smuzhiyun clock-names = "apb_pclk"; 471*4882a593Smuzhiyun }; 472*4882a593Smuzhiyun 473*4882a593Smuzhiyun gpio17: gpio@817000 { 474*4882a593Smuzhiyun compatible = "arm,pl061", "arm,primecell"; 475*4882a593Smuzhiyun reg = <0x817000 0x1000>; 476*4882a593Smuzhiyun interrupts = <0 81 0x4>; 477*4882a593Smuzhiyun gpio-controller; 478*4882a593Smuzhiyun #gpio-cells = <2>; 479*4882a593Smuzhiyun gpio-ranges = < &pmx0 0 74 1 &pmx0 1 75 1 &pmx0 2 76 1 480*4882a593Smuzhiyun &pmx0 3 77 1 &pmx0 4 78 1 &pmx0 5 79 1 481*4882a593Smuzhiyun &pmx0 6 80 1 &pmx0 7 81 1>; 482*4882a593Smuzhiyun interrupt-controller; 483*4882a593Smuzhiyun #interrupt-cells = <2>; 484*4882a593Smuzhiyun clocks = <&clock HI3620_GPIOCLK17>; 485*4882a593Smuzhiyun clock-names = "apb_pclk"; 486*4882a593Smuzhiyun }; 487*4882a593Smuzhiyun 488*4882a593Smuzhiyun gpio18: gpio@818000 { 489*4882a593Smuzhiyun compatible = "arm,pl061", "arm,primecell"; 490*4882a593Smuzhiyun reg = <0x818000 0x1000>; 491*4882a593Smuzhiyun interrupts = <0 82 0x4>; 492*4882a593Smuzhiyun gpio-controller; 493*4882a593Smuzhiyun #gpio-cells = <2>; 494*4882a593Smuzhiyun gpio-ranges = < &pmx0 0 82 1 &pmx0 1 83 1 &pmx0 2 83 1 495*4882a593Smuzhiyun &pmx0 3 84 1 &pmx0 4 84 1 &pmx0 5 85 1 496*4882a593Smuzhiyun &pmx0 6 86 1 &pmx0 7 87 1>; 497*4882a593Smuzhiyun interrupt-controller; 498*4882a593Smuzhiyun #interrupt-cells = <2>; 499*4882a593Smuzhiyun clocks = <&clock HI3620_GPIOCLK18>; 500*4882a593Smuzhiyun clock-names = "apb_pclk"; 501*4882a593Smuzhiyun }; 502*4882a593Smuzhiyun 503*4882a593Smuzhiyun gpio19: gpio@819000 { 504*4882a593Smuzhiyun compatible = "arm,pl061", "arm,primecell"; 505*4882a593Smuzhiyun reg = <0x819000 0x1000>; 506*4882a593Smuzhiyun interrupts = <0 83 0x4>; 507*4882a593Smuzhiyun gpio-controller; 508*4882a593Smuzhiyun #gpio-cells = <2>; 509*4882a593Smuzhiyun gpio-ranges = < &pmx0 0 87 1 &pmx0 1 87 1 &pmx0 2 88 1 510*4882a593Smuzhiyun &pmx0 3 88 1>; 511*4882a593Smuzhiyun interrupt-controller; 512*4882a593Smuzhiyun #interrupt-cells = <2>; 513*4882a593Smuzhiyun clocks = <&clock HI3620_GPIOCLK19>; 514*4882a593Smuzhiyun clock-names = "apb_pclk"; 515*4882a593Smuzhiyun }; 516*4882a593Smuzhiyun 517*4882a593Smuzhiyun gpio20: gpio@81a000 { 518*4882a593Smuzhiyun compatible = "arm,pl061", "arm,primecell"; 519*4882a593Smuzhiyun reg = <0x81a000 0x1000>; 520*4882a593Smuzhiyun interrupts = <0 84 0x4>; 521*4882a593Smuzhiyun gpio-controller; 522*4882a593Smuzhiyun #gpio-cells = <2>; 523*4882a593Smuzhiyun gpio-ranges = < &pmx0 0 89 1 &pmx0 1 89 1 &pmx0 2 90 1 524*4882a593Smuzhiyun &pmx0 3 90 1 &pmx0 4 91 1 &pmx0 5 92 1>; 525*4882a593Smuzhiyun interrupt-controller; 526*4882a593Smuzhiyun #interrupt-cells = <2>; 527*4882a593Smuzhiyun clocks = <&clock HI3620_GPIOCLK20>; 528*4882a593Smuzhiyun clock-names = "apb_pclk"; 529*4882a593Smuzhiyun }; 530*4882a593Smuzhiyun 531*4882a593Smuzhiyun gpio21: gpio@81b000 { 532*4882a593Smuzhiyun compatible = "arm,pl061", "arm,primecell"; 533*4882a593Smuzhiyun reg = <0x81b000 0x1000>; 534*4882a593Smuzhiyun interrupts = <0 85 0x4>; 535*4882a593Smuzhiyun gpio-controller; 536*4882a593Smuzhiyun #gpio-cells = <2>; 537*4882a593Smuzhiyun gpio-ranges = < &pmx0 3 94 1 &pmx0 7 96 1>; 538*4882a593Smuzhiyun interrupt-controller; 539*4882a593Smuzhiyun #interrupt-cells = <2>; 540*4882a593Smuzhiyun clocks = <&clock HI3620_GPIOCLK21>; 541*4882a593Smuzhiyun clock-names = "apb_pclk"; 542*4882a593Smuzhiyun }; 543*4882a593Smuzhiyun 544*4882a593Smuzhiyun pmx0: pinmux@803000 { 545*4882a593Smuzhiyun compatible = "pinctrl-single"; 546*4882a593Smuzhiyun reg = <0x803000 0x188>; 547*4882a593Smuzhiyun #address-cells = <1>; 548*4882a593Smuzhiyun #size-cells = <1>; 549*4882a593Smuzhiyun #pinctrl-cells = <1>; 550*4882a593Smuzhiyun #gpio-range-cells = <3>; 551*4882a593Smuzhiyun ranges; 552*4882a593Smuzhiyun 553*4882a593Smuzhiyun pinctrl-single,register-width = <32>; 554*4882a593Smuzhiyun pinctrl-single,function-mask = <7>; 555*4882a593Smuzhiyun /* pin base, nr pins & gpio function */ 556*4882a593Smuzhiyun pinctrl-single,gpio-range = <&range 0 3 0 &range 3 9 1 557*4882a593Smuzhiyun &range 12 1 0 &range 13 29 1 558*4882a593Smuzhiyun &range 43 1 0 &range 44 49 1 559*4882a593Smuzhiyun &range 94 1 1 &range 96 2 1>; 560*4882a593Smuzhiyun 561*4882a593Smuzhiyun range: gpio-range { 562*4882a593Smuzhiyun #pinctrl-single,gpio-range-cells = <3>; 563*4882a593Smuzhiyun }; 564*4882a593Smuzhiyun }; 565*4882a593Smuzhiyun 566*4882a593Smuzhiyun pmx1: pinmux@803800 { 567*4882a593Smuzhiyun compatible = "pinconf-single"; 568*4882a593Smuzhiyun reg = <0x803800 0x2dc>; 569*4882a593Smuzhiyun #address-cells = <1>; 570*4882a593Smuzhiyun #size-cells = <1>; 571*4882a593Smuzhiyun #pinctrl-cells = <1>; 572*4882a593Smuzhiyun ranges; 573*4882a593Smuzhiyun 574*4882a593Smuzhiyun pinctrl-single,register-width = <32>; 575*4882a593Smuzhiyun }; 576*4882a593Smuzhiyun }; 577*4882a593Smuzhiyun}; 578