S6: dts: setting inphy for bl204 [1/1]

PD#SWPL-183750

Problem:
setting inphy for bl204

Solution:
setting inphy for bl204

Verify:
bl201/bl204

Change-Id: Ib6f6cea6b7654151ce9940ed478f61a64f959838
Signed-off-by: qi duan <qi.duan@amlogic.com>
This commit is contained in:
qi duan
2024-09-03 13:20:46 +08:00
committed by gerrit autosubmit
parent dff6b371f2
commit a0f2be810d
13 changed files with 131 additions and 31 deletions
+16 -16
View File
@@ -702,17 +702,18 @@
mdio-parent-bus = <&mdio0>;
#address-cells = <1>;
#size-cells = <0>;
// phy_pll_mode = <3>;
phy_pll_mode = <3>;
phy_mode = <6>;
tx_amp_src = <0xFE010330>;
led_setting = <0x42>;
ext_mdio: mdio@0 {
status = "disable"
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
compatible = "snps,dwmac-mdio";
external_phy: ethernet-phy@0 {
external_phy: ethernet_phy@0 {
reg = <0>;
max-speed = <1000>;
@@ -725,19 +726,20 @@
};
};
// int_mdio: mdio@1 {
// reg = <1>;
// #address-cells = <1>;
// #size-cells = <0>;
int_mdio: mdio@1 {
status = "disable"
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;
// internal_ephy: ethernet_phy@8 {
// compatible = "ethernet-phy-id0180.3301",
// "ethernet-phy-ieee802.3-c22";
// interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
// reg = <8>;
// max-speed = <100>;
// };
// };
internal_ephy: ethernet_phy@8 {
compatible = "ethernet-phy-id0180.3301",
"ethernet-phy-ieee802.3-c22";
interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
reg = <8>;
max-speed = <100>;
};
};
};
reset: reset-controller@2000 {
@@ -1074,8 +1076,6 @@
tx-fifo-depth = <2048>;
mboxes = <&mbox_fifo S6_REE2AO_ETH>;
status = "disabled";
internal_phy = <2>;
cali_val = <0x290000>;
mdio0: mdio {
#address-cells = <1>;
#size-cells = <0>;
@@ -1457,6 +1457,9 @@
};
/*exphy setting*/
&ext_mdio {
status = "okay";
};
&ethmac {
pinctrl-0 = <&eth_pins>, <&eth_rgmii_pins>;
pinctrl-names = "default";
@@ -1464,9 +1467,14 @@
phy-mode = "rgmii";
phy-handle = <&external_phy>;
amlogic,tx-delay-ns = <2>;
internal_phy = <2>;
cali_val = <0x290000>;
};
/*inphy setting*/
//&int_mdio {
// status = "okay";
//};
//&ethmac {
// status = "okay";
// phy-handle = <&internal_ephy>;
@@ -1458,6 +1458,9 @@
};
/*exphy setting*/
&ext_mdio {
status = "okay";
};
&ethmac {
pinctrl-0 = <&eth_pins>, <&eth_rgmii_pins>;
pinctrl-names = "default";
@@ -1465,9 +1468,14 @@
phy-mode = "rgmii";
phy-handle = <&external_phy>;
amlogic,tx-delay-ns = <2>;
internal_phy = <2>;
cali_val = <0x290000>;
};
/*inphy setting*/
//&int_mdio {
// status = "okay";
//};
//&ethmac {
// status = "okay";
// phy-handle = <&internal_ephy>;
@@ -1456,6 +1456,9 @@
};
/*exphy setting*/
&ext_mdio {
status = "okay";
};
&ethmac {
pinctrl-0 = <&eth_pins>, <&eth_rgmii_pins>;
pinctrl-names = "default";
@@ -1463,9 +1466,14 @@
phy-mode = "rgmii";
phy-handle = <&external_phy>;
amlogic,tx-delay-ns = <2>;
internal_phy = <2>;
cali_val = <0x290000>;
};
/*inphy setting*/
//&int_mdio {
// status = "okay";
//};
//&ethmac {
// status = "okay";
// phy-handle = <&internal_ephy>;
@@ -1393,6 +1393,9 @@
};
/*exphy setting*/
&ext_mdio {
status = "okay";
};
&ethmac {
pinctrl-0 = <&eth_pins>, <&eth_rgmii_pins>;
pinctrl-names = "default";
@@ -1400,9 +1403,14 @@
phy-mode = "rgmii";
phy-handle = <&external_phy>;
amlogic,tx-delay-ns = <2>;
internal_phy = <2>;
cali_val = <0x290000>;
};
/*inphy setting*/
//&int_mdio {
// status = "okay";
//};
//&ethmac {
// status = "okay";
// phy-handle = <&internal_ephy>;
@@ -1418,6 +1418,9 @@
};
/*exphy setting*/
&ext_mdio {
status = "okay";
};
&ethmac {
pinctrl-0 = <&eth_pins>, <&eth_rgmii_pins>;
pinctrl-names = "default";
@@ -1425,9 +1428,14 @@
phy-mode = "rgmii";
phy-handle = <&external_phy>;
amlogic,tx-delay-ns = <2>;
internal_phy = <2>;
cali_val = <0x290000>;
};
/*inphy setting*/
//&int_mdio {
// status = "okay";
//};
//&ethmac {
// status = "okay";
// phy-handle = <&internal_ephy>;
@@ -1427,6 +1427,9 @@
};
/*exphy setting*/
&ext_mdio {
status = "okay";
};
&ethmac {
pinctrl-0 = <&eth_pins>, <&eth_rgmii_pins>;
pinctrl-names = "default";
@@ -1434,16 +1437,23 @@
phy-mode = "rgmii";
phy-handle = <&external_phy>;
amlogic,tx-delay-ns = <2>;
internal_phy = <2>;
cali_val = <0x290000>;
wol = <1>;
mdns_wkup = <1>;
};
/*inphy setting*/
//&int_mdio {
// status = "okay";
//};
//&ethmac {
// status = "okay";
// phy-handle = <&internal_ephy>;
// phy-mode = "rmii";
// internal_phy = <1>;
// mac_wol = <1>;
// mdns_wkup = <1>;
//};
&ir {
@@ -1428,6 +1428,9 @@
};
/*exphy setting*/
&ext_mdio {
status = "okay";
};
&ethmac {
pinctrl-0 = <&eth_pins>, <&eth_rgmii_pins>;
pinctrl-names = "default";
@@ -1435,9 +1438,14 @@
phy-mode = "rgmii";
phy-handle = <&external_phy>;
amlogic,tx-delay-ns = <2>;
internal_phy = <2>;
cali_val = <0x290000>;
};
/*inphy setting*/
//&int_mdio {
// status = "okay";
//};
//&ethmac {
// status = "okay";
// phy-handle = <&internal_ephy>;
@@ -1412,6 +1412,9 @@
};
/*exphy setting*/
&ext_mdio {
status = "okay";
};
&ethmac {
pinctrl-0 = <&eth_pins>, <&eth_rgmii_pins>;
pinctrl-names = "default";
@@ -1419,9 +1422,14 @@
phy-mode = "rgmii";
phy-handle = <&external_phy>;
amlogic,tx-delay-ns = <2>;
internal_phy = <2>;
cali_val = <0x290000>;
};
/*inphy setting*/
//&int_mdio {
// status = "okay";
//};
//&ethmac {
// status = "okay";
// phy-handle = <&internal_ephy>;
+24 -14
View File
@@ -1401,25 +1401,35 @@
};
/*exphy setting*/
//&ext_mdio {
// status = "okay";
//};
//&ethmac {
// pinctrl-0 = <&eth_pins>, <&eth_rgmii_pins>;
// pinctrl-names = "default";
// status = "okay";
// phy-mode = "rgmii";
// phy-handle = <&external_phy>;
// amlogic,tx-delay-ns = <2>;
// internal_phy = <2>;
// cali_val = <0x290000>;
// wol = <1>;
// mdns_wkup = <1>;
//};
/*inphy setting*/
&int_mdio {
status = "okay";
};
&ethmac {
pinctrl-0 = <&eth_pins>, <&eth_rgmii_pins>;
pinctrl-names = "default";
status = "disabled";
phy-mode = "rgmii";
phy-handle = <&external_phy>;
amlogic,tx-delay-ns = <2>;
status = "okay";
phy-handle = <&internal_ephy>;
phy-mode = "rmii";
internal_phy = <1>;
mac_wol = <1>;
mdns_wkup = <1>;
};
/*inphy setting*/
//&ethmac {
// status = "okay";
// phy-handle = <&internal_ephy>;
// phy-mode = "rmii";
// internal_phy = <1>;
//};
&ir {
status = "okay";
pinctrl-0 = <&remote_pins>;
@@ -1419,6 +1419,9 @@
};
/*exphy setting*/
&ext_mdio {
status = "okay";
};
&ethmac {
pinctrl-0 = <&eth_pins>, <&eth_rgmii_pins>;
pinctrl-names = "default";
@@ -1426,14 +1429,19 @@
phy-mode = "rgmii";
phy-handle = <&external_phy>;
amlogic,tx-delay-ns = <2>;
internal_phy = <2>;
cali_val = <0x290000>;
};
/*inphy setting*/
//&int_mdio {
// status = "okay";
//};
//&ethmac {
// status = "okay";
// phy-handle = <&internal_ephy>;
// phy-mode = "rmii";
// internal_phy = <1>;
// internal_phy = <1>;
//};
&ir {
@@ -1394,6 +1394,9 @@
};
/*exphy setting*/
&ext_mdio {
status = "okay";
};
&ethmac {
pinctrl-0 = <&eth_pins>, <&eth_rgmii_pins>;
pinctrl-names = "default";
@@ -1401,9 +1404,14 @@
phy-mode = "rgmii";
phy-handle = <&external_phy>;
amlogic,tx-delay-ns = <2>;
internal_phy = <2>;
cali_val = <0x290000>;
};
/*inphy setting*/
//&int_mdio {
// status = "okay";
//};
//&ethmac {
// status = "okay";
// phy-handle = <&internal_ephy>;
@@ -1399,6 +1399,9 @@
};
/*exphy setting*/
&ext_mdio {
status = "okay";
};
&ethmac {
pinctrl-0 = <&eth_pins>, <&eth_rgmii_pins>;
pinctrl-names = "default";
@@ -1406,9 +1409,14 @@
phy-mode = "rgmii";
phy-handle = <&external_phy>;
amlogic,tx-delay-ns = <2>;
internal_phy = <2>;
cali_val = <0x290000>;
};
/*inphy setting*/
//&int_mdio {
// status = "okay";
//};
//&ethmac {
// status = "okay";
// phy-handle = <&internal_ephy>;