[PATCH linux dev-4.10] msn: add adc to msn dts.

Rick Altherr raltherr at google.com
Sat Jul 8 03:16:50 AEST 2017


This doesn't match the bindings for the Aspeed ADC:
https://github.com/openbmc/linux/blob/dev-4.7/Documentation/devicetree/bindings/iio/adc/aspeed_adc.txt.


On Fri, Jul 7, 2017 at 2:12 AM, Mykola Kostenok <c_mykolak at mellanox.com>
wrote:

> Add adc for Mellanox msn platform to dts.
>
> Signed-off-by: Mykola Kostenok <c_mykolak at mellanox.com>
> ---
>  arch/arm/boot/dts/aspeed-bmc-mellanox-msn.dts | 45
> +++++++++++++++++++++++++++
>  1 file changed, 45 insertions(+)
>
> diff --git a/arch/arm/boot/dts/aspeed-bmc-mellanox-msn.dts
> b/arch/arm/boot/dts/aspeed-bmc-mellanox-msn.dts
> index 0774959b1222..462a638e66c6 100644
> --- a/arch/arm/boot/dts/aspeed-bmc-mellanox-msn.dts
> +++ b/arch/arm/boot/dts/aspeed-bmc-mellanox-msn.dts
> @@ -139,3 +139,48 @@
>         status = "okay";
>  };
>
> +&adc {
> +       status = "okay";
> +       #address-cells = <1>;
> +       #size-cells = <0>;
> +       adc1 {
> +               channel = <0>;
> +               min = <677>;
> +               max = <828>;
> +       };
> +       adc2 {
> +               channel = <2>;
> +               min = <684>;
> +               max = <836>;
> +       };
> +       adc3 {
> +               channel = <3>;
> +               min = <684>;
> +               max = <836>;
> +       };
> +       adc4 {
> +               channel = <4>;
> +               min = <676>;
> +               max = <826>;
> +       };
> +       adc5 {
> +               channel = <10>;
> +               min = <691>;
> +               max = <845>;
> +       };
> +       adc6 {
> +               channel = <11>;
> +               min = <640>;
> +               max = <782>;
> +       };
> +       adc7 {
> +               channel = <12>;
> +               min = <615>;
> +               max = <751>;
> +       };
> +       adc8 {
> +               channel = <13>;
> +               min = <587>;
> +               max = <719>;
> +       };
> +};
> --
> 2.11.0
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20170707/36dbe319/attachment.html>


More information about the openbmc mailing list