Skip to content

Instantly share code, notes, and snippets.

@lemmi
Created October 20, 2020 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lemmi/9dab29c421c4c7edf40dcbcbf3c74c1e to your computer and use it in GitHub Desktop.
Save lemmi/9dab29c421c4c7edf40dcbcbf3c74c1e to your computer and use it in GitHub Desktop.
er-4 dts
/dts-v1/;
/ {
compatible = "cavium,ubnt_e300";
model = "cavium,ubnt_e300";
interrupt-parent = <0x1>;
#address-cells = <0x2>;
#size-cells = <0x2>;
soc@0 {
compatible = "simple-bus";
ranges;
#address-cells = <0x2>;
#size-cells = <0x2>;
i2c@1180000001200 {
compatible = "cavium,octeon-3860-twsi";
#address-cells = <0x1>;
interrupts = <0x0 0x3b>;
#size-cells = <0x0>;
reg = <0x11800 0x1200 0x0 0x200>;
clock-frequency = <0x186a0>;
};
mdio@1180000001800 {
compatible = "cavium,octeon-3860-mdio";
#address-cells = <0x1>;
#size-cells = <0x0>;
reg = <0x11800 0x1800 0x0 0x40>;
ethernet-phy@4 {
compatible = "vitesse,vsc8504", "ethernet-phy-ieee802.3-c22";
vitesse,reg-init = <0x1f 0x0 0x3 0x10 0xff7f 0x80 0x1f 0x0 0x0 0x17 0xf8ff 0x200 0x0 0x7fff 0x8000>;
interrupt-parent = <0x2>;
interrupts = <0x11 0x8>;
phandle = <0x3>;
optical-media-type = "1000bx";
reg = <0x4>;
linux,phandle = <0x3>;
};
ethernet-phy@7 {
compatible = "vitesse,vsc8504", "ethernet-phy-ieee802.3-c22";
vitesse,reg-init = <0x1f 0x0 0x3 0x10 0xff7f 0x80 0x1f 0x0 0x0>;
interrupt-parent = <0x2>;
interrupts = <0x11 0x8>;
phandle = <0x6>;
reg = <0x7>;
linux,phandle = <0x6>;
};
ethernet-phy@5 {
compatible = "vitesse,vsc8504", "ethernet-phy-ieee802.3-c22";
vitesse,reg-init = <0x1f 0x0 0x3 0x10 0xff7f 0x80 0x1f 0x0 0x0>;
interrupt-parent = <0x2>;
interrupts = <0x11 0x8>;
phandle = <0x4>;
reg = <0x5>;
linux,phandle = <0x4>;
};
ethernet-phy@6 {
compatible = "vitesse,vsc8504", "ethernet-phy-ieee802.3-c22";
vitesse,reg-init = <0x1f 0x0 0x3 0x10 0xff7f 0x80 0x1f 0x0 0x0>;
interrupt-parent = <0x2>;
interrupts = <0x11 0x8>;
phandle = <0x5>;
reg = <0x6>;
linux,phandle = <0x5>;
};
};
uctl@118006c000000 {
compatible = "cavium,octeon-7130-sata-uctl";
ranges;
#address-cells = <0x2>;
#size-cells = <0x2>;
reg = <0x11800 0x6c000000 0x0 0x100>;
};
serial@1180000000800 {
current-speed = <0x1c200>;
compatible = "cavium,octeon-3860-uart", "ns16550";
interrupts = <0x0 0x22>;
reg = <0x11800 0x800 0x0 0x400>;
clock-frequency = <0x17d78400>;
reg-shift = <0x3>;
};
uctl@1180068000000 {
compatible = "cavium,octeon-7130-usb-uctl";
refclk-frequency = <0x5f5e100>;
power = <0x2 0x1 0x0>;
ranges;
#address-cells = <0x2>;
#size-cells = <0x2>;
reg = <0x11800 0x68000000 0x0 0x100>;
refclk-type-hs = "pll_ref_clk";
refclk-type-ss = "dlmc_ref_clk1";
xhci@1680000000000 {
compatible = "cavium,octeon-7130-xhci", "synopsys,dwc3";
interrupt-parent = <0x8>;
interrupts = <0x9 0x4>;
reg = <0x16800 0x0 0x10 0x0>;
};
};
dma-engine@1180000000108 {
compatible = "cavium,octeon-5750-bootbus-dma";
interrupts = <0x0 0x3f>;
reg = <0x11800 0x108 0x0 0x8>;
};
interrupt-controller@107000000e800 {
compatible = "cavium,octeon-7130-cib";
cavium,max-bits = <0xb>;
#interrupt-cells = <0x2>;
interrupt-parent = <0x1>;
interrupts = <0x1 0x21>;
phandle = <0x8>;
reg = <0x10700 0xe800 0x0 0x8 0x10700 0xea00 0x0 0x8>;
linux,phandle = <0x8>;
interrupt-controller;
};
bootbus@1180000000000 {
compatible = "cavium,octeon-3860-bootbus";
ranges = <0x0 0x0 0x10000 0x10000000 0x0 0x1 0x0 0x10000 0x20000000 0x0 0x2 0x0 0x10000 0x30000000 0x0 0x3 0x0 0x10000 0x40000000 0x0 0x4 0x0 0x10000 0x50000000 0x0 0x5 0x0 0x10000 0x60000000 0x0 0x6 0x0 0x10000 0x70000000 0x0 0x7 0x0 0x10000 0x80000000 0x0>;
#address-cells = <0x2>;
#size-cells = <0x1>;
reg = <0x11800 0x0 0x0 0x200>;
};
interrupt-controller@107000000e400 {
compatible = "cavium,octeon-7130-cib";
cavium,max-bits = <0x6>;
#interrupt-cells = <0x2>;
interrupt-parent = <0x1>;
interrupts = <0x1 0x3f>;
reg = <0x10700 0xe400 0x0 0x8 0x10700 0xe500 0x0 0x8>;
interrupt-controller;
};
gpio-controller@1070000000800 {
compatible = "cavium,octeon-3860-gpio";
gpio-controller;
#interrupt-cells = <0x2>;
interrupts = <0x0 0x10 0x0 0x11 0x0 0x12 0x0 0x13 0x0 0x14 0x0 0x15 0x0 0x16 0x0 0x17 0x0 0x18 0x0 0x19 0x0 0x1a 0x0 0x1b 0x0 0x1c 0x0 0x1d 0x0 0x1e 0x0 0x1f>;
phandle = <0x2>;
reg = <0x10700 0x800 0x0 0x100>;
#gpio-cells = <0x2>;
linux,phandle = <0x2>;
interrupt-controller;
};
serial@1180000000c00 {
current-speed = <0x1c200>;
compatible = "cavium,octeon-3860-uart", "ns16550";
interrupts = <0x0 0x23>;
reg = <0x11800 0xc00 0x0 0x400>;
clock-frequency = <0x17d78400>;
reg-shift = <0x3>;
};
interrupt-controller@1070000000000 {
compatible = "cavium,octeon-3860-ciu";
#interrupt-cells = <0x2>;
phandle = <0x1>;
reg = <0x10700 0x0 0x0 0x7000>;
linux,phandle = <0x1>;
interrupt-controller;
};
spi@1070000001000 {
compatible = "cavium,octeon-3010-spi";
#address-cells = <0x1>;
interrupts = <0x0 0x3a>;
#size-cells = <0x0>;
reg = <0x10700 0x1000 0x0 0x100>;
spi-max-frequency = <0x5f5e100>;
flash@0 {
compatible = "Macronix,mx25l6405d", "spi-flash";
address-width = <0x18>;
mode = <0x0>;
#address-cells = <0x1>;
#size-cells = <0x1>;
size = <0x200000>;
pagesize = <0x10000>;
reg = <0x0>;
spi-max-frequency = <0x17d7840>;
partition@0 {
read-only;
label = "boot0";
reg = <0x0 0x300000>;
};
partition@400000 {
label = "eeprom";
reg = <0x400000 0x10000>;
};
partition@300000 {
read-only;
label = "dummy";
reg = <0x300000 0x100000>;
};
};
};
interrupt-controller@107000000ec00 {
compatible = "cavium,octeon-7130-cib";
cavium,max-bits = <0xf>;
#interrupt-cells = <0x2>;
interrupt-parent = <0x1>;
interrupts = <0x2 0x11>;
phandle = <0xa>;
reg = <0x10700 0xec00 0x0 0x8 0x10700 0xee00 0x0 0x8>;
linux,phandle = <0xa>;
interrupt-controller;
};
uctl@1180069000000 {
compatible = "cavium,octeon-7130-usb-uctl";
refclk-frequency = <0x5f5e100>;
power = <0x2 0x2 0x1>;
ranges;
#address-cells = <0x2>;
#size-cells = <0x2>;
reg = <0x11800 0x69000000 0x0 0x100>;
refclk-type-hs = "pll_ref_clk";
refclk-type-ss = "dlmc_ref_clk1";
xhci@1690000000000 {
compatible = "cavium,octeon-7130-xhci", "synopsys,dwc3";
interrupt-parent = <0x9>;
interrupts = <0x9 0x4>;
reg = <0x16900 0x0 0x10 0x0>;
};
};
dma-engine@1180000000100 {
compatible = "cavium,octeon-5750-bootbus-dma";
interrupts = <0x0 0x3f>;
reg = <0x11800 0x100 0x0 0x8>;
};
interrupt-controller@107000000e000 {
compatible = "cavium,octeon-7130-cib";
cavium,max-bits = <0x17>;
#interrupt-cells = <0x2>;
interrupt-parent = <0x1>;
interrupts = <0x1 0x18>;
reg = <0x10700 0xe000 0x0 0x8 0x10700 0xe100 0x0 0x8>;
interrupt-controller;
};
mmc@1180000002000 {
compatible = "cavium,octeon-6130-mmc";
#address-cells = <0x1>;
interrupts = <0x1 0x13 0x0 0x3f>;
#size-cells = <0x0>;
reg = <0x11800 0x2000 0x0 0x100 0x11800 0x168 0x0 0x20>;
mmc-slot@0 {
compatible = "cavium,octeon-6130-mmc-slot";
voltage-ranges = <0xce4 0xce4>;
cavium,bus-max-width = <0x8>;
bus-width = <0x8>;
reg = <0x0>;
non-removable;
spi-max-frequency = <0x18cba80>;
};
};
i2c@1180000001000 {
compatible = "cavium,octeon-3860-twsi";
#address-cells = <0x1>;
interrupts = <0x0 0x2d>;
#size-cells = <0x0>;
reg = <0x11800 0x1000 0x0 0x200>;
clock-frequency = <0x186a0>;
sfp_eeprom@51 {
compatible = "at,24c04";
label = "port1";
reg = <0x51>;
};
sfp_eeprom@50 {
compatible = "at,24c04";
label = "port0";
reg = <0x50>;
};
};
mdio@1180000001900 {
compatible = "cavium,octeon-3860-mdio";
#address-cells = <0x1>;
#size-cells = <0x0>;
reg = <0x11800 0x1900 0x0 0x40>;
};
interrupt-controller@107000000e600 {
compatible = "cavium,octeon-7130-cib";
cavium,max-bits = <0x4>;
#interrupt-cells = <0x2>;
interrupt-parent = <0x1>;
interrupts = <0x2 0x10>;
phandle = <0x7>;
reg = <0x10700 0xe600 0x0 0x8 0x10700 0xe700 0x0 0x8>;
linux,phandle = <0x7>;
interrupt-controller;
};
pip@11800a0000000 {
compatible = "cavium,octeon-3860-pip";
#address-cells = <0x1>;
#size-cells = <0x0>;
reg = <0x11800 0xa0000000 0x0 0x2000>;
interface@0 {
compatible = "cavium,octeon-3860-pip-interface";
#address-cells = <0x1>;
#size-cells = <0x0>;
reg = <0x0>;
ethernet@2 {
phy-handle = <0x5>;
compatible = "cavium,octeon-3860-pip-port";
local-mac-address = [fc ec da 44 0e 2f];
reg = <0x2>;
};
ethernet@0 {
phy-handle = <0x3>;
compatible = "cavium,octeon-3860-pip-port";
local-mac-address = [fc ec da 44 0e 2d];
reg = <0x0>;
};
ethernet@3 {
phy-handle = <0x6>;
compatible = "cavium,octeon-3860-pip-port";
local-mac-address = [fc ec da 44 0e 30];
reg = <0x3>;
};
ethernet@1 {
phy-handle = <0x4>;
compatible = "cavium,octeon-3860-pip-port";
local-mac-address = [fc ec da 44 0e 2e];
reg = <0x1>;
};
};
};
interrupt-controller@107000000e900 {
compatible = "cavium,octeon-7130-cib";
cavium,max-bits = <0xb>;
#interrupt-cells = <0x2>;
interrupt-parent = <0x1>;
interrupts = <0x1 0x11>;
phandle = <0x9>;
reg = <0x10700 0xe900 0x0 0x8 0x10700 0xeb00 0x0 0x8>;
linux,phandle = <0x9>;
interrupt-controller;
};
ocla0@11800A8000000 {
compatible = "cavium,octeon-7130-ocla";
interrupt-parent = <0xa>;
interrupts = <0x8 0x1 0x9 0x1 0xb 0x1>;
reg = <0x11800 0xa8000000 0x0 0x500000>;
};
interrupt-controller@107000000e200 {
compatible = "cavium,octeon-7130-cib";
cavium,max-bits = <0xc>;
#interrupt-cells = <0x2>;
interrupt-parent = <0x1>;
interrupts = <0x1 0x34>;
reg = <0x10700 0xe200 0x0 0x8 0x10700 0xe300 0x0 0x8>;
interrupt-controller;
};
};
aliases {
twsi0 = "/soc@0/i2c@1180000001000";
smi0 = "/soc@0/mdio@1180000001800";
emmc = "/soc@0/mmc@1180000002000";
spi = "/soc@0/spi@1070000001000";
uart0 = "/soc@0/serial@1180000000800";
twsi1 = "/soc@0/i2c@1180000001200";
pip = "/soc@0/pip@11800a0000000";
uart1 = "/soc@0/serial@1180000000c00";
};
memory {
device_type = "memory";
reg = <0x0 0x0 0x0 0x10000000 0x0 0x20000000 0x0 0x30000000>;
};
gpio-leds {
compatible = "gpio-leds";
d1 {
gpios = <0x2 0xb 0x0>;
label = "Yellow";
default-state = "keep";
};
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment