2019-06-04 16:11:33 +08:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
2014-12-03 22:52:41 +08:00
|
|
|
/*
|
|
|
|
* Support for peripherals on the AXS10x mainboard (VDK version)
|
|
|
|
*
|
|
|
|
* Copyright (C) 2013-15 Synopsys, Inc. (www.synopsys.com)
|
|
|
|
*/
|
|
|
|
|
|
|
|
/ {
|
|
|
|
axs10x_mb_vdk {
|
|
|
|
compatible = "simple-bus";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
ranges = <0x00000000 0xe0000000 0x10000000>;
|
|
|
|
interrupt-parent = <&mb_intc>;
|
|
|
|
|
|
|
|
clocks {
|
|
|
|
apbclk: apbclk {
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
clock-frequency = <50000000>;
|
|
|
|
#clock-cells = <0>;
|
|
|
|
};
|
|
|
|
|
2017-02-02 00:42:52 +08:00
|
|
|
mmcclk: mmcclk {
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
clock-frequency = <50000000>;
|
|
|
|
#clock-cells = <0>;
|
|
|
|
};
|
|
|
|
|
2016-06-06 15:52:51 +08:00
|
|
|
pguclk: pguclk {
|
|
|
|
#clock-cells = <0>;
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
clock-frequency = <25175000>;
|
|
|
|
};
|
2014-12-03 22:52:41 +08:00
|
|
|
};
|
|
|
|
|
2019-01-24 20:17:03 +08:00
|
|
|
ethernet@18000 {
|
2014-12-03 22:52:41 +08:00
|
|
|
#interrupt-cells = <1>;
|
|
|
|
compatible = "snps,dwmac";
|
|
|
|
reg = < 0x18000 0x2000 >;
|
|
|
|
interrupts = < 4 >;
|
|
|
|
interrupt-names = "macirq";
|
|
|
|
phy-mode = "rgmii";
|
|
|
|
snps,phy-addr = < 0 >; // VDK model phy address is 0
|
|
|
|
snps,pbl = < 32 >;
|
|
|
|
clocks = <&apbclk>;
|
|
|
|
clock-names = "stmmaceth";
|
|
|
|
};
|
|
|
|
|
2019-01-24 20:17:03 +08:00
|
|
|
ehci@40000 {
|
2014-12-03 22:52:41 +08:00
|
|
|
compatible = "generic-ehci";
|
|
|
|
reg = < 0x40000 0x100 >;
|
|
|
|
interrupts = < 8 >;
|
|
|
|
};
|
|
|
|
|
2019-01-24 20:17:03 +08:00
|
|
|
uart@20000 {
|
2014-12-03 22:52:41 +08:00
|
|
|
compatible = "snps,dw-apb-uart";
|
|
|
|
reg = <0x20000 0x100>;
|
|
|
|
clock-frequency = <2403200>;
|
|
|
|
interrupts = <17>;
|
|
|
|
baud = <115200>;
|
|
|
|
reg-shift = <2>;
|
|
|
|
reg-io-width = <4>;
|
|
|
|
};
|
|
|
|
|
2019-01-24 20:17:03 +08:00
|
|
|
uart@21000 {
|
2014-12-03 22:52:41 +08:00
|
|
|
compatible = "snps,dw-apb-uart";
|
|
|
|
reg = <0x21000 0x100>;
|
|
|
|
clock-frequency = <2403200>;
|
|
|
|
interrupts = <18>;
|
|
|
|
baud = <115200>;
|
|
|
|
reg-shift = <2>;
|
|
|
|
reg-io-width = <4>;
|
|
|
|
};
|
|
|
|
|
2019-01-24 20:17:03 +08:00
|
|
|
uart@22000 {
|
2014-12-03 22:52:41 +08:00
|
|
|
compatible = "snps,dw-apb-uart";
|
|
|
|
reg = <0x22000 0x100>;
|
|
|
|
clock-frequency = <2403200>;
|
|
|
|
interrupts = <19>;
|
|
|
|
baud = <115200>;
|
|
|
|
reg-shift = <2>;
|
|
|
|
reg-io-width = <4>;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* PGU output directly sent to virtual LCD screen; hdmi controller not modelled */
|
2016-06-06 15:52:51 +08:00
|
|
|
pgu@17000 {
|
|
|
|
compatible = "snps,arcpgu";
|
2014-12-03 22:52:41 +08:00
|
|
|
reg = <0x17000 0x400>;
|
2016-06-06 15:52:51 +08:00
|
|
|
clocks = <&pguclk>;
|
|
|
|
clock-names = "pxlclk";
|
2014-12-03 22:52:41 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
/* VDK has additional ps2 keyboard/mouse interface integrated in LCD screen model */
|
|
|
|
ps2: ps2@e0017400 {
|
|
|
|
compatible = "snps,arc_ps2";
|
|
|
|
reg = <0x17400 0x14>;
|
|
|
|
interrupts = <5>;
|
|
|
|
interrupt-names = "arc_ps2_irq";
|
|
|
|
};
|
2017-02-02 00:42:52 +08:00
|
|
|
|
2019-01-24 20:17:03 +08:00
|
|
|
mmc@15000 {
|
2017-02-02 00:42:52 +08:00
|
|
|
compatible = "snps,dw-mshc";
|
|
|
|
reg = <0x15000 0x400>;
|
|
|
|
fifo-depth = <1024>;
|
|
|
|
card-detect-delay = <200>;
|
|
|
|
clocks = <&apbclk>, <&mmcclk>;
|
|
|
|
clock-names = "biu", "ciu";
|
|
|
|
interrupts = <7>;
|
|
|
|
bus-width = <4>;
|
|
|
|
};
|
2017-03-24 01:34:45 +08:00
|
|
|
};
|
2017-02-02 00:42:53 +08:00
|
|
|
|
2017-03-24 01:34:45 +08:00
|
|
|
/*
|
|
|
|
* Embedded Vision subsystem UIO mappings; only relevant for EV VDK
|
|
|
|
*
|
|
|
|
* This node is intentionally put outside of MB above becase
|
2019-01-24 20:17:03 +08:00
|
|
|
* it maps areas outside of MB's 0xez-0xfz.
|
2017-03-24 01:34:45 +08:00
|
|
|
*/
|
2019-01-24 20:17:03 +08:00
|
|
|
uio_ev: uio@d0000000 {
|
2017-03-24 01:34:45 +08:00
|
|
|
compatible = "generic-uio";
|
2019-01-24 20:17:03 +08:00
|
|
|
reg = <0xd0000000 0x2000 0xd1000000 0x2000 0x90000000 0x10000000 0xc0000000 0x10000000>;
|
2017-03-24 01:34:45 +08:00
|
|
|
reg-names = "ev_gsa", "ev_ctrl", "ev_shared_mem", "ev_code_mem";
|
|
|
|
interrupt-parent = <&mb_intc>;
|
|
|
|
interrupts = <23>;
|
2014-12-03 22:52:41 +08:00
|
|
|
};
|
|
|
|
};
|