1*724ba675SRob Herring/* 2*724ba675SRob Herring * Copyright (C) 2015 Jens Kuske <jenskuske@gmail.com> 3*724ba675SRob Herring * 4*724ba675SRob Herring * This file is dual-licensed: you can use it either under the terms 5*724ba675SRob Herring * of the GPL or the X11 license, at your option. Note that this dual 6*724ba675SRob Herring * licensing only applies to this file, and not this project as a 7*724ba675SRob Herring * whole. 8*724ba675SRob Herring * 9*724ba675SRob Herring * a) This file is free software; you can redistribute it and/or 10*724ba675SRob Herring * modify it under the terms of the GNU General Public License as 11*724ba675SRob Herring * published by the Free Software Foundation; either version 2 of the 12*724ba675SRob Herring * License, or (at your option) any later version. 13*724ba675SRob Herring * 14*724ba675SRob Herring * This file is distributed in the hope that it will be useful, 15*724ba675SRob Herring * but WITHOUT ANY WARRANTY; without even the implied warranty of 16*724ba675SRob Herring * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17*724ba675SRob Herring * GNU General Public License for more details. 18*724ba675SRob Herring * 19*724ba675SRob Herring * Or, alternatively, 20*724ba675SRob Herring * 21*724ba675SRob Herring * b) Permission is hereby granted, free of charge, to any person 22*724ba675SRob Herring * obtaining a copy of this software and associated documentation 23*724ba675SRob Herring * files (the "Software"), to deal in the Software without 24*724ba675SRob Herring * restriction, including without limitation the rights to use, 25*724ba675SRob Herring * copy, modify, merge, publish, distribute, sublicense, and/or 26*724ba675SRob Herring * sell copies of the Software, and to permit persons to whom the 27*724ba675SRob Herring * Software is furnished to do so, subject to the following 28*724ba675SRob Herring * conditions: 29*724ba675SRob Herring * 30*724ba675SRob Herring * The above copyright notice and this permission notice shall be 31*724ba675SRob Herring * included in all copies or substantial portions of the Software. 32*724ba675SRob Herring * 33*724ba675SRob Herring * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 34*724ba675SRob Herring * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 35*724ba675SRob Herring * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 36*724ba675SRob Herring * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 37*724ba675SRob Herring * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 38*724ba675SRob Herring * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 39*724ba675SRob Herring * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 40*724ba675SRob Herring * OTHER DEALINGS IN THE SOFTWARE. 41*724ba675SRob Herring */ 42*724ba675SRob Herring 43*724ba675SRob Herring#include <dt-bindings/clock/sun6i-rtc.h> 44*724ba675SRob Herring#include <dt-bindings/clock/sun8i-de2.h> 45*724ba675SRob Herring#include <dt-bindings/clock/sun8i-h3-ccu.h> 46*724ba675SRob Herring#include <dt-bindings/clock/sun8i-r-ccu.h> 47*724ba675SRob Herring#include <dt-bindings/interrupt-controller/arm-gic.h> 48*724ba675SRob Herring#include <dt-bindings/reset/sun8i-de2.h> 49*724ba675SRob Herring#include <dt-bindings/reset/sun8i-h3-ccu.h> 50*724ba675SRob Herring#include <dt-bindings/reset/sun8i-r-ccu.h> 51*724ba675SRob Herring 52*724ba675SRob Herring/ { 53*724ba675SRob Herring interrupt-parent = <&gic>; 54*724ba675SRob Herring #address-cells = <1>; 55*724ba675SRob Herring #size-cells = <1>; 56*724ba675SRob Herring 57*724ba675SRob Herring chosen { 58*724ba675SRob Herring #address-cells = <1>; 59*724ba675SRob Herring #size-cells = <1>; 60*724ba675SRob Herring ranges; 61*724ba675SRob Herring 62*724ba675SRob Herring framebuffer-hdmi { 63*724ba675SRob Herring compatible = "allwinner,simple-framebuffer", 64*724ba675SRob Herring "simple-framebuffer"; 65*724ba675SRob Herring allwinner,pipeline = "mixer0-lcd0-hdmi"; 66*724ba675SRob Herring clocks = <&display_clocks CLK_MIXER0>, 67*724ba675SRob Herring <&ccu CLK_TCON0>, <&ccu CLK_HDMI>; 68*724ba675SRob Herring status = "disabled"; 69*724ba675SRob Herring }; 70*724ba675SRob Herring 71*724ba675SRob Herring framebuffer-tve { 72*724ba675SRob Herring compatible = "allwinner,simple-framebuffer", 73*724ba675SRob Herring "simple-framebuffer"; 74*724ba675SRob Herring allwinner,pipeline = "mixer1-lcd1-tve"; 75*724ba675SRob Herring clocks = <&display_clocks CLK_MIXER1>, 76*724ba675SRob Herring <&ccu CLK_TVE>; 77*724ba675SRob Herring status = "disabled"; 78*724ba675SRob Herring }; 79*724ba675SRob Herring }; 80*724ba675SRob Herring 81*724ba675SRob Herring clocks { 82*724ba675SRob Herring #address-cells = <1>; 83*724ba675SRob Herring #size-cells = <1>; 84*724ba675SRob Herring ranges; 85*724ba675SRob Herring 86*724ba675SRob Herring osc24M: osc24M_clk { 87*724ba675SRob Herring #clock-cells = <0>; 88*724ba675SRob Herring compatible = "fixed-clock"; 89*724ba675SRob Herring clock-frequency = <24000000>; 90*724ba675SRob Herring clock-accuracy = <50000>; 91*724ba675SRob Herring clock-output-names = "osc24M"; 92*724ba675SRob Herring }; 93*724ba675SRob Herring 94*724ba675SRob Herring osc32k: osc32k_clk { 95*724ba675SRob Herring #clock-cells = <0>; 96*724ba675SRob Herring compatible = "fixed-clock"; 97*724ba675SRob Herring clock-frequency = <32768>; 98*724ba675SRob Herring clock-accuracy = <50000>; 99*724ba675SRob Herring clock-output-names = "ext_osc32k"; 100*724ba675SRob Herring }; 101*724ba675SRob Herring }; 102*724ba675SRob Herring 103*724ba675SRob Herring de: display-engine { 104*724ba675SRob Herring compatible = "allwinner,sun8i-h3-display-engine"; 105*724ba675SRob Herring allwinner,pipelines = <&mixer0>; 106*724ba675SRob Herring status = "disabled"; 107*724ba675SRob Herring }; 108*724ba675SRob Herring 109*724ba675SRob Herring soc { 110*724ba675SRob Herring compatible = "simple-bus"; 111*724ba675SRob Herring #address-cells = <1>; 112*724ba675SRob Herring #size-cells = <1>; 113*724ba675SRob Herring dma-ranges; 114*724ba675SRob Herring ranges; 115*724ba675SRob Herring 116*724ba675SRob Herring display_clocks: clock@1000000 { 117*724ba675SRob Herring /* compatible is in per SoC .dtsi file */ 118*724ba675SRob Herring reg = <0x01000000 0x10000>; 119*724ba675SRob Herring clocks = <&ccu CLK_BUS_DE>, 120*724ba675SRob Herring <&ccu CLK_DE>; 121*724ba675SRob Herring clock-names = "bus", 122*724ba675SRob Herring "mod"; 123*724ba675SRob Herring resets = <&ccu RST_BUS_DE>; 124*724ba675SRob Herring #clock-cells = <1>; 125*724ba675SRob Herring #reset-cells = <1>; 126*724ba675SRob Herring }; 127*724ba675SRob Herring 128*724ba675SRob Herring mixer0: mixer@1100000 { 129*724ba675SRob Herring compatible = "allwinner,sun8i-h3-de2-mixer-0"; 130*724ba675SRob Herring reg = <0x01100000 0x100000>; 131*724ba675SRob Herring clocks = <&display_clocks CLK_BUS_MIXER0>, 132*724ba675SRob Herring <&display_clocks CLK_MIXER0>; 133*724ba675SRob Herring clock-names = "bus", 134*724ba675SRob Herring "mod"; 135*724ba675SRob Herring resets = <&display_clocks RST_MIXER0>; 136*724ba675SRob Herring 137*724ba675SRob Herring ports { 138*724ba675SRob Herring #address-cells = <1>; 139*724ba675SRob Herring #size-cells = <0>; 140*724ba675SRob Herring 141*724ba675SRob Herring mixer0_out: port@1 { 142*724ba675SRob Herring reg = <1>; 143*724ba675SRob Herring 144*724ba675SRob Herring mixer0_out_tcon0: endpoint { 145*724ba675SRob Herring remote-endpoint = <&tcon0_in_mixer0>; 146*724ba675SRob Herring }; 147*724ba675SRob Herring }; 148*724ba675SRob Herring }; 149*724ba675SRob Herring }; 150*724ba675SRob Herring 151*724ba675SRob Herring dma: dma-controller@1c02000 { 152*724ba675SRob Herring compatible = "allwinner,sun8i-h3-dma"; 153*724ba675SRob Herring reg = <0x01c02000 0x1000>; 154*724ba675SRob Herring interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>; 155*724ba675SRob Herring clocks = <&ccu CLK_BUS_DMA>; 156*724ba675SRob Herring resets = <&ccu RST_BUS_DMA>; 157*724ba675SRob Herring #dma-cells = <1>; 158*724ba675SRob Herring }; 159*724ba675SRob Herring 160*724ba675SRob Herring tcon0: lcd-controller@1c0c000 { 161*724ba675SRob Herring compatible = "allwinner,sun8i-h3-tcon-tv", 162*724ba675SRob Herring "allwinner,sun8i-a83t-tcon-tv"; 163*724ba675SRob Herring reg = <0x01c0c000 0x1000>; 164*724ba675SRob Herring interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; 165*724ba675SRob Herring clocks = <&ccu CLK_BUS_TCON0>, <&ccu CLK_TCON0>; 166*724ba675SRob Herring clock-names = "ahb", "tcon-ch1"; 167*724ba675SRob Herring resets = <&ccu RST_BUS_TCON0>; 168*724ba675SRob Herring reset-names = "lcd"; 169*724ba675SRob Herring 170*724ba675SRob Herring ports { 171*724ba675SRob Herring #address-cells = <1>; 172*724ba675SRob Herring #size-cells = <0>; 173*724ba675SRob Herring 174*724ba675SRob Herring tcon0_in: port@0 { 175*724ba675SRob Herring reg = <0>; 176*724ba675SRob Herring 177*724ba675SRob Herring tcon0_in_mixer0: endpoint { 178*724ba675SRob Herring remote-endpoint = <&mixer0_out_tcon0>; 179*724ba675SRob Herring }; 180*724ba675SRob Herring }; 181*724ba675SRob Herring 182*724ba675SRob Herring tcon0_out: port@1 { 183*724ba675SRob Herring #address-cells = <1>; 184*724ba675SRob Herring #size-cells = <0>; 185*724ba675SRob Herring reg = <1>; 186*724ba675SRob Herring 187*724ba675SRob Herring tcon0_out_hdmi: endpoint@1 { 188*724ba675SRob Herring reg = <1>; 189*724ba675SRob Herring remote-endpoint = <&hdmi_in_tcon0>; 190*724ba675SRob Herring }; 191*724ba675SRob Herring }; 192*724ba675SRob Herring }; 193*724ba675SRob Herring }; 194*724ba675SRob Herring 195*724ba675SRob Herring mmc0: mmc@1c0f000 { 196*724ba675SRob Herring /* compatible and clocks are in per SoC .dtsi file */ 197*724ba675SRob Herring reg = <0x01c0f000 0x1000>; 198*724ba675SRob Herring pinctrl-names = "default"; 199*724ba675SRob Herring pinctrl-0 = <&mmc0_pins>; 200*724ba675SRob Herring resets = <&ccu RST_BUS_MMC0>; 201*724ba675SRob Herring reset-names = "ahb"; 202*724ba675SRob Herring interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>; 203*724ba675SRob Herring status = "disabled"; 204*724ba675SRob Herring #address-cells = <1>; 205*724ba675SRob Herring #size-cells = <0>; 206*724ba675SRob Herring }; 207*724ba675SRob Herring 208*724ba675SRob Herring mmc1: mmc@1c10000 { 209*724ba675SRob Herring /* compatible and clocks are in per SoC .dtsi file */ 210*724ba675SRob Herring reg = <0x01c10000 0x1000>; 211*724ba675SRob Herring pinctrl-names = "default"; 212*724ba675SRob Herring pinctrl-0 = <&mmc1_pins>; 213*724ba675SRob Herring resets = <&ccu RST_BUS_MMC1>; 214*724ba675SRob Herring reset-names = "ahb"; 215*724ba675SRob Herring interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>; 216*724ba675SRob Herring status = "disabled"; 217*724ba675SRob Herring #address-cells = <1>; 218*724ba675SRob Herring #size-cells = <0>; 219*724ba675SRob Herring }; 220*724ba675SRob Herring 221*724ba675SRob Herring mmc2: mmc@1c11000 { 222*724ba675SRob Herring /* compatible and clocks are in per SoC .dtsi file */ 223*724ba675SRob Herring reg = <0x01c11000 0x1000>; 224*724ba675SRob Herring resets = <&ccu RST_BUS_MMC2>; 225*724ba675SRob Herring reset-names = "ahb"; 226*724ba675SRob Herring interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>; 227*724ba675SRob Herring status = "disabled"; 228*724ba675SRob Herring #address-cells = <1>; 229*724ba675SRob Herring #size-cells = <0>; 230*724ba675SRob Herring }; 231*724ba675SRob Herring 232*724ba675SRob Herring sid: eeprom@1c14000 { 233*724ba675SRob Herring /* compatible is in per SoC .dtsi file */ 234*724ba675SRob Herring reg = <0x1c14000 0x400>; 235*724ba675SRob Herring #address-cells = <1>; 236*724ba675SRob Herring #size-cells = <1>; 237*724ba675SRob Herring 238*724ba675SRob Herring ths_calibration: thermal-sensor-calibration@34 { 239*724ba675SRob Herring reg = <0x34 4>; 240*724ba675SRob Herring }; 241*724ba675SRob Herring }; 242*724ba675SRob Herring 243*724ba675SRob Herring msgbox: mailbox@1c17000 { 244*724ba675SRob Herring compatible = "allwinner,sun8i-h3-msgbox", 245*724ba675SRob Herring "allwinner,sun6i-a31-msgbox"; 246*724ba675SRob Herring reg = <0x01c17000 0x1000>; 247*724ba675SRob Herring clocks = <&ccu CLK_BUS_MSGBOX>; 248*724ba675SRob Herring resets = <&ccu RST_BUS_MSGBOX>; 249*724ba675SRob Herring interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>; 250*724ba675SRob Herring #mbox-cells = <1>; 251*724ba675SRob Herring }; 252*724ba675SRob Herring 253*724ba675SRob Herring usb_otg: usb@1c19000 { 254*724ba675SRob Herring compatible = "allwinner,sun8i-h3-musb"; 255*724ba675SRob Herring reg = <0x01c19000 0x400>; 256*724ba675SRob Herring clocks = <&ccu CLK_BUS_OTG>; 257*724ba675SRob Herring resets = <&ccu RST_BUS_OTG>; 258*724ba675SRob Herring interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>; 259*724ba675SRob Herring interrupt-names = "mc"; 260*724ba675SRob Herring phys = <&usbphy 0>; 261*724ba675SRob Herring phy-names = "usb"; 262*724ba675SRob Herring extcon = <&usbphy 0>; 263*724ba675SRob Herring dr_mode = "otg"; 264*724ba675SRob Herring status = "disabled"; 265*724ba675SRob Herring }; 266*724ba675SRob Herring 267*724ba675SRob Herring usbphy: phy@1c19400 { 268*724ba675SRob Herring compatible = "allwinner,sun8i-h3-usb-phy"; 269*724ba675SRob Herring reg = <0x01c19400 0x2c>, 270*724ba675SRob Herring <0x01c1a800 0x4>, 271*724ba675SRob Herring <0x01c1b800 0x4>, 272*724ba675SRob Herring <0x01c1c800 0x4>, 273*724ba675SRob Herring <0x01c1d800 0x4>; 274*724ba675SRob Herring reg-names = "phy_ctrl", 275*724ba675SRob Herring "pmu0", 276*724ba675SRob Herring "pmu1", 277*724ba675SRob Herring "pmu2", 278*724ba675SRob Herring "pmu3"; 279*724ba675SRob Herring clocks = <&ccu CLK_USB_PHY0>, 280*724ba675SRob Herring <&ccu CLK_USB_PHY1>, 281*724ba675SRob Herring <&ccu CLK_USB_PHY2>, 282*724ba675SRob Herring <&ccu CLK_USB_PHY3>; 283*724ba675SRob Herring clock-names = "usb0_phy", 284*724ba675SRob Herring "usb1_phy", 285*724ba675SRob Herring "usb2_phy", 286*724ba675SRob Herring "usb3_phy"; 287*724ba675SRob Herring resets = <&ccu RST_USB_PHY0>, 288*724ba675SRob Herring <&ccu RST_USB_PHY1>, 289*724ba675SRob Herring <&ccu RST_USB_PHY2>, 290*724ba675SRob Herring <&ccu RST_USB_PHY3>; 291*724ba675SRob Herring reset-names = "usb0_reset", 292*724ba675SRob Herring "usb1_reset", 293*724ba675SRob Herring "usb2_reset", 294*724ba675SRob Herring "usb3_reset"; 295*724ba675SRob Herring status = "disabled"; 296*724ba675SRob Herring #phy-cells = <1>; 297*724ba675SRob Herring }; 298*724ba675SRob Herring 299*724ba675SRob Herring ehci0: usb@1c1a000 { 300*724ba675SRob Herring compatible = "allwinner,sun8i-h3-ehci", "generic-ehci"; 301*724ba675SRob Herring reg = <0x01c1a000 0x100>; 302*724ba675SRob Herring interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>; 303*724ba675SRob Herring clocks = <&ccu CLK_BUS_EHCI0>, <&ccu CLK_BUS_OHCI0>; 304*724ba675SRob Herring resets = <&ccu RST_BUS_EHCI0>, <&ccu RST_BUS_OHCI0>; 305*724ba675SRob Herring phys = <&usbphy 0>; 306*724ba675SRob Herring phy-names = "usb"; 307*724ba675SRob Herring status = "disabled"; 308*724ba675SRob Herring }; 309*724ba675SRob Herring 310*724ba675SRob Herring ohci0: usb@1c1a400 { 311*724ba675SRob Herring compatible = "allwinner,sun8i-h3-ohci", "generic-ohci"; 312*724ba675SRob Herring reg = <0x01c1a400 0x100>; 313*724ba675SRob Herring interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>; 314*724ba675SRob Herring clocks = <&ccu CLK_BUS_EHCI0>, <&ccu CLK_BUS_OHCI0>, 315*724ba675SRob Herring <&ccu CLK_USB_OHCI0>; 316*724ba675SRob Herring resets = <&ccu RST_BUS_EHCI0>, <&ccu RST_BUS_OHCI0>; 317*724ba675SRob Herring phys = <&usbphy 0>; 318*724ba675SRob Herring phy-names = "usb"; 319*724ba675SRob Herring status = "disabled"; 320*724ba675SRob Herring }; 321*724ba675SRob Herring 322*724ba675SRob Herring ehci1: usb@1c1b000 { 323*724ba675SRob Herring compatible = "allwinner,sun8i-h3-ehci", "generic-ehci"; 324*724ba675SRob Herring reg = <0x01c1b000 0x100>; 325*724ba675SRob Herring interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>; 326*724ba675SRob Herring clocks = <&ccu CLK_BUS_EHCI1>, <&ccu CLK_BUS_OHCI1>; 327*724ba675SRob Herring resets = <&ccu RST_BUS_EHCI1>, <&ccu RST_BUS_OHCI1>; 328*724ba675SRob Herring phys = <&usbphy 1>; 329*724ba675SRob Herring phy-names = "usb"; 330*724ba675SRob Herring status = "disabled"; 331*724ba675SRob Herring }; 332*724ba675SRob Herring 333*724ba675SRob Herring ohci1: usb@1c1b400 { 334*724ba675SRob Herring compatible = "allwinner,sun8i-h3-ohci", "generic-ohci"; 335*724ba675SRob Herring reg = <0x01c1b400 0x100>; 336*724ba675SRob Herring interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>; 337*724ba675SRob Herring clocks = <&ccu CLK_BUS_EHCI1>, <&ccu CLK_BUS_OHCI1>, 338*724ba675SRob Herring <&ccu CLK_USB_OHCI1>; 339*724ba675SRob Herring resets = <&ccu RST_BUS_EHCI1>, <&ccu RST_BUS_OHCI1>; 340*724ba675SRob Herring phys = <&usbphy 1>; 341*724ba675SRob Herring phy-names = "usb"; 342*724ba675SRob Herring status = "disabled"; 343*724ba675SRob Herring }; 344*724ba675SRob Herring 345*724ba675SRob Herring ehci2: usb@1c1c000 { 346*724ba675SRob Herring compatible = "allwinner,sun8i-h3-ehci", "generic-ehci"; 347*724ba675SRob Herring reg = <0x01c1c000 0x100>; 348*724ba675SRob Herring interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>; 349*724ba675SRob Herring clocks = <&ccu CLK_BUS_EHCI2>, <&ccu CLK_BUS_OHCI2>; 350*724ba675SRob Herring resets = <&ccu RST_BUS_EHCI2>, <&ccu RST_BUS_OHCI2>; 351*724ba675SRob Herring phys = <&usbphy 2>; 352*724ba675SRob Herring phy-names = "usb"; 353*724ba675SRob Herring status = "disabled"; 354*724ba675SRob Herring }; 355*724ba675SRob Herring 356*724ba675SRob Herring ohci2: usb@1c1c400 { 357*724ba675SRob Herring compatible = "allwinner,sun8i-h3-ohci", "generic-ohci"; 358*724ba675SRob Herring reg = <0x01c1c400 0x100>; 359*724ba675SRob Herring interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>; 360*724ba675SRob Herring clocks = <&ccu CLK_BUS_EHCI2>, <&ccu CLK_BUS_OHCI2>, 361*724ba675SRob Herring <&ccu CLK_USB_OHCI2>; 362*724ba675SRob Herring resets = <&ccu RST_BUS_EHCI2>, <&ccu RST_BUS_OHCI2>; 363*724ba675SRob Herring phys = <&usbphy 2>; 364*724ba675SRob Herring phy-names = "usb"; 365*724ba675SRob Herring status = "disabled"; 366*724ba675SRob Herring }; 367*724ba675SRob Herring 368*724ba675SRob Herring ehci3: usb@1c1d000 { 369*724ba675SRob Herring compatible = "allwinner,sun8i-h3-ehci", "generic-ehci"; 370*724ba675SRob Herring reg = <0x01c1d000 0x100>; 371*724ba675SRob Herring interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>; 372*724ba675SRob Herring clocks = <&ccu CLK_BUS_EHCI3>, <&ccu CLK_BUS_OHCI3>; 373*724ba675SRob Herring resets = <&ccu RST_BUS_EHCI3>, <&ccu RST_BUS_OHCI3>; 374*724ba675SRob Herring phys = <&usbphy 3>; 375*724ba675SRob Herring phy-names = "usb"; 376*724ba675SRob Herring status = "disabled"; 377*724ba675SRob Herring }; 378*724ba675SRob Herring 379*724ba675SRob Herring ohci3: usb@1c1d400 { 380*724ba675SRob Herring compatible = "allwinner,sun8i-h3-ohci", "generic-ohci"; 381*724ba675SRob Herring reg = <0x01c1d400 0x100>; 382*724ba675SRob Herring interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; 383*724ba675SRob Herring clocks = <&ccu CLK_BUS_EHCI3>, <&ccu CLK_BUS_OHCI3>, 384*724ba675SRob Herring <&ccu CLK_USB_OHCI3>; 385*724ba675SRob Herring resets = <&ccu RST_BUS_EHCI3>, <&ccu RST_BUS_OHCI3>; 386*724ba675SRob Herring phys = <&usbphy 3>; 387*724ba675SRob Herring phy-names = "usb"; 388*724ba675SRob Herring status = "disabled"; 389*724ba675SRob Herring }; 390*724ba675SRob Herring 391*724ba675SRob Herring ccu: clock@1c20000 { 392*724ba675SRob Herring /* compatible is in per SoC .dtsi file */ 393*724ba675SRob Herring reg = <0x01c20000 0x400>; 394*724ba675SRob Herring clocks = <&osc24M>, <&rtc CLK_OSC32K>; 395*724ba675SRob Herring clock-names = "hosc", "losc"; 396*724ba675SRob Herring #clock-cells = <1>; 397*724ba675SRob Herring #reset-cells = <1>; 398*724ba675SRob Herring }; 399*724ba675SRob Herring 400*724ba675SRob Herring pio: pinctrl@1c20800 { 401*724ba675SRob Herring /* compatible is in per SoC .dtsi file */ 402*724ba675SRob Herring reg = <0x01c20800 0x400>; 403*724ba675SRob Herring interrupt-parent = <&r_intc>; 404*724ba675SRob Herring interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>, 405*724ba675SRob Herring <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>; 406*724ba675SRob Herring clocks = <&ccu CLK_BUS_PIO>, <&osc24M>, 407*724ba675SRob Herring <&rtc CLK_OSC32K>; 408*724ba675SRob Herring clock-names = "apb", "hosc", "losc"; 409*724ba675SRob Herring gpio-controller; 410*724ba675SRob Herring #gpio-cells = <3>; 411*724ba675SRob Herring interrupt-controller; 412*724ba675SRob Herring #interrupt-cells = <3>; 413*724ba675SRob Herring 414*724ba675SRob Herring csi_pins: csi-pins { 415*724ba675SRob Herring pins = "PE0", "PE2", "PE3", "PE4", "PE5", 416*724ba675SRob Herring "PE6", "PE7", "PE8", "PE9", "PE10", 417*724ba675SRob Herring "PE11"; 418*724ba675SRob Herring function = "csi"; 419*724ba675SRob Herring }; 420*724ba675SRob Herring 421*724ba675SRob Herring emac_rgmii_pins: emac-rgmii-pins { 422*724ba675SRob Herring pins = "PD0", "PD1", "PD2", "PD3", "PD4", 423*724ba675SRob Herring "PD5", "PD7", "PD8", "PD9", "PD10", 424*724ba675SRob Herring "PD12", "PD13", "PD15", "PD16", "PD17"; 425*724ba675SRob Herring function = "emac"; 426*724ba675SRob Herring drive-strength = <40>; 427*724ba675SRob Herring }; 428*724ba675SRob Herring 429*724ba675SRob Herring i2c0_pins: i2c0-pins { 430*724ba675SRob Herring pins = "PA11", "PA12"; 431*724ba675SRob Herring function = "i2c0"; 432*724ba675SRob Herring }; 433*724ba675SRob Herring 434*724ba675SRob Herring i2c1_pins: i2c1-pins { 435*724ba675SRob Herring pins = "PA18", "PA19"; 436*724ba675SRob Herring function = "i2c1"; 437*724ba675SRob Herring }; 438*724ba675SRob Herring 439*724ba675SRob Herring i2c2_pins: i2c2-pins { 440*724ba675SRob Herring pins = "PE12", "PE13"; 441*724ba675SRob Herring function = "i2c2"; 442*724ba675SRob Herring }; 443*724ba675SRob Herring 444*724ba675SRob Herring mmc0_pins: mmc0-pins { 445*724ba675SRob Herring pins = "PF0", "PF1", "PF2", "PF3", 446*724ba675SRob Herring "PF4", "PF5"; 447*724ba675SRob Herring function = "mmc0"; 448*724ba675SRob Herring drive-strength = <30>; 449*724ba675SRob Herring bias-pull-up; 450*724ba675SRob Herring }; 451*724ba675SRob Herring 452*724ba675SRob Herring mmc1_pins: mmc1-pins { 453*724ba675SRob Herring pins = "PG0", "PG1", "PG2", "PG3", 454*724ba675SRob Herring "PG4", "PG5"; 455*724ba675SRob Herring function = "mmc1"; 456*724ba675SRob Herring drive-strength = <30>; 457*724ba675SRob Herring bias-pull-up; 458*724ba675SRob Herring }; 459*724ba675SRob Herring 460*724ba675SRob Herring mmc2_8bit_pins: mmc2-8bit-pins { 461*724ba675SRob Herring pins = "PC5", "PC6", "PC8", 462*724ba675SRob Herring "PC9", "PC10", "PC11", 463*724ba675SRob Herring "PC12", "PC13", "PC14", 464*724ba675SRob Herring "PC15", "PC16"; 465*724ba675SRob Herring function = "mmc2"; 466*724ba675SRob Herring drive-strength = <30>; 467*724ba675SRob Herring bias-pull-up; 468*724ba675SRob Herring }; 469*724ba675SRob Herring 470*724ba675SRob Herring spdif_tx_pin: spdif-tx-pin { 471*724ba675SRob Herring pins = "PA17"; 472*724ba675SRob Herring function = "spdif"; 473*724ba675SRob Herring }; 474*724ba675SRob Herring 475*724ba675SRob Herring spi0_pins: spi0-pins { 476*724ba675SRob Herring pins = "PC0", "PC1", "PC2", "PC3"; 477*724ba675SRob Herring function = "spi0"; 478*724ba675SRob Herring }; 479*724ba675SRob Herring 480*724ba675SRob Herring spi1_pins: spi1-pins { 481*724ba675SRob Herring pins = "PA15", "PA16", "PA14", "PA13"; 482*724ba675SRob Herring function = "spi1"; 483*724ba675SRob Herring }; 484*724ba675SRob Herring 485*724ba675SRob Herring uart0_pa_pins: uart0-pa-pins { 486*724ba675SRob Herring pins = "PA4", "PA5"; 487*724ba675SRob Herring function = "uart0"; 488*724ba675SRob Herring }; 489*724ba675SRob Herring 490*724ba675SRob Herring uart1_pins: uart1-pins { 491*724ba675SRob Herring pins = "PG6", "PG7"; 492*724ba675SRob Herring function = "uart1"; 493*724ba675SRob Herring }; 494*724ba675SRob Herring 495*724ba675SRob Herring uart1_rts_cts_pins: uart1-rts-cts-pins { 496*724ba675SRob Herring pins = "PG8", "PG9"; 497*724ba675SRob Herring function = "uart1"; 498*724ba675SRob Herring }; 499*724ba675SRob Herring 500*724ba675SRob Herring uart2_pins: uart2-pins { 501*724ba675SRob Herring pins = "PA0", "PA1"; 502*724ba675SRob Herring function = "uart2"; 503*724ba675SRob Herring }; 504*724ba675SRob Herring 505*724ba675SRob Herring uart2_rts_cts_pins: uart2-rts-cts-pins { 506*724ba675SRob Herring pins = "PA2", "PA3"; 507*724ba675SRob Herring function = "uart2"; 508*724ba675SRob Herring }; 509*724ba675SRob Herring 510*724ba675SRob Herring uart3_pins: uart3-pins { 511*724ba675SRob Herring pins = "PA13", "PA14"; 512*724ba675SRob Herring function = "uart3"; 513*724ba675SRob Herring }; 514*724ba675SRob Herring 515*724ba675SRob Herring uart3_rts_cts_pins: uart3-rts-cts-pins { 516*724ba675SRob Herring pins = "PA15", "PA16"; 517*724ba675SRob Herring function = "uart3"; 518*724ba675SRob Herring }; 519*724ba675SRob Herring }; 520*724ba675SRob Herring 521*724ba675SRob Herring timer@1c20c00 { 522*724ba675SRob Herring compatible = "allwinner,sun8i-a23-timer"; 523*724ba675SRob Herring reg = <0x01c20c00 0xa0>; 524*724ba675SRob Herring interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>, 525*724ba675SRob Herring <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>; 526*724ba675SRob Herring clocks = <&osc24M>; 527*724ba675SRob Herring }; 528*724ba675SRob Herring 529*724ba675SRob Herring emac: ethernet@1c30000 { 530*724ba675SRob Herring compatible = "allwinner,sun8i-h3-emac"; 531*724ba675SRob Herring syscon = <&syscon>; 532*724ba675SRob Herring reg = <0x01c30000 0x10000>; 533*724ba675SRob Herring interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>; 534*724ba675SRob Herring interrupt-names = "macirq"; 535*724ba675SRob Herring resets = <&ccu RST_BUS_EMAC>; 536*724ba675SRob Herring reset-names = "stmmaceth"; 537*724ba675SRob Herring clocks = <&ccu CLK_BUS_EMAC>; 538*724ba675SRob Herring clock-names = "stmmaceth"; 539*724ba675SRob Herring status = "disabled"; 540*724ba675SRob Herring 541*724ba675SRob Herring mdio: mdio { 542*724ba675SRob Herring #address-cells = <1>; 543*724ba675SRob Herring #size-cells = <0>; 544*724ba675SRob Herring compatible = "snps,dwmac-mdio"; 545*724ba675SRob Herring }; 546*724ba675SRob Herring 547*724ba675SRob Herring mdio-mux { 548*724ba675SRob Herring compatible = "allwinner,sun8i-h3-mdio-mux"; 549*724ba675SRob Herring #address-cells = <1>; 550*724ba675SRob Herring #size-cells = <0>; 551*724ba675SRob Herring 552*724ba675SRob Herring mdio-parent-bus = <&mdio>; 553*724ba675SRob Herring /* Only one MDIO is usable at the time */ 554*724ba675SRob Herring internal_mdio: mdio@1 { 555*724ba675SRob Herring compatible = "allwinner,sun8i-h3-mdio-internal"; 556*724ba675SRob Herring reg = <1>; 557*724ba675SRob Herring #address-cells = <1>; 558*724ba675SRob Herring #size-cells = <0>; 559*724ba675SRob Herring 560*724ba675SRob Herring int_mii_phy: ethernet-phy@1 { 561*724ba675SRob Herring compatible = "ethernet-phy-ieee802.3-c22"; 562*724ba675SRob Herring reg = <1>; 563*724ba675SRob Herring clocks = <&ccu CLK_BUS_EPHY>; 564*724ba675SRob Herring resets = <&ccu RST_BUS_EPHY>; 565*724ba675SRob Herring }; 566*724ba675SRob Herring }; 567*724ba675SRob Herring 568*724ba675SRob Herring external_mdio: mdio@2 { 569*724ba675SRob Herring reg = <2>; 570*724ba675SRob Herring #address-cells = <1>; 571*724ba675SRob Herring #size-cells = <0>; 572*724ba675SRob Herring }; 573*724ba675SRob Herring }; 574*724ba675SRob Herring }; 575*724ba675SRob Herring 576*724ba675SRob Herring mbus: dram-controller@1c62000 { 577*724ba675SRob Herring /* compatible is in per SoC .dtsi file */ 578*724ba675SRob Herring reg = <0x01c62000 0x1000>, 579*724ba675SRob Herring <0x01c63000 0x1000>; 580*724ba675SRob Herring reg-names = "mbus", "dram"; 581*724ba675SRob Herring clocks = <&ccu CLK_MBUS>, 582*724ba675SRob Herring <&ccu CLK_DRAM>, 583*724ba675SRob Herring <&ccu CLK_BUS_DRAM>; 584*724ba675SRob Herring clock-names = "mbus", "dram", "bus"; 585*724ba675SRob Herring #address-cells = <1>; 586*724ba675SRob Herring #size-cells = <1>; 587*724ba675SRob Herring dma-ranges = <0x00000000 0x40000000 0xc0000000>; 588*724ba675SRob Herring #interconnect-cells = <1>; 589*724ba675SRob Herring }; 590*724ba675SRob Herring 591*724ba675SRob Herring spi0: spi@1c68000 { 592*724ba675SRob Herring compatible = "allwinner,sun8i-h3-spi"; 593*724ba675SRob Herring reg = <0x01c68000 0x1000>; 594*724ba675SRob Herring interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>; 595*724ba675SRob Herring clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>; 596*724ba675SRob Herring clock-names = "ahb", "mod"; 597*724ba675SRob Herring dmas = <&dma 23>, <&dma 23>; 598*724ba675SRob Herring dma-names = "rx", "tx"; 599*724ba675SRob Herring pinctrl-names = "default"; 600*724ba675SRob Herring pinctrl-0 = <&spi0_pins>; 601*724ba675SRob Herring resets = <&ccu RST_BUS_SPI0>; 602*724ba675SRob Herring status = "disabled"; 603*724ba675SRob Herring #address-cells = <1>; 604*724ba675SRob Herring #size-cells = <0>; 605*724ba675SRob Herring }; 606*724ba675SRob Herring 607*724ba675SRob Herring spi1: spi@1c69000 { 608*724ba675SRob Herring compatible = "allwinner,sun8i-h3-spi"; 609*724ba675SRob Herring reg = <0x01c69000 0x1000>; 610*724ba675SRob Herring interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>; 611*724ba675SRob Herring clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_SPI1>; 612*724ba675SRob Herring clock-names = "ahb", "mod"; 613*724ba675SRob Herring dmas = <&dma 24>, <&dma 24>; 614*724ba675SRob Herring dma-names = "rx", "tx"; 615*724ba675SRob Herring pinctrl-names = "default"; 616*724ba675SRob Herring pinctrl-0 = <&spi1_pins>; 617*724ba675SRob Herring resets = <&ccu RST_BUS_SPI1>; 618*724ba675SRob Herring status = "disabled"; 619*724ba675SRob Herring #address-cells = <1>; 620*724ba675SRob Herring #size-cells = <0>; 621*724ba675SRob Herring }; 622*724ba675SRob Herring 623*724ba675SRob Herring wdt0: watchdog@1c20ca0 { 624*724ba675SRob Herring compatible = "allwinner,sun6i-a31-wdt"; 625*724ba675SRob Herring reg = <0x01c20ca0 0x20>; 626*724ba675SRob Herring interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>; 627*724ba675SRob Herring clocks = <&osc24M>; 628*724ba675SRob Herring }; 629*724ba675SRob Herring 630*724ba675SRob Herring spdif: spdif@1c21000 { 631*724ba675SRob Herring #sound-dai-cells = <0>; 632*724ba675SRob Herring compatible = "allwinner,sun8i-h3-spdif"; 633*724ba675SRob Herring reg = <0x01c21000 0x400>; 634*724ba675SRob Herring interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; 635*724ba675SRob Herring clocks = <&ccu CLK_BUS_SPDIF>, <&ccu CLK_SPDIF>; 636*724ba675SRob Herring resets = <&ccu RST_BUS_SPDIF>; 637*724ba675SRob Herring clock-names = "apb", "spdif"; 638*724ba675SRob Herring dmas = <&dma 2>; 639*724ba675SRob Herring dma-names = "tx"; 640*724ba675SRob Herring status = "disabled"; 641*724ba675SRob Herring }; 642*724ba675SRob Herring 643*724ba675SRob Herring pwm: pwm@1c21400 { 644*724ba675SRob Herring compatible = "allwinner,sun8i-h3-pwm"; 645*724ba675SRob Herring reg = <0x01c21400 0x8>; 646*724ba675SRob Herring clocks = <&osc24M>; 647*724ba675SRob Herring #pwm-cells = <3>; 648*724ba675SRob Herring status = "disabled"; 649*724ba675SRob Herring }; 650*724ba675SRob Herring 651*724ba675SRob Herring i2s0: i2s@1c22000 { 652*724ba675SRob Herring #sound-dai-cells = <0>; 653*724ba675SRob Herring compatible = "allwinner,sun8i-h3-i2s"; 654*724ba675SRob Herring reg = <0x01c22000 0x400>; 655*724ba675SRob Herring interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>; 656*724ba675SRob Herring clocks = <&ccu CLK_BUS_I2S0>, <&ccu CLK_I2S0>; 657*724ba675SRob Herring clock-names = "apb", "mod"; 658*724ba675SRob Herring dmas = <&dma 3>, <&dma 3>; 659*724ba675SRob Herring resets = <&ccu RST_BUS_I2S0>; 660*724ba675SRob Herring dma-names = "rx", "tx"; 661*724ba675SRob Herring status = "disabled"; 662*724ba675SRob Herring }; 663*724ba675SRob Herring 664*724ba675SRob Herring i2s1: i2s@1c22400 { 665*724ba675SRob Herring #sound-dai-cells = <0>; 666*724ba675SRob Herring compatible = "allwinner,sun8i-h3-i2s"; 667*724ba675SRob Herring reg = <0x01c22400 0x400>; 668*724ba675SRob Herring interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>; 669*724ba675SRob Herring clocks = <&ccu CLK_BUS_I2S1>, <&ccu CLK_I2S1>; 670*724ba675SRob Herring clock-names = "apb", "mod"; 671*724ba675SRob Herring dmas = <&dma 4>, <&dma 4>; 672*724ba675SRob Herring resets = <&ccu RST_BUS_I2S1>; 673*724ba675SRob Herring dma-names = "rx", "tx"; 674*724ba675SRob Herring status = "disabled"; 675*724ba675SRob Herring }; 676*724ba675SRob Herring 677*724ba675SRob Herring i2s2: i2s@1c22800 { 678*724ba675SRob Herring #sound-dai-cells = <0>; 679*724ba675SRob Herring compatible = "allwinner,sun8i-h3-i2s"; 680*724ba675SRob Herring reg = <0x01c22800 0x400>; 681*724ba675SRob Herring interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>; 682*724ba675SRob Herring clocks = <&ccu CLK_BUS_I2S2>, <&ccu CLK_I2S2>; 683*724ba675SRob Herring clock-names = "apb", "mod"; 684*724ba675SRob Herring dmas = <&dma 27>; 685*724ba675SRob Herring resets = <&ccu RST_BUS_I2S2>; 686*724ba675SRob Herring dma-names = "tx"; 687*724ba675SRob Herring status = "disabled"; 688*724ba675SRob Herring }; 689*724ba675SRob Herring 690*724ba675SRob Herring codec: codec@1c22c00 { 691*724ba675SRob Herring #sound-dai-cells = <0>; 692*724ba675SRob Herring compatible = "allwinner,sun8i-h3-codec"; 693*724ba675SRob Herring reg = <0x01c22c00 0x400>; 694*724ba675SRob Herring interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>; 695*724ba675SRob Herring clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>; 696*724ba675SRob Herring clock-names = "apb", "codec"; 697*724ba675SRob Herring resets = <&ccu RST_BUS_CODEC>; 698*724ba675SRob Herring dmas = <&dma 15>, <&dma 15>; 699*724ba675SRob Herring dma-names = "rx", "tx"; 700*724ba675SRob Herring allwinner,codec-analog-controls = <&codec_analog>; 701*724ba675SRob Herring status = "disabled"; 702*724ba675SRob Herring }; 703*724ba675SRob Herring 704*724ba675SRob Herring uart0: serial@1c28000 { 705*724ba675SRob Herring compatible = "snps,dw-apb-uart"; 706*724ba675SRob Herring reg = <0x01c28000 0x400>; 707*724ba675SRob Herring interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>; 708*724ba675SRob Herring reg-shift = <2>; 709*724ba675SRob Herring reg-io-width = <4>; 710*724ba675SRob Herring clocks = <&ccu CLK_BUS_UART0>; 711*724ba675SRob Herring resets = <&ccu RST_BUS_UART0>; 712*724ba675SRob Herring dmas = <&dma 6>, <&dma 6>; 713*724ba675SRob Herring dma-names = "tx", "rx"; 714*724ba675SRob Herring status = "disabled"; 715*724ba675SRob Herring }; 716*724ba675SRob Herring 717*724ba675SRob Herring uart1: serial@1c28400 { 718*724ba675SRob Herring compatible = "snps,dw-apb-uart"; 719*724ba675SRob Herring reg = <0x01c28400 0x400>; 720*724ba675SRob Herring interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; 721*724ba675SRob Herring reg-shift = <2>; 722*724ba675SRob Herring reg-io-width = <4>; 723*724ba675SRob Herring clocks = <&ccu CLK_BUS_UART1>; 724*724ba675SRob Herring resets = <&ccu RST_BUS_UART1>; 725*724ba675SRob Herring dmas = <&dma 7>, <&dma 7>; 726*724ba675SRob Herring dma-names = "tx", "rx"; 727*724ba675SRob Herring status = "disabled"; 728*724ba675SRob Herring }; 729*724ba675SRob Herring 730*724ba675SRob Herring uart2: serial@1c28800 { 731*724ba675SRob Herring compatible = "snps,dw-apb-uart"; 732*724ba675SRob Herring reg = <0x01c28800 0x400>; 733*724ba675SRob Herring interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>; 734*724ba675SRob Herring reg-shift = <2>; 735*724ba675SRob Herring reg-io-width = <4>; 736*724ba675SRob Herring clocks = <&ccu CLK_BUS_UART2>; 737*724ba675SRob Herring resets = <&ccu RST_BUS_UART2>; 738*724ba675SRob Herring dmas = <&dma 8>, <&dma 8>; 739*724ba675SRob Herring dma-names = "tx", "rx"; 740*724ba675SRob Herring status = "disabled"; 741*724ba675SRob Herring }; 742*724ba675SRob Herring 743*724ba675SRob Herring uart3: serial@1c28c00 { 744*724ba675SRob Herring compatible = "snps,dw-apb-uart"; 745*724ba675SRob Herring reg = <0x01c28c00 0x400>; 746*724ba675SRob Herring interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; 747*724ba675SRob Herring reg-shift = <2>; 748*724ba675SRob Herring reg-io-width = <4>; 749*724ba675SRob Herring clocks = <&ccu CLK_BUS_UART3>; 750*724ba675SRob Herring resets = <&ccu RST_BUS_UART3>; 751*724ba675SRob Herring dmas = <&dma 9>, <&dma 9>; 752*724ba675SRob Herring dma-names = "tx", "rx"; 753*724ba675SRob Herring status = "disabled"; 754*724ba675SRob Herring }; 755*724ba675SRob Herring 756*724ba675SRob Herring i2c0: i2c@1c2ac00 { 757*724ba675SRob Herring compatible = "allwinner,sun6i-a31-i2c"; 758*724ba675SRob Herring reg = <0x01c2ac00 0x400>; 759*724ba675SRob Herring interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>; 760*724ba675SRob Herring clocks = <&ccu CLK_BUS_I2C0>; 761*724ba675SRob Herring resets = <&ccu RST_BUS_I2C0>; 762*724ba675SRob Herring pinctrl-names = "default"; 763*724ba675SRob Herring pinctrl-0 = <&i2c0_pins>; 764*724ba675SRob Herring status = "disabled"; 765*724ba675SRob Herring #address-cells = <1>; 766*724ba675SRob Herring #size-cells = <0>; 767*724ba675SRob Herring }; 768*724ba675SRob Herring 769*724ba675SRob Herring i2c1: i2c@1c2b000 { 770*724ba675SRob Herring compatible = "allwinner,sun6i-a31-i2c"; 771*724ba675SRob Herring reg = <0x01c2b000 0x400>; 772*724ba675SRob Herring interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; 773*724ba675SRob Herring clocks = <&ccu CLK_BUS_I2C1>; 774*724ba675SRob Herring resets = <&ccu RST_BUS_I2C1>; 775*724ba675SRob Herring pinctrl-names = "default"; 776*724ba675SRob Herring pinctrl-0 = <&i2c1_pins>; 777*724ba675SRob Herring status = "disabled"; 778*724ba675SRob Herring #address-cells = <1>; 779*724ba675SRob Herring #size-cells = <0>; 780*724ba675SRob Herring }; 781*724ba675SRob Herring 782*724ba675SRob Herring i2c2: i2c@1c2b400 { 783*724ba675SRob Herring compatible = "allwinner,sun6i-a31-i2c"; 784*724ba675SRob Herring reg = <0x01c2b400 0x400>; 785*724ba675SRob Herring interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; 786*724ba675SRob Herring clocks = <&ccu CLK_BUS_I2C2>; 787*724ba675SRob Herring resets = <&ccu RST_BUS_I2C2>; 788*724ba675SRob Herring pinctrl-names = "default"; 789*724ba675SRob Herring pinctrl-0 = <&i2c2_pins>; 790*724ba675SRob Herring status = "disabled"; 791*724ba675SRob Herring #address-cells = <1>; 792*724ba675SRob Herring #size-cells = <0>; 793*724ba675SRob Herring }; 794*724ba675SRob Herring 795*724ba675SRob Herring gic: interrupt-controller@1c81000 { 796*724ba675SRob Herring compatible = "arm,gic-400"; 797*724ba675SRob Herring reg = <0x01c81000 0x1000>, 798*724ba675SRob Herring <0x01c82000 0x2000>, 799*724ba675SRob Herring <0x01c84000 0x2000>, 800*724ba675SRob Herring <0x01c86000 0x2000>; 801*724ba675SRob Herring interrupt-controller; 802*724ba675SRob Herring #interrupt-cells = <3>; 803*724ba675SRob Herring interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; 804*724ba675SRob Herring }; 805*724ba675SRob Herring 806*724ba675SRob Herring csi: camera@1cb0000 { 807*724ba675SRob Herring compatible = "allwinner,sun8i-h3-csi"; 808*724ba675SRob Herring reg = <0x01cb0000 0x1000>; 809*724ba675SRob Herring interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>; 810*724ba675SRob Herring clocks = <&ccu CLK_BUS_CSI>, 811*724ba675SRob Herring <&ccu CLK_CSI_SCLK>, 812*724ba675SRob Herring <&ccu CLK_DRAM_CSI>; 813*724ba675SRob Herring clock-names = "bus", "mod", "ram"; 814*724ba675SRob Herring resets = <&ccu RST_BUS_CSI>; 815*724ba675SRob Herring pinctrl-names = "default"; 816*724ba675SRob Herring pinctrl-0 = <&csi_pins>; 817*724ba675SRob Herring status = "disabled"; 818*724ba675SRob Herring }; 819*724ba675SRob Herring 820*724ba675SRob Herring hdmi: hdmi@1ee0000 { 821*724ba675SRob Herring compatible = "allwinner,sun8i-h3-dw-hdmi", 822*724ba675SRob Herring "allwinner,sun8i-a83t-dw-hdmi"; 823*724ba675SRob Herring reg = <0x01ee0000 0x10000>; 824*724ba675SRob Herring reg-io-width = <1>; 825*724ba675SRob Herring interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>; 826*724ba675SRob Herring clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_DDC>, 827*724ba675SRob Herring <&ccu CLK_HDMI>, <&rtc CLK_OSC32K>; 828*724ba675SRob Herring clock-names = "iahb", "isfr", "tmds", "cec"; 829*724ba675SRob Herring resets = <&ccu RST_BUS_HDMI1>; 830*724ba675SRob Herring reset-names = "ctrl"; 831*724ba675SRob Herring phys = <&hdmi_phy>; 832*724ba675SRob Herring phy-names = "phy"; 833*724ba675SRob Herring status = "disabled"; 834*724ba675SRob Herring 835*724ba675SRob Herring ports { 836*724ba675SRob Herring #address-cells = <1>; 837*724ba675SRob Herring #size-cells = <0>; 838*724ba675SRob Herring 839*724ba675SRob Herring hdmi_in: port@0 { 840*724ba675SRob Herring reg = <0>; 841*724ba675SRob Herring 842*724ba675SRob Herring hdmi_in_tcon0: endpoint { 843*724ba675SRob Herring remote-endpoint = <&tcon0_out_hdmi>; 844*724ba675SRob Herring }; 845*724ba675SRob Herring }; 846*724ba675SRob Herring 847*724ba675SRob Herring hdmi_out: port@1 { 848*724ba675SRob Herring reg = <1>; 849*724ba675SRob Herring }; 850*724ba675SRob Herring }; 851*724ba675SRob Herring }; 852*724ba675SRob Herring 853*724ba675SRob Herring hdmi_phy: hdmi-phy@1ef0000 { 854*724ba675SRob Herring compatible = "allwinner,sun8i-h3-hdmi-phy"; 855*724ba675SRob Herring reg = <0x01ef0000 0x10000>; 856*724ba675SRob Herring clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_DDC>, 857*724ba675SRob Herring <&ccu CLK_PLL_VIDEO>; 858*724ba675SRob Herring clock-names = "bus", "mod", "pll-0"; 859*724ba675SRob Herring resets = <&ccu RST_BUS_HDMI0>; 860*724ba675SRob Herring reset-names = "phy"; 861*724ba675SRob Herring #phy-cells = <0>; 862*724ba675SRob Herring }; 863*724ba675SRob Herring 864*724ba675SRob Herring rtc: rtc@1f00000 { 865*724ba675SRob Herring /* compatible is in per SoC .dtsi file */ 866*724ba675SRob Herring reg = <0x01f00000 0x400>; 867*724ba675SRob Herring interrupt-parent = <&r_intc>; 868*724ba675SRob Herring interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>, 869*724ba675SRob Herring <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; 870*724ba675SRob Herring clock-output-names = "osc32k", "osc32k-out", "iosc"; 871*724ba675SRob Herring clocks = <&osc32k>; 872*724ba675SRob Herring #clock-cells = <1>; 873*724ba675SRob Herring }; 874*724ba675SRob Herring 875*724ba675SRob Herring r_intc: interrupt-controller@1f00c00 { 876*724ba675SRob Herring compatible = "allwinner,sun8i-h3-r-intc", 877*724ba675SRob Herring "allwinner,sun6i-a31-r-intc"; 878*724ba675SRob Herring interrupt-controller; 879*724ba675SRob Herring #interrupt-cells = <3>; 880*724ba675SRob Herring reg = <0x01f00c00 0x400>; 881*724ba675SRob Herring interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; 882*724ba675SRob Herring }; 883*724ba675SRob Herring 884*724ba675SRob Herring r_ccu: clock@1f01400 { 885*724ba675SRob Herring compatible = "allwinner,sun8i-h3-r-ccu"; 886*724ba675SRob Herring reg = <0x01f01400 0x100>; 887*724ba675SRob Herring clocks = <&osc24M>, <&rtc CLK_OSC32K>, <&rtc CLK_IOSC>, 888*724ba675SRob Herring <&ccu CLK_PLL_PERIPH0>; 889*724ba675SRob Herring clock-names = "hosc", "losc", "iosc", "pll-periph"; 890*724ba675SRob Herring #clock-cells = <1>; 891*724ba675SRob Herring #reset-cells = <1>; 892*724ba675SRob Herring }; 893*724ba675SRob Herring 894*724ba675SRob Herring codec_analog: codec-analog@1f015c0 { 895*724ba675SRob Herring compatible = "allwinner,sun8i-h3-codec-analog"; 896*724ba675SRob Herring reg = <0x01f015c0 0x4>; 897*724ba675SRob Herring }; 898*724ba675SRob Herring 899*724ba675SRob Herring ir: ir@1f02000 { 900*724ba675SRob Herring compatible = "allwinner,sun6i-a31-ir"; 901*724ba675SRob Herring clocks = <&r_ccu CLK_APB0_IR>, <&r_ccu CLK_IR>; 902*724ba675SRob Herring clock-names = "apb", "ir"; 903*724ba675SRob Herring resets = <&r_ccu RST_APB0_IR>; 904*724ba675SRob Herring interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; 905*724ba675SRob Herring reg = <0x01f02000 0x400>; 906*724ba675SRob Herring status = "disabled"; 907*724ba675SRob Herring }; 908*724ba675SRob Herring 909*724ba675SRob Herring r_i2c: i2c@1f02400 { 910*724ba675SRob Herring compatible = "allwinner,sun6i-a31-i2c"; 911*724ba675SRob Herring reg = <0x01f02400 0x400>; 912*724ba675SRob Herring interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>; 913*724ba675SRob Herring pinctrl-names = "default"; 914*724ba675SRob Herring pinctrl-0 = <&r_i2c_pins>; 915*724ba675SRob Herring clocks = <&r_ccu CLK_APB0_I2C>; 916*724ba675SRob Herring resets = <&r_ccu RST_APB0_I2C>; 917*724ba675SRob Herring status = "disabled"; 918*724ba675SRob Herring #address-cells = <1>; 919*724ba675SRob Herring #size-cells = <0>; 920*724ba675SRob Herring }; 921*724ba675SRob Herring 922*724ba675SRob Herring r_uart: serial@1f02800 { 923*724ba675SRob Herring compatible = "snps,dw-apb-uart"; 924*724ba675SRob Herring reg = <0x01f02800 0x400>; 925*724ba675SRob Herring interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>; 926*724ba675SRob Herring reg-shift = <2>; 927*724ba675SRob Herring reg-io-width = <4>; 928*724ba675SRob Herring clocks = <&r_ccu CLK_APB0_UART>; 929*724ba675SRob Herring resets = <&r_ccu RST_APB0_UART>; 930*724ba675SRob Herring pinctrl-names = "default"; 931*724ba675SRob Herring pinctrl-0 = <&r_uart_pins>; 932*724ba675SRob Herring status = "disabled"; 933*724ba675SRob Herring }; 934*724ba675SRob Herring 935*724ba675SRob Herring r_pio: pinctrl@1f02c00 { 936*724ba675SRob Herring compatible = "allwinner,sun8i-h3-r-pinctrl"; 937*724ba675SRob Herring reg = <0x01f02c00 0x400>; 938*724ba675SRob Herring interrupt-parent = <&r_intc>; 939*724ba675SRob Herring interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>; 940*724ba675SRob Herring clocks = <&r_ccu CLK_APB0_PIO>, <&osc24M>, 941*724ba675SRob Herring <&rtc CLK_OSC32K>; 942*724ba675SRob Herring clock-names = "apb", "hosc", "losc"; 943*724ba675SRob Herring gpio-controller; 944*724ba675SRob Herring #gpio-cells = <3>; 945*724ba675SRob Herring interrupt-controller; 946*724ba675SRob Herring #interrupt-cells = <3>; 947*724ba675SRob Herring 948*724ba675SRob Herring r_ir_rx_pin: r-ir-rx-pin { 949*724ba675SRob Herring pins = "PL11"; 950*724ba675SRob Herring function = "s_cir_rx"; 951*724ba675SRob Herring }; 952*724ba675SRob Herring 953*724ba675SRob Herring r_i2c_pins: r-i2c-pins { 954*724ba675SRob Herring pins = "PL0", "PL1"; 955*724ba675SRob Herring function = "s_i2c"; 956*724ba675SRob Herring }; 957*724ba675SRob Herring 958*724ba675SRob Herring r_pwm_pin: r-pwm-pin { 959*724ba675SRob Herring pins = "PL10"; 960*724ba675SRob Herring function = "s_pwm"; 961*724ba675SRob Herring }; 962*724ba675SRob Herring 963*724ba675SRob Herring r_uart_pins: r-uart-pins { 964*724ba675SRob Herring pins = "PL2", "PL3"; 965*724ba675SRob Herring function = "s_uart"; 966*724ba675SRob Herring }; 967*724ba675SRob Herring }; 968*724ba675SRob Herring 969*724ba675SRob Herring r_pwm: pwm@1f03800 { 970*724ba675SRob Herring compatible = "allwinner,sun8i-h3-pwm"; 971*724ba675SRob Herring reg = <0x01f03800 0x8>; 972*724ba675SRob Herring pinctrl-names = "default"; 973*724ba675SRob Herring pinctrl-0 = <&r_pwm_pin>; 974*724ba675SRob Herring clocks = <&osc24M>; 975*724ba675SRob Herring #pwm-cells = <3>; 976*724ba675SRob Herring status = "disabled"; 977*724ba675SRob Herring }; 978*724ba675SRob Herring }; 979*724ba675SRob Herring}; 980