compatible = "ethernet-phy-id004d.d101";
reg = <28>;
reset-gpios = <&tlmm 44 GPIO_ACTIVE_LOW>;
+
+ leds {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ led@0 {
+ reg = <0>;
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_WAN;
+ default-state = "keep";
+ };
+
+ led@1 {
+ reg = <1>;
+ color = <LED_COLOR_ID_YELLOW>;
+ function = LED_FUNCTION_WAN;
+ default-state = "keep";
+ };
+ };
};
};
&switch {
status = "okay";
- switch_cpu_bmp = <0x1>; /* cpu port bitmap */
- switch_lan_bmp = <0x3e>; /* lan port bitmap */
- switch_wan_bmp = <0x40>; /* wan port bitmap */
- switch_mac_mode = <0xb>; /* mac mode for uniphy instance0*/
- switch_mac_mode1 = <0xff>; /* mac mode for uniphy instance1*/
- switch_mac_mode2 = <0xc>; /* mac mode for uniphy instance2*/
- bm_tick_mode = <0>; /* bm tick mode */
- tm_tick_mode = <0>; /* tm tick mode */
+ switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>; /* lan port bitmap */
+ switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
+ switch_mac_mode = <MAC_MODE_QSGMII>; /* mac mode for uniphy instance0*/
+ switch_mac_mode2 = <MAC_MODE_SGMII_PLUS>; /* mac mode for uniphy instance2*/
qcom,port_phyinfo {
- port@0 {
+ port@1 {
port_id = <1>;
phy_address = <0>;
};
- port@1 {
+ port@2 {
port_id = <2>;
phy_address = <1>;
};
- port@2 {
+ port@3 {
port_id = <3>;
phy_address = <2>;
};
- port@3 {
+ port@4 {
port_id = <4>;
phy_address = <3>;
};
- port@5 {
+ port@6 {
port_id = <6>;
phy_address = <28>;
port_mac_sel = "QGMAC_PORT";