/dts-v1/;
-/include/ "mt7620a.dtsi"
+#include "mt7620a.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
/ {
- compatible = "ralink,mt7620a-soc";
+ compatible = "ohyeah,oy-0001", "ralink,mt7620a-soc";
model = "OY-0001";
+ aliases {
+ led-boot = &led_power;
+ led-failsafe = &led_power;
+ led-running = &led_power;
+ led-upgrade = &led_power;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
- palmbus@10000000 {
- gpio2: gpio@660 {
- status = "okay";
- };
+ leds {
+ compatible = "gpio-leds";
- gpio3: gpio@688 {
- status = "okay";
+ led_power: powerled {
+ label = "oy-0001:green:power";
+ gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
- spi@b00 {
- status = "okay";
-
- m25p80@0 {
- #address-cells = <1>;
- #size-cells = <1>;
- compatible = "jedec,spi-nor";
- reg = <0 0>;
- linux,modalias = "m25p80", "w25q128";
- spi-max-frequency = <10000000>;
-
- partition@0 {
- label = "u-boot";
- reg = <0x0 0x30000>;
- read-only;
- };
-
- partition@30000 {
- label = "u-boot-env";
- reg = <0x30000 0x10000>;
- read-only;
- };
-
- factory: partition@40000 {
- label = "factory";
- reg = <0x40000 0x10000>;
- read-only;
- };
-
- partition@50000 {
- label = "firmware";
- reg = <0x50000 0xfb0000>;
- };
-
- };
+ wifiled {
+ label = "oy-0001:green:wifi";
+ gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
};
};
- pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
- ralink,function = "gpio";
- };
+ keys {
+ compatible = "gpio-keys-polled";
+ poll-interval = <20>;
+
+ s1 {
+ label = "reset";
+ gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
};
};
+};
- ethernet@10100000 {
- pinctrl-names = "default";
- pinctrl-0 = <&ephy_pins>;
- mediatek,portmap = "llllw";
- };
+&gpio2 {
+ status = "okay";
+};
- gsw@10110000 {
- mediatek,port4 = "ephy";
- };
+&gpio3 {
+ status = "okay";
+};
- wmac@10180000 {
- ralink,mtd-eeprom = <&factory 0>;
- };
+&spi0 {
+ status = "okay";
- gpio-leds {
- compatible = "gpio-leds";
+ m25p80@0 {
+ compatible = "jedec,spi-nor";
+ reg = <0>;
+ spi-max-frequency = <10000000>;
- powerled {
- label = "oy-0001:green:power";
- gpios = <&gpio0 9 1>;
- };
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
- wifiled {
- label = "oy-0001:green:wifi";
- gpios = <&gpio3 0 1>;
+ partition@0 {
+ label = "u-boot";
+ reg = <0x0 0x30000>;
+ read-only;
+ };
+
+ partition@30000 {
+ label = "u-boot-env";
+ reg = <0x30000 0x10000>;
+ read-only;
+ };
+
+ factory: partition@40000 {
+ label = "factory";
+ reg = <0x40000 0x10000>;
+ read-only;
+ };
+
+ partition@50000 {
+ compatible = "denx,uimage";
+ label = "firmware";
+ reg = <0x50000 0xfb0000>;
+ };
};
};
+};
- sdhci@10130000 {
- status = "okay";
+&pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled";
+ ralink,function = "gpio";
+ };
};
+};
- ehci@101c0000 {
- status = "okay";
- };
+ðernet {
+ pinctrl-names = "default";
+ pinctrl-0 = <&ephy_pins>;
+ mediatek,portmap = "llllw";
+};
- ohci@101c1000 {
- status = "okay";
- };
+&gsw {
+ mediatek,port4 = "ephy";
+};
- pcie@10140000 {
- status = "okay";
- };
+&wmac {
+ ralink,mtd-eeprom = <&factory 0>;
+};
- gpio-keys-polled {
- compatible = "gpio-keys-polled";
- #address-cells = <1>;
- #size-cells = <0>;
- poll-interval = <20>;
+&sdhci {
+ status = "okay";
+};
- s1 {
- label = "reset";
- gpios = <&gpio0 1 1>;
- linux,code = <0x198>;
- };
- };
+&ehci {
+ status = "okay";
+};
+
+&ohci {
+ status = "okay";
};