ipq40xx: adapt to new Upstream QCA807x PHY driver
[openwrt/staging/jow.git] / target / linux / ipq40xx / patches-6.1 / 709-ARM-dts-qcom-ipq4019-add-QCA8075-PHY-Package-nodes.patch
1 From 5ac078c8fe18f3e8318547b8ed0ed782730c5039 Mon Sep 17 00:00:00 2001
2 From: Christian Marangi <ansuelsmth@gmail.com>
3 Date: Sat, 10 Feb 2024 22:28:27 +0100
4 Subject: [PATCH] ARM: dts: qcom: ipq4019: add QCA8075 PHY Package nodes
5
6 Add QCA8075 PHY Package nodes. The PHY nodes that were previously
7 defined never worked and actually never had a driver to correctly setup
8 these PHY. Now that we have a correct driver, correctly add the PHY
9 Package node and set the default value of 300mw for tx driver strength
10 following specification of ipq4019 SoC.
11
12 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
13 ---
14 arch/arm/boot/dts//qcom-ipq4019.dtsi | 35 +++++++++++++++---------
15 1 file changed, 22 insertions(+), 13 deletions(-)
16
17 --- a/arch/arm/boot/dts/qcom-ipq4019.dtsi
18 +++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi
19 @@ -725,24 +725,33 @@
20 reg = <0x90000 0x64>;
21 status = "disabled";
22
23 - ethphy0: ethernet-phy@0 {
24 + ethernet-phy-package@0 {
25 + #address-cells = <1>;
26 + #size-cells = <0>;
27 + compatible = "qcom,qca8075-package";
28 reg = <0>;
29 - };
30 -
31 - ethphy1: ethernet-phy@1 {
32 - reg = <1>;
33 - };
34
35 - ethphy2: ethernet-phy@2 {
36 - reg = <2>;
37 - };
38 -
39 - ethphy3: ethernet-phy@3 {
40 - reg = <3>;
41 - };
42 + qcom,tx-drive-strength-milliwatt = <300>;
43
44 - ethphy4: ethernet-phy@4 {
45 - reg = <4>;
46 + ethphy0: ethernet-phy@0 {
47 + reg = <0>;
48 + };
49 +
50 + ethphy1: ethernet-phy@1 {
51 + reg = <1>;
52 + };
53 +
54 + ethphy2: ethernet-phy@2 {
55 + reg = <2>;
56 + };
57 +
58 + ethphy3: ethernet-phy@3 {
59 + reg = <3>;
60 + };
61 +
62 + ethphy4: ethernet-phy@4 {
63 + reg = <4>;
64 + };
65 };
66 };
67