[U-Boot] [PATCH 1/6] ARM: dts: at91: Add dts files for at91sam9x5ek

Simon Glass sjg at chromium.org
Sun Apr 16 19:30:35 UTC 2017


On 12 April 2017 at 02:11, Wenyou Yang <wenyou.yang at atmel.com> wrote:
> The device tree source files of at91sam9x5ek board are copied from
> the Linux v4.10, do the changes below.
>  - Add the reg property for the pinctrl node.
>  - Move the gpio (pioA, pioB, pioC ...) nodes as the pinctrl's
>    slibling nodes, instead of the child nodes.
>  - Add the "u-boot,dm-pre-reloc" property to determine which nodes
>    are used by the board_init_f stage.
>  - Change the compatible of the spi flash to "spi-flash".
>  - Add the spi0 aliases.
>  - Fix the compilation warnings.
>
> Signed-off-by: Wenyou Yang <wenyou.yang at atmel.com>
> ---
>
>  arch/arm/dts/Makefile               |    7 +
>  arch/arm/dts/at91sam9g15.dtsi       |   29 +
>  arch/arm/dts/at91sam9g15ek.dts      |   26 +
>  arch/arm/dts/at91sam9g25.dtsi       |   31 +
>  arch/arm/dts/at91sam9g25ek.dts      |   69 ++
>  arch/arm/dts/at91sam9g35.dtsi       |   30 +
>  arch/arm/dts/at91sam9g35ek.dts      |   31 +
>  arch/arm/dts/at91sam9x25.dtsi       |   32 +
>  arch/arm/dts/at91sam9x25ek.dts      |   30 +
>  arch/arm/dts/at91sam9x35.dtsi       |   31 +
>  arch/arm/dts/at91sam9x35ek.dts      |   30 +
>  arch/arm/dts/at91sam9x5.dtsi        | 1302 +++++++++++++++++++++++++++++++++++
>  arch/arm/dts/at91sam9x5_can.dtsi    |   71 ++
>  arch/arm/dts/at91sam9x5_isi.dtsi    |   72 ++
>  arch/arm/dts/at91sam9x5_lcd.dtsi    |  146 ++++
>  arch/arm/dts/at91sam9x5_macb0.dtsi  |   67 ++
>  arch/arm/dts/at91sam9x5_macb1.dtsi  |   55 ++
>  arch/arm/dts/at91sam9x5_usart3.dtsi |   69 ++
>  arch/arm/dts/at91sam9x5cm.dtsi      |  100 +++
>  arch/arm/dts/at91sam9x5dm.dtsi      |   66 ++
>  arch/arm/dts/at91sam9x5ek.dtsi      |  167 +++++
>  21 files changed, 2461 insertions(+)
>  create mode 100644 arch/arm/dts/at91sam9g15.dtsi
>  create mode 100644 arch/arm/dts/at91sam9g15ek.dts
>  create mode 100644 arch/arm/dts/at91sam9g25.dtsi
>  create mode 100644 arch/arm/dts/at91sam9g25ek.dts
>  create mode 100644 arch/arm/dts/at91sam9g35.dtsi
>  create mode 100644 arch/arm/dts/at91sam9g35ek.dts
>  create mode 100644 arch/arm/dts/at91sam9x25.dtsi
>  create mode 100644 arch/arm/dts/at91sam9x25ek.dts
>  create mode 100644 arch/arm/dts/at91sam9x35.dtsi
>  create mode 100644 arch/arm/dts/at91sam9x35ek.dts
>  create mode 100644 arch/arm/dts/at91sam9x5.dtsi
>  create mode 100644 arch/arm/dts/at91sam9x5_can.dtsi
>  create mode 100644 arch/arm/dts/at91sam9x5_isi.dtsi
>  create mode 100644 arch/arm/dts/at91sam9x5_lcd.dtsi
>  create mode 100644 arch/arm/dts/at91sam9x5_macb0.dtsi
>  create mode 100644 arch/arm/dts/at91sam9x5_macb1.dtsi
>  create mode 100644 arch/arm/dts/at91sam9x5_usart3.dtsi
>  create mode 100644 arch/arm/dts/at91sam9x5cm.dtsi
>  create mode 100644 arch/arm/dts/at91sam9x5dm.dtsi
>  create mode 100644 arch/arm/dts/at91sam9x5ek.dtsi

Reviewed-by: Simon Glass <sjg at chromium.org>

BTW it is possible now to put the U-Boot-specific changes that you
can't get upstream in a separate file with a -u-boot.dtsi suffix. See
'Automatic .dtsi inclusion' in the binman README.

Also with your move of the pio nodes to be siblings, you should be
able to make the GPIO a child of the pinctrl driver by having
something like:

        .post_bind      = dm_scan_fdt_dev,

in your pinctrl driver.

- Simon


More information about the U-Boot mailing list