qualcommax: ipq807x: correct PHY mode for AQR
[openwrt/staging/jow.git] / target / linux / qualcommax / files / arch / arm64 / boot / dts / qcom / ipq8072-haze.dts
index ba22d16c0a6ce1ebead4717b0cdb1d2d637bae30..289680d678be0735126da28c54566858c6a4b382 100644 (file)
                ethernet2 = &dp3;
                ethernet3 = &dp2;
                label-mac-device = &dp6_syn;
+               led-boot = &led_system_blue;
+               led-failsafe = &led_system_red;
+               led-running = &led_system_green;
+               led-upgrade = &led_system_blue;
        };
 
        chosen {
                        bias-pull-up;
                };
        };
+
+       i2c_3_pins: i2c-3-state {
+               pins = "gpio46", "gpio47";
+               function = "blsp2_i2c";
+               drive-strength = <8>;
+               bias-disable;
+       };
 };
 
 &blsp1_uart5 {
        pinctrl-names = "default";
        reset-gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
 
-       qca8075_1: ethernet-phy@0 {
-               compatible = "ethernet-phy-ieee802.3-c22";
+       ethernet-phy-package@0 {
+               #address-cells = <1>;
+               #size-cells = <0>;
+               compatible = "qcom,qca8075-package";
                reg = <0>;
-       };
 
-       qca8075_2: ethernet-phy@1 {
-               compatible = "ethernet-phy-ieee802.3-c22";
-               reg = <1>;
-       };
+               qca8075_0: ethernet-phy@0 {
+                       compatible = "ethernet-phy-ieee802.3-c22";
+                       reg = <0>;
+               };
 
-       qca8075_3: ethernet-phy@2 {
-               compatible = "ethernet-phy-ieee802.3-c22";
-               reg = <2>;
-       };
+               qca8075_1: ethernet-phy@1 {
+                       compatible = "ethernet-phy-ieee802.3-c22";
+                       reg = <1>;
+               };
+
+               qca8075_2: ethernet-phy@2 {
+                       compatible = "ethernet-phy-ieee802.3-c22";
+                       reg = <2>;
+               };
 
-       qca8075_4: ethernet-phy@3 {
-               compatible = "ethernet-phy-ieee802.3-c22";
-               reg = <3>;
+               qca8075_3: ethernet-phy@3 {
+                       compatible = "ethernet-phy-ieee802.3-c22";
+                       reg = <3>;
+               };
        };
 
        aqr113c: ethernet-phy@5 {
        switch_mac_mode2 = <MAC_MODE_USXGMII>; /* 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@4 {
+               port@6 {
                        port_id = <6>;
                        phy_address = <8>;
                        compatible = "ethernet-phy-ieee802.3-c45";
 /* Dummy LAN port */
 &dp1 {
        status = "disabled";
-       phy-handle = <&qca8075_1>;
+       phy-handle = <&qca8075_0>;
        label = "lan4";
 };
 
 &dp2 {
        status = "okay";
-       phy-handle = <&qca8075_2>;
+       phy-handle = <&qca8075_1>;
        label = "lan3";
 };
 
 &dp3 {
        status = "okay";
-       phy-handle = <&qca8075_3>;
+       phy-handle = <&qca8075_2>;
        label = "lan2";
 };
 
 &dp4 {
        status = "okay";
-       phy-handle = <&qca8075_4>;
+       phy-handle = <&qca8075_3>;
        label = "lan1";
 };
 
 &dp6_syn {
        status = "okay";
        qcom,mactype = <1>;
+       phy-mode = "usxgmii";
        phy-handle = <&aqr113c>;
        label = "wan";
 };
 
        qcom,ath11k-calibration-variant = "prpl-Haze";
 };
+
+&blsp1_i2c3{
+       pinctrl-0 = <&i2c_3_pins>;
+       pinctrl-names = "default";
+       status = "okay";
+
+       led-controller@30 {
+               compatible = "ti,lp5562";
+               reg = <0x30>;
+               clock-mode = /bits/ 8 <2>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               led_system_red: chan@0 {
+                       chan-name = "red";
+                       led-cur = /bits/ 8 <0x20>;
+                       max-cur = /bits/ 8 <0x60>;
+                       color = <LED_COLOR_ID_RED>;
+                       reg = <0>;
+               };
+
+               led_system_green: chan@1 {
+                       chan-name = "green";
+                       led-cur = /bits/ 8 <0x20>;
+                       max-cur = /bits/ 8 <0x60>;
+                       color = <LED_COLOR_ID_GREEN>;
+                       reg = <1>;
+               };
+
+               led_system_blue: chan@2 {
+                       chan-name = "blue";
+                       led-cur = /bits/ 8 <0x20>;
+                       max-cur = /bits/ 8 <0x60>;
+                       color = <LED_COLOR_ID_BLUE>;
+                       reg = <2>;
+               };
+       };
+};