On 10/18/26 18:40, E Shattow wrote:
> From: Aurelien Jarno <[email protected]>
> 
> The K3 Pico-ITX board includes a 24c02 eeprom, that stores the product
> name, the part name, the MAC address of the network interfaces and the
> board's serial number. These values are also exposed via an
> onie,tlv-layout nvmem layout.
> 
> The eeprom is marked as read-only since its contents are not supposed to
> be modified.
> 
> Signed-off-by: Aurelien Jarno <[email protected]>
> Reviewed-by: Yixun Lan <[email protected]>
> Link: https://patch.msgid.link/[email protected]
> Signed-off-by: Yixun Lan <[email protected]>
> 
> [ upstream commit: 930491838c55c41317da9f263e3e9b013cb9aaa8 ]
> 
> (cherry picked from commit 3146b373c9699a456fa58b56a23d1127096cbc86)
> ---
>  .../src/riscv/spacemit/k3-pico-itx.dts        | 30 +++++++++++++++++++
>  1 file changed, 30 insertions(+)
> 
> diff --git a/dts/upstream/src/riscv/spacemit/k3-pico-itx.dts 
> b/dts/upstream/src/riscv/spacemit/k3-pico-itx.dts
> index dde6028a5ef3..143bf6f41260 100644
> --- a/dts/upstream/src/riscv/spacemit/k3-pico-itx.dts
> +++ b/dts/upstream/src/riscv/spacemit/k3-pico-itx.dts
> @@ -47,6 +47,36 @@
>       pinctrl-names = "default";
>       pinctrl-0 = <&i2c2_1_cfg>;
>       status = "okay";
> +
> +     eeprom@50 {
> +             compatible = "atmel,24c02";
> +             reg = <0x50>;
> +             pagesize = <8>;
> +             read-only;
> +             size = <256>;
> +             status = "okay";
> +
> +             nvmem-layout {
> +                     compatible = "onie,tlv-layout";
> +
> +                     mac-address {
> +                             #nvmem-cell-cells = <1>;
> +                     };
> +
> +                     num-macs {
> +                     };
> +
> +                     part-number {
> +                     };
> +
> +                     product-name {
> +                     };
> +
> +                     serial-number {
> +                     };
> +
> +             };
> +     };
>  };
>  
>  &i2c8 {

Drop this patch that landed in u-boot dts subtree with
devicetree-rebasing v7.3

-E

Reply via email to