xref: /rk3399_rockchip-uboot/arch/arm/dts/sun8i-a23.dtsi (revision b5b84be8a7356d4c3618b6edcb501885e53569f5)
153ab4af3SHans de Goede/*
253ab4af3SHans de Goede * Copyright 2014 Chen-Yu Tsai
353ab4af3SHans de Goede *
453ab4af3SHans de Goede * Chen-Yu Tsai <wens@csie.org>
553ab4af3SHans de Goede *
653ab4af3SHans de Goede * This file is dual-licensed: you can use it either under the terms
753ab4af3SHans de Goede * of the GPL or the X11 license, at your option. Note that this dual
853ab4af3SHans de Goede * licensing only applies to this file, and not this project as a
953ab4af3SHans de Goede * whole.
1053ab4af3SHans de Goede *
1153ab4af3SHans de Goede *  a) This file is free software; you can redistribute it and/or
1253ab4af3SHans de Goede *     modify it under the terms of the GNU General Public License as
1353ab4af3SHans de Goede *     published by the Free Software Foundation; either version 2 of the
1453ab4af3SHans de Goede *     License, or (at your option) any later version.
1553ab4af3SHans de Goede *
1653ab4af3SHans de Goede *     This file is distributed in the hope that it will be useful,
1753ab4af3SHans de Goede *     but WITHOUT ANY WARRANTY; without even the implied warranty of
1853ab4af3SHans de Goede *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1953ab4af3SHans de Goede *     GNU General Public License for more details.
2053ab4af3SHans de Goede *
2153ab4af3SHans de Goede * Or, alternatively,
2253ab4af3SHans de Goede *
2353ab4af3SHans de Goede *  b) Permission is hereby granted, free of charge, to any person
2453ab4af3SHans de Goede *     obtaining a copy of this software and associated documentation
2553ab4af3SHans de Goede *     files (the "Software"), to deal in the Software without
2653ab4af3SHans de Goede *     restriction, including without limitation the rights to use,
2753ab4af3SHans de Goede *     copy, modify, merge, publish, distribute, sublicense, and/or
2853ab4af3SHans de Goede *     sell copies of the Software, and to permit persons to whom the
2953ab4af3SHans de Goede *     Software is furnished to do so, subject to the following
3053ab4af3SHans de Goede *     conditions:
3153ab4af3SHans de Goede *
3253ab4af3SHans de Goede *     The above copyright notice and this permission notice shall be
3353ab4af3SHans de Goede *     included in all copies or substantial portions of the Software.
3453ab4af3SHans de Goede *
3553ab4af3SHans de Goede *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
3653ab4af3SHans de Goede *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
3753ab4af3SHans de Goede *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
3853ab4af3SHans de Goede *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
3953ab4af3SHans de Goede *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
4053ab4af3SHans de Goede *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
4153ab4af3SHans de Goede *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
4253ab4af3SHans de Goede *     OTHER DEALINGS IN THE SOFTWARE.
4353ab4af3SHans de Goede */
4453ab4af3SHans de Goede
458b1ba941SHans de Goede#include "sun8i-a23-a33.dtsi"
4653ab4af3SHans de Goede
4753ab4af3SHans de Goede/ {
4853ab4af3SHans de Goede	memory {
4953ab4af3SHans de Goede		reg = <0x40000000 0x40000000>;
5053ab4af3SHans de Goede	};
5153ab4af3SHans de Goede
5253ab4af3SHans de Goede	clocks {
53*80e5f83cSHans de Goede		ahb1_gates: clk@01c20060 {
54*80e5f83cSHans de Goede			#clock-cells = <1>;
55*80e5f83cSHans de Goede			compatible = "allwinner,sun8i-a23-ahb1-gates-clk";
56*80e5f83cSHans de Goede			reg = <0x01c20060 0x8>;
57*80e5f83cSHans de Goede			clocks = <&ahb1>;
58*80e5f83cSHans de Goede			clock-indices = <1>, <6>,
59*80e5f83cSHans de Goede					<8>, <9>, <10>,
60*80e5f83cSHans de Goede					<13>, <14>,
61*80e5f83cSHans de Goede					<19>, <20>,
62*80e5f83cSHans de Goede					<21>, <24>, <26>,
63*80e5f83cSHans de Goede					<29>, <32>, <36>,
64*80e5f83cSHans de Goede					<40>, <44>, <46>,
65*80e5f83cSHans de Goede					<52>, <53>,
66*80e5f83cSHans de Goede					<54>, <57>;
67*80e5f83cSHans de Goede			clock-output-names = "ahb1_mipidsi", "ahb1_dma",
68*80e5f83cSHans de Goede					"ahb1_mmc0", "ahb1_mmc1", "ahb1_mmc2",
69*80e5f83cSHans de Goede					"ahb1_nand", "ahb1_sdram",
70*80e5f83cSHans de Goede					"ahb1_hstimer", "ahb1_spi0",
71*80e5f83cSHans de Goede					"ahb1_spi1", "ahb1_otg", "ahb1_ehci",
72*80e5f83cSHans de Goede					"ahb1_ohci", "ahb1_ve", "ahb1_lcd",
73*80e5f83cSHans de Goede					"ahb1_csi", "ahb1_be",	"ahb1_fe",
74*80e5f83cSHans de Goede					"ahb1_gpu", "ahb1_msgbox",
75*80e5f83cSHans de Goede					"ahb1_spinlock", "ahb1_drc";
76*80e5f83cSHans de Goede		};
77*80e5f83cSHans de Goede
7853ab4af3SHans de Goede		mbus_clk: clk@01c2015c {
7953ab4af3SHans de Goede			#clock-cells = <0>;
8053ab4af3SHans de Goede			compatible = "allwinner,sun8i-a23-mbus-clk";
8153ab4af3SHans de Goede			reg = <0x01c2015c 0x4>;
8253ab4af3SHans de Goede			clocks = <&osc24M>, <&pll6 1>, <&pll5>;
8353ab4af3SHans de Goede			clock-output-names = "mbus";
8453ab4af3SHans de Goede		};
8553ab4af3SHans de Goede	};
86da52a4a3SHans de Goede
87da52a4a3SHans de Goede	soc@01c00000 {
88da52a4a3SHans de Goede		usb_otg: usb@01c19000 {
89da52a4a3SHans de Goede			compatible = "allwinner,sun6i-a31-musb";
90da52a4a3SHans de Goede			reg = <0x01c19000 0x0400>;
91da52a4a3SHans de Goede			clocks = <&ahb1_gates 24>;
92da52a4a3SHans de Goede			resets = <&ahb1_rst 24>;
93da52a4a3SHans de Goede			interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
94da52a4a3SHans de Goede			interrupt-names = "mc";
95da52a4a3SHans de Goede			phys = <&usbphy 0>;
96da52a4a3SHans de Goede			phy-names = "usb";
97da52a4a3SHans de Goede			extcon = <&usbphy 0>;
98da52a4a3SHans de Goede			status = "disabled";
99da52a4a3SHans de Goede		};
100da52a4a3SHans de Goede
101da52a4a3SHans de Goede		usbphy: phy@01c19400 {
102da52a4a3SHans de Goede			compatible = "allwinner,sun8i-a23-usb-phy";
103da52a4a3SHans de Goede			reg = <0x01c19400 0x10>,
104da52a4a3SHans de Goede			      <0x01c1a800 0x4>;
105da52a4a3SHans de Goede			reg-names = "phy_ctrl",
106da52a4a3SHans de Goede				    "pmu1";
107da52a4a3SHans de Goede			clocks = <&usb_clk 8>,
108da52a4a3SHans de Goede				 <&usb_clk 9>;
109da52a4a3SHans de Goede			clock-names = "usb0_phy",
110da52a4a3SHans de Goede				      "usb1_phy";
111da52a4a3SHans de Goede			resets = <&usb_clk 0>,
112da52a4a3SHans de Goede				 <&usb_clk 1>;
113da52a4a3SHans de Goede			reset-names = "usb0_reset",
114da52a4a3SHans de Goede				      "usb1_reset";
115da52a4a3SHans de Goede			status = "disabled";
116da52a4a3SHans de Goede			#phy-cells = <1>;
117da52a4a3SHans de Goede		};
118da52a4a3SHans de Goede	};
11953ab4af3SHans de Goede};
12053ab4af3SHans de Goede
1218b1ba941SHans de Goede&pio {
12253ab4af3SHans de Goede	compatible = "allwinner,sun8i-a23-pinctrl";
12353ab4af3SHans de Goede	interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
12453ab4af3SHans de Goede		     <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
12553ab4af3SHans de Goede		     <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
12653ab4af3SHans de Goede};
127