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 gongwei.chen
parent 299b19a908
commit 19e49aaa3e
13 changed files with 143 additions and 36 deletions
+16 -16
View File
@@ -699,17 +699,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>;
@@ -722,19 +723,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 {
@@ -1071,8 +1073,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>;
@@ -1449,6 +1449,9 @@
};
/*exphy setting*/
&ext_mdio {
status = "okay";
};
&ethmac {
pinctrl-0 = <&eth_pins>, <&eth_rgmii_pins>;
pinctrl-names = "default";
@@ -1456,9 +1459,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>;
@@ -1389,6 +1389,9 @@
};
/*exphy setting*/
&ext_mdio {
status = "okay";
};
&ethmac {
pinctrl-0 = <&eth_pins>, <&eth_rgmii_pins>;
pinctrl-names = "default";
@@ -1396,9 +1399,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>;
@@ -1391,6 +1391,9 @@
};
/*exphy setting*/
&ext_mdio {
status = "okay";
};
&ethmac {
pinctrl-0 = <&eth_pins>, <&eth_rgmii_pins>;
pinctrl-names = "default";
@@ -1398,9 +1401,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>;
@@ -1401,6 +1401,9 @@
};
/*exphy setting*/
&ext_mdio {
status = "okay";
};
&ethmac {
pinctrl-0 = <&eth_pins>, <&eth_rgmii_pins>;
pinctrl-names = "default";
@@ -1408,9 +1411,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>;
@@ -1428,6 +1428,9 @@
};
/*exphy setting*/
&ext_mdio {
status = "okay";
};
&ethmac {
pinctrl-0 = <&eth_pins>, <&eth_rgmii_pins>;
pinctrl-names = "default";
@@ -1435,16 +1438,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>;
+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>;
@@ -1420,6 +1420,9 @@
};
/*exphy setting*/
&ext_mdio {
status = "okay";
};
&ethmac {
pinctrl-0 = <&eth_pins>, <&eth_rgmii_pins>;
pinctrl-names = "default";
@@ -1427,14 +1430,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 {
@@ -1395,6 +1395,9 @@
};
/*exphy setting*/
&ext_mdio {
status = "okay";
};
&ethmac {
pinctrl-0 = <&eth_pins>, <&eth_rgmii_pins>;
pinctrl-names = "default";
@@ -1402,9 +1405,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>;
@@ -922,12 +922,9 @@
compatible = "amlogic,tlc59116_led";
reg = <0x60>;
status = "okay";
<<<<<<< HEAD:arch/arm64/boot/dts/amlogic/sc2_s905x4_ah212_debian.dts
=======
vcc5v-supply = <&vcc5v_reg>;
reset_pin-gpios = <&gpio GPIOH_7 GPIO_ACTIVE_HIGH>;
};
>>>>>>> 7e53e9c214 (Audio: add the suspend/resume function for sy602x [1/1]):arch/arm64/boot/dts/amlogic/s7d_s905x5m_bm201_linux.dts
led0 {
default_colors = <0 0 0>;
@@ -1613,14 +1610,32 @@
status = "okay";
};
/*exphy setting*/
&ext_mdio {
status = "okay";
};
&ethmac {
pinctrl-0 = <&eth_led_pins>;
pinctrl-names = "default";
status = "okay";
phy-handle = <&internal_ephy>;
phy-mode = "rmii";
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>;
//};
&ir {
status = "okay";
pinctrl-0 = <&remote_pins>;