Advertisement
Guest User

Untitled

a guest
May 21st, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.24 KB | None | 0 0
  1. /dts-v1/;
  2.  
  3. #include "mt7621.dtsi"
  4. #include <dt-bindings/input/input.h>
  5. #include <dt-bindings/gpio/gpio.h>
  6.  
  7. / {
  8.     compatible = "asus,rt-ac57u", "mediatek,mt7621-soc";
  9.     model = "Asus RT-AC57U";
  10.  
  11.     aliases {
  12.         led-boot = &led_power;
  13.         led-failsafe = &led_power;
  14.         led-running = &led_power;
  15.         led-upgrade = &led_power;
  16.     };
  17.  
  18.     memory@0 {
  19.         device_type = "memory";
  20.         reg = <0x0 0x8000000>;
  21.     };
  22.  
  23.     chosen {
  24.         bootargs = "console=ttyS0,57600";
  25.     };
  26.  
  27.     leds {
  28.         compatible = "gpio-leds";
  29.  
  30.         led_power: power {
  31.             label = "rt-ac57u:blue:power";
  32.             gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
  33.         };
  34.  
  35.         usb {
  36.             label = "rt-ac57u:blue:usb";
  37.             gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
  38.             trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
  39.             linux,default-trigger = "usbport";
  40.         };
  41.     };
  42.  
  43.     keys {
  44.         compatible = "gpio-keys-polled";
  45.         poll-interval = <20>;
  46.         reset {
  47.             label = "reset";
  48.             gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
  49.             linux,code = <KEY_RESTART>;
  50.         };
  51.  
  52.         wps {
  53.             label = "wps";
  54.             gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
  55.             linux,code = <KEY_WPS_BUTTON>;
  56.         };
  57.     };
  58. };
  59.  
  60. &spi0 {
  61.     status = "okay";
  62.  
  63.     m25p80@0 {
  64.         compatible = "jedec,spi-nor";
  65.         reg = <0>;
  66.         spi-max-frequency = <10000000>;
  67.  
  68.         partitions {
  69.             compatible = "fixed-partitions";
  70.             #address-cells = <1>;
  71.             #size-cells = <1>;
  72.  
  73.             partition@0 {
  74.                 label = "bootloader";
  75.                 reg = <0x0 0x30000>;
  76.                 read-only;
  77.             };
  78.  
  79.             partition@30000 {
  80.                 label = "nvram";
  81.                 reg = <0x30000 0x10000>;
  82.             };
  83.  
  84.             factory: partition@40000 {
  85.                 label = "factory";
  86.                 reg = <0x40000 0x10000>;
  87.                 read-only;
  88.             };
  89.  
  90.             partition@50000 {
  91.                 compatible = "denx,uimage";
  92.                 label = "firmware";
  93.                 reg = <0x50000 0xfb0000>;
  94.             };
  95.         };
  96.     };
  97. };
  98.  
  99. &pcie {
  100.     status = "okay";
  101. };
  102.  
  103. &pcie0 {
  104.     mt76@0,0 {
  105.         reg = <0x0000 0 0 0 0>;
  106.         mediatek,mtd-eeprom = <&factory 0x8000>;
  107.         ieee80211-freq-limit = <5000000 6000000>;
  108.     };
  109. };
  110.  
  111. &pcie1 {
  112.     mt76@0,0 {
  113.         reg = <0x0000 0 0 0 0>;
  114.         mediatek,mtd-eeprom = <&factory 0x0000>;
  115.     };
  116. };
  117.  
  118. &ethernet {
  119.     mtd-mac-address = <&factory 0x4>;
  120.     mediatek,portmap = "wllll";
  121. };
  122.  
  123. &pinctrl {
  124.     state_default: pinctrl0 {
  125.         gpio {
  126.             ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
  127.             ralink,function = "gpio";
  128.         };
  129.     };
  130. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement