[PATCH linux dev-5.4] ARM: dts: Aspeed: Tacoma: Add iio-hwmon nodes for IIO devices

Joel Stanley joel at jms.id.au
Tue Mar 31 08:36:57 AEDT 2020


On Mon, 30 Mar 2020 at 21:14, Eddie James <eajames at linux.ibm.com> wrote:
>
> Connect the BMP280 and DPS310 to the hwmon subsystem with iio-hwmon
> nodes.

The BMP280 was on pre-production witherspoons. I imagine most of the
ones we're using have dps310. Can we drop the bmp280 support?

Cheers,

Joel

>
> Signed-off-by: Eddie James <eajames at linux.ibm.com>
> ---
>  arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts | 10 ++++++++++
>  1 file changed, 10 insertions(+)
>
> diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts b/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
> index ff49ec76fa7c..374512a83f33 100644
> --- a/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
> +++ b/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
> @@ -89,6 +89,16 @@
>                         linux,code = <7>;
>                 };
>         };
> +
> +       iio-hwmon-dps310 {
> +               compatible = "iio-hwmon";
> +               io-channels = <&dps 0>;
> +       };
> +
> +       iio-hwmon-bmp280 {
> +               compatible = "iio-hwmon";
> +               io-channels = <&bmp 1>;
> +       };
>  };
>
>  &fmc {
> --
> 2.24.0
>


More information about the openbmc mailing list