gpio-leds {
compatible = "gpio-leds";
- // Only USB LED is connected to GPIO.
- // All of other LEDs are connected directly to
- // switch, WiFi chip, Vcc, so they are not controllable
- // via GPIO
-
usb {
label = "11acnas:green:usb";
gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
simple-audio-card,format = "i2s";
simple-audio-card,bitclock-master = <&dailink0_master>;
simple-audio-card,frame-master = <&dailink0_master>;
- simple-audio-card,widgets =
+ simple-audio-card,widgets =
"Microphone", "Microphone Jack",
"Headphone", "Headphone Jack";
simple-audio-card,routing =
label = "c20-v4:orange:wan";
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
-
+
wlan5g {
label = "c20-v4:green:wlan5g";
gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
};
- /* Unclear if this is the correct gpio setup; the USB ports are
- unpopulated on a stock BR-6475nD, even though the hardware exists
- and the headers are there. */
+ /*
+ * Unclear if this is the correct gpio setup; the USB ports are
+ * unpopulated on a stock BR-6475nD, even though the hardware exists
+ * and the headers are there.
+ */
/*
gpio_export {
compatible = "gpio-export";
gpio-export {
compatible = "gpio-export";
- // Used to enable power-over-ethernet passthrough from port0 to port1.
- // Disable passthrough by default to prevent accidental equipment damage.
+ /*
+ * Used to enable power-over-ethernet passthrough from port0 to port1.
+ * Disable passthrough by default to prevent accidental equipment damage.
+ */
poe {
gpio-export,name = "poe-passthrough";
- gpio-export,output = <1>; // OUT_INIT_HIGH
- gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; // GPIO 11, ACTIVE_LOW
+ gpio-export,output = <1>;
+ gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
};
gpio-leds {
compatible = "gpio-leds";
- // The following leds are defined in the ArcOS firmware, but reportedly
- // not present in the Freestation5 device.
+ /*
+ * The following leds are defined in the ArcOS firmware, but reportedly
+ * not present in the Freestation5 device.
+ */
wifi {
label = "freestation5:unknown:wifi";
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>;
};
- BTN_1 {
+ BTN_1 {
label = "BTN_1";
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
linux,code = <BTN_1>;
&gpio2 {
status = "okay";
};
-
+
&gpio3 {
status = "okay";
};
};
factory: partition@40000 {
- label = "factory";
- reg = <0x40000 0x10000>;
- read-only;
+ label = "factory";
+ reg = <0x40000 0x10000>;
+ read-only;
};
partition@50000 {
- label = "firmware";
- reg = <0x50000 0xfb0000>;
+ label = "firmware";
+ reg = <0x50000 0xfb0000>;
};
};
};
linux,code = <BTN_0>;
};
- BTN_1 {
+ BTN_1 {
label = "BTN_1";
gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
linux,code = <BTN_1>;
&gpio2 {
status = "okay";
};
-
+
&gpio3 {
status = "okay";
};
linux,code = <BTN_0>;
};
- BTN_1 {
+ BTN_1 {
label = "BTN_1";
gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
linux,code = <BTN_1>;
&gpio2 {
status = "okay";
};
-
+
&gpio3 {
status = "okay";
};
};
};
- gpio-keys-polled {
- compatible = "gpio-keys-polled";
- poll-interval = <20>;
-
- reset {
- label = "reset";
- gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RESTART>;
- };
+ gpio-keys-polled {
+ compatible = "gpio-keys-polled";
+ poll-interval = <20>;
+
+ reset {
+ label = "reset";
+ gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
+ };
};
};
};
&gpio0 {
- status = "okay";
+ status = "okay";
};
&gpio1 {
- status = "okay";
+ status = "okay";
};
&i2c {
- status = "okay";
+ status = "okay";
};
&uart {
- status = "okay";
- reset-names = "gpio uartf";
+ status = "okay";
+ reset-names = "gpio uartf";
};
&pinctrl {
label = "firmware";
reg = <0x50000 0xfb0000>;
};
-
};
};
reg = <0xf000 0x71000>;
read-only;
};
-
};
w25q128@1 {
/ {
compatible = "olimex,rt5350f-olinuxino", "ralink,rt5350-soc";
- aliases {
- serial0 = &uartlite;
- serial1 = &uart;
- };
+ aliases {
+ serial0 = &uartlite;
+ serial1 = &uart;
+ };
};
label = "firmware";
reg = <0x50000 0xfb0000>;
};
-
};
};
compatible = "gpio-keys-polled";
poll-interval = <20>;
- reset {
- label = "reset";
- gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RESTART>;
- };
-
- wps {
- label = "wps";
- gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_WPS_BUTTON>;
- };
+ reset {
+ label = "reset";
+ gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
+ };
+
+ wps {
+ label = "wps";
+ gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
+ };
};
gpio_export {
};
&spi0 {
- /* This board has 2Mb spi flash soldered in and visible
- from manufacturer's firmware.
- But this SoC shares spi and nand pins,
- and current driver does't handle this sharing well */
+ /*
+ * This board has 2Mb spi flash soldered in and visible
+ * from manufacturer's firmware.
+ * But this SoC shares spi and nand pins,
+ * and current driver doesn't handle this sharing well
+ */
status = "disabled";
m25p80@0 {
gpio-leds {
compatible = "gpio-leds";
- // Only USB LED is connected to GPIO.
- // All of other LEDs are connected directly to
- // switch, WiFi chip, Vcc, so they are not controllable
- // via GPIO
-
usb {
label = "w2914nsv2:green:usb";
gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
};
&i2c {
- status = "okay";
+ status = "okay";
};
&spi0 {
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
-
+
scm1 {
label = "SCM1";
gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
&pinctrl {
state_default: pinctrl0 {
gpio {
- ralink,group = "rgmii2", "mdio", "wdt";
+ ralink,group = "rgmii2", "mdio", "wdt";
ralink,function = "gpio";
};
};
&pcie {
status = "okay";
- // WRC-1167GHBK2-S has MT7615D for 2.4/5 GHz wifi,
- // but it's not supported in OpenWrt.
+ /*
+ * WRC-1167GHBK2-S has MT7615D for 2.4/5 GHz wifi,
+ * but it's not supported in OpenWrt.
+ */
};
&xhci {
&pcie {
status = "okay";
- // WRC-2533GST has MT7615 for 2.4/5 GHz wifi,
- // but it's not supported in OpenWrt.
+ /* WRC-2533GST has MT7615 for 2.4/5 GHz wifi, but it's not supported */
};
&xhci {
label = "wrtnode:blue:indicator";
gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
};
- };
+ };
};
&pinctrl {
label = "wrtnode:blue:indicator";
gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
};
- };
+ };
};
&pinctrl {
};
};
};
-
+
&gpio0 {
status = "okay";
};
ieee80211-freq-limit = <5000000 6000000>;
};
};
-
+
&wmac {
ralink,mtd-eeprom = <&factory 0>;
pinctrl-names = "default";
gpio_export {
compatible = "gpio-export";
#size-cells = <0>;
- /* GPIO 54、55、56 USB1、2、3 */
+
usb0 {
gpio-export,name = "usb0";
- gpio-export,output = <1>; // GPIOF_OUT_INIT_HIGH
- gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>; // GPIO2:40+14=GPIO 54
+ gpio-export,output = <1>;
+ gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>;
};
usb1 {
gpio-export,name = "usb1";
};
cpc: cpc@1fbf0000 {
- compatible = "mtk,mt7621-cpc";
- reg = <0x1fbf0000 0x8000>;
+ compatible = "mtk,mt7621-cpc";
+ reg = <0x1fbf0000 0x8000>;
};
mc: mc@1fbf8000 {
- compatible = "mtk,mt7621-mc";
- reg = <0x1fbf8000 0x8000>;
+ compatible = "mtk,mt7621-mc";
+ reg = <0x1fbf8000 0x8000>;
};
uartlite: uartlite@c00 {