18b1ba941SHans de Goede/* 28b1ba941SHans de Goede * Copyright 2014 Chen-Yu Tsai 38b1ba941SHans de Goede * 48b1ba941SHans de Goede * Chen-Yu Tsai <wens@csie.org> 58b1ba941SHans de Goede * 68b1ba941SHans de Goede * This file is dual-licensed: you can use it either under the terms 78b1ba941SHans de Goede * of the GPL or the X11 license, at your option. Note that this dual 88b1ba941SHans de Goede * licensing only applies to this file, and not this project as a 98b1ba941SHans de Goede * whole. 108b1ba941SHans de Goede * 118b1ba941SHans de Goede * a) This file is free software; you can redistribute it and/or 128b1ba941SHans de Goede * modify it under the terms of the GNU General Public License as 138b1ba941SHans de Goede * published by the Free Software Foundation; either version 2 of the 148b1ba941SHans de Goede * License, or (at your option) any later version. 158b1ba941SHans de Goede * 168b1ba941SHans de Goede * This file is distributed in the hope that it will be useful, 178b1ba941SHans de Goede * but WITHOUT ANY WARRANTY; without even the implied warranty of 188b1ba941SHans de Goede * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 198b1ba941SHans de Goede * GNU General Public License for more details. 208b1ba941SHans de Goede * 218b1ba941SHans de Goede * Or, alternatively, 228b1ba941SHans de Goede * 238b1ba941SHans de Goede * b) Permission is hereby granted, free of charge, to any person 248b1ba941SHans de Goede * obtaining a copy of this software and associated documentation 258b1ba941SHans de Goede * files (the "Software"), to deal in the Software without 268b1ba941SHans de Goede * restriction, including without limitation the rights to use, 278b1ba941SHans de Goede * copy, modify, merge, publish, distribute, sublicense, and/or 288b1ba941SHans de Goede * sell copies of the Software, and to permit persons to whom the 298b1ba941SHans de Goede * Software is furnished to do so, subject to the following 308b1ba941SHans de Goede * conditions: 318b1ba941SHans de Goede * 328b1ba941SHans de Goede * The above copyright notice and this permission notice shall be 338b1ba941SHans de Goede * included in all copies or substantial portions of the Software. 348b1ba941SHans de Goede * 358b1ba941SHans de Goede * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 368b1ba941SHans de Goede * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 378b1ba941SHans de Goede * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 388b1ba941SHans de Goede * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 398b1ba941SHans de Goede * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 408b1ba941SHans de Goede * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 418b1ba941SHans de Goede * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 428b1ba941SHans de Goede * OTHER DEALINGS IN THE SOFTWARE. 438b1ba941SHans de Goede */ 448b1ba941SHans de Goede 458b1ba941SHans de Goede#include "sun8i-a23-a33.dtsi" 468b1ba941SHans de Goede 478b1ba941SHans de Goede/ { 488b1ba941SHans de Goede cpus { 498b1ba941SHans de Goede cpu@2 { 508b1ba941SHans de Goede compatible = "arm,cortex-a7"; 518b1ba941SHans de Goede device_type = "cpu"; 528b1ba941SHans de Goede reg = <2>; 538b1ba941SHans de Goede }; 548b1ba941SHans de Goede 558b1ba941SHans de Goede cpu@3 { 568b1ba941SHans de Goede compatible = "arm,cortex-a7"; 578b1ba941SHans de Goede device_type = "cpu"; 588b1ba941SHans de Goede reg = <3>; 598b1ba941SHans de Goede }; 608b1ba941SHans de Goede }; 618b1ba941SHans de Goede 628b1ba941SHans de Goede memory { 638b1ba941SHans de Goede reg = <0x40000000 0x80000000>; 648b1ba941SHans de Goede }; 658b1ba941SHans de Goede 668b1ba941SHans de Goede clocks { 678b1ba941SHans de Goede /* Dummy clock for pll11 (DDR1) until actually implemented */ 688b1ba941SHans de Goede pll11: pll11_clk { 698b1ba941SHans de Goede #clock-cells = <0>; 708b1ba941SHans de Goede compatible = "fixed-clock"; 718b1ba941SHans de Goede clock-frequency = <0>; 728b1ba941SHans de Goede clock-output-names = "pll11"; 738b1ba941SHans de Goede }; 748b1ba941SHans de Goede 75*80e5f83cSHans de Goede ahb1_gates: clk@01c20060 { 76*80e5f83cSHans de Goede #clock-cells = <1>; 77*80e5f83cSHans de Goede compatible = "allwinner,sun8i-a33-ahb1-gates-clk"; 78*80e5f83cSHans de Goede reg = <0x01c20060 0x8>; 79*80e5f83cSHans de Goede clocks = <&ahb1>; 80*80e5f83cSHans de Goede clock-indices = <1>, <5>, 81*80e5f83cSHans de Goede <6>, <8>, <9>, 82*80e5f83cSHans de Goede <10>, <13>, <14>, 83*80e5f83cSHans de Goede <19>, <20>, 84*80e5f83cSHans de Goede <21>, <24>, <26>, 85*80e5f83cSHans de Goede <29>, <32>, <36>, 86*80e5f83cSHans de Goede <40>, <44>, <46>, 87*80e5f83cSHans de Goede <52>, <53>, 88*80e5f83cSHans de Goede <54>, <57>, 89*80e5f83cSHans de Goede <58>; 90*80e5f83cSHans de Goede clock-output-names = "ahb1_mipidsi", "ahb1_ss", 91*80e5f83cSHans de Goede "ahb1_dma","ahb1_mmc0", "ahb1_mmc1", 92*80e5f83cSHans de Goede "ahb1_mmc2", "ahb1_nand", "ahb1_sdram", 93*80e5f83cSHans de Goede "ahb1_hstimer", "ahb1_spi0", 94*80e5f83cSHans de Goede "ahb1_spi1", "ahb1_otg", "ahb1_ehci", 95*80e5f83cSHans de Goede "ahb1_ohci", "ahb1_ve", "ahb1_lcd", 96*80e5f83cSHans de Goede "ahb1_csi", "ahb1_be", "ahb1_fe", 97*80e5f83cSHans de Goede "ahb1_gpu", "ahb1_msgbox", 98*80e5f83cSHans de Goede "ahb1_spinlock", "ahb1_drc", 99*80e5f83cSHans de Goede "ahb1_sat"; 100*80e5f83cSHans de Goede }; 101*80e5f83cSHans de Goede 102*80e5f83cSHans de Goede ss_clk: clk@01c2009c { 103*80e5f83cSHans de Goede #clock-cells = <0>; 104*80e5f83cSHans de Goede compatible = "allwinner,sun4i-a10-mod0-clk"; 105*80e5f83cSHans de Goede reg = <0x01c2009c 0x4>; 106*80e5f83cSHans de Goede clocks = <&osc24M>, <&pll6 0>; 107*80e5f83cSHans de Goede clock-output-names = "ss"; 108*80e5f83cSHans de Goede }; 109*80e5f83cSHans de Goede 1108b1ba941SHans de Goede mbus_clk: clk@01c2015c { 1118b1ba941SHans de Goede #clock-cells = <0>; 1128b1ba941SHans de Goede compatible = "allwinner,sun8i-a23-mbus-clk"; 1138b1ba941SHans de Goede reg = <0x01c2015c 0x4>; 1148b1ba941SHans de Goede clocks = <&osc24M>, <&pll6 1>, <&pll5>, <&pll11>; 1158b1ba941SHans de Goede clock-output-names = "mbus"; 1168b1ba941SHans de Goede }; 1178b1ba941SHans de Goede }; 118da52a4a3SHans de Goede 119da52a4a3SHans de Goede soc@01c00000 { 120*80e5f83cSHans de Goede crypto: crypto-engine@01c15000 { 121*80e5f83cSHans de Goede compatible = "allwinner,sun4i-a10-crypto"; 122*80e5f83cSHans de Goede reg = <0x01c15000 0x1000>; 123*80e5f83cSHans de Goede interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>; 124*80e5f83cSHans de Goede clocks = <&ahb1_gates 5>, <&ss_clk>; 125*80e5f83cSHans de Goede clock-names = "ahb", "mod"; 126*80e5f83cSHans de Goede resets = <&ahb1_rst 5>; 127*80e5f83cSHans de Goede reset-names = "ahb"; 128*80e5f83cSHans de Goede }; 129*80e5f83cSHans de Goede 130da52a4a3SHans de Goede usb_otg: usb@01c19000 { 131da52a4a3SHans de Goede compatible = "allwinner,sun8i-a33-musb"; 132da52a4a3SHans de Goede reg = <0x01c19000 0x0400>; 133da52a4a3SHans de Goede clocks = <&ahb1_gates 24>; 134da52a4a3SHans de Goede resets = <&ahb1_rst 24>; 135da52a4a3SHans de Goede interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>; 136da52a4a3SHans de Goede interrupt-names = "mc"; 137da52a4a3SHans de Goede phys = <&usbphy 0>; 138da52a4a3SHans de Goede phy-names = "usb"; 139da52a4a3SHans de Goede extcon = <&usbphy 0>; 140da52a4a3SHans de Goede status = "disabled"; 141da52a4a3SHans de Goede }; 142da52a4a3SHans de Goede 143da52a4a3SHans de Goede usbphy: phy@01c19400 { 144da52a4a3SHans de Goede compatible = "allwinner,sun8i-a33-usb-phy"; 145da52a4a3SHans de Goede reg = <0x01c19400 0x14>, 146da52a4a3SHans de Goede <0x01c1a800 0x4>; 147da52a4a3SHans de Goede reg-names = "phy_ctrl", 148da52a4a3SHans de Goede "pmu1"; 149da52a4a3SHans de Goede clocks = <&usb_clk 8>, 150da52a4a3SHans de Goede <&usb_clk 9>; 151da52a4a3SHans de Goede clock-names = "usb0_phy", 152da52a4a3SHans de Goede "usb1_phy"; 153da52a4a3SHans de Goede resets = <&usb_clk 0>, 154da52a4a3SHans de Goede <&usb_clk 1>; 155da52a4a3SHans de Goede reset-names = "usb0_reset", 156da52a4a3SHans de Goede "usb1_reset"; 157da52a4a3SHans de Goede status = "disabled"; 158da52a4a3SHans de Goede #phy-cells = <1>; 159da52a4a3SHans de Goede }; 160da52a4a3SHans de Goede }; 1618b1ba941SHans de Goede}; 1628b1ba941SHans de Goede 1638b1ba941SHans de Goede&pio { 1648b1ba941SHans de Goede compatible = "allwinner,sun8i-a33-pinctrl"; 1658b1ba941SHans de Goede interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>, 1668b1ba941SHans de Goede <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>; 167d8656b62SChen-Yu Tsai 168d8656b62SChen-Yu Tsai uart0_pins_b: uart0@1 { 169d8656b62SChen-Yu Tsai allwinner,pins = "PB0", "PB1"; 170d8656b62SChen-Yu Tsai allwinner,function = "uart0"; 171d8656b62SChen-Yu Tsai allwinner,drive = <SUN4I_PINCTRL_10_MA>; 172d8656b62SChen-Yu Tsai allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; 173d8656b62SChen-Yu Tsai }; 174d8656b62SChen-Yu Tsai 1758b1ba941SHans de Goede}; 176