forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/drivers/staging/mt7621-dts/gbpc1.dts
....@@ -11,7 +11,8 @@
1111
1212 memory@0 {
1313 device_type = "memory";
14
- reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
14
+ reg = <0x00000000 0x1c000000>,
15
+ <0x20000000 0x04000000>;
1516 };
1617
1718 chosen {
....@@ -37,24 +38,16 @@
3738 gpio-leds {
3839 compatible = "gpio-leds";
3940
40
- system {
41
- label = "gb-pc1:green:system";
41
+ power {
42
+ label = "green:power";
4243 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
44
+ linux,default-trigger = "default-on";
4345 };
4446
45
- status {
46
- label = "gb-pc1:green:status";
47
+ system {
48
+ label = "green:system";
4749 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";
5851 };
5952 };
6053 };
....@@ -72,6 +65,7 @@
7265 compatible = "jedec,spi-nor";
7366 reg = <0>;
7467 spi-max-frequency = <50000000>;
68
+ broken-flash-reset;
7569
7670 partition@0 {
7771 label = "u-boot";
....@@ -93,9 +87,8 @@
9387
9488 partition@50000 {
9589 label = "firmware";
96
- reg = <0x50000 0x1FB0000>;
90
+ reg = <0x50000 0x1fb0000>;
9791 };
98
-
9992 };
10093 };
10194
....@@ -113,30 +106,35 @@
113106 &pcie {
114107 pinctrl-names = "default";
115108 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>;
116113 status = "okay";
117114 };
118115
119
-&ethernet {
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>;
126119
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";
131124 };
132125 };
133126 };
134127
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";
140138 };
141139 };
142140 };