199767f8919635c4928607450d9e0abb932109ceToomas Soome/*-
199767f8919635c4928607450d9e0abb932109ceToomas Soome * Copyright (c) 2014 Ruslan Bukin <br@bsdpad.com>
199767f8919635c4928607450d9e0abb932109ceToomas Soome * All rights reserved.
199767f8919635c4928607450d9e0abb932109ceToomas Soome *
199767f8919635c4928607450d9e0abb932109ceToomas Soome * This software was developed by SRI International and the University of
199767f8919635c4928607450d9e0abb932109ceToomas Soome * Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237)
199767f8919635c4928607450d9e0abb932109ceToomas Soome * ("CTSRD"), as part of the DARPA CRASH research programme.
199767f8919635c4928607450d9e0abb932109ceToomas Soome *
199767f8919635c4928607450d9e0abb932109ceToomas Soome * Redistribution and use in source and binary forms, with or without
199767f8919635c4928607450d9e0abb932109ceToomas Soome * modification, are permitted provided that the following conditions
199767f8919635c4928607450d9e0abb932109ceToomas Soome * are met:
199767f8919635c4928607450d9e0abb932109ceToomas Soome * 1. Redistributions of source code must retain the above copyright
199767f8919635c4928607450d9e0abb932109ceToomas Soome * notice, this list of conditions and the following disclaimer.
199767f8919635c4928607450d9e0abb932109ceToomas Soome * 2. Redistributions in binary form must reproduce the above copyright
199767f8919635c4928607450d9e0abb932109ceToomas Soome * notice, this list of conditions and the following disclaimer in the
199767f8919635c4928607450d9e0abb932109ceToomas Soome * documentation and/or other materials provided with the distribution.
199767f8919635c4928607450d9e0abb932109ceToomas Soome *
199767f8919635c4928607450d9e0abb932109ceToomas Soome * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
199767f8919635c4928607450d9e0abb932109ceToomas Soome * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
199767f8919635c4928607450d9e0abb932109ceToomas Soome * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
199767f8919635c4928607450d9e0abb932109ceToomas Soome * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
199767f8919635c4928607450d9e0abb932109ceToomas Soome * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
199767f8919635c4928607450d9e0abb932109ceToomas Soome * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
199767f8919635c4928607450d9e0abb932109ceToomas Soome * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
199767f8919635c4928607450d9e0abb932109ceToomas Soome * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
199767f8919635c4928607450d9e0abb932109ceToomas Soome * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
199767f8919635c4928607450d9e0abb932109ceToomas Soome * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
199767f8919635c4928607450d9e0abb932109ceToomas Soome * SUCH DAMAGE.
199767f8919635c4928607450d9e0abb932109ceToomas Soome *
199767f8919635c4928607450d9e0abb932109ceToomas Soome * $FreeBSD$
199767f8919635c4928607450d9e0abb932109ceToomas Soome */
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome/ {
199767f8919635c4928607450d9e0abb932109ceToomas Soome compatible = "altr,socfpga";
199767f8919635c4928607450d9e0abb932109ceToomas Soome #address-cells = <1>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome #size-cells = <1>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome interrupt-parent = <&GIC>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome aliases {
199767f8919635c4928607450d9e0abb932109ceToomas Soome soc = &SOC;
199767f8919635c4928607450d9e0abb932109ceToomas Soome rstmgr = &rstmgr;
199767f8919635c4928607450d9e0abb932109ceToomas Soome l3regs = &l3regs;
199767f8919635c4928607450d9e0abb932109ceToomas Soome serial0 = &serial0;
199767f8919635c4928607450d9e0abb932109ceToomas Soome serial1 = &serial1;
199767f8919635c4928607450d9e0abb932109ceToomas Soome };
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome SOC: socfpga {
199767f8919635c4928607450d9e0abb932109ceToomas Soome #address-cells = <1>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome #size-cells = <1>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome compatible = "simple-bus";
199767f8919635c4928607450d9e0abb932109ceToomas Soome ranges;
199767f8919635c4928607450d9e0abb932109ceToomas Soome bus-frequency = <0>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome GIC: interrupt-controller@fffed000 {
199767f8919635c4928607450d9e0abb932109ceToomas Soome compatible = "arm,gic";
199767f8919635c4928607450d9e0abb932109ceToomas Soome reg = < 0xfffed000 0x1000 >, /* Distributor */
199767f8919635c4928607450d9e0abb932109ceToomas Soome < 0xfffec100 0x100 >; /* CPU Interface */
199767f8919635c4928607450d9e0abb932109ceToomas Soome interrupt-controller;
199767f8919635c4928607450d9e0abb932109ceToomas Soome #interrupt-cells = <1>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome };
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome mp_tmr@40002100 {
199767f8919635c4928607450d9e0abb932109ceToomas Soome compatible = "arm,mpcore-timers";
199767f8919635c4928607450d9e0abb932109ceToomas Soome clock-frequency = <200000000>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome #address-cells = <1>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome #size-cells = <0>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome reg = < 0xfffec200 0x100 >, /* Global Timer */
199767f8919635c4928607450d9e0abb932109ceToomas Soome < 0xfffec600 0x100 >; /* Private Timer */
199767f8919635c4928607450d9e0abb932109ceToomas Soome interrupts = < 27 29 >;
199767f8919635c4928607450d9e0abb932109ceToomas Soome interrupt-parent = < &GIC >;
199767f8919635c4928607450d9e0abb932109ceToomas Soome };
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome sysmgr: sysmgr@ffd08000 {
199767f8919635c4928607450d9e0abb932109ceToomas Soome compatible = "altr,sys-mgr";
199767f8919635c4928607450d9e0abb932109ceToomas Soome reg = <0xffd08000 0x1000>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome };
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome clkmgr: clkmgr@ffd04000 {
199767f8919635c4928607450d9e0abb932109ceToomas Soome compatible = "altr,clk-mgr";
199767f8919635c4928607450d9e0abb932109ceToomas Soome reg = <0xffd04000 0x1000>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome };
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome rstmgr: rstmgr@ffd05000 {
199767f8919635c4928607450d9e0abb932109ceToomas Soome compatible = "altr,rst-mgr";
199767f8919635c4928607450d9e0abb932109ceToomas Soome reg = <0xffd05000 0x1000>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome };
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome l3regs: l3regs@ff800000 {
199767f8919635c4928607450d9e0abb932109ceToomas Soome compatible = "altr,l3regs";
199767f8919635c4928607450d9e0abb932109ceToomas Soome reg = <0xff800000 0x1000>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome };
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome fpgamgr: fpgamgr@ff706000 {
199767f8919635c4928607450d9e0abb932109ceToomas Soome compatible = "altr,fpga-mgr";
199767f8919635c4928607450d9e0abb932109ceToomas Soome reg = <0xff706000 0x1000>, /* FPGAMGRREGS */
199767f8919635c4928607450d9e0abb932109ceToomas Soome <0xffb90000 0x1000>; /* FPGAMGRDATA */
199767f8919635c4928607450d9e0abb932109ceToomas Soome interrupts = < 207 >;
199767f8919635c4928607450d9e0abb932109ceToomas Soome interrupt-parent = <&GIC>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome };
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome gpio0: gpio@ff708000 {
199767f8919635c4928607450d9e0abb932109ceToomas Soome compatible = "snps,dw-apb-gpio";
199767f8919635c4928607450d9e0abb932109ceToomas Soome reg = <0xff708000 0x1000>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome porta: gpio-controller@0 {
199767f8919635c4928607450d9e0abb932109ceToomas Soome compatible = "snps,dw-apb-gpio-port";
199767f8919635c4928607450d9e0abb932109ceToomas Soome gpio-controller;
199767f8919635c4928607450d9e0abb932109ceToomas Soome snps,nr-gpios = <29>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome };
199767f8919635c4928607450d9e0abb932109ceToomas Soome };
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome gpio1: gpio@ff709000 {
199767f8919635c4928607450d9e0abb932109ceToomas Soome compatible = "snps,dw-apb-gpio";
199767f8919635c4928607450d9e0abb932109ceToomas Soome reg = <0xff709000 0x1000>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome portb: gpio-controller@0 {
199767f8919635c4928607450d9e0abb932109ceToomas Soome compatible = "snps,dw-apb-gpio-port";
199767f8919635c4928607450d9e0abb932109ceToomas Soome gpio-controller;
199767f8919635c4928607450d9e0abb932109ceToomas Soome snps,nr-gpios = <29>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome };
199767f8919635c4928607450d9e0abb932109ceToomas Soome };
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome gpio2: gpio@ff70a000 {
199767f8919635c4928607450d9e0abb932109ceToomas Soome compatible = "snps,dw-apb-gpio";
199767f8919635c4928607450d9e0abb932109ceToomas Soome reg = <0xff70a000 0x1000>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome portc: gpio-controller@0 {
199767f8919635c4928607450d9e0abb932109ceToomas Soome compatible = "snps,dw-apb-gpio-port";
199767f8919635c4928607450d9e0abb932109ceToomas Soome gpio-controller;
199767f8919635c4928607450d9e0abb932109ceToomas Soome snps,nr-gpios = <27>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome };
199767f8919635c4928607450d9e0abb932109ceToomas Soome };
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome serial0: serial@ffc02000 {
199767f8919635c4928607450d9e0abb932109ceToomas Soome compatible = "ns16550";
199767f8919635c4928607450d9e0abb932109ceToomas Soome reg = <0xffc02000 0x1000>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome reg-shift = <2>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome interrupts = <194>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome interrupt-parent = <&GIC>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome current-speed = <115200>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome clock-frequency = < 100000000 >;
199767f8919635c4928607450d9e0abb932109ceToomas Soome status = "disabled";
199767f8919635c4928607450d9e0abb932109ceToomas Soome };
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome serial1: serial@ffc03000 {
199767f8919635c4928607450d9e0abb932109ceToomas Soome compatible = "ns16550";
199767f8919635c4928607450d9e0abb932109ceToomas Soome reg = <0xffc03000 0x1000>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome reg-shift = <2>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome interrupts = <195>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome interrupt-parent = <&GIC>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome current-speed = <115200>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome clock-frequency = < 100000000 >;
199767f8919635c4928607450d9e0abb932109ceToomas Soome status = "disabled";
199767f8919635c4928607450d9e0abb932109ceToomas Soome };
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome usb0: usb@ffb00000 {
199767f8919635c4928607450d9e0abb932109ceToomas Soome compatible = "synopsys,designware-hs-otg2";
199767f8919635c4928607450d9e0abb932109ceToomas Soome reg = <0xffb00000 0xffff>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome interrupts = <157>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome interrupt-parent = <&GIC>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome status = "disabled";
199767f8919635c4928607450d9e0abb932109ceToomas Soome };
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome usb1: usb@ffb40000 {
199767f8919635c4928607450d9e0abb932109ceToomas Soome compatible = "synopsys,designware-hs-otg2";
199767f8919635c4928607450d9e0abb932109ceToomas Soome reg = <0xffb40000 0xffff>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome interrupts = <160>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome interrupt-parent = <&GIC>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome dr_mode = "host";
199767f8919635c4928607450d9e0abb932109ceToomas Soome status = "disabled";
199767f8919635c4928607450d9e0abb932109ceToomas Soome };
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome gmac0: ethernet@ff700000 {
199767f8919635c4928607450d9e0abb932109ceToomas Soome compatible = "altr,socfpga-stmmac",
199767f8919635c4928607450d9e0abb932109ceToomas Soome "snps,dwmac-3.70a", "snps,dwmac";
199767f8919635c4928607450d9e0abb932109ceToomas Soome reg = <0xff700000 0x2000>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome interrupts = <147>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome interrupt-parent = <&GIC>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome phy-mode = "rgmii";
199767f8919635c4928607450d9e0abb932109ceToomas Soome status = "disabled";
199767f8919635c4928607450d9e0abb932109ceToomas Soome };
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome gmac1: ethernet@ff702000 {
199767f8919635c4928607450d9e0abb932109ceToomas Soome compatible = "altr,socfpga-stmmac",
199767f8919635c4928607450d9e0abb932109ceToomas Soome "snps,dwmac-3.70a", "snps,dwmac";
199767f8919635c4928607450d9e0abb932109ceToomas Soome reg = <0xff702000 0x2000>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome interrupts = <152>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome interrupt-parent = <&GIC>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome phy-mode = "rgmii";
199767f8919635c4928607450d9e0abb932109ceToomas Soome status = "disabled";
199767f8919635c4928607450d9e0abb932109ceToomas Soome };
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome mmc: dwmmc@ff704000 {
199767f8919635c4928607450d9e0abb932109ceToomas Soome compatible = "altr,socfpga-dw-mshc";
199767f8919635c4928607450d9e0abb932109ceToomas Soome reg = <0xff704000 0x1000>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome interrupts = <171>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome interrupt-parent = <&GIC>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome fifo-depth = <0x400>;
199767f8919635c4928607450d9e0abb932109ceToomas Soome status = "disabled";
199767f8919635c4928607450d9e0abb932109ceToomas Soome };
199767f8919635c4928607450d9e0abb932109ceToomas Soome };
199767f8919635c4928607450d9e0abb932109ceToomas Soome};