Przeglądaj źródła

ipq807x: add support for loading Aquantia FW from NVMEM for NBG7815

Add support for loading Aquantia FW from NVMEM for Zyxel NBG7815
restoring correct functionality of the 10g port.

Signed-off-by: Christian Marangi <[email protected]>
Christian Marangi 1 rok temu
rodzic
commit
7ed1cca8d6

+ 12 - 0
target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8074-nbg7815.dts

@@ -234,6 +234,15 @@
 				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 {
@@ -292,6 +301,9 @@
 		compatible = "ethernet-phy-ieee802.3-c45";
 		reg = <8>;
 		reset-gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
+
+		nvmem-cells = <&aqr_fw>;
+		nvmem-cell-names = "firmware";
 	};
 };