.. | .. |
---|
11 | 11 | |
---|
12 | 12 | memory@0 { |
---|
13 | 13 | device_type = "memory"; |
---|
14 | | - reg = <0x0 0x1c000000>, <0x20000000 0x4000000>; |
---|
| 14 | + reg = <0x00000000 0x1c000000>, |
---|
| 15 | + <0x20000000 0x04000000>; |
---|
15 | 16 | }; |
---|
16 | 17 | |
---|
17 | 18 | chosen { |
---|
.. | .. |
---|
37 | 38 | gpio-leds { |
---|
38 | 39 | compatible = "gpio-leds"; |
---|
39 | 40 | |
---|
40 | | - system { |
---|
41 | | - label = "gb-pc1:green:system"; |
---|
| 41 | + power { |
---|
| 42 | + label = "green:power"; |
---|
42 | 43 | gpios = <&gpio 6 GPIO_ACTIVE_LOW>; |
---|
| 44 | + linux,default-trigger = "default-on"; |
---|
43 | 45 | }; |
---|
44 | 46 | |
---|
45 | | - status { |
---|
46 | | - label = "gb-pc1:green:status"; |
---|
| 47 | + system { |
---|
| 48 | + label = "green:system"; |
---|
47 | 49 | gpios = <&gpio 8 GPIO_ACTIVE_LOW>; |
---|
48 | | - }; |
---|
49 | | - |
---|
50 | | - lan1 { |
---|
51 | | - label = "gb-pc1:green:lan1"; |
---|
52 | | - gpios = <&gpio 24 GPIO_ACTIVE_LOW>; |
---|
53 | | - }; |
---|
54 | | - |
---|
55 | | - lan2 { |
---|
56 | | - label = "gb-pc1:green:lan2"; |
---|
57 | | - gpios = <&gpio 25 GPIO_ACTIVE_LOW>; |
---|
| 50 | + linux,default-trigger = "disk-activity"; |
---|
58 | 51 | }; |
---|
59 | 52 | }; |
---|
60 | 53 | }; |
---|
.. | .. |
---|
72 | 65 | compatible = "jedec,spi-nor"; |
---|
73 | 66 | reg = <0>; |
---|
74 | 67 | spi-max-frequency = <50000000>; |
---|
| 68 | + broken-flash-reset; |
---|
75 | 69 | |
---|
76 | 70 | partition@0 { |
---|
77 | 71 | label = "u-boot"; |
---|
.. | .. |
---|
93 | 87 | |
---|
94 | 88 | partition@50000 { |
---|
95 | 89 | label = "firmware"; |
---|
96 | | - reg = <0x50000 0x1FB0000>; |
---|
| 90 | + reg = <0x50000 0x1fb0000>; |
---|
97 | 91 | }; |
---|
98 | | - |
---|
99 | 92 | }; |
---|
100 | 93 | }; |
---|
101 | 94 | |
---|
.. | .. |
---|
113 | 106 | &pcie { |
---|
114 | 107 | pinctrl-names = "default"; |
---|
115 | 108 | pinctrl-0 = <&pcie_pins>; |
---|
| 109 | + |
---|
| 110 | + reset-gpios = <&gpio 19 GPIO_ACTIVE_LOW>, |
---|
| 111 | + <&gpio 8 GPIO_ACTIVE_LOW>, |
---|
| 112 | + <&gpio 7 GPIO_ACTIVE_LOW>; |
---|
116 | 113 | status = "okay"; |
---|
117 | 114 | }; |
---|
118 | 115 | |
---|
119 | | -ðernet { |
---|
120 | | - //mtd-mac-address = <&factory 0xe000>; |
---|
121 | | - gmac1: mac@0 { |
---|
122 | | - compatible = "mediatek,eth-mac"; |
---|
123 | | - reg = <0>; |
---|
124 | | - phy-handle = <&phy1>; |
---|
125 | | - }; |
---|
| 116 | +&pinctrl { |
---|
| 117 | + pinctrl-names = "default"; |
---|
| 118 | + pinctrl-0 = <&state_default>; |
---|
126 | 119 | |
---|
127 | | - mdio-bus { |
---|
128 | | - phy1: ethernet-phy@1 { |
---|
129 | | - reg = <1>; |
---|
130 | | - phy-mode = "rgmii"; |
---|
| 120 | + state_default: state-default { |
---|
| 121 | + gpio-pinmux { |
---|
| 122 | + groups = "rgmii2", "uart3", "wdt"; |
---|
| 123 | + function = "gpio"; |
---|
131 | 124 | }; |
---|
132 | 125 | }; |
---|
133 | 126 | }; |
---|
134 | 127 | |
---|
135 | | -&pinctrl { |
---|
136 | | - state_default: pinctrl0 { |
---|
137 | | - gpio { |
---|
138 | | - ralink,group = "wdt", "rgmii2", "uart3"; |
---|
139 | | - ralink,function = "gpio"; |
---|
| 128 | +&switch0 { |
---|
| 129 | + ports { |
---|
| 130 | + port@0 { |
---|
| 131 | + status = "okay"; |
---|
| 132 | + label = "ethblack"; |
---|
| 133 | + }; |
---|
| 134 | + |
---|
| 135 | + port@4 { |
---|
| 136 | + status = "okay"; |
---|
| 137 | + label = "ethblue"; |
---|
140 | 138 | }; |
---|
141 | 139 | }; |
---|
142 | 140 | }; |
---|