[PATCH linux dev-4.10] ARM: dts: aspeed: witherspoon: Add iio-hwmon node for dps310

Joel Stanley joel at jms.id.au
Thu Jul 20 14:06:32 AEST 2017


On Thu, Jul 20, 2017 at 6:52 AM, Matt Spinler
<mspinler at linux.vnet.ibm.com> wrote:
> From: Matt Spinler <spinler at us.ibm.com>
>
> This is needed so hwmon knows about the dps310 iio device.
>
> Signed-off-by: Matt Spinler <spinler at us.ibm.com>

Thanks, applied to dev-4.10.

Cheers,

Joel

> ---
>  arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 10 ++++++++--
>  1 file changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
> index 2efad39..4ae0cfe 100644
> --- a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
> +++ b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
> @@ -72,7 +72,12 @@
>                 trans-gpios = <&gpio ASPEED_GPIO(R, 2) GPIO_ACTIVE_HIGH>;
>         };
>
> -       iio-hwmon {
> +       iio-hwmon-dps310 {
> +               compatible = "iio-hwmon";
> +               io-channels = <&dps 0>;
> +       };
> +
> +       iio-hwmon-bmp280 {
>                 compatible = "iio-hwmon";
>                 io-channels = <&bmp 1>;
>         };
> @@ -195,9 +200,10 @@
>                 reg = <0x52>;
>         };
>
> -       dps310 at 76 {
> +       dps: dps310 at 76 {
>                 compatible = "infineon,dps310";
>                 reg = <0x76>;
> +               #io-channel-cells = <0>;
>         };
>
>         pca0: pca9552 at 60 {
> --
> 2.7.2
>


More information about the openbmc mailing list