led_status_red: status_red {
label = "mir3g:red:status";
- gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
led_status_blue: status_blue {
label = "mir3g:blue:status";
- gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
led_status_yellow: status_yellow {
label = "mir3g:yellow:status";
- gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
};
wan_amber {
label = "mir3g:amber:wan";
- gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
lan1_amber {
label = "mir3g:amber:lan1";
- gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
lan2_amber {
label = "mir3g:amber:lan2";
- gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
};
- button {
- compatible = "gpio-keys-polled";
- poll-interval = <20>;
+ keys {
+ compatible = "gpio-keys";
reset {
label = "reset";
- gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
regulator-name = "usb_vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
- gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
+ gpio = <&gpio 12 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
};
};
factory: partition@100000 {
- label = "Factory";
+ label = "factory";
reg = <0x100000 0x40000>;
read-only;
};
mediatek,portmap = "lwlll";
};
-&pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "jtag", "uart2", "uart3", "wdt";
- ralink,function = "gpio";
- };
+&state_default {
+ gpio {
+ ralink,group = "jtag", "uart2", "uart3", "wdt";
+ ralink,function = "gpio";
};
};