liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

mt7621_zyxel_nwa50ax.dtsi (980B)


      1 #include "mt7621_zyxel_nwa-ax-for-ab.dtsi"
      2 
      3 #include <dt-bindings/gpio/gpio.h>
      4 #include <dt-bindings/input/input.h>
      5 
      6 / {
      7 	compatible = "zyxel,nwa50ax", "mediatek,mt7621-soc";
      8 	model = "ZyXEL NWA50AX";
      9 
     10 	aliases {
     11 		led-boot = &led_system_green;
     12 		led-failsafe = &led_system_red;
     13 		led-running = &led_system_green;
     14 		led-upgrade = &led_system_red;
     15 	};
     16 
     17 	leds {
     18 		compatible = "gpio-leds";
     19 
     20 		led_system_red: system_red {
     21 			label = "red:system";
     22 			gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
     23 		};
     24 
     25 		led_system_green: system_green {
     26 			label = "green:system";
     27 			gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
     28 		};
     29 
     30 		system_blue {
     31 			label = "blue:system";
     32 			gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
     33 		};
     34 	};
     35 
     36 	keys {
     37 		compatible = "gpio-keys";
     38 
     39 		reset {
     40 			label = "reset";
     41 			gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
     42 			linux,code = <KEY_RESTART>;
     43 		};
     44 	};
     45 };
     46 
     47 &ethernet {
     48 	pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
     49 };
     50 
     51 &state_default {
     52 	gpio {
     53 		groups = "uart3", "rgmii2";
     54 		function = "gpio";
     55 	};
     56 };