| ofs | hex dump | ascii |
|---|
| 0000 | 69 63 6e 73 00 01 7c 2f 69 73 33 32 00 00 02 99 00 ff 8b 00 07 ff ff 00 00 2b 7b 97 96 81 97 09 | icns..|/is32.............+{..... |
| 0020 | 79 2a 00 00 ff ff 00 00 84 1a 83 00 6c 19 81 00 00 ff ff 00 00 95 00 31 31 30 2f 2e 2d 00 94 00 | y*..........l..........110/.-... |
| 0040 | 00 ff ff 00 00 94 00 2f 2e 2d 2d 2b 2a 00 92 00 00 ff ff 00 00 91 00 2c 2b 2b 29 28 27 00 90 00 | ......./.--+*..........,++)('... |
| 0060 | 00 ff ff 00 00 90 00 29 28 27 26 25 23 00 8e 00 00 ff ff 00 00 8d 00 26 24 24 23 21 20 00 8a 00 | .......)('&%#..........&$$#!.... |
| 0080 | 00 ff ff 00 00 87 00 22 21 20 1f 1e 1d 00 85 00 00 ff ff 00 00 85 00 1f 1e 1d 80 1c 0b 00 81 00 | ......."!....................... |
| 00a0 | 00 ff ff 00 00 83 01 1c 1c 81 1b 09 00 7e 00 00 ff ff 00 00 80 00 83 1b 08 00 7b 00 00 ff ff 00 | .............~............{..... |
| 00c0 | 00 7b 85 00 18 77 00 00 ff ff 00 00 6f 41 00 02 2a 29 04 00 3e 6a 00 00 ff ff 00 00 26 75 83 7e | .{...w......oA..*)..>j......&u.~ |
| 00e0 | 05 75 26 00 00 ff ff 8b 00 00 ff 00 ff 8b 00 07 ff ff 00 00 2b 7b 97 96 81 97 09 79 2a 00 00 ff | .u&.................+{.....y*... |
| 0100 | ff 00 00 84 1a 83 00 6c 19 81 00 00 ff ff 00 00 95 00 31 31 30 2f 2e 2d 00 94 00 00 ff ff 00 00 | .......l..........110/.-........ |
| 0120 | 94 00 2f 2e 2d 2d 2b 2a 00 92 00 00 ff ff 00 00 91 00 2c 2b 2b 29 28 27 00 90 00 00 ff ff 00 00 | ../.--+*..........,++)('........ |
| 0140 | 90 00 29 28 27 26 25 23 00 8e 00 00 ff ff 00 00 8d 00 26 24 24 23 21 20 00 8a 00 00 ff ff 00 00 | ..)('&%#..........&$$#!......... |
| 0160 | 87 00 22 21 20 1f 1e 1d 00 85 00 00 ff ff 00 00 85 00 1f 1e 1d 80 1c 0b 00 81 00 00 ff ff 00 00 | .."!............................ |
| 0180 | 83 01 1c 1c 81 1b 09 00 7e 00 00 ff ff 00 00 80 00 83 1b 08 00 7b 00 00 ff ff 00 00 7b 85 00 18 | ........~............{......{... |
| 01a0 | 77 00 00 ff ff 00 00 6f 41 00 02 29 29 03 00 3e 6a 00 00 ff ff 00 00 26 75 83 7e 05 75 26 00 00 | w......oA..))..>j......&u.~.u&.. |
| 01c0 | ff ff 8b 00 00 ff 00 ff 8b 00 07 ff ff 00 00 2b 7b 97 96 81 97 09 79 2a 00 00 ff ff 00 00 84 1a | ...............+{.....y*........ |
| 01e0 | 83 00 6c 19 81 00 00 ff ff 00 00 95 00 31 31 30 2f 2e 2d 00 94 00 00 ff ff 00 00 94 00 2f 2e 2d | ..l..........110/.-........../.- |
| 0200 | 2d 2b 2a 00 92 00 00 ff ff 00 00 91 00 2c 2b 2b 29 28 27 00 90 00 00 ff ff 00 00 90 00 29 28 27 | -+*..........,++)('..........)(' |
| 0220 | 26 25 23 00 8e 00 00 ff ff 00 00 8d 00 26 24 24 23 21 20 00 8a 00 00 ff ff 00 00 87 00 22 21 20 | &%#..........&$$#!..........."!. |
| 0240 | 1f 1e 1d 00 85 00 00 ff ff 00 00 85 00 1f 1e 1d 80 1c 0b 00 81 00 00 ff ff 00 00 83 01 1c 1c 81 | ................................ |
| 0260 | 1b 09 00 7e 00 00 ff ff 00 00 80 00 83 1b 08 00 7b 00 00 ff ff 00 00 7b 85 00 18 77 00 00 ff ff | ...~............{......{...w.... |
| 0280 | 00 00 6f 41 01 01 29 28 03 01 3e 6a 00 00 ff ff 00 00 26 75 83 7e 05 75 26 00 00 ff ff 8b 00 00 | ..oA..)(..>j......&u.~.u&....... |
| 02a0 | ff 73 38 6d 6b 00 00 01 08 00 00 2b 88 ad ad ad ad ad ad ad ad 88 2b 00 00 00 00 9d c1 ee ff ff | .s8mk......+..........+......... |
| 02c0 | ff ff ff ff ee c1 9d 00 00 00 00 ad f7 ff ff ff ff ff ff ff ff f7 ad 00 00 00 00 ae ff ff ff ff | ................................ |
| 02e0 | ff ff ff ff ff ff ae 00 00 00 00 ae ff ff ff ff ff ff ff ff ff ff ae 00 00 00 00 af ff ff ff ff | ................................ |
| 0300 | ff ff ff ff ff ff af 00 00 00 00 af ff ff ff ff ff ff ff ff ff ff af 00 00 00 00 b0 ff ff ff ff | ................................ |
| 0320 | ff ff ff ff ff ff b0 00 00 00 00 b1 ff ff ff ff ff ff ff ff ff ff b1 00 00 00 00 b2 ff ff ff ff | ................................ |
| 0340 | ff ff ff ff ff ff b2 00 00 00 00 b2 ff ff ff ff ff ff ff ff ff ff b2 00 00 00 00 b2 ff ff ff ff | ................................ |
| 0360 | ff ff ff ff ff ff b2 00 00 00 00 b3 ff ff ff ff ff ff ff ff ff ff b3 00 00 00 00 b3 f7 ff ff ff | ................................ |
| 0380 | ff ff ff ff ff f7 b3 00 00 00 00 a0 c8 f9 ff ff ff ff ff ff f9 c8 a0 00 00 00 00 33 a2 c9 d9 d9 | ...........................3.... |
| 03a0 | d8 d8 d9 d9 c9 a2 33 00 00 69 6c 33 32 00 00 07 66 83 ff 91 4d 89 ff 03 4d 4d 5b 7b 89 87 03 7b | ......3..il32...f...M...MM[{...{ |
| 03c0 | 5b 4d 4d 89 ff 04 4d 4d 82 66 1d 87 00 04 1d 66 82 4d 4d 89 ff 13 4c 4c 86 0d 28 2c 2b 28 28 29 | [MM...MM.f.....f.MM...LL..(,+(() |
| 03e0 | 28 22 1e 1c 18 0c 0d 86 4c 4c 89 ff 13 4b 4b 85 00 2c 2e 2d 2a 2a 27 25 24 1f 1d 18 0e 00 85 4b | ("......LL...KK..,.-**'%$......K |
| 0400 | 4b 89 ff 13 4b 4b 84 00 2c 31 2f 2e 2b 27 25 24 22 1d 18 0c 00 84 4b 4b 89 ff 03 4a 4a 83 00 83 | K...KK..,1/.+'%$".....KK...JJ... |
| 0420 | 3e 02 3d 3d 35 80 2f 03 00 83 4a 4a 89 ff 03 49 49 81 05 81 3e 04 3d 3d 3c 39 2f 80 2e 03 15 81 | >.==5./...JJ...II...>.==<9/..... |
| 0440 | 49 49 89 ff 06 48 48 80 00 3e 3e 3d 80 3c 02 3a 2f 2e 80 2d 03 00 80 48 48 89 ff 0c 47 47 7e 00 | II...HH..>>=.<.:/..-...HH...GG~. |
pre { line-height: 125%; margin: 0; }
td.linenos pre { color: #000000; background-color: #f0f0f0; padding: 0 5px 0 5px; }
span.linenos { color: #000000; background-color: #f0f0f0; padding: 0 5px 0 5px; }
td.linenos pre.special { color: #000000; background-color: #ffffc0; padding: 0 5px 0 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding: 0 5px 0 5px; }
.highlight .hll { background-color: #ffffcc }
.highlight { background: #ffffff; }
.highlight .c { color: #888888 } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #008800; font-weight: bold } /* Keyword */
.highlight .ch { color: #888888 } /* Comment.Hashbang */
.highlight .cm { color: #888888 } /* Comment.Multiline */
.highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */
.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
.highlight .c1 { color: #888888 } /* Comment.Single */
.highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #333333 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #666666 } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #008800 } /* Keyword.Pseudo */
.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */
.highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */
.highlight .na { color: #336699 } /* Name.Attribute */
.highlight .nb { color: #003388 } /* Name.Builtin */
.highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */
.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
.highlight .nd { color: #555555 } /* Name.Decorator */
.highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */
.highlight .nl { color: #336699; font-style: italic } /* Name.Label */
.highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */
.highlight .py { color: #336699; font-weight: bold } /* Name.Property */
.highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */
.highlight .nv { color: #336699 } /* Name.Variable */
.highlight .ow { color: #008800 } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */
.highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */
.highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */
.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
.highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */
.highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */
.highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */
.highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */
.highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */
.highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */
.highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */
.highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */
.highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */
.highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */
.highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */
.highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */
.highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */
.highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */
.highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */
.highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */
.highlight .vc { color: #336699 } /* Name.Variable.Class */
.highlight .vg { color: #dd7700 } /* Name.Variable.Global */
.highlight .vi { color: #3333bb } /* Name.Variable.Instance */
.highlight .vm { color: #336699 } /* Name.Variable.Magic */
.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */#include "mt7621.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
compatible = "buffalo,wsr-1166dhp", "mediatek,mt7621-soc";
model = "Buffalo WSR-1166DHP";
aliases {
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
};
leds {
compatible = "gpio-leds";
internet_g {
label = "green:internet";
gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
};
router_g {
label = "green:router";
gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
};
router_o {
label = "orange:router";
gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
};
internet_o {
label = "orange:internet";
gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
};
wifi_o {
label = "orange:wifi";
gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
};
led_power: power {
label = "green:power";
gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
};
diag {
label = "orange:diag";
gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
};
wifi_g {
label = "green:wifi";
gpios = <&gpio 48 GPIO_ACTIVE_LOW>;
};
};
keys {
compatible = "gpio-keys";
power {
label = "power";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
linux,code = <KEY_POWER>;
};
reset {
label = "reset";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
aoss {
label = "aoss";
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
auto {
label = "mode";
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
linux,code = <BTN_0>;
linux,input-type = <EV_SW>;
};
ap {
label = "ap";
gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
linux,code = <BTN_0>;
linux,input-type = <EV_SW>;
};
router {
label = "router";
gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
linux,code = <BTN_0>;
linux,input-type = <EV_SW>;
};
};
gpio_poweroff {
compatible = "gpio-poweroff";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
};
&spi0 {
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot";
reg = <0x0 0x30000>;
read-only;
};
partition@30000 {
label = "u-boot-env";
reg = <0x30000 0x10000>;
read-only;
};
factory: partition@40000 {
label = "factory";
reg = <0x40000 0x10000>;
read-only;
};
partition@50000 {
compatible = "openwrt,trx";
label = "firmware";
reg = <0x50000 0xf90000>;
};
partition@fe0000 {
label = "board_data";
reg = <0xfe0000 0x20000>;
};
};
};
};
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan1";
};
port@1 {
status = "okay";
label = "lan2";
};
port@2 {
status = "okay";
label = "lan3";
};
port@3 {
status = "okay";
label = "lan4";
};
port@4 {
status = "okay";
label = "wan";
};
};
};
&state_default {
gpio {
groups = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
function = "gpio";
};
};
&pcie {
status = "okay";
};
&pcie0 {
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
};
};
&pcie1 {
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0000>;
};
};
&xhci {
status = "disabled";
};
|