cubieboard.dts revision 263711
1245450Sganbold/*- 2263711Sganbold * Copyright (c) 2012 Ganbold Tsagaankhuu <ganbold@freebsd.org> 3245450Sganbold * All rights reserved. 4245450Sganbold * 5245450Sganbold * Redistribution and use in source and binary forms, with or without 6245450Sganbold * modification, are permitted provided that the following conditions 7245450Sganbold * are met: 8245450Sganbold * 1. Redistributions of source code must retain the above copyright 9245450Sganbold * notice, this list of conditions and the following disclaimer. 10245450Sganbold * 2. Redistributions in binary form must reproduce the above copyright 11245450Sganbold * notice, this list of conditions and the following disclaimer in the 12245450Sganbold * documentation and/or other materials provided with the distribution. 13245450Sganbold * 14245450Sganbold * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15245450Sganbold * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16245450Sganbold * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17245450Sganbold * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18245450Sganbold * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19245450Sganbold * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20245450Sganbold * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21245450Sganbold * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22245450Sganbold * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23245450Sganbold * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24245450Sganbold * SUCH DAMAGE. 25245450Sganbold * 26245450Sganbold * $FreeBSD: head/sys/boot/fdt/dts/arm/cubieboard.dts 263711 2014-03-25 08:31:47Z ganbold $ 27245450Sganbold */ 28245450Sganbold 29245450Sganbold/dts-v1/; 30245450Sganbold 31245450Sganbold/ { 32245900Sganbold model = "Cubietech Cubieboard"; 33245900Sganbold compatible = "cubietech,a10-cubieboard", "allwinner,sun4i-a10"; 34245450Sganbold #address-cells = <1>; 35245450Sganbold #size-cells = <1>; 36245450Sganbold 37245450Sganbold interrupt-parent = <&AINTC>; 38245450Sganbold 39245450Sganbold memory { 40245450Sganbold device_type = "memory"; 41260447Sganbold reg = < 0x40000000 0x40000000 >; /* 1GB RAM */ 42245450Sganbold }; 43245450Sganbold 44245450Sganbold aliases { 45245450Sganbold soc = &SOC; 46245450Sganbold UART0 = &UART0; 47245450Sganbold }; 48245450Sganbold 49245450Sganbold SOC: a10 { 50245450Sganbold #address-cells = <1>; 51245450Sganbold #size-cells = <1>; 52245450Sganbold compatible = "simple-bus"; 53245450Sganbold ranges; 54245450Sganbold bus-frequency = <0>; 55245450Sganbold 56245450Sganbold AINTC: interrupt-controller@01c20400 { 57245900Sganbold compatible = "allwinner,sun4i-ic"; 58245450Sganbold interrupt-controller; 59245450Sganbold #address-cells = <0>; 60245450Sganbold #interrupt-cells = <1>; 61245450Sganbold reg = < 0x01c20400 0x400 >; 62245450Sganbold }; 63245450Sganbold 64262711Sganbold sramc@01c00000 { 65262711Sganbold compatible = "allwinner,sun4i-sramc"; 66262711Sganbold #address-cells = <1>; 67262711Sganbold #size-cells = <1>; 68262711Sganbold reg = < 0x01c00000 0x1000 >; 69262711Sganbold }; 70262711Sganbold 71246057Sganbold ccm@01c20000 { 72246057Sganbold compatible = "allwinner,sun4i-ccm"; 73246057Sganbold #address-cells = <1>; 74246057Sganbold #size-cells = <1>; 75246057Sganbold reg = < 0x01c20000 0x400 >; 76246057Sganbold }; 77246057Sganbold 78245450Sganbold timer@01c20c00 { 79245900Sganbold compatible = "allwinner,sun4i-timer"; 80245450Sganbold reg = <0x01c20c00 0x90>; 81245450Sganbold interrupts = < 22 >; 82245450Sganbold interrupt-parent = <&AINTC>; 83245450Sganbold clock-frequency = < 24000000 >; 84245450Sganbold }; 85245450Sganbold 86246660Sgonzo watchdog@01c20c90 { 87246660Sgonzo compatible = "allwinner,sun4i-wdt"; 88246660Sgonzo reg = <0x01c20c90 0x08>; 89246660Sgonzo }; 90246660Sgonzo 91246660Sgonzo 92246342Sganbold GPIO: gpio@01c20800 { 93246342Sganbold #gpio-cells = <3>; 94246342Sganbold compatible = "allwinner,sun4i-gpio"; 95246342Sganbold gpio-controller; 96246342Sganbold reg =< 0x01c20800 0x400 >; 97246342Sganbold interrupts = < 28 >; 98246342Sganbold interrupt-parent = <&AINTC>; 99246342Sganbold }; 100246342Sganbold 101246851Sgonzo usb1: usb@01c14000 { 102245900Sganbold compatible = "allwinner,usb-ehci", "usb-ehci"; 103246851Sgonzo reg = <0x01c14000 0x1000>; 104246851Sgonzo interrupts = < 39 >; 105246851Sgonzo interrupt-parent = <&AINTC>; 106246851Sgonzo }; 107246851Sgonzo 108246851Sgonzo usb2: usb@01c1c000 { 109246851Sgonzo compatible = "allwinner,usb-ehci", "usb-ehci"; 110245450Sganbold reg = <0x01c1c000 0x1000>; 111245450Sganbold interrupts = < 40 >; 112245450Sganbold interrupt-parent = <&AINTC>; 113245450Sganbold }; 114245450Sganbold 115245450Sganbold sata@01c18000 { 116245900Sganbold compatible = "allwinner,ahci"; 117245450Sganbold reg = <0x01c18000 0x1000>; 118245450Sganbold interrupts = <56>; 119245450Sganbold interrupt-parent = <&AINTC>; 120245450Sganbold }; 121245450Sganbold 122245450Sganbold UART0: serial@01c28000 { 123245450Sganbold status = "okay"; 124245450Sganbold compatible = "ns16550"; 125245450Sganbold reg = <0x01c28000 0x400>; 126245450Sganbold reg-shift = <2>; 127245450Sganbold interrupts = <1>; 128245450Sganbold interrupt-parent = <&AINTC>; 129245450Sganbold current-speed = <115200>; 130245450Sganbold clock-frequency = < 24000000 >; 131247520Sganbold busy-detect = <1>; 132247520Sganbold broken-txfifo = <1>; 133245450Sganbold }; 134262711Sganbold 135262711Sganbold emac@01c0b000 { 136262711Sganbold compatible = "allwinner,sun4i-emac"; 137262711Sganbold reg = <0x01c0b000 0x1000>; 138262711Sganbold interrupts = <55>; 139262711Sganbold interrupt-parent = <&AINTC>; 140262711Sganbold }; 141245450Sganbold }; 142245450Sganbold 143245450Sganbold chosen { 144245450Sganbold bootargs = "-v"; 145245450Sganbold stdin = "UART0"; 146245450Sganbold stdout = "UART0"; 147245450Sganbold }; 148245450Sganbold}; 149245450Sganbold 150