Last active
August 18, 2022 13:46
-
-
Save dixyes/9a3ba1ddd5d54cf1d8819a79591039ab to your computer and use it in GitHub Desktop.
some dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GPL-2.0-or-later | |
/dts-v1/; | |
#include <dt-bindings/gpio/gpio.h> | |
#include <dt-bindings/input/input.h> | |
#include "armada-372x.dtsi" | |
/ { | |
model = "Not Aliyun SAG-100wm"; | |
compatible = "notaliyun,sag100wm", | |
"marvell,armada-3720-espressobin", | |
"globalscale,espressobin-ultra", | |
"marvell,armada3720", | |
"marvell,armada3710"; | |
aliases { | |
ethernet0 = &switch0port0; | |
ethernet1 = &switch0port1; | |
ethernet2 = &switch0port2; | |
ethernet3 = &switch0port3; | |
ethernet4 = &switch0port4; | |
}; | |
chosen { | |
stdout-path = "serial0:115200n8"; | |
}; | |
memory@0 { | |
device_type = "memory"; | |
reg = <0x00000000 0x00000000 0x00000000 0x20000000>; | |
}; | |
keys { | |
compatible = "gpio-keys"; | |
reset { | |
label = "reset"; | |
linux,code = <KEY_RESTART>; | |
gpios = <&gpionb 12 GPIO_ACTIVE_LOW>; | |
}; | |
}; | |
leds { | |
compatible = "gpio-leds"; | |
led-lte { | |
label = "lte-power"; | |
linux,default-trigger = "default-on"; | |
gpios = <&gpionb 0 GPIO_ACTIVE_HIGH>; | |
}; | |
led-lte-reset { | |
label = "lte-reset"; | |
linux,default-trigger = "none"; | |
gpios = <&gpionb 1 GPIO_ACTIVE_HIGH>; | |
default-state = "off"; | |
}; | |
// wan is at switch | |
led-cloud { | |
label = "green:cloud"; | |
linux,default-trigger = "none"; | |
gpios = <&gpiosb 1 GPIO_ACTIVE_HIGH>; | |
default-state = "off"; | |
}; | |
led-status { | |
label = "green:status"; | |
linux,default-trigger = "heartbeat"; | |
gpios = <&gpionb 15 GPIO_ACTIVE_HIGH>; | |
default-state = "on"; | |
}; | |
}; | |
}; | |
&sdhci0 { | |
bus-width = <8>; | |
mmc-ddr-1_8v; | |
mmc-hs400-1_8v; | |
non-removable; | |
no-sd; | |
no-sdio; | |
marvell,pad-type = "fixed-1-8v"; | |
status = "okay"; | |
}; | |
&usb3 { | |
status = "okay"; | |
}; | |
&usb2 { | |
status = "okay"; | |
}; | |
&uart0 { | |
status = "okay"; | |
}; | |
&mdio { | |
status = "okay"; | |
switch0: switch0@1 { | |
compatible = "marvell,mv88e6085"; | |
#address-cells = <1>; | |
#size-cells = <0>; | |
reg = <0>; | |
dsa,member = <0 0>; | |
ports { | |
#address-cells = <1>; | |
#size-cells = <0>; | |
switch0port0: port@0 { | |
reg = <0>; | |
label = "lan2"; | |
// phy-handle = <&switch0phy0>; | |
}; | |
switch0port1: port@1 { | |
reg = <1>; | |
label = "lan1"; | |
// phy-handle = <&switch0phy1>; | |
}; | |
switch0port2: port@2 { | |
reg = <2>; | |
label = "lan0"; | |
// phy-handle = <&switch0phy2>; | |
}; | |
switch0port3: port@3 { | |
reg = <3>; | |
label = "wan1"; | |
// phy-handle = <&switch0phy3>; | |
}; | |
switch0port4: port@4 { | |
reg = <4>; | |
label = "wan0"; | |
// phy-handle = <&switch0phy4>; | |
}; | |
// port 5 is unconnected | |
switch0cpuport: port@6 { | |
reg = <6>; | |
label = "cpu"; | |
ethernet = <ð0>; | |
phy-mode = "rgmii-id"; | |
fixed-link { | |
speed = <1000>; | |
full-duplex; | |
}; | |
}; | |
}; | |
}; | |
}; | |
ð0 { | |
status = "okay"; | |
pinctrl-names = "default"; | |
pinctrl-0 = <&rgmii_pins>; | |
phy-mode = "rgmii"; | |
fixed-link { | |
speed = <1000>; | |
full-duplex; | |
}; | |
}; | |
&crypto { | |
status = "okay"; | |
}; | |
&pcie0 { | |
status = "okay"; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GPL-2.0-or-later | |
/dts-v1/; | |
#include "armada-372x.dtsi" | |
/ { | |
model = "Not Aliyun SAG-100wm"; | |
compatible = "notaliyun,sag100wm", "globalscale,espressobin", "marvell,armada3720", "marvell,armada3710"; | |
chosen { | |
stdout-path = "serial0:115200n8"; | |
}; | |
aliases { | |
ethernet0 = ð0; | |
i2c0 = &i2c0; | |
spi0 = &spi0; | |
}; | |
memory { | |
device_type = "memory"; | |
reg = <0x00000000 0x00000000 0x00000000 0x20000000>; | |
}; | |
}; | |
&comphy { | |
max-lanes = <3>; | |
phy0 { | |
phy-type = <COMPHY_TYPE_SGMII1>; | |
phy-speed = <COMPHY_SPEED_1_25G>; | |
}; | |
phy1 { | |
phy-type = <COMPHY_TYPE_PEX0>; | |
phy-speed = <COMPHY_SPEED_5G>; | |
}; | |
phy2 { | |
phy-type = <COMPHY_TYPE_UNCONNECTED>; | |
phy-speed = <COMPHY_SPEED_INVALID>; | |
}; | |
}; | |
ð0 { | |
status = "okay"; | |
pinctrl-names = "default"; | |
pinctrl-0 = <&rgmii_pins>, <&smi_pins>; | |
phy-mode = "rgmii"; | |
phy_addr = <0x1>; | |
fixed-link { | |
speed = <1000>; | |
full-duplex; | |
}; | |
}; | |
&i2c0 { | |
pinctrl-names = "default"; | |
pinctrl-0 = <&i2c1_pins>; | |
status = "okay"; | |
}; | |
/* emmc */ | |
&sdhci1 { | |
non-removable; | |
bus-width = <8>; | |
mmc-ddr-1_8v; | |
mmc-hs400-1_8v; | |
marvell,xenon-emmc; | |
marvell,xenon-tun-count = <9>; | |
marvell,pad-type = "fixed-1-8v"; | |
pinctrl-names = "default"; | |
pinctrl-0 = <&mmc_pins>; | |
status = "okay"; | |
#address-cells = <1>; | |
#size-cells = <0>; | |
mmccard: mmccard@0 { | |
compatible = "mmc-card"; | |
reg = <0>; | |
}; | |
}; | |
/* tp52 */ | |
&uart0 { | |
pinctrl-names = "default"; | |
pinctrl-0 = <&uart1_pins>; | |
status = "okay"; | |
}; | |
/* CON29 */ | |
&usb2 { | |
status = "okay"; | |
}; | |
/* CON31 */ | |
&usb3 { | |
status = "okay"; | |
}; | |
&pcie0 { | |
pinctrl-names = "default"; | |
pinctrl-0 = <&pcie_pins>; | |
reset-gpios = <&gpiosb 3 GPIO_ACTIVE_LOW>; | |
status = "okay"; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment