André Valentin 952c738c0f
ipq807x: add nvmem uboot-env support
Enabling kernel symbol CONFIG_NVMEM_U_BOOT_ENV allows to use u-boot
environement variable ethaddr with nvmen. That way it is possible to assign
the MAC address to the ethernet device driver.

Example of usage in dts:
....
	partition@600000 {
			compatible = "u-boot,env";
			label = "0:appsblenv";
			reg = <0x600000 0x10000>;

			macaddr_lan: ethaddr {
			};
	};
....
&dp5 {
	status = "okay";
	phy-handle = <&qca8081>;
	label = "wan";
	nvmem-cells = <&macaddr_lan>;
	nvmem-cell-names = "mac-address-ascii";
	mac-address-increment = <1>;
};

This is needed for Zyxel NBG7815.

Signed-off-by: André Valentin <avalentin@marcant.net>
2023-01-19 13:26:15 +01:00
..
2022-11-27 13:18:29 +01:00
2022-12-24 15:24:18 +01:00
2023-01-14 22:31:38 +01:00
2022-12-23 19:44:14 +01:00
2023-01-14 22:31:38 +01:00
2023-01-13 22:04:22 +01:00
2023-01-14 22:31:38 +01:00
2022-12-23 19:44:20 +01:00
2023-01-14 22:31:38 +01:00
2022-12-23 19:44:20 +01:00
2023-01-14 22:31:38 +01:00
2023-01-14 22:31:38 +01:00
2022-12-23 19:44:20 +01:00
2022-12-23 19:44:22 +01:00
2023-01-03 23:55:45 +01:00
2023-01-14 22:31:38 +01:00
2023-01-09 21:39:45 +02:00
2023-01-07 01:30:31 +01:00
2023-01-09 21:39:46 +02:00
2022-12-23 19:44:21 +01:00
2022-12-12 09:06:17 +01:00
2023-01-15 13:30:09 +01:00
2023-01-03 20:56:01 +01:00