-// SPDX-License-Identifier: GPL-2.0-or-later OR MIT\r
-\r
-#include "qcom-ipq4019-xx8300.dtsi"\r
-#include <dt-bindings/leds/common.h>\r
-\r
-/ {\r
- model = "Linksys MR6350";\r
- compatible = "linksys,mr6350", "qcom,ipq4019";\r
-\r
- aliases {\r
- led-boot = &led_blue;\r
- led-failsafe = &led_red;\r
- led-running = &led_green;\r
- led-upgrade = &led_blue;\r
- serial0 = &blsp1_uart1;\r
- };\r
-\r
- // Top panel LEDs, above Linksys logo\r
- leds {\r
- compatible = "gpio-leds";\r
- \r
- led_blue: led-blue {\r
- color = <LED_COLOR_ID_BLUE>;\r
- function = LED_FUNCTION_STATUS;\r
- gpios = <&tlmm 46 GPIO_ACTIVE_LOW>;\r
- };\r
-\r
- led_red: led-red {\r
- color = <LED_COLOR_ID_RED>;\r
- function = LED_FUNCTION_STATUS;\r
- gpios = <&tlmm 47 GPIO_ACTIVE_HIGH>;\r
- panic-indicator;\r
- };\r
-\r
- led_green: led-green {\r
- color = <LED_COLOR_ID_GREEN>;\r
- function = LED_FUNCTION_STATUS;\r
- gpios = <&tlmm 49 GPIO_ACTIVE_HIGH>;\r
- };\r
- };\r
-\r
- keys {\r
- compatible = "gpio-keys";\r
-\r
- button-reset {\r
- label = "reset";\r
- linux,code = <KEY_RESTART>;\r
- gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;\r
- };\r
-\r
- button-wps {\r
- label = "wps";\r
- linux,code = <KEY_WPS_BUTTON>;\r
- gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;\r
- };\r
- };\r
-};\r
-\r
-&mdio {\r
- status = "okay";\r
- pinctrl-0 = <&mdio_pins>;\r
- pinctrl-names = "default";\r
- reset-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;\r
- reset-delay-us = <2000>;\r
- reset-post-delay-us = <5000>;\r
-};\r
- \r
-&tlmm {\r
- status = "okay";\r
-\r
- mdio_pins: mdio_pinmux {\r
- mdio {\r
- pins = "gpio6";\r
- function = "mdio";\r
- bias-pull-up;\r
- };\r
-\r
- mdc {\r
- pins = "gpio7";\r
- function = "mdc";\r
- bias-pull-up;\r
- };\r
- };\r
-};\r
-\r
-&wifi0 {\r
- status = "okay";\r
- qcom,ath10k-calibration-variant = "linksys-mr6350";\r
-};\r
-\r
-&wifi1 {\r
- status = "okay";\r
- qcom,ath10k-calibration-variant = "linksys-mr6350";\r
-};\r
-\r
-&swport1 {\r
- label = "wan";\r
-};\r
-\r
-&swport2 {\r
- label = "lan1";\r
-};\r
-\r
-&swport3 {\r
- label = "lan2";\r
-};\r
-\r
-&swport4 {\r
- label = "lan3";\r
-};\r
-\r
-&swport5 {\r
- label = "lan4";\r
-};\r
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "qcom-ipq4019-xx8300.dtsi"
+#include <dt-bindings/leds/common.h>
+
+/ {
+ model = "Linksys MR6350";
+ compatible = "linksys,mr6350", "qcom,ipq4019";
+
+ aliases {
+ led-boot = &led_blue;
+ led-failsafe = &led_red;
+ led-running = &led_green;
+ led-upgrade = &led_blue;
+ serial0 = &blsp1_uart1;
+ };
+
+ // Top panel LEDs, above Linksys logo
+ leds {
+ compatible = "gpio-leds";
+
+ led_blue: led-blue {
+ color = <LED_COLOR_ID_BLUE>;
+ function = LED_FUNCTION_STATUS;
+ gpios = <&tlmm 46 GPIO_ACTIVE_LOW>;
+ };
+
+ led_red: led-red {
+ color = <LED_COLOR_ID_RED>;
+ function = LED_FUNCTION_STATUS;
+ gpios = <&tlmm 47 GPIO_ACTIVE_HIGH>;
+ panic-indicator;
+ };
+
+ led_green: led-green {
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_STATUS;
+ gpios = <&tlmm 49 GPIO_ACTIVE_HIGH>;
+ };
+ };
+
+ keys {
+ compatible = "gpio-keys";
+
+ button-reset {
+ label = "reset";
+ linux,code = <KEY_RESTART>;
+ gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
+ };
+
+ button-wps {
+ label = "wps";
+ linux,code = <KEY_WPS_BUTTON>;
+ gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
+ };
+ };
+};
+
+&mdio {
+ status = "okay";
+ pinctrl-0 = <&mdio_pins>;
+ pinctrl-names = "default";
+ reset-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
+ reset-delay-us = <2000>;
+ reset-post-delay-us = <5000>;
+};
+
+&tlmm {
+ status = "okay";
+
+ mdio_pins: mdio_pinmux {
+ mdio {
+ pins = "gpio6";
+ function = "mdio";
+ bias-pull-up;
+ };
+
+ mdc {
+ pins = "gpio7";
+ function = "mdc";
+ bias-pull-up;
+ };
+ };
+};
+
+&wifi0 {
+ status = "okay";
+ qcom,ath10k-calibration-variant = "linksys-mr6350";
+};
+
+&wifi1 {
+ status = "okay";
+ qcom,ath10k-calibration-variant = "linksys-mr6350";
+};
+
+&swport1 {
+ label = "wan";
+};
+
+&swport2 {
+ label = "lan1";
+};
+
+&swport3 {
+ label = "lan2";
+};
+
+&swport4 {
+ label = "lan3";
+};
+
+&swport5 {
+ label = "lan4";
+};