[PATCH linux] ARM: dts: aspeed: Add EEPROM

Joel Stanley joel at jms.id.au
Wed Aug 3 16:41:18 AEST 2016


On Tue, Aug 2, 2016 at 9:01 AM, Xo Wang <xow at google.com> wrote:
> Uncomment existing EEPROM device (U24 on EVB), move to correct bus, set
> right-aligned 7-bit slave address, and add write buffer size.
>
> Tested: hexdump -C /sys/bus/i2c/devices/3-0050/eeprom
> 00000000  aa aa aa aa aa aa aa aa  aa aa aa aa aa aa aa aa  |................|
> *
> 00000200
> (CONFIG_EEPROM_AT24=y)
>
> Change-Id: I1e9df8e3aee5f0257c90e045b35e19b615615447
> Signed-off-by: Xo Wang <xow at google.com>

Thanks Xo for the patch.

I will push out a dev-4.7 tree real soon with this change.

Cheers,

Joel

> ---
>  arch/arm/boot/dts/aspeed-ast2500-evb.dts | 11 ++++++-----
>  1 file changed, 6 insertions(+), 5 deletions(-)
>
> diff --git a/arch/arm/boot/dts/aspeed-ast2500-evb.dts b/arch/arm/boot/dts/aspeed-ast2500-evb.dts
> index 79d2005..795dcb7 100644
> --- a/arch/arm/boot/dts/aspeed-ast2500-evb.dts
> +++ b/arch/arm/boot/dts/aspeed-ast2500-evb.dts
> @@ -57,6 +57,12 @@
>
>  &i2c3 {
>         status = "okay";
> +
> +       eeprom at 50 {
> +               compatible = "atmel,24c04";
> +               reg = <0x50>;
> +               pagesize = <16>;
> +       };
>  };
>
>  &i2c4 {
> @@ -65,11 +71,6 @@
>
>  &i2c5 {
>         status = "okay";
> -
> -//     eeprom at 50 {
> -//             compatible = "atmel,24c08";
> -//             reg = <0xa0>;
> -//     };
>  };
>
>  &i2c6 {
> --
> 2.8.0.rc3.226.g39d4020
>
> _______________________________________________
> openbmc mailing list
> openbmc at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/openbmc


More information about the openbmc mailing list