diff mbox series

[v2,2/9] dt-bindings: board: Document sifive,fu540-modeselect

Message ID 20200519192340.16624-3-jagan@amarulasolutions.com
State New
Headers show
Series riscv: sifive/fu540: Booting from SPI | expand

Commit Message

Jagan Teki May 19, 2020, 7:23 p.m. UTC
Add dt-bindings documentation for sifive,fu540-modeselect board
driver, which usually get runtime boot mode of fu540 boards.

Cc: Simon Glass <sjg at chromium.org>
Signed-off-by: Jagan Teki <jagan at amarulasolutions.com>
---
Changes for v2:
- new patch

 .../board/sifive,fu540-modeselect.txt             | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 doc/device-tree-bindings/board/sifive,fu540-modeselect.txt

Comments

Bin Meng May 20, 2020, 1:13 p.m. UTC | #1
Hi Jagan,

On Wed, May 20, 2020 at 3:24 AM Jagan Teki <jagan at amarulasolutions.com> wrote:
>
> Add dt-bindings documentation for sifive,fu540-modeselect board
> driver, which usually get runtime boot mode of fu540 boards.
>
> Cc: Simon Glass <sjg at chromium.org>
> Signed-off-by: Jagan Teki <jagan at amarulasolutions.com>
> ---
> Changes for v2:
> - new patch
>
>  .../board/sifive,fu540-modeselect.txt             | 15 +++++++++++++++
>  1 file changed, 15 insertions(+)
>  create mode 100644 doc/device-tree-bindings/board/sifive,fu540-modeselect.txt
>
> diff --git a/doc/device-tree-bindings/board/sifive,fu540-modeselect.txt b/doc/device-tree-bindings/board/sifive,fu540-modeselect.txt
> new file mode 100644
> index 0000000000..801c068390
> --- /dev/null
> +++ b/doc/device-tree-bindings/board/sifive,fu540-modeselect.txt
> @@ -0,0 +1,15 @@
> +fu540 board driver
> +
> +This driver provides capabilities to get the current boot device for
> +fu540 associated board.

This is not a board specific setting, but a SoC specific setting. The
MSEL is common for all FU540 based board.

> +
> +Required properties:
> +- compatible:  should be "sifive,fu540-modeselect"
> +- reg:         physical base address and size of fu540 modeselct
> +
> +Example:
> +
> +board: mode at 1000 {
> +       compatible = "sifive,fu540-modeselect";
> +       reg = <0x0 0x1000 0x0 0x1FFF>;

We should only map 4 bytes for mode select.

> +};
> --

Regards,
Bin
diff mbox series

Patch

diff --git a/doc/device-tree-bindings/board/sifive,fu540-modeselect.txt b/doc/device-tree-bindings/board/sifive,fu540-modeselect.txt
new file mode 100644
index 0000000000..801c068390
--- /dev/null
+++ b/doc/device-tree-bindings/board/sifive,fu540-modeselect.txt
@@ -0,0 +1,15 @@ 
+fu540 board driver
+
+This driver provides capabilities to get the current boot device for
+fu540 associated board.
+
+Required properties:
+- compatible:	should be "sifive,fu540-modeselect"
+- reg:		physical base address and size of fu540 modeselct
+
+Example:
+
+board: mode at 1000 {
+	compatible = "sifive,fu540-modeselect";
+	reg = <0x0 0x1000 0x0 0x1FFF>;
+};