Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /dts-v1/;
- #include <dt-bindings/gpio/gpio.h>
- #include "armada-375.dtsi"
- / {
- model = "WD MyCloud Gen2";
- compatible = "marvell,a375-db", "marvell,armada375";
- chosen {
- stdout-path = "serial0:115200n8";
- };
- memory@0 {
- device_type = "memory";
- reg = <0x00000000 0x20000000>; /* 512 MB */
- };
- soc {
- ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
- MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
- MBUS_ID(0x09, 0x09) 0 0xf1100000 0x10000
- MBUS_ID(0x09, 0x05) 0 0xf1110000 0x10000>;
- };
- gpio-leds {
- compatible = "gpio-leds";
- pinctrl-names = "default";
- pinctrl-0 = <&sys_led_pins>;
- system-red {
- label = "system-red";
- gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>; // chip, pin, state (1=active-low)
- // Triggers: none nand-disk timer oneshot heartbeat backlight gpio cpu0 cpu1 default-on
- //linux,default-trigger = "default-on";
- default-state = "keep";
- };
- system-green {
- label = "system-green";
- gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>; // 43 (mpp43) - 32 (gpio in chip) = 11 (pin in this chip)
- linux,default-trigger = "default-on";
- default-state = "on";
- };
- system-blue {
- label = "system-blue";
- gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
- linux,default-trigger = "default-off";
- default-state = "off";
- };
- };
- gpio-keys {
- compatible = "gpio-keys";
- pinctrl-names = "default";
- pinctrl-0 = <&btn_reset_pins>;
- #address-cells = <1>;
- #size-cells = <0>;
- btn-reset {
- label = "btn-reset";
- gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>; // 44-32=12
- linux,code = <198>; // KEY_RESTART, from: include/uapi/linux/input-event-codes.h
- gpio-key,wakeup;
- //autorepeat;
- };
- };
- usb3_phy: usb3-phy {
- compatible = "usb-nop-xceiv";
- vcc-supply = <&usb3_vbus>;
- };
- usb3_vbus: usb3-vbus {
- compatible = "regulator-fixed";
- pinctrl-names = "default";
- pinctrl-0 = <&usb3_vbus_pins>;
- regulator-name = "usb3-vbus";
- regulator-min-microvolt = <5000000>;
- regulator-max-microvolt = <5000000>;
- enable-active-high;
- regulator-always-on;
- gpio = <&gpio0 13 GPIO_ACTIVE_HIGH>;
- };
- };
- &spi0 {
- pinctrl-0 = <&spi0_pins>;
- pinctrl-names = "default";
- status = "okay";
- spi-flash@0 {
- #address-cells = <1>;
- #size-cells = <1>;
- compatible = "mxicy,mx25l8005", "jedec,spi-nor";
- reg = <0>; /* Chip select 0 */
- spi-max-frequency = <108000000>;
- partition@0 {
- label = "u-boot";
- reg = <0x0 0x100000>;
- };
- };
- };
- &i2c0 {
- status = "okay";
- clock-frequency = <100000>;
- pinctrl-0 = <&i2c0_pins>;
- pinctrl-names = "default";
- };
- &i2c1 {
- status = "okay";
- clock-frequency = <100000>;
- pinctrl-0 = <&i2c1_pins>;
- pinctrl-names = "default";
- };
- &uart0 {
- status = "okay";
- };
- &pinctrl {
- sys_led_pins: sys-led-pins {
- marvell,pins = "mpp20", "mpp43", "mpp22"; // R G B
- marvell,function = "gpio";
- };
- btn_reset_pins: btn-reset-pins {
- marvell,pins = "mpp44";
- marvell,function = "gpio";
- };
- usb3_vbus_pins: usb3-vbus-pins {
- marvell,pins = "mpp13";
- marvell,function = "gpio";
- };
- };
- &sata {
- status = "okay";
- nr-ports = <1>;
- };
- &usb1 {
- status = "okay";
- };
- &usb2 {
- status = "okay";
- };
- &mdio {
- phy0: ethernet-phy@0 {
- reg = <0>;
- };
- };
- ðernet {
- status = "okay";
- };
- ð0 {
- status = "okay";
- phy = <&phy0>;
- phy-mode = "mii";
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement