[U-Boot] [PATCH 3/4] x86: dts: edison: configure I2C#6 pins

Andy Shevchenko andy.shevchenko at gmail.com
Mon Sep 3 18:23:04 UTC 2018


On Mon, Sep 3, 2018 at 7:41 PM Georgii Staroselskii
<georgii.staroselskii at emlid.com> wrote:
>
> Now that we have the pinctrl driver for Merrifield in place we can make
> use of it and set I2C#6 pins appropriately.
>
> Initial configuration came from the firmware.  Which quite likely has
> been used in the phones, where that is not part of Atom peripheral, is
> in use. Thus we need to override the leftover.
>

Reviewed-by: Andy Shevchenko <andy.shevchenko at gmail.com>


> Signed-off-by: Georgii Staroselskii <georgii.staroselskii at emlid.com>
> ---
>  arch/x86/dts/edison.dts | 22 ++++++++++++++++++++++
>  1 file changed, 22 insertions(+)
>
> diff --git a/arch/x86/dts/edison.dts b/arch/x86/dts/edison.dts
> index 1da7f54..0dd7240 100644
> --- a/arch/x86/dts/edison.dts
> +++ b/arch/x86/dts/edison.dts
> @@ -85,4 +85,26 @@
>                 compatible = "intel,reset-tangier";
>                 u-boot,dm-pre-reloc;
>         };
> +
> +       pinctrl {
> +               compatible = "intel,pinctrl-tangier";
> +               reg = <0xff0c0000 0x8000>;
> +
> +               /*
> +                * Initial configuration came from the firmware.
> +                * Which quite likely has been used in the phones, where I2C #8,
> +                * that is not part of Atom peripheral, is in use.
> +                * Thus we need to override the leftover.
> +                */
> +               i2c6_scl at 0 {
> +                       pad-offset = <111>;
> +                       mode-func = <1>;
> +                       protected;
> +               };
> +               i2c6_sda at 0 {
> +                       pad-offset = <112>;
> +                       mode-func = <1>;
> +                       protected;
> +               };
> +       };
>  };
> --
> 2.7.4
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot



-- 
With Best Regards,
Andy Shevchenko


More information about the U-Boot mailing list