ipq807x: add support for loading Aquantia FW from NVMEM for NBG7815
authorChristian Marangi <ansuelsmth@gmail.com>
Thu, 25 Jan 2024 21:20:27 +0000 (22:20 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Thu, 25 Jan 2024 21:20:27 +0000 (22:20 +0100)
Add support for loading Aquantia FW from NVMEM for Zyxel NBG7815
restoring correct functionality of the 10g port.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8074-nbg7815.dts

index 5fb8f3b4de4f850a56fc59af51ea415e429ffe68..1e8e50875f77e88829c929621a2f2c4806f31a46 100644 (file)
                                label = "0:ethphyfw";
                                reg = <0x650000 0x80000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+
+                                       aqr_fw: aqr-fw@0 {
+                                               /* Skip the QCOM MBN Header of 40 bytes */
+                                               reg = <0x28 0x5f402>;
+                                       };
+                               };
                        };
 
                        partition@6d0000 {
                compatible = "ethernet-phy-ieee802.3-c45";
                reg = <8>;
                reset-gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
+
+               nvmem-cells = <&aqr_fw>;
+               nvmem-cell-names = "firmware";
        };
 };