30f09db23adc2843b53f8916f9d04930623484d1
[openwrt/openwrt.git] / target / linux / ipq807x / patches-5.15 / 0007-v5.17-arm64-dts-qcom-ipq8074-add-MDIO-bus.patch
1 From 036e332e29ee24396ad877cc6a1275d86a1c4b3d Mon Sep 17 00:00:00 2001
2 From: Robert Marko <robimarko@gmail.com>
3 Date: Thu, 7 Oct 2021 13:58:46 +0200
4 Subject: [PATCH] arm64: dts: qcom: ipq8074: add MDIO bus
5
6 IPQ8074 uses an IPQ4019 compatible MDIO controller that is already
7 supported in the kernel, so add the DT node in order to use it.
8
9 Signed-off-by: Robert Marko <robimarko@gmail.com>
10 Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
11 Link: https://lore.kernel.org/r/20211007115846.26255-1-robimarko@gmail.com
12 ---
13 arch/arm64/boot/dts/qcom/ipq8074.dtsi | 12 ++++++++++++
14 1 file changed, 12 insertions(+)
15
16 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi
17 +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
18 @@ -230,6 +230,18 @@
19 };
20 };
21
22 + mdio: mdio@90000 {
23 + compatible = "qcom,ipq4019-mdio";
24 + reg = <0x00090000 0x64>;
25 + #address-cells = <1>;
26 + #size-cells = <0>;
27 +
28 + clocks = <&gcc GCC_MDIO_AHB_CLK>;
29 + clock-names = "gcc_mdio_ahb_clk";
30 +
31 + status = "disabled";
32 + };
33 +
34 prng: rng@e3000 {
35 compatible = "qcom,prng-ee";
36 reg = <0x000e3000 0x1000>;