cubieboard2.dts revision 266274
1850Sdg/*- 2850Sdg * Copyright (c) 2013 Ganbold Tsagaankhuu <ganbold@gmail.com> 3850Sdg * All rights reserved. 4850Sdg * 5850Sdg * Redistribution and use in source and binary forms, with or without 6850Sdg * modification, are permitted provided that the following conditions 7850Sdg * are met: 8850Sdg * 1. Redistributions of source code must retain the above copyright 9850Sdg * notice, this list of conditions and the following disclaimer. 10850Sdg * 2. Redistributions in binary form must reproduce the above copyright 11850Sdg * notice, this list of conditions and the following disclaimer in the 12850Sdg * documentation and/or other materials provided with the distribution. 13850Sdg * 14850Sdg * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15850Sdg * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16850Sdg * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17850Sdg * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18850Sdg * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19850Sdg * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20850Sdg * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21850Sdg * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22850Sdg * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23850Sdg * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24850Sdg * SUCH DAMAGE. 25850Sdg * 26850Sdg * $FreeBSD: stable/10/sys/boot/fdt/dts/arm/cubieboard2.dts 266274 2014-05-16 23:27:18Z ian $ 27850Sdg */ 28850Sdg 2950477Speter/dts-v1/; 30850Sdg 31850Sdg/ { 322165Spaul model = "Cubietech Cubieboard2"; 3315494Sbde compatible = "cubietech,a20-cubieboard", "allwinner,sun7i-a20"; 34886Swollman #address-cells = <1>; 35210498Skib #size-cells = <1>; 36210498Skib 37217151Skib interrupt-parent = <&GIC>; 38217151Skib 39142453Ssobomax memory { 4059663Sdillon device_type = "memory"; 41302238Sbdrewery reg = < 0x40000000 0x40000000 >; /* 1GB RAM */ 42302238Sbdrewery }; 43140992Ssobomax 44140992Ssobomax aliases { 45140992Ssobomax soc = &SOC; 46140992Ssobomax UART0 = &UART0; 47140992Ssobomax }; 48140992Ssobomax 49210555Salc SOC: a20 { 50140992Ssobomax #address-cells = <1>; 51140992Ssobomax #size-cells = <1>; 52140992Ssobomax compatible = "simple-bus"; 53177787Skib ranges; 54140992Ssobomax bus-frequency = <0>; 55140992Ssobomax 56850Sdg GIC: interrupt-controller@01c81000 { 57850Sdg compatible = "arm,gic"; 58106468Srwatson reg = <0x01c81000 0x1000>, /* Distributor Registers */ 5912130Sdg <0x01c82000 0x0100>; /* CPU Interface Registers */ 6099487Sjeff interrupt-controller; 61850Sdg #interrupt-cells = <1>; 62850Sdg }; 63850Sdg 64205643Snwhitehorn sramc@01c00000 { 65850Sdg compatible = "allwinner,sun4i-sramc"; 66272450Ssbruno #address-cells = <1>; 67272450Ssbruno #size-cells = <1>; 68272450Ssbruno reg = < 0x01c00000 0x1000 >; 69180570Skib }; 70142453Ssobomax 7114456Ssos cpu-cfg@01c25c00 { 72128568Salc compatible = "allwinner,sun7i-cpu-cfg"; 7345270Sjdp #address-cells = <1>; 7466379Stakawata #size-cells = <1>; 75140992Ssobomax reg = < 0x01c25c00 0x400 >; 76161302Snetchild }; 77189927Skib 78189927Skib ccm@01c20000 { 79189927Skib compatible = "allwinner,sun4i-ccm"; 80211412Skib #address-cells = <1>; 81211412Skib #size-cells = <1>; 82211412Skib reg = < 0x01c20000 0x400 >; 83211412Skib }; 84217151Skib 85281848Skib timer@01c20c00 { 86302238Sbdrewery compatible = "allwinner,sun7i-timer"; 87302238Sbdrewery reg = <0x01c20c00 0x90>; 88850Sdg interrupts = < 22 >; 89886Swollman interrupt-parent = <&GIC>; 9055205Speter clock-frequency = < 24000000 >; 91128599Sbde }; 92128599Sbde 93283359Skib watchdog@01c20c90 { 94128599Sbde compatible = "allwinner,sun4i-wdt"; 95204552Salfred reg = <0x01c20c90 0x10>; 96204552Salfred }; 97210545Salc 9892719Salfred GPIO: gpio@01c20800 { 99102808Sjake #gpio-cells = <3>; 100210429Salc compatible = "allwinner,sun4i-gpio"; 101103767Sjake gpio-controller; 102205642Snwhitehorn reg =< 0x01c20800 0x400 >; 10392719Salfred interrupts = < 28 >; 104140992Ssobomax interrupt-parent = <&GIC>; 105140992Ssobomax }; 106283359Skib 107283359Skib usb1: usb@01c14000 { 1083304Sphk compatible = "allwinner,usb-ehci", "usb-ehci"; 10915494Sbde reg = <0x01c14000 0x1000>; 11015494Sbde interrupts = < 39 >; 111 interrupt-parent = <&GIC>; 112 }; 113 114 usb2: usb@01c1c000 { 115 compatible = "allwinner,usb-ehci", "usb-ehci"; 116 reg = <0x01c1c000 0x1000>; 117 interrupts = < 40 >; 118 interrupt-parent = <&GIC>; 119 }; 120 121 sata@01c18000 { 122 compatible = "allwinner,ahci"; 123 reg = <0x01c18000 0x1000>; 124 interrupts = <56>; 125 interrupt-parent = <&GIC>; 126 }; 127 128 UART0: serial@01c28000 { 129 status = "okay"; 130 compatible = "ns16550"; 131 reg = <0x01c28000 0x400>; 132 reg-shift = <2>; 133 interrupts = <1>; 134 interrupt-parent = <&GIC>; 135 current-speed = <115200>; 136 clock-frequency = < 24000000 >; 137 busy-detect = <1>; 138 broken-txfifo = <1>; 139 }; 140 141 emac@01c0b000 { 142 compatible = "allwinner,sun4i-emac"; 143 reg = <0x01c0b000 0x1000>; 144 interrupts = <55>; 145 interrupt-parent = <&GIC>; 146 }; 147 }; 148 149 chosen { 150 bootargs = "-v"; 151 stdin = "UART0"; 152 stdout = "UART0"; 153 }; 154}; 155 156