Message ID | cfc6af8a4c42febcc405b7356c38448eec8e29b0.1648548339.git.geert+renesas@glider.be (mailing list archive) |
---|---|
State | Mainlined |
Commit | 1ee6674bbe1cd6bd38216be3b7693ef1e5e2eabf |
Delegated to: | Geert Uytterhoeven |
Headers | show |
Series | arm64: dts: renesas: rcar-gen3: Enable HyperFlash support | expand |
On Tue, Mar 29, 2022 at 02:20:04PM +0200, Geert Uytterhoeven wrote: > Add the RPC HyperFlash device node along with its partitions to the > common Salvator-X(S) board DTS file. > > Based on a patch in the BSP by Valentine Barshak. > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> No pinctrl settings for patch 4+5?
Hi Wolfram, On Thu, Apr 7, 2022 at 9:08 AM Wolfram Sang <wsa@kernel.org> wrote: > On Tue, Mar 29, 2022 at 02:20:04PM +0200, Geert Uytterhoeven wrote: > > Add the RPC HyperFlash device node along with its partitions to the > > common Salvator-X(S) board DTS file. > > > > Based on a patch in the BSP by Valentine Barshak. > > > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> > > No pinctrl settings for patch 4+5? The QSPI pins are single-function on R-Car H3, M3-W, M3-W+, and M3-N. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
diff --git a/arch/arm64/boot/dts/renesas/salvator-common.dtsi b/arch/arm64/boot/dts/renesas/salvator-common.dtsi index d1dbaf7d1170812f..4ebef1d2a7b4ddbc 100644 --- a/arch/arm64/boot/dts/renesas/salvator-common.dtsi +++ b/arch/arm64/boot/dts/renesas/salvator-common.dtsi @@ -872,6 +872,55 @@ rsnd_endpoint2: endpoint { }; }; +&rpc { + /* Left disabled. To be enabled by firmware when unlocked. */ + + flash@0 { + compatible = "cypress,hyperflash", "cfi-flash"; + reg = <0>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + bootparam@0 { + reg = <0x00000000 0x040000>; + read-only; + }; + bl2@40000 { + reg = <0x00040000 0x140000>; + read-only; + }; + cert_header_sa6@180000 { + reg = <0x00180000 0x040000>; + read-only; + }; + bl31@1c0000 { + reg = <0x001c0000 0x040000>; + read-only; + }; + tee@200000 { + reg = <0x00200000 0x440000>; + read-only; + }; + uboot@640000 { + reg = <0x00640000 0x100000>; + read-only; + }; + dtb@740000 { + reg = <0x00740000 0x080000>; + }; + kernel@7c0000 { + reg = <0x007c0000 0x1400000>; + }; + user@1bc0000 { + reg = <0x01bc0000 0x2440000>; + }; + }; + }; +}; + &rwdt { timeout-sec = <60>; status = "okay";
Add the RPC HyperFlash device node along with its partitions to the common Salvator-X(S) board DTS file. Based on a patch in the BSP by Valentine Barshak. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> --- Changes compared to the BSP: - Update label, - Keep RPC disabled, - Add missing "cypress,hyperflash" compatible value, - Drop leading zeroes from unit addresses, - Use lower-case hexadecimal values, - Enlarge uboot partition, - Drop uboot-env partition. --- .../boot/dts/renesas/salvator-common.dtsi | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+)