mirror of
https://github.com/immortalwrt/immortalwrt.git
synced 2025-08-11 06:11:53 +08:00
realtek: Zyxel GS1900-48 dts fixes
* Use SDS for phy 48/49 * Use correct link/phy settings for SFP ports * Remove read-only flag from u-boot env so fw_setenv actually works Signed-off-by: Joe Holden <jwh@zorins.us> Link: https://github.com/openwrt/openwrt/pull/19596 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:

committed by
Hauke Mehrtens

parent
a2c361c520
commit
c95a08b1c5
@ -54,7 +54,7 @@
|
|||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
};
|
};
|
||||||
|
|
||||||
sfp0: sfp-p9 {
|
sfp0: sfp-p49 {
|
||||||
compatible = "sff,sfp";
|
compatible = "sff,sfp";
|
||||||
i2c-bus = <&i2c0>;
|
i2c-bus = <&i2c0>;
|
||||||
los-gpio = <&gpio1 27 GPIO_ACTIVE_HIGH>;
|
los-gpio = <&gpio1 27 GPIO_ACTIVE_HIGH>;
|
||||||
@ -73,7 +73,7 @@
|
|||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
};
|
};
|
||||||
|
|
||||||
sfp1: sfp-p10 {
|
sfp1: sfp-p50 {
|
||||||
compatible = "sff,sfp";
|
compatible = "sff,sfp";
|
||||||
i2c-bus = <&i2c1>;
|
i2c-bus = <&i2c1>;
|
||||||
los-gpio = <&gpio1 33 GPIO_ACTIVE_HIGH>;
|
los-gpio = <&gpio1 33 GPIO_ACTIVE_HIGH>;
|
||||||
@ -121,12 +121,10 @@
|
|||||||
partition@40000 {
|
partition@40000 {
|
||||||
label = "u-boot-env";
|
label = "u-boot-env";
|
||||||
reg = <0x40000 0x10000>;
|
reg = <0x40000 0x10000>;
|
||||||
read-only;
|
|
||||||
};
|
};
|
||||||
partition@50000 {
|
partition@50000 {
|
||||||
label = "u-boot-env2";
|
label = "u-boot-env2";
|
||||||
reg = <0x50000 0x10000>;
|
reg = <0x50000 0x10000>;
|
||||||
read-only;
|
|
||||||
};
|
};
|
||||||
partition@60000 {
|
partition@60000 {
|
||||||
label = "jffs";
|
label = "jffs";
|
||||||
@ -214,8 +212,8 @@
|
|||||||
EXTERNAL_PHY(47)
|
EXTERNAL_PHY(47)
|
||||||
|
|
||||||
/* RTL8393 Internal SerDes */
|
/* RTL8393 Internal SerDes */
|
||||||
INTERNAL_PHY(48)
|
INTERNAL_PHY_SDS(48, 12)
|
||||||
INTERNAL_PHY(49)
|
INTERNAL_PHY_SDS(49, 13)
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -282,31 +280,19 @@
|
|||||||
port@48 {
|
port@48 {
|
||||||
reg = <48>;
|
reg = <48>;
|
||||||
label = "lan49";
|
label = "lan49";
|
||||||
phy-mode = "sgmii";
|
phy-mode = "1000base-x";
|
||||||
phy-handle = <&phy48>;
|
phy-handle = <&phy48>;
|
||||||
|
managed = "in-band-status";
|
||||||
sfp = <&sfp0>;
|
sfp = <&sfp0>;
|
||||||
|
|
||||||
fixed-link {
|
|
||||||
speed = <1000>;
|
|
||||||
full-duplex;
|
|
||||||
pause;
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
port@49 {
|
port@49 {
|
||||||
reg = <49>;
|
reg = <49>;
|
||||||
label = "lan50";
|
label = "lan50";
|
||||||
phy-mode = "sgmii";
|
phy-mode = "1000base-x";
|
||||||
phy-handle = <&phy49>;
|
phy-handle = <&phy49>;
|
||||||
|
managed = "in-band-status";
|
||||||
sfp = <&sfp1>;
|
sfp = <&sfp1>;
|
||||||
|
|
||||||
fixed-link {
|
|
||||||
speed = <1000>;
|
|
||||||
full-duplex;
|
|
||||||
pause;
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* CPU-Port */
|
/* CPU-Port */
|
||||||
|
Reference in New Issue
Block a user