[PATCH 04/10] ARM: dts: ast2500-evb: Add I2C devices

Ryan Chen ryan_chen at aspeedtech.com
Tue Jun 21 07:32:24 CEST 2022


> -----Original Message-----
> From: joel.stan at gmail.com <joel.stan at gmail.com> On Behalf Of Joel Stanley
> Sent: Monday, June 20, 2022 3:25 PM
> To: Ryan Chen <ryan_chen at aspeedtech.com>; BMC-SW
> <BMC-SW at aspeedtech.com>; Heiko Schocher <hs at denx.de>
> Cc: u-boot at lists.denx.de; Cédric Le Goater <clg at kaod.org>
> Subject: [PATCH 04/10] ARM: dts: ast2500-evb: Add I2C devices
> 
> The EVB has an EEPROM on bus 3 and a LM75 temp sensor on bus 7. Enable
> those busses we can test the I2C driver.
> 
> Signed-off-by: Joel Stanley <joel at jms.id.au>
Reviewed-by: Ryan Chen <ryan_chen at aspeedtech.com>
> ---
>  arch/arm/dts/ast2500-evb.dts | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)
> 
> diff --git a/arch/arm/dts/ast2500-evb.dts b/arch/arm/dts/ast2500-evb.dts
> index 4796ed445f57..874e042bc4cb 100644
> --- a/arch/arm/dts/ast2500-evb.dts
> +++ b/arch/arm/dts/ast2500-evb.dts
> @@ -73,3 +73,22 @@
>  	pinctrl-names = "default";
>  	pinctrl-0 = <&pinctrl_sd2_default>;
>  };
> +
> +&i2c3 {
> +        status = "okay";
> +
> +        eeprom at 50 {
> +                compatible = "atmel,24c08";
> +                reg = <0x50>;
> +                pagesize = <16>;
> +        };
> +};
> +
> +&i2c7 {
> +	status = "okay";
> +
> +        lm75 at 4d {
> +                compatible = "national,lm75";
> +                reg = <0x4d>;
> +        };
> +};
> --
> 2.35.1



More information about the U-Boot mailing list