SHARE
TWEET

Untitled

a guest Apr 7th, 2017 32 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /dts-v1/;
  2.  
  3. #include "mt7621.dtsi"
  4.  
  5. #include <dt-bindings/gpio/gpio.h>
  6. #include <dt-bindings/input/input.h>
  7.  
  8. / {
  9.     model = "Netgear R6220";
  10.  
  11.     memory@0 {
  12.         device_type = "memory";
  13.         reg = <0x0 0x8000000>;
  14.     };
  15.  
  16.     chosen {
  17.         bootargs = "console=ttyS0,57600";
  18.     };
  19.  
  20.     gpio-leds {
  21.         compatible = "gpio-leds";
  22.  
  23.         power {
  24.             label = "r6220:green:power";
  25.             gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
  26.         };
  27.  
  28.         usb {
  29.             label = "r6220:green:usb";
  30.             gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
  31.         };
  32.  
  33.         internet {
  34.             label = "r6220:green:wan";
  35.             gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  36.         };
  37.  
  38.         wifi {
  39.             label = "r6220:green:wifi";
  40.             gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
  41.         };
  42.  
  43.         wps {
  44.             label = "r6220:green:wps";
  45.             gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  46.         };
  47.     };
  48.  
  49.     gpio-keys-polled {
  50.         compatible = "gpio-keys-polled";
  51.         #address-cells = <1>;
  52.         #size-cells = <0>;
  53.         poll-interval = <20>;
  54.  
  55.         wps {
  56.             label = "wps";
  57.             gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
  58.             linux,code = <KEY_WPS_BUTTON>;
  59.         };
  60.  
  61.         wifi {
  62.             label = "wifi";
  63.             gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
  64.             linux,code = <KEY_RFKILL>;
  65.         };
  66.  
  67.         reset {
  68.             label = "reset";
  69.             gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
  70.             linux,code = <KEY_RESTART>;
  71.         };
  72.     };
  73.  
  74.     gpio_export {
  75.         compatible = "gpio-export";
  76.         #size-cells = <0>;
  77.  
  78.         usbpower {
  79.             gpio-export,name = "usbpower";
  80.             gpio-export,output = <1>;
  81.             gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  82.         };
  83.     };
  84. };
  85.  
  86. &nand {
  87.     status = "okay";
  88.  
  89.     partition@0 {
  90.         label = "u-boot";
  91.         reg = <0x0 0x100000>;
  92.         read-only;
  93.     };
  94.  
  95.     partition@100000 {
  96.         label = "SC PID";
  97.         reg = <0x100000 0x100000>;
  98.         read-only;
  99.     };
  100.  
  101.     partition@200000 {
  102.         label = "kernel";
  103.         reg = <0x200000 0x400000>;
  104.     };
  105.  
  106.     partition@600000 {
  107.         label = "ubi";
  108.         reg = <0x600000 0x1c00000>;
  109.     };
  110.  
  111.     partition@2200000 {
  112.         label = "ENG UI";
  113.         reg = <0x2200000 0x200000>;
  114.         read-only;
  115.     };
  116.  
  117.     partition@2400000 {
  118.         label = "ML1";
  119.         reg = <0x2400000 0x200000>;
  120.         read-only;
  121.     };
  122.  
  123.     partition@2600000 {
  124.         label = "ML2";
  125.         reg = <0x2600000 0x200000>;
  126.         read-only;
  127.     };
  128.  
  129.     partition@2800000 {
  130.         label = "ML3";
  131.         reg = <0x2800000 0x200000>;
  132.         read-only;
  133.     };
  134.  
  135.     partition@2a00000 {
  136.         label = "ML4";
  137.         reg = <0x2a00000 0x200000>;
  138.         read-only;
  139.     };
  140.  
  141.     partition@2c00000 {
  142.         label = "ML5";
  143.         reg = <0x2c00000 0x200000>;
  144.         read-only;
  145.     };
  146.  
  147.     factory: partition@2e00000 {
  148.         label = "factory";
  149.         reg = <0x2e00000 0x100000>;
  150.         read-only;
  151.     };
  152.  
  153.     partition@2f00000 {
  154.         label = "SC Private Data";
  155.         reg = <0x2f00000 0x100000>;
  156.         read-only;
  157.     };
  158.  
  159.     partition@3000000 {
  160.         label = "POT";
  161.         reg = <0x3000000 0x200000>;
  162.         read-only;
  163.     };
  164.  
  165.     partition@3200000 {
  166.         label = "Traffic Meter";
  167.         reg = <0x3200000 0x200000>;
  168.         read-only;
  169.     };
  170.  
  171.     partition@3400000 {
  172.         label = "DPF";
  173.         reg = <0x3400000 0x200000>;
  174.         read-only;
  175.     };
  176.  
  177.     partition@3600000 {
  178.         label = "SC Nvram";
  179.         reg = <0x3600000 0x200000>;
  180.         read-only;
  181.     };
  182.  
  183.     partition@3800000 {
  184.         label = "Ralink Nvram";
  185.         reg = <0x3800000 0x200000>;
  186.         read-only;
  187.     };
  188.  
  189.     partition@3a00000 {
  190.         label = "Ralink Reserved";
  191.         reg = <0x3a00000 0x200000>;
  192.         read-only;
  193.     };
  194.  
  195.     partition@3c00000 {
  196.         label = "ML6";
  197.         reg = <0x3c00000 0x200000>;
  198.         read-only;
  199.     };
  200.  
  201.     partition@3e00000 {
  202.         label = "Upgrade Flag";
  203.         reg = <0x3e00000 0x100000>;
  204.         read-only;
  205.     };
  206.  
  207.     partition@4000000 {
  208.         label = "Reserved Block3";
  209.         reg = <0x4000000 0x200000>;
  210.         read-only;
  211.     };
  212.  
  213.     partition@4200000 {
  214.         label = "Reserved Block4";
  215.         reg = <0x4200000 0x3c00000>;
  216.     };
  217. };
  218.  
  219. &pcie {
  220.     status = "okay";
  221.  
  222.     pcie0 {
  223.         mt76@0,0 {
  224.             reg = <0x0000 0 0 0 0>;
  225.             device_type = "pci";
  226.             mediatek,mtd-eeprom = <&factory 0x8000>;
  227.             ieee80211-freq-limit = <5000000 6000000>;
  228.         };
  229.     };
  230.  
  231.     pcie1 {
  232.         mt76@1,0 {
  233.             reg = <0x0000 0 0 0 0>;
  234.             device_type = "pci";
  235.             mediatek,mtd-eeprom = <&factory 0x0000>;
  236.             ieee80211-freq-limit = <2400000 2500000>;
  237.         };
  238.     };
  239. };
  240.  
  241. &ethernet {
  242.     mtd-mac-address = <&factory 0x00000004>;
  243. };
  244.  
  245. &pinctrl {
  246.     state_default: pinctrl0 {
  247.         gpio {
  248.             ralink,group = "uart3", "jtag";
  249.             ralink,function = "gpio";
  250.         };
  251.     };
  252. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top