Re: [PATCH v3 0/5] arch: riscv: add board and SoC DT file support

From: Loys Ollivier
Date: Tue Jun 04 2019 - 10:35:32 EST


On Sun 02 Jun 2019 at 01:04, Paul Walmsley <paul.walmsley@xxxxxxxxxx> wrote:

> Add support for building flattened DT files from DT source files under
> arch/riscv/boot/dts. Follow existing kernel precedent from other SoC
> architectures. Start our board support by adding initial support for
> the SiFive FU540 SoC and the first development board that uses it, the
> SiFive HiFive Unleashed A00.
>
> This third version of the patch set adds I2C data for the chip,
> incorporates all remaining changes that riscv-pk was making
> automatically, and addresses a comment from Rob Herring
> <robh@xxxxxxxxxx>.
>
> Boot-tested on v5.2-rc1 on a HiFive Unleashed A00 board, using the
> BBL and open-source FSBL, with modifications to pass in the DTB
> file generated by these patches.
>
> This patch series can be found, along with the PRCI patch set
> and the DT macro prerequisite patch, at:
>
> https://github.com/sifive/riscv-linux/tree/dev/paulw/dts-v5.2-rc1
>
>
> - Paul
>

Tested patch 1, 4 and 5 using FSBL + OpenSBI + U-Boot on HiFive Unleashed.
Tested-by: Loys Ollivier <lollivier@xxxxxxxxxxxx>

>
> Paul Walmsley (5):
> arch: riscv: add support for building DTB files from DT source data
> dt-bindings: riscv: sifive: add YAML documentation for the SiFive
> FU540
> dt-bindings: riscv: convert cpu binding to json-schema
> riscv: dts: add initial support for the SiFive FU540-C000 SoC
> riscv: dts: add initial board data for the SiFive HiFive Unleashed
>
> .../devicetree/bindings/riscv/cpus.yaml | 168 ++++++++++++++
> .../devicetree/bindings/riscv/sifive.yaml | 25 ++
> MAINTAINERS | 9 +
> arch/riscv/boot/dts/Makefile | 2 +
> arch/riscv/boot/dts/sifive/Makefile | 2 +
> arch/riscv/boot/dts/sifive/fu540-c000.dtsi | 215 ++++++++++++++++++
> .../boot/dts/sifive/hifive-unleashed-a00.dts | 67 ++++++
> 7 files changed, 488 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/riscv/cpus.yaml
> create mode 100644 Documentation/devicetree/bindings/riscv/sifive.yaml
> create mode 100644 arch/riscv/boot/dts/Makefile
> create mode 100644 arch/riscv/boot/dts/sifive/Makefile
> create mode 100644 arch/riscv/boot/dts/sifive/fu540-c000.dtsi
> create mode 100644 arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts

Note: the -fu540 was dropped from the previous version which results in
a different dtb file.

Loys