cubieboard.dts revision 263711
11590Srgrimes/*- 21590Srgrimes * Copyright (c) 2012 Ganbold Tsagaankhuu <ganbold@freebsd.org> 31590Srgrimes * All rights reserved. 41590Srgrimes * 51590Srgrimes * Redistribution and use in source and binary forms, with or without 61590Srgrimes * modification, are permitted provided that the following conditions 71590Srgrimes * are met: 81590Srgrimes * 1. Redistributions of source code must retain the above copyright 91590Srgrimes * notice, this list of conditions and the following disclaimer. 101590Srgrimes * 2. Redistributions in binary form must reproduce the above copyright 111590Srgrimes * notice, this list of conditions and the following disclaimer in the 121590Srgrimes * documentation and/or other materials provided with the distribution. 131590Srgrimes * 141590Srgrimes * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 151590Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 161590Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 171590Srgrimes * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 181590Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 191590Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 201590Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 211590Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 221590Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 231590Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 241590Srgrimes * SUCH DAMAGE. 251590Srgrimes * 261590Srgrimes * $FreeBSD: head/sys/boot/fdt/dts/arm/cubieboard.dts 263711 2014-03-25 08:31:47Z ganbold $ 271590Srgrimes */ 281590Srgrimes 291590Srgrimes/dts-v1/; 301590Srgrimes 311590Srgrimes/ { 321590Srgrimes model = "Cubietech Cubieboard"; 331590Srgrimes compatible = "cubietech,a10-cubieboard", "allwinner,sun4i-a10"; 341590Srgrimes #address-cells = <1>; 3527315Scharnier #size-cells = <1>; 3623693Speter 3727315Scharnier interrupt-parent = <&AINTC>; 381590Srgrimes 3999112Sobrien memory { 4099112Sobrien device_type = "memory"; 411590Srgrimes reg = < 0x40000000 0x40000000 >; /* 1GB RAM */ 421590Srgrimes }; 431590Srgrimes 4427315Scharnier aliases { 451590Srgrimes soc = &SOC; 461590Srgrimes UART0 = &UART0; 471590Srgrimes }; 4823693Speter 4923693Speter SOC: a10 { 501590Srgrimes #address-cells = <1>; 511590Srgrimes #size-cells = <1>; 521590Srgrimes compatible = "simple-bus"; 531590Srgrimes ranges; 541590Srgrimes bus-frequency = <0>; 55102944Sdwmalone 561590Srgrimes AINTC: interrupt-controller@01c20400 { 571590Srgrimes compatible = "allwinner,sun4i-ic"; 581590Srgrimes interrupt-controller; 591590Srgrimes #address-cells = <0>; 601590Srgrimes #interrupt-cells = <1>; 6118550Sjoerg reg = < 0x01c20400 0x400 >; 6218550Sjoerg }; 6318550Sjoerg 6418550Sjoerg sramc@01c00000 { 6518693Speter compatible = "allwinner,sun4i-sramc"; 6618550Sjoerg #address-cells = <1>; 6718550Sjoerg #size-cells = <1>; 6824360Simp reg = < 0x01c00000 0x1000 >; 691590Srgrimes }; 701590Srgrimes 711590Srgrimes ccm@01c20000 { 721590Srgrimes compatible = "allwinner,sun4i-ccm"; 731590Srgrimes #address-cells = <1>; 741590Srgrimes #size-cells = <1>; 751590Srgrimes reg = < 0x01c20000 0x400 >; 761590Srgrimes }; 771590Srgrimes 7818325Sphk timer@01c20c00 { 7918325Sphk compatible = "allwinner,sun4i-timer"; 8018693Speter reg = <0x01c20c00 0x90>; 8118550Sjoerg interrupts = < 22 >; 8218325Sphk interrupt-parent = <&AINTC>; 831590Srgrimes clock-frequency = < 24000000 >; 841590Srgrimes }; 851590Srgrimes 861590Srgrimes watchdog@01c20c90 { 871590Srgrimes compatible = "allwinner,sun4i-wdt"; 881590Srgrimes reg = <0x01c20c90 0x08>; 891590Srgrimes }; 901590Srgrimes 911590Srgrimes 921590Srgrimes GPIO: gpio@01c20800 { 931590Srgrimes #gpio-cells = <3>; 941590Srgrimes compatible = "allwinner,sun4i-gpio"; 9527315Scharnier gpio-controller; 961590Srgrimes reg =< 0x01c20800 0x400 >; 971590Srgrimes interrupts = < 28 >; 981590Srgrimes interrupt-parent = <&AINTC>; 991590Srgrimes }; 1001590Srgrimes 1011590Srgrimes usb1: usb@01c14000 { 10282766Sache compatible = "allwinner,usb-ehci", "usb-ehci"; 10327315Scharnier reg = <0x01c14000 0x1000>; 1041590Srgrimes interrupts = < 39 >; 1051590Srgrimes interrupt-parent = <&AINTC>; 1061590Srgrimes }; 1071590Srgrimes 1081590Srgrimes usb2: usb@01c1c000 { 1091590Srgrimes compatible = "allwinner,usb-ehci", "usb-ehci"; 1101590Srgrimes reg = <0x01c1c000 0x1000>; 1111590Srgrimes interrupts = < 40 >; 1121590Srgrimes interrupt-parent = <&AINTC>; 1131590Srgrimes }; 1141590Srgrimes 1151590Srgrimes sata@01c18000 { 1161590Srgrimes compatible = "allwinner,ahci"; 1171590Srgrimes reg = <0x01c18000 0x1000>; 1181590Srgrimes interrupts = <56>; 1191590Srgrimes interrupt-parent = <&AINTC>; 1201590Srgrimes }; 1211590Srgrimes 1221590Srgrimes UART0: serial@01c28000 { 1231590Srgrimes status = "okay"; 1241590Srgrimes compatible = "ns16550"; 1251590Srgrimes reg = <0x01c28000 0x400>; 1261590Srgrimes reg-shift = <2>; 1271590Srgrimes interrupts = <1>; 1281590Srgrimes interrupt-parent = <&AINTC>; 1291590Srgrimes current-speed = <115200>; 1301590Srgrimes clock-frequency = < 24000000 >; 1311590Srgrimes busy-detect = <1>; 1321590Srgrimes broken-txfifo = <1>; 1331590Srgrimes }; 1341590Srgrimes 1351590Srgrimes emac@01c0b000 { 136102944Sdwmalone compatible = "allwinner,sun4i-emac"; 1371590Srgrimes reg = <0x01c0b000 0x1000>; 13827315Scharnier interrupts = <55>; 13927315Scharnier interrupt-parent = <&AINTC>; 14027315Scharnier }; 14127315Scharnier }; 14227315Scharnier 1431590Srgrimes chosen { 1441590Srgrimes bootargs = "-v"; 145 stdin = "UART0"; 146 stdout = "UART0"; 147 }; 148}; 149 150