* [PATCH 00/12] dt-bindings: arm: bcm: Convert boards to YAML
@ 2020-02-02 21:18 Florian Fainelli
2020-02-02 21:18 ` [PATCH 01/12] dt-bindings: arm: bcm: Convert Cygnus " Florian Fainelli
` (11 more replies)
0 siblings, 12 replies; 21+ messages in thread
From: Florian Fainelli @ 2020-02-02 21:18 UTC (permalink / raw)
To: linux-arm-kernel
Cc: devicetree, Florian Fainelli, Rob Herring, Mark Rutland, Ray Jui,
Scott Branden, maintainer:BROADCOM IPROC ARM ARCHITECTURE,
Nicolas Saenz Julienne, Sugaya Taichi, Olof Johansson,
Andrew Jeffery, Lubomir Rintel, Maxime Ripard,
moderated list:BROADCOM IPROC ARM ARCHITECTURE, open list,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE
Hi Rob,
This patch series converts most files under D/dt-bindings/arm/bcm/ with
the exception of bcm63138 and brcmstb to the YAML format. Those two may
be split accordingly later on since document not just the root node.
Florian Fainelli (12):
dt-bindings: arm: bcm: Convert Cygnus to YAML
dt-bindings: arm: bcm: Convert Hurricane 2 to YAML
dt-bindings: arm: bcm: Convert Northstar Plus to YAML
dt-bindings: arm: bcm: Convert Northstar 2 to YAML
dt-bindings: arm: bcm: Convert Stingray to YAML
dt-bindings: arm: bcm: Convert BCM21664 to YAML
dt-bindings: arm: bcm: Convert BCM23550 to YAML
dt-bindings: arm: bcm: Convert BCM4708 to YAML
dt-bindings: arm: bcm: Convert BCM11351 to YAML
dt-bindings: arm: bcm: Convert Vulcan to YAML
dt-bindings: arm: Document Broadcom SoCs 'secondary-boot-reg'
dt-bindings: arm: bcm: Convert BCM2835 firmware binding to YAML
.../arm/bcm/brcm,bcm11351-cpu-method.txt | 36 --------
.../bindings/arm/bcm/brcm,bcm11351.txt | 10 ---
.../bindings/arm/bcm/brcm,bcm11351.yaml | 23 +++++
.../bindings/arm/bcm/brcm,bcm21664.txt | 15 ----
.../bindings/arm/bcm/brcm,bcm21664.yaml | 23 +++++
.../arm/bcm/brcm,bcm23550-cpu-method.txt | 36 --------
.../bindings/arm/bcm/brcm,bcm23550.txt | 15 ----
.../bindings/arm/bcm/brcm,bcm23550.yaml | 23 +++++
.../bindings/arm/bcm/brcm,bcm4708.txt | 15 ----
.../bindings/arm/bcm/brcm,bcm4708.yaml | 88 +++++++++++++++++++
.../bindings/arm/bcm/brcm,cygnus.txt | 31 -------
.../bindings/arm/bcm/brcm,cygnus.yaml | 66 ++++++++++++++
.../devicetree/bindings/arm/bcm/brcm,hr2.txt | 14 ---
.../devicetree/bindings/arm/bcm/brcm,hr2.yaml | 30 +++++++
.../devicetree/bindings/arm/bcm/brcm,ns2.txt | 9 --
.../devicetree/bindings/arm/bcm/brcm,ns2.yaml | 25 ++++++
.../bindings/arm/bcm/brcm,nsp-cpu-method.txt | 39 --------
.../devicetree/bindings/arm/bcm/brcm,nsp.txt | 34 -------
.../devicetree/bindings/arm/bcm/brcm,nsp.yaml | 68 ++++++++++++++
.../bindings/arm/bcm/brcm,stingray.txt | 12 ---
.../bindings/arm/bcm/brcm,stingray.yaml | 26 ++++++
.../bindings/arm/bcm/brcm,vulcan-soc.txt | 10 ---
.../bindings/arm/bcm/brcm,vulcan-soc.yaml | 24 +++++
.../arm/bcm/raspberrypi,bcm2835-firmware.txt | 14 ---
.../arm/bcm/raspberrypi,bcm2835-firmware.yaml | 33 +++++++
.../devicetree/bindings/arm/cpus.yaml | 16 ++++
26 files changed, 445 insertions(+), 290 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,bcm11351-cpu-method.txt
delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,bcm11351.txt
create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,bcm11351.yaml
delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,bcm21664.txt
create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,bcm21664.yaml
delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,bcm23550-cpu-method.txt
delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,bcm23550.txt
create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,bcm23550.yaml
delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.txt
create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml
delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,cygnus.txt
create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,cygnus.yaml
delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,hr2.txt
create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,hr2.yaml
delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,ns2.txt
create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,ns2.yaml
delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,nsp-cpu-method.txt
delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,nsp.txt
create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,nsp.yaml
delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,stingray.txt
create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,stingray.yaml
delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,vulcan-soc.txt
create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,vulcan-soc.yaml
delete mode 100644 Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.txt
create mode 100644 Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml
--
2.17.1
^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 01/12] dt-bindings: arm: bcm: Convert Cygnus to YAML
2020-02-02 21:18 [PATCH 00/12] dt-bindings: arm: bcm: Convert boards to YAML Florian Fainelli
@ 2020-02-02 21:18 ` Florian Fainelli
2020-02-03 8:29 ` Maxime Ripard
2020-02-02 21:18 ` [PATCH 02/12] dt-bindings: arm: bcm: Convert Hurricane 2 " Florian Fainelli
` (10 subsequent siblings)
11 siblings, 1 reply; 21+ messages in thread
From: Florian Fainelli @ 2020-02-02 21:18 UTC (permalink / raw)
To: linux-arm-kernel
Cc: devicetree, Florian Fainelli, Rob Herring, Mark Rutland, Ray Jui,
Scott Branden, maintainer:BROADCOM IPROC ARM ARCHITECTURE,
Nicolas Saenz Julienne, Sugaya Taichi, Olof Johansson,
Andrew Jeffery, Lubomir Rintel, Maxime Ripard,
moderated list:BROADCOM IPROC ARM ARCHITECTURE, open list,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE
Update the Broadocom Cygnus SoC binding document for boards/SoCs to use
YAML. Verified with dt_binding_check and dtbs_check.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
.../bindings/arm/bcm/brcm,cygnus.txt | 31 ---------
.../bindings/arm/bcm/brcm,cygnus.yaml | 66 +++++++++++++++++++
2 files changed, 66 insertions(+), 31 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,cygnus.txt
create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,cygnus.yaml
diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,cygnus.txt b/Documentation/devicetree/bindings/arm/bcm/brcm,cygnus.txt
deleted file mode 100644
index 4c77169bb534..000000000000
--- a/Documentation/devicetree/bindings/arm/bcm/brcm,cygnus.txt
+++ /dev/null
@@ -1,31 +0,0 @@
-Broadcom Cygnus device tree bindings
-------------------------------------
-
-
-Boards with Cygnus SoCs shall have the following properties:
-
-Required root node property:
-
-BCM11300
-compatible = "brcm,bcm11300", "brcm,cygnus";
-
-BCM11320
-compatible = "brcm,bcm11320", "brcm,cygnus";
-
-BCM11350
-compatible = "brcm,bcm11350", "brcm,cygnus";
-
-BCM11360
-compatible = "brcm,bcm11360", "brcm,cygnus";
-
-BCM58300
-compatible = "brcm,bcm58300", "brcm,cygnus";
-
-BCM58302
-compatible = "brcm,bcm58302", "brcm,cygnus";
-
-BCM58303
-compatible = "brcm,bcm58303", "brcm,cygnus";
-
-BCM58305
-compatible = "brcm,bcm58305", "brcm,cygnus";
diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,cygnus.yaml b/Documentation/devicetree/bindings/arm/bcm/brcm,cygnus.yaml
new file mode 100644
index 000000000000..2606ca956caf
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/bcm/brcm,cygnus.yaml
@@ -0,0 +1,66 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/bcm/brcm,cygnus.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Broadcom Cygnus device tree bindings
+
+maintainers:
+ - Ray Jui <rjui@broadcom.com>
+ - Scott Branden <sbranden@broadcom.com>
+
+properties:
+ $nodename:
+ const: '/'
+ compatible:
+ oneOf:
+ - description: BCM11300 based boards
+ items:
+ - enum:
+ - brcm,bcm11300
+ - const: brcm,cygnus
+
+ - description: BCM11320 based boards
+ items:
+ - enum:
+ - brcm,bcm11320
+ - const: brcm,cygnus
+
+ - description: BCM11350 based boards
+ items:
+ - enum:
+ - brcm,bcm11350
+ - const: brcm,cygnus
+
+ - description: BCM11360 based boards
+ items:
+ - enum:
+ - brcm,bcm11360
+ - const: brcm,cygnus
+
+ - description: BCM58300 based boards
+ items:
+ - enum:
+ - brcm,bcm58300
+ - const: brcm,cygnus
+
+ - description: BCM58302 based boards
+ items:
+ - enum:
+ - brcm,bcm58302
+ - const: brcm,cygnus
+
+ - description: BCM58303 based boards
+ items:
+ - enum:
+ - brcm,bcm58303
+ - const: brcm,cygnus
+
+ - description: BCM58305 based boards
+ items:
+ - enum:
+ - brcm,bcm58305
+ - const: brcm,cygnus
+
+...
--
2.17.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH 02/12] dt-bindings: arm: bcm: Convert Hurricane 2 to YAML
2020-02-02 21:18 [PATCH 00/12] dt-bindings: arm: bcm: Convert boards to YAML Florian Fainelli
2020-02-02 21:18 ` [PATCH 01/12] dt-bindings: arm: bcm: Convert Cygnus " Florian Fainelli
@ 2020-02-02 21:18 ` Florian Fainelli
2020-02-02 21:18 ` [PATCH 03/12] dt-bindings: arm: bcm: Convert Northstar Plus " Florian Fainelli
` (9 subsequent siblings)
11 siblings, 0 replies; 21+ messages in thread
From: Florian Fainelli @ 2020-02-02 21:18 UTC (permalink / raw)
To: linux-arm-kernel
Cc: devicetree, Florian Fainelli, Rob Herring, Mark Rutland, Ray Jui,
Scott Branden, maintainer:BROADCOM IPROC ARM ARCHITECTURE,
Nicolas Saenz Julienne, Sugaya Taichi, Olof Johansson,
Andrew Jeffery, Lubomir Rintel, Maxime Ripard,
moderated list:BROADCOM IPROC ARM ARCHITECTURE, open list,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE
Update the Broadcom Hurricane 2 SoC binding document for boards/SoCs to use
YAML. Verified with dt_binding_check and dtbs_check.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
.../devicetree/bindings/arm/bcm/brcm,hr2.txt | 14 ---------
.../devicetree/bindings/arm/bcm/brcm,hr2.yaml | 30 +++++++++++++++++++
2 files changed, 30 insertions(+), 14 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,hr2.txt
create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,hr2.yaml
diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,hr2.txt b/Documentation/devicetree/bindings/arm/bcm/brcm,hr2.txt
deleted file mode 100644
index a124c7fc4dcd..000000000000
--- a/Documentation/devicetree/bindings/arm/bcm/brcm,hr2.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-Broadcom Hurricane 2 device tree bindings
----------------------------------------
-
-Broadcom Hurricane 2 family of SoCs are used for switching control. These SoCs
-are based on Broadcom's iProc SoC architecture and feature a single core Cortex
-A9 ARM CPUs, DDR2/DDR3 memory, PCIe GEN-2, USB 2.0 and USB 3.0, serial and NAND
-flash and a PCIe attached integrated switching engine.
-
-Boards with Hurricane SoCs shall have the following properties:
-
-Required root node property:
-
-BCM53342
-compatible = "brcm,bcm53342", "brcm,hr2";
diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,hr2.yaml b/Documentation/devicetree/bindings/arm/bcm/brcm,hr2.yaml
new file mode 100644
index 000000000000..90332ca0c74a
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/bcm/brcm,hr2.yaml
@@ -0,0 +1,30 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/bcm/brcm,hr2.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Broadcom Hurricane 2 device tree bindings
+
+description:
+ Broadcom Hurricane 2 family of SoCs are used for switching control. These SoCs
+ are based on Broadcom's iProc SoC architecture and feature a single core Cortex
+ A9 ARM CPUs, DDR2/DDR3 memory, PCIe GEN-2, USB 2.0 and USB 3.0, serial and NAND
+ flash and a PCIe attached integrated switching engine.
+
+maintainers:
+ - Florian Fainelli <f.fainelli@gmail.com>
+
+properties:
+ $nodename:
+ const: '/'
+ compatible:
+ oneOf:
+ - description: BCM53342 based boards
+ items:
+ - enum:
+ - ubnt,unifi-switch8
+ - const: brcm,bcm53342
+ - const: brcm,hr2
+
+...
--
2.17.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH 03/12] dt-bindings: arm: bcm: Convert Northstar Plus to YAML
2020-02-02 21:18 [PATCH 00/12] dt-bindings: arm: bcm: Convert boards to YAML Florian Fainelli
2020-02-02 21:18 ` [PATCH 01/12] dt-bindings: arm: bcm: Convert Cygnus " Florian Fainelli
2020-02-02 21:18 ` [PATCH 02/12] dt-bindings: arm: bcm: Convert Hurricane 2 " Florian Fainelli
@ 2020-02-02 21:18 ` Florian Fainelli
2020-02-02 21:18 ` [PATCH 04/12] dt-bindings: arm: bcm: Convert Northstar 2 " Florian Fainelli
` (8 subsequent siblings)
11 siblings, 0 replies; 21+ messages in thread
From: Florian Fainelli @ 2020-02-02 21:18 UTC (permalink / raw)
To: linux-arm-kernel
Cc: devicetree, Florian Fainelli, Rob Herring, Mark Rutland, Ray Jui,
Scott Branden, maintainer:BROADCOM IPROC ARM ARCHITECTURE,
Nicolas Saenz Julienne, Sugaya Taichi, Olof Johansson,
Andrew Jeffery, Lubomir Rintel, Maxime Ripard,
moderated list:BROADCOM IPROC ARM ARCHITECTURE, open list,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE
Update the Broadcom Northstar Plus SoC binding document for boards/SoCs
to use YAML. Verified with dt_binding_check and dtbs_check.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
.../devicetree/bindings/arm/bcm/brcm,nsp.txt | 34 ----------
.../devicetree/bindings/arm/bcm/brcm,nsp.yaml | 68 +++++++++++++++++++
2 files changed, 68 insertions(+), 34 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,nsp.txt
create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,nsp.yaml
diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,nsp.txt b/Documentation/devicetree/bindings/arm/bcm/brcm,nsp.txt
deleted file mode 100644
index eae53e4556be..000000000000
--- a/Documentation/devicetree/bindings/arm/bcm/brcm,nsp.txt
+++ /dev/null
@@ -1,34 +0,0 @@
-Broadcom Northstar Plus device tree bindings
---------------------------------------------
-
-Broadcom Northstar Plus family of SoCs are used for switching control
-and management applications as well as residential router/gateway
-applications. The SoC features dual core Cortex A9 ARM CPUs, integrating
-several peripheral interfaces including multiple Gigabit Ethernet PHYs,
-DDR3 memory, PCIE Gen-2, USB 2.0 and USB 3.0, serial and NAND flash,
-SATA and several other IO controllers.
-
-Boards with Northstar Plus SoCs shall have the following properties:
-
-Required root node property:
-
-BCM58522
-compatible = "brcm,bcm58522", "brcm,nsp";
-
-BCM58525
-compatible = "brcm,bcm58525", "brcm,nsp";
-
-BCM58535
-compatible = "brcm,bcm58535", "brcm,nsp";
-
-BCM58622
-compatible = "brcm,bcm58622", "brcm,nsp";
-
-BCM58623
-compatible = "brcm,bcm58623", "brcm,nsp";
-
-BCM58625
-compatible = "brcm,bcm58625", "brcm,nsp";
-
-BCM88312
-compatible = "brcm,bcm88312", "brcm,nsp";
diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,nsp.yaml b/Documentation/devicetree/bindings/arm/bcm/brcm,nsp.yaml
new file mode 100644
index 000000000000..d76b9b14f000
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/bcm/brcm,nsp.yaml
@@ -0,0 +1,68 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/bcm/brcm,nsp.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Broadcom Northstar Plus device tree bindings
+
+description:
+ Broadcom Northstar Plus family of SoCs are used for switching control
+ and management applications as well as residential router/gateway
+ applications. The SoC features dual core Cortex A9 ARM CPUs, integrating
+ several peripheral interfaces including multiple Gigabit Ethernet PHYs,
+ DDR3 memory, PCIE Gen-2, USB 2.0 and USB 3.0, serial and NAND flash,
+ SATA and several other IO controllers.
+
+maintainers:
+ - Ray Jui <rjui@broadcom.com>
+ - Scott Branden <sbranden@broadcom.com>
+
+properties:
+ $nodename:
+ const: '/'
+ compatible:
+ oneOf:
+ - description: BCM58522 based boards
+ items:
+ - enum:
+ - brcm,bcm58522
+ - const: brcm,nsp
+
+ - description: BCM58525 based boards
+ items:
+ - enum:
+ - brcm,bcm58525
+ - const: brcm,nsp
+
+ - description: BCM58535 based boards
+ items:
+ - enum:
+ - brcm,bcm58535
+ - const: brcm,nsp
+
+ - description: BCM58622 based boards
+ items:
+ - enum:
+ - brcm,bcm58622
+ - const: brcm,nsp
+
+ - description: BCM58623 based boards
+ items:
+ - enum:
+ - brcm,bcm58623
+ - const: brcm,nsp
+
+ - description: BCM58625 based boards
+ items:
+ - enum:
+ - brcm,bcm58625
+ - const: brcm,nsp
+
+ - description: BCM88312 based boards
+ items:
+ - enum:
+ - brcm,bcm88312
+ - const: brcm,nsp
+
+...
--
2.17.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH 04/12] dt-bindings: arm: bcm: Convert Northstar 2 to YAML
2020-02-02 21:18 [PATCH 00/12] dt-bindings: arm: bcm: Convert boards to YAML Florian Fainelli
` (2 preceding siblings ...)
2020-02-02 21:18 ` [PATCH 03/12] dt-bindings: arm: bcm: Convert Northstar Plus " Florian Fainelli
@ 2020-02-02 21:18 ` Florian Fainelli
2020-02-02 21:18 ` [PATCH 05/12] dt-bindings: arm: bcm: Convert Stingray " Florian Fainelli
` (7 subsequent siblings)
11 siblings, 0 replies; 21+ messages in thread
From: Florian Fainelli @ 2020-02-02 21:18 UTC (permalink / raw)
To: linux-arm-kernel
Cc: devicetree, Florian Fainelli, Rob Herring, Mark Rutland, Ray Jui,
Scott Branden, maintainer:BROADCOM IPROC ARM ARCHITECTURE,
Nicolas Saenz Julienne, Sugaya Taichi, Olof Johansson,
Andrew Jeffery, Lubomir Rintel, Maxime Ripard,
moderated list:BROADCOM IPROC ARM ARCHITECTURE, open list,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE
Update the Broadcom Northstar 2 SoC binding document for boards/SoCs to
use YAML. Verified with dt_binding_check and dtbs_check.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
.../devicetree/bindings/arm/bcm/brcm,ns2.txt | 9 -------
.../devicetree/bindings/arm/bcm/brcm,ns2.yaml | 25 +++++++++++++++++++
2 files changed, 25 insertions(+), 9 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,ns2.txt
create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,ns2.yaml
diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,ns2.txt b/Documentation/devicetree/bindings/arm/bcm/brcm,ns2.txt
deleted file mode 100644
index 35f056f4a1c3..000000000000
--- a/Documentation/devicetree/bindings/arm/bcm/brcm,ns2.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-Broadcom North Star 2 (NS2) device tree bindings
-------------------------------------------------
-
-Boards with NS2 shall have the following properties:
-
-Required root node property:
-
-NS2 SVK board
-compatible = "brcm,ns2-svk", "brcm,ns2";
diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,ns2.yaml b/Documentation/devicetree/bindings/arm/bcm/brcm,ns2.yaml
new file mode 100644
index 000000000000..2fb9b16408f3
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/bcm/brcm,ns2.yaml
@@ -0,0 +1,25 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/bcm/brcm,ns2.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Broadcom North Star 2 (NS2) device tree bindings
+
+maintainers:
+ - Ray Jui <rjui@broadcom.com>
+ - Scott Branden <sbranden@broadcom.com>
+
+properties:
+ $nodename:
+ const: '/'
+ compatible:
+ oneOf:
+ - description: Northstar2 based boards
+ items:
+ - enum:
+ - brcm,ns2-svk
+ - brcm,ns2-xmc
+ - const: brcm,ns2
+
+...
--
2.17.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH 05/12] dt-bindings: arm: bcm: Convert Stingray to YAML
2020-02-02 21:18 [PATCH 00/12] dt-bindings: arm: bcm: Convert boards to YAML Florian Fainelli
` (3 preceding siblings ...)
2020-02-02 21:18 ` [PATCH 04/12] dt-bindings: arm: bcm: Convert Northstar 2 " Florian Fainelli
@ 2020-02-02 21:18 ` Florian Fainelli
2020-02-02 21:18 ` [PATCH 06/12] dt-bindings: arm: bcm: Convert BCM21664 " Florian Fainelli
` (6 subsequent siblings)
11 siblings, 0 replies; 21+ messages in thread
From: Florian Fainelli @ 2020-02-02 21:18 UTC (permalink / raw)
To: linux-arm-kernel
Cc: devicetree, Florian Fainelli, Rob Herring, Mark Rutland, Ray Jui,
Scott Branden, maintainer:BROADCOM IPROC ARM ARCHITECTURE,
Nicolas Saenz Julienne, Sugaya Taichi, Olof Johansson,
Andrew Jeffery, Lubomir Rintel, Maxime Ripard,
moderated list:BROADCOM IPROC ARM ARCHITECTURE, open list,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE
Update the Broadcom Stingray SoC binding document for boards/SoCs to use
YAML. Verified with dt_binding_check and dtbs_check.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
.../bindings/arm/bcm/brcm,stingray.txt | 12 ---------
.../bindings/arm/bcm/brcm,stingray.yaml | 26 +++++++++++++++++++
2 files changed, 26 insertions(+), 12 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,stingray.txt
create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,stingray.yaml
diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,stingray.txt b/Documentation/devicetree/bindings/arm/bcm/brcm,stingray.txt
deleted file mode 100644
index 23a02178dd44..000000000000
--- a/Documentation/devicetree/bindings/arm/bcm/brcm,stingray.txt
+++ /dev/null
@@ -1,12 +0,0 @@
-Broadcom Stingray device tree bindings
-------------------------------------------------
-
-Boards with Stingray shall have the following properties:
-
-Required root node property:
-
-Stingray Combo SVK board
-compatible = "brcm,bcm958742k", "brcm,stingray";
-
-Stingray SST100 board
-compatible = "brcm,bcm958742t", "brcm,stingray";
diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,stingray.yaml b/Documentation/devicetree/bindings/arm/bcm/brcm,stingray.yaml
new file mode 100644
index 000000000000..b58307086cf2
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/bcm/brcm,stingray.yaml
@@ -0,0 +1,26 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/bcm/brcm,stingray.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Broadcom Stingray device tree bindings
+
+maintainers:
+ - Ray Jui <rjui@broadcom.com>
+ - Scott Branden <sbranden@broadcom.com>
+
+properties:
+ $nodename:
+ const: '/'
+ compatible:
+ oneOf:
+ - description: Broadcom Stingray based boards
+ items:
+ - enum:
+ - brcm,bcm958742k
+ - brcm,bcm958742t
+ - brcm,bcm958802a802x
+ - const: brcm,stingray
+
+...
--
2.17.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH 06/12] dt-bindings: arm: bcm: Convert BCM21664 to YAML
2020-02-02 21:18 [PATCH 00/12] dt-bindings: arm: bcm: Convert boards to YAML Florian Fainelli
` (4 preceding siblings ...)
2020-02-02 21:18 ` [PATCH 05/12] dt-bindings: arm: bcm: Convert Stingray " Florian Fainelli
@ 2020-02-02 21:18 ` Florian Fainelli
2020-02-03 8:30 ` Maxime Ripard
2020-02-02 21:18 ` [PATCH 07/12] dt-bindings: arm: bcm: Convert BCM23550 " Florian Fainelli
` (5 subsequent siblings)
11 siblings, 1 reply; 21+ messages in thread
From: Florian Fainelli @ 2020-02-02 21:18 UTC (permalink / raw)
To: linux-arm-kernel
Cc: devicetree, Florian Fainelli, Rob Herring, Mark Rutland, Ray Jui,
Scott Branden, maintainer:BROADCOM IPROC ARM ARCHITECTURE,
Nicolas Saenz Julienne, Sugaya Taichi, Olof Johansson,
Andrew Jeffery, Lubomir Rintel, Maxime Ripard,
moderated list:BROADCOM IPROC ARM ARCHITECTURE, open list,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE
Update the Broadcom BCM21664 SoC binding document for boards/SoCs to use
YAML. Verified with dt_binding_check and dtbs_check.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
.../bindings/arm/bcm/brcm,bcm21664.txt | 15 ------------
.../bindings/arm/bcm/brcm,bcm21664.yaml | 23 +++++++++++++++++++
2 files changed, 23 insertions(+), 15 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,bcm21664.txt
create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,bcm21664.yaml
diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm21664.txt b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm21664.txt
deleted file mode 100644
index e0774255e1a6..000000000000
--- a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm21664.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-Broadcom BCM21664 device tree bindings
---------------------------------------
-
-This document describes the device tree bindings for boards with the BCM21664
-SoC.
-
-Required root node property:
- - compatible: brcm,bcm21664
-
-Example:
- / {
- model = "BCM21664 SoC";
- compatible = "brcm,bcm21664";
- [...]
- }
diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm21664.yaml b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm21664.yaml
new file mode 100644
index 000000000000..8a38a6b68f60
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm21664.yaml
@@ -0,0 +1,23 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/bcm/brcm,bcm21664.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Broadcom BCM21664 device tree bindings
+
+maintainers:
+ - Florian Fainelli <f.fainelli@gmail.com>
+
+properties:
+ $nodename:
+ const: '/'
+ compatible:
+ oneOf:
+ - description: BCM21664 based boards
+ items:
+ - enum:
+ - brcm,bcm21664-garnet
+ - const: brcm,bcm21664
+
+...
--
2.17.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH 07/12] dt-bindings: arm: bcm: Convert BCM23550 to YAML
2020-02-02 21:18 [PATCH 00/12] dt-bindings: arm: bcm: Convert boards to YAML Florian Fainelli
` (5 preceding siblings ...)
2020-02-02 21:18 ` [PATCH 06/12] dt-bindings: arm: bcm: Convert BCM21664 " Florian Fainelli
@ 2020-02-02 21:18 ` Florian Fainelli
2020-02-02 21:18 ` [PATCH 08/12] dt-bindings: arm: bcm: Convert BCM4708 " Florian Fainelli
` (4 subsequent siblings)
11 siblings, 0 replies; 21+ messages in thread
From: Florian Fainelli @ 2020-02-02 21:18 UTC (permalink / raw)
To: linux-arm-kernel
Cc: devicetree, Florian Fainelli, Rob Herring, Mark Rutland, Ray Jui,
Scott Branden, maintainer:BROADCOM IPROC ARM ARCHITECTURE,
Nicolas Saenz Julienne, Sugaya Taichi, Olof Johansson,
Andrew Jeffery, Lubomir Rintel, Maxime Ripard,
moderated list:BROADCOM IPROC ARM ARCHITECTURE, open list,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE
Update the Broadcom BCM23550 SoC binding document for boards/SoCs to use
YAML. Verified with dt_binding_check and dtbs_check.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
.../bindings/arm/bcm/brcm,bcm23550.txt | 15 ------------
.../bindings/arm/bcm/brcm,bcm23550.yaml | 23 +++++++++++++++++++
2 files changed, 23 insertions(+), 15 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,bcm23550.txt
create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,bcm23550.yaml
diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm23550.txt b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm23550.txt
deleted file mode 100644
index 080baad923d6..000000000000
--- a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm23550.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-Broadcom BCM23550 device tree bindings
---------------------------------------
-
-This document describes the device tree bindings for boards with the BCM23550
-SoC.
-
-Required root node property:
- - compatible: brcm,bcm23550
-
-Example:
- / {
- model = "BCM23550 SoC";
- compatible = "brcm,bcm23550";
- [...]
- }
diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm23550.yaml b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm23550.yaml
new file mode 100644
index 000000000000..7a828ccd24f8
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm23550.yaml
@@ -0,0 +1,23 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/bcm/brcm,bcm23550.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Broadcom BCM23550 device tree bindings
+
+maintainers:
+ - Florian Fainelli <f.fainelli@gmail.com>
+
+properties:
+ $nodename:
+ const: '/'
+ compatible:
+ oneOf:
+ - description: BCM23550 based boards
+ items:
+ - enum:
+ - brcm,bcm23550-sparrow
+ - const: brcm,bcm23550
+
+...
--
2.17.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH 08/12] dt-bindings: arm: bcm: Convert BCM4708 to YAML
2020-02-02 21:18 [PATCH 00/12] dt-bindings: arm: bcm: Convert boards to YAML Florian Fainelli
` (6 preceding siblings ...)
2020-02-02 21:18 ` [PATCH 07/12] dt-bindings: arm: bcm: Convert BCM23550 " Florian Fainelli
@ 2020-02-02 21:18 ` Florian Fainelli
2020-02-03 8:31 ` Maxime Ripard
2020-02-02 21:18 ` [PATCH 09/12] dt-bindings: arm: bcm: Convert BCM11351 " Florian Fainelli
` (3 subsequent siblings)
11 siblings, 1 reply; 21+ messages in thread
From: Florian Fainelli @ 2020-02-02 21:18 UTC (permalink / raw)
To: linux-arm-kernel
Cc: devicetree, Florian Fainelli, Rob Herring, Mark Rutland, Ray Jui,
Scott Branden, maintainer:BROADCOM IPROC ARM ARCHITECTURE,
Nicolas Saenz Julienne, Sugaya Taichi, Olof Johansson,
Andrew Jeffery, Lubomir Rintel, Maxime Ripard,
moderated list:BROADCOM IPROC ARM ARCHITECTURE, open list,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE
Update the Broadcom BCM4708 SoC family binding document for boards/SoCs
to use YAML. Verified with dt_binding_check and dtbs_check.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
.../bindings/arm/bcm/brcm,bcm4708.txt | 15 ----
.../bindings/arm/bcm/brcm,bcm4708.yaml | 88 +++++++++++++++++++
2 files changed, 88 insertions(+), 15 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.txt
create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml
diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.txt b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.txt
deleted file mode 100644
index 8608a776caa7..000000000000
--- a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-Broadcom BCM4708 device tree bindings
--------------------------------------------
-
-Boards with the BCM4708 SoC shall have the following properties:
-
-Required root node property:
-
-bcm4708
-compatible = "brcm,bcm4708";
-
-bcm4709
-compatible = "brcm,bcm4709";
-
-bcm53012
-compatible = "brcm,bcm53012";
diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml
new file mode 100644
index 000000000000..d48313c7ae45
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml
@@ -0,0 +1,88 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/bcm/brcm,bcm4708.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Broadcom BCM4708 device tree bindings
+
+description:
+ Broadcom BCM4708/47081/4709/47094/53012 Wi-Fi/network SoCs based
+ on the iProc architecture (Northstar).
+
+maintainers:
+ - Florian Fainelli <f.fainelli@gmail.com>
+ - Hauke Mehrtens <hauke@hauke-m.de>
+ - Rafal Milecki <zajec5@gmail.com>
+
+properties:
+ $nodename:
+ const: '/'
+ compatible:
+ oneOf:
+ - description: BCM4708 based boards
+ items:
+ - enum:
+ - asus,rt-ac56u
+ - asus,rt-ac68u
+ - buffalo,wzr-1750dhp
+ - linksys,ea6300-v1
+ - linksys,ea6500-v2
+ - luxul,xap-1510v1
+ - luxul,xwc-1000
+ - netgear,r6250v1
+ - netgear,r6300v2
+ - smartrg,sr400ac
+ - brcm,bcm94708
+ - const: brcm,bcm4708
+
+ - description: BCM47081 based boards
+ items:
+ - enum:
+ - asus,rt-n18u
+ - buffalo,wzr-600dhp2
+ - buffalo,wzr-900dhp
+ - luxul,xap-1410v1
+ - luxul,xwr-1200v1
+ - tplink,archer-c5-v2
+ - const: brcm,bcm47081
+ - const: brcm,bcm4708
+
+ - description: BCM4709 based boards
+ items:
+ - enum:
+ - asus,rt-ac87u
+ - buffalo,wxr-1900dhp
+ - linksys,ea9200
+ - netgear,r7000
+ - netgear,r8000
+ - tplink,archer-c9-v1
+ - brcm,bcm94709
+ - const: brcm,bcm4709
+ - const: brcm,bcm4708
+
+ - description: BCM47094 based boards
+ items:
+ - enum:
+ - dlink,dir-885l
+ - linksys,panamera
+ - luxul,abr-4500-v1
+ - luxul,xap-1610-v1
+ - luxul,xbr-4500-v1
+ - luxul,xwc-2000-v1
+ - luxul,xwr-3100v1
+ - luxul,xwr-3150-v1
+ - netgear,r8500
+ - phicomm,k3
+ - const: brcm,bcm47094
+ - const: brcm,bcm4708
+
+ - description: BCM53012 based boards
+ items:
+ - enum:
+ - brcm,bcm953012er
+ - brcm,bcm953012hr
+ - brcm,bcm953012k
+ - const: brcm,brcm53012
+ - const: brcm,bcm4708
+...
--
2.17.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH 09/12] dt-bindings: arm: bcm: Convert BCM11351 to YAML
2020-02-02 21:18 [PATCH 00/12] dt-bindings: arm: bcm: Convert boards to YAML Florian Fainelli
` (7 preceding siblings ...)
2020-02-02 21:18 ` [PATCH 08/12] dt-bindings: arm: bcm: Convert BCM4708 " Florian Fainelli
@ 2020-02-02 21:18 ` Florian Fainelli
2020-02-02 21:18 ` [PATCH 10/12] dt-bindings: arm: bcm: Convert Vulcan " Florian Fainelli
` (2 subsequent siblings)
11 siblings, 0 replies; 21+ messages in thread
From: Florian Fainelli @ 2020-02-02 21:18 UTC (permalink / raw)
To: linux-arm-kernel
Cc: devicetree, Florian Fainelli, Rob Herring, Mark Rutland, Ray Jui,
Scott Branden, maintainer:BROADCOM IPROC ARM ARCHITECTURE,
Nicolas Saenz Julienne, Sugaya Taichi, Olof Johansson,
Andrew Jeffery, Lubomir Rintel, Maxime Ripard,
moderated list:BROADCOM IPROC ARM ARCHITECTURE, open list,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE
Update the Broadcom BCM11351 SoC family binding document for boards/SoCs
to use YAML. Verified with dt_binding_check and dtbs_check.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
.../bindings/arm/bcm/brcm,bcm11351.txt | 10 --------
.../bindings/arm/bcm/brcm,bcm11351.yaml | 23 +++++++++++++++++++
2 files changed, 23 insertions(+), 10 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,bcm11351.txt
create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,bcm11351.yaml
diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm11351.txt b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm11351.txt
deleted file mode 100644
index 0ff6560e6094..000000000000
--- a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm11351.txt
+++ /dev/null
@@ -1,10 +0,0 @@
-Broadcom BCM11351 device tree bindings
--------------------------------------------
-
-Boards with the bcm281xx SoC family (which includes bcm11130, bcm11140,
-bcm11351, bcm28145, bcm28155 SoCs) shall have the following properties:
-
-Required root node property:
-
-compatible = "brcm,bcm11351";
-DEPRECATED: compatible = "bcm,bcm11351";
diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm11351.yaml b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm11351.yaml
new file mode 100644
index 000000000000..f69605da3e8a
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm11351.yaml
@@ -0,0 +1,23 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/bcm/brcm,bcm11351.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Broadcom BCM11351 device tree bindings
+
+maintainers:
+ - Florian Fainelli <f.fainelli@gmail.com>
+
+properties:
+ $nodename:
+ const: '/'
+ compatible:
+ oneOf:
+ - description: BCM11351 based boards
+ items:
+ - enum:
+ - brcm,bcm28155-ap
+ - const: brcm,bcm11351
+
+...
--
2.17.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH 10/12] dt-bindings: arm: bcm: Convert Vulcan to YAML
2020-02-02 21:18 [PATCH 00/12] dt-bindings: arm: bcm: Convert boards to YAML Florian Fainelli
` (8 preceding siblings ...)
2020-02-02 21:18 ` [PATCH 09/12] dt-bindings: arm: bcm: Convert BCM11351 " Florian Fainelli
@ 2020-02-02 21:18 ` Florian Fainelli
2020-02-02 21:30 ` Rob Herring
2020-02-02 21:18 ` [PATCH 11/12] dt-bindings: arm: Document Broadcom SoCs 'secondary-boot-reg' Florian Fainelli
2020-02-02 21:18 ` [PATCH 12/12] dt-bindings: arm: bcm: Convert BCM2835 firmware binding to YAML Florian Fainelli
11 siblings, 1 reply; 21+ messages in thread
From: Florian Fainelli @ 2020-02-02 21:18 UTC (permalink / raw)
To: linux-arm-kernel
Cc: devicetree, Florian Fainelli, Rob Herring, Mark Rutland, Ray Jui,
Scott Branden, maintainer:BROADCOM IPROC ARM ARCHITECTURE,
Nicolas Saenz Julienne, Sugaya Taichi, Olof Johansson,
Andrew Jeffery, Lubomir Rintel, Maxime Ripard,
moderated list:BROADCOM IPROC ARM ARCHITECTURE, open list,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE
Update Vulcan SoC family binding document for boards/SoCs to use YAML.
Verified with dt_binding_check and dtbs_check.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
.../bindings/arm/bcm/brcm,vulcan-soc.txt | 10 --------
.../bindings/arm/bcm/brcm,vulcan-soc.yaml | 24 +++++++++++++++++++
2 files changed, 24 insertions(+), 10 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,vulcan-soc.txt
create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,vulcan-soc.yaml
diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,vulcan-soc.txt b/Documentation/devicetree/bindings/arm/bcm/brcm,vulcan-soc.txt
deleted file mode 100644
index 223ed3471c08..000000000000
--- a/Documentation/devicetree/bindings/arm/bcm/brcm,vulcan-soc.txt
+++ /dev/null
@@ -1,10 +0,0 @@
-Broadcom Vulcan device tree bindings
-------------------------------------
-
-Boards with Broadcom Vulcan shall have the following root property:
-
-Broadcom Vulcan Evaluation Board:
- compatible = "brcm,vulcan-eval", "brcm,vulcan-soc";
-
-Generic Vulcan board:
- compatible = "brcm,vulcan-soc";
diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,vulcan-soc.yaml b/Documentation/devicetree/bindings/arm/bcm/brcm,vulcan-soc.yaml
new file mode 100644
index 000000000000..0bfb45457150
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/bcm/brcm,vulcan-soc.yaml
@@ -0,0 +1,24 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/bcm/brcm,vulcan-soc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Broadcom Vulcan device tree bindings
+
+maintainers:
+ - Robert Richter <rrichter@marvell.com>
+
+properties:
+ $nodename:
+ const: '/'
+ compatible:
+ oneOf:
+ - description: Northstar2 based boards
+ items:
+ - enum:
+ - brcm,vulcan-eval
+ - cavium,thunderx2-cn9900
+ - const: brcm,vulcan-soc
+
+...
--
2.17.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH 11/12] dt-bindings: arm: Document Broadcom SoCs 'secondary-boot-reg'
2020-02-02 21:18 [PATCH 00/12] dt-bindings: arm: bcm: Convert boards to YAML Florian Fainelli
` (9 preceding siblings ...)
2020-02-02 21:18 ` [PATCH 10/12] dt-bindings: arm: bcm: Convert Vulcan " Florian Fainelli
@ 2020-02-02 21:18 ` Florian Fainelli
2020-02-03 8:34 ` Maxime Ripard
2020-02-02 21:18 ` [PATCH 12/12] dt-bindings: arm: bcm: Convert BCM2835 firmware binding to YAML Florian Fainelli
11 siblings, 1 reply; 21+ messages in thread
From: Florian Fainelli @ 2020-02-02 21:18 UTC (permalink / raw)
To: linux-arm-kernel
Cc: devicetree, Florian Fainelli, Rob Herring, Mark Rutland, Ray Jui,
Scott Branden, maintainer:BROADCOM IPROC ARM ARCHITECTURE,
Nicolas Saenz Julienne, Sugaya Taichi, Olof Johansson,
Andrew Jeffery, Lubomir Rintel, Maxime Ripard,
moderated list:BROADCOM IPROC ARM ARCHITECTURE, open list,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE
Consolidate and move the 'secondary-boot-reg' property from the 3
existing bindingn document into the main cpus.yaml documentation.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
.../arm/bcm/brcm,bcm11351-cpu-method.txt | 36 -----------------
.../arm/bcm/brcm,bcm23550-cpu-method.txt | 36 -----------------
.../bindings/arm/bcm/brcm,nsp-cpu-method.txt | 39 -------------------
.../devicetree/bindings/arm/cpus.yaml | 16 ++++++++
4 files changed, 16 insertions(+), 111 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,bcm11351-cpu-method.txt
delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,bcm23550-cpu-method.txt
delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,nsp-cpu-method.txt
diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm11351-cpu-method.txt b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm11351-cpu-method.txt
deleted file mode 100644
index e3f996920403..000000000000
--- a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm11351-cpu-method.txt
+++ /dev/null
@@ -1,36 +0,0 @@
-Broadcom Kona Family CPU Enable Method
---------------------------------------
-This binding defines the enable method used for starting secondary
-CPUs in the following Broadcom SoCs:
- BCM11130, BCM11140, BCM11351, BCM28145, BCM28155, BCM21664
-
-The enable method is specified by defining the following required
-properties in the "cpu" device tree node:
- - enable-method = "brcm,bcm11351-cpu-method";
- - secondary-boot-reg = <...>;
-
-The secondary-boot-reg property is a u32 value that specifies the
-physical address of the register used to request the ROM holding pen
-code release a secondary CPU. The value written to the register is
-formed by encoding the target CPU id into the low bits of the
-physical start address it should jump to.
-
-Example:
- cpus {
- #address-cells = <1>;
- #size-cells = <0>;
-
- cpu0: cpu@0 {
- device_type = "cpu";
- compatible = "arm,cortex-a9";
- reg = <0>;
- };
-
- cpu1: cpu@1 {
- device_type = "cpu";
- compatible = "arm,cortex-a9";
- reg = <1>;
- enable-method = "brcm,bcm11351-cpu-method";
- secondary-boot-reg = <0x3500417c>;
- };
- };
diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm23550-cpu-method.txt b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm23550-cpu-method.txt
deleted file mode 100644
index a3af54c0e404..000000000000
--- a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm23550-cpu-method.txt
+++ /dev/null
@@ -1,36 +0,0 @@
-Broadcom Kona Family CPU Enable Method
---------------------------------------
-This binding defines the enable method used for starting secondary
-CPUs in the following Broadcom SoCs:
- BCM23550
-
-The enable method is specified by defining the following required
-properties in the "cpu" device tree node:
- - enable-method = "brcm,bcm23550";
- - secondary-boot-reg = <...>;
-
-The secondary-boot-reg property is a u32 value that specifies the
-physical address of the register used to request the ROM holding pen
-code release a secondary CPU. The value written to the register is
-formed by encoding the target CPU id into the low bits of the
-physical start address it should jump to.
-
-Example:
- cpus {
- #address-cells = <1>;
- #size-cells = <0>;
-
- cpu0: cpu@0 {
- device_type = "cpu";
- compatible = "arm,cortex-a9";
- reg = <0>;
- };
-
- cpu1: cpu@1 {
- device_type = "cpu";
- compatible = "arm,cortex-a9";
- reg = <1>;
- enable-method = "brcm,bcm23550";
- secondary-boot-reg = <0x3500417c>;
- };
- };
diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,nsp-cpu-method.txt b/Documentation/devicetree/bindings/arm/bcm/brcm,nsp-cpu-method.txt
deleted file mode 100644
index 677ef9d9f445..000000000000
--- a/Documentation/devicetree/bindings/arm/bcm/brcm,nsp-cpu-method.txt
+++ /dev/null
@@ -1,39 +0,0 @@
-Broadcom Northstar Plus SoC CPU Enable Method
----------------------------------------------
-This binding defines the enable method used for starting secondary
-CPU in the following Broadcom SoCs:
- BCM58522, BCM58525, BCM58535, BCM58622, BCM58623, BCM58625, BCM88312
-
-The enable method is specified by defining the following required
-properties in the corresponding secondary "cpu" device tree node:
- - enable-method = "brcm,bcm-nsp-smp";
- - secondary-boot-reg = <...>;
-
-The secondary-boot-reg property is a u32 value that specifies the
-physical address of the register which should hold the common
-entry point for a secondary CPU. This entry is cpu node specific
-and should be added per cpu. E.g., in case of NSP (BCM58625) which
-is a dual core CPU SoC, this entry should be added to cpu1 node.
-
-
-Example:
- cpus {
- #address-cells = <1>;
- #size-cells = <0>;
-
- cpu0: cpu@0 {
- device_type = "cpu";
- compatible = "arm,cortex-a9";
- next-level-cache = <&L2>;
- reg = <0>;
- };
-
- cpu1: cpu@1 {
- device_type = "cpu";
- compatible = "arm,cortex-a9";
- next-level-cache = <&L2>;
- enable-method = "brcm,bcm-nsp-smp";
- secondary-boot-reg = <0xffff042c>;
- reg = <1>;
- };
- };
diff --git a/Documentation/devicetree/bindings/arm/cpus.yaml b/Documentation/devicetree/bindings/arm/cpus.yaml
index c23c24ff7575..6f56a623c1cd 100644
--- a/Documentation/devicetree/bindings/arm/cpus.yaml
+++ b/Documentation/devicetree/bindings/arm/cpus.yaml
@@ -272,6 +272,22 @@ properties:
While optional, it is the preferred way to get access to
the cpu-core power-domains.
+ secondary-boot-reg:
+ $ref: '/schemas/types.yaml#/definitions/uint32'
+ description: |
+ Required for systems that have an "enable-method" property value of
+ "brcm,bcm11351-cpu-method", "brcm,bcm23550" or "brcm,bcm-nsp-smp".
+
+ This includes the following SoCs: |
+ BCM11130, BCM11140, BCM11351, BCM28145, BCM28155, BCM21664, BCM23550
+ BCM58522, BCM58525, BCM58535, BCM58622, BCM58623, BCM58625, BCM88312
+
+ The secondary-boot-reg property is a u32 value that specifies the
+ physical address of the register used to request the ROM holding pen
+ code release a secondary CPU. The value written to the register is
+ formed by encoding the target CPU id into the low bits of the
+ physical start address it should jump to.
+
required:
- device_type
- reg
--
2.17.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH 12/12] dt-bindings: arm: bcm: Convert BCM2835 firmware binding to YAML
2020-02-02 21:18 [PATCH 00/12] dt-bindings: arm: bcm: Convert boards to YAML Florian Fainelli
` (10 preceding siblings ...)
2020-02-02 21:18 ` [PATCH 11/12] dt-bindings: arm: Document Broadcom SoCs 'secondary-boot-reg' Florian Fainelli
@ 2020-02-02 21:18 ` Florian Fainelli
2020-02-03 10:14 ` Rob Herring
11 siblings, 1 reply; 21+ messages in thread
From: Florian Fainelli @ 2020-02-02 21:18 UTC (permalink / raw)
To: linux-arm-kernel
Cc: devicetree, Florian Fainelli, Rob Herring, Mark Rutland, Ray Jui,
Scott Branden, maintainer:BROADCOM IPROC ARM ARCHITECTURE,
Nicolas Saenz Julienne, Sugaya Taichi, Olof Johansson,
Andrew Jeffery, Lubomir Rintel, Maxime Ripard,
moderated list:BROADCOM IPROC ARM ARCHITECTURE, open list,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE
Convert the Raspberry Pi BCM2835 firmware binding document to YAML.
Verified with dt_binding_check and dtbs_check.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
.../arm/bcm/raspberrypi,bcm2835-firmware.txt | 14 --------
.../arm/bcm/raspberrypi,bcm2835-firmware.yaml | 33 +++++++++++++++++++
2 files changed, 33 insertions(+), 14 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.txt
create mode 100644 Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml
diff --git a/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.txt b/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.txt
deleted file mode 100644
index 6824b3180ffb..000000000000
--- a/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-Raspberry Pi VideoCore firmware driver
-
-Required properties:
-
-- compatible: Should be "raspberrypi,bcm2835-firmware"
-- mboxes: Phandle to the firmware device's Mailbox.
- (See: ../mailbox/mailbox.txt for more information)
-
-Example:
-
-firmware {
- compatible = "raspberrypi,bcm2835-firmware";
- mboxes = <&mailbox>;
-};
diff --git a/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml b/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml
new file mode 100644
index 000000000000..4ccbe3bf616c
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml
@@ -0,0 +1,33 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/bcm/raspberrypi,bcm2835.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Raspberry Pi VideoCore firmware driver
+
+maintainers:
+ - Eric Anholt <eric@anholt.net>
+ - Stefan Wahren <wahrenst@gmx.net>
+
+properties:
+ compatible:
+ const: raspberrypi,bcm2835-firmware simple-bus
+
+ mboxes:
+ $ref: '/schemas/types.yaml#/definitions/phandle'
+ description: |
+ Phandle to the firmware device's Mailbox.
+ (See: ../mailbox/mailbox.txt for more information)
+
+required:
+ - compatible
+ - mboxes
+
+examples:
+ - |
+ firmware {
+ compatible = "raspberrypi,bcm2835-firmware";
+ mboxes = <&mailbox>;
+ };
+...
--
2.17.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* Re: [PATCH 10/12] dt-bindings: arm: bcm: Convert Vulcan to YAML
2020-02-02 21:18 ` [PATCH 10/12] dt-bindings: arm: bcm: Convert Vulcan " Florian Fainelli
@ 2020-02-02 21:30 ` Rob Herring
0 siblings, 0 replies; 21+ messages in thread
From: Rob Herring @ 2020-02-02 21:30 UTC (permalink / raw)
To: Florian Fainelli
Cc: linux-arm-kernel, devicetree, Mark Rutland, Ray Jui,
Scott Branden, maintainer:BROADCOM IPROC ARM ARCHITECTURE,
Nicolas Saenz Julienne, Sugaya Taichi, Olof Johansson,
Andrew Jeffery, Lubomir Rintel, Maxime Ripard,
moderated list:BROADCOM IPROC ARM ARCHITECTURE, open list,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE
On Sun, Feb 2, 2020 at 9:19 PM Florian Fainelli <f.fainelli@gmail.com> wrote:
>
> Update Vulcan SoC family binding document for boards/SoCs to use YAML.
> Verified with dt_binding_check and dtbs_check.
>
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
> ---
> .../bindings/arm/bcm/brcm,vulcan-soc.txt | 10 --------
> .../bindings/arm/bcm/brcm,vulcan-soc.yaml | 24 +++++++++++++++++++
> 2 files changed, 24 insertions(+), 10 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,vulcan-soc.txt
> create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,vulcan-soc.yaml
>
> diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,vulcan-soc.txt b/Documentation/devicetree/bindings/arm/bcm/brcm,vulcan-soc.txt
> deleted file mode 100644
> index 223ed3471c08..000000000000
> --- a/Documentation/devicetree/bindings/arm/bcm/brcm,vulcan-soc.txt
> +++ /dev/null
> @@ -1,10 +0,0 @@
> -Broadcom Vulcan device tree bindings
> -------------------------------------
> -
> -Boards with Broadcom Vulcan shall have the following root property:
> -
> -Broadcom Vulcan Evaluation Board:
> - compatible = "brcm,vulcan-eval", "brcm,vulcan-soc";
> -
> -Generic Vulcan board:
> - compatible = "brcm,vulcan-soc";
> diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,vulcan-soc.yaml b/Documentation/devicetree/bindings/arm/bcm/brcm,vulcan-soc.yaml
> new file mode 100644
> index 000000000000..0bfb45457150
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/arm/bcm/brcm,vulcan-soc.yaml
> @@ -0,0 +1,24 @@
> +# SPDX-License-Identifier: GPL-2.0
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/arm/bcm/brcm,vulcan-soc.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Broadcom Vulcan device tree bindings
> +
> +maintainers:
> + - Robert Richter <rrichter@marvell.com>
> +
> +properties:
> + $nodename:
> + const: '/'
> + compatible:
> + oneOf:
> + - description: Northstar2 based boards
Copy-n-paste?
> + items:
> + - enum:
> + - brcm,vulcan-eval
> + - cavium,thunderx2-cn9900
> + - const: brcm,vulcan-soc
> +
> +...
> --
> 2.17.1
>
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 01/12] dt-bindings: arm: bcm: Convert Cygnus to YAML
2020-02-02 21:18 ` [PATCH 01/12] dt-bindings: arm: bcm: Convert Cygnus " Florian Fainelli
@ 2020-02-03 8:29 ` Maxime Ripard
0 siblings, 0 replies; 21+ messages in thread
From: Maxime Ripard @ 2020-02-03 8:29 UTC (permalink / raw)
To: Florian Fainelli
Cc: linux-arm-kernel, devicetree, Rob Herring, Mark Rutland, Ray Jui,
Scott Branden, maintainer:BROADCOM IPROC ARM ARCHITECTURE,
Nicolas Saenz Julienne, Sugaya Taichi, Olof Johansson,
Andrew Jeffery, Lubomir Rintel,
moderated list:BROADCOM IPROC ARM ARCHITECTURE, open list,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE
Hi Florian,
On Sun, Feb 02, 2020 at 01:18:16PM -0800, Florian Fainelli wrote:
> Update the Broadocom Cygnus SoC binding document for boards/SoCs to use
> YAML. Verified with dt_binding_check and dtbs_check.
>
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
> ---
> .../bindings/arm/bcm/brcm,cygnus.txt | 31 ---------
> .../bindings/arm/bcm/brcm,cygnus.yaml | 66 +++++++++++++++++++
> 2 files changed, 66 insertions(+), 31 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,cygnus.txt
> create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,cygnus.yaml
>
> diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,cygnus.txt b/Documentation/devicetree/bindings/arm/bcm/brcm,cygnus.txt
> deleted file mode 100644
> index 4c77169bb534..000000000000
> --- a/Documentation/devicetree/bindings/arm/bcm/brcm,cygnus.txt
> +++ /dev/null
> @@ -1,31 +0,0 @@
> -Broadcom Cygnus device tree bindings
> -------------------------------------
> -
> -
> -Boards with Cygnus SoCs shall have the following properties:
> -
> -Required root node property:
> -
> -BCM11300
> -compatible = "brcm,bcm11300", "brcm,cygnus";
> -
> -BCM11320
> -compatible = "brcm,bcm11320", "brcm,cygnus";
> -
> -BCM11350
> -compatible = "brcm,bcm11350", "brcm,cygnus";
> -
> -BCM11360
> -compatible = "brcm,bcm11360", "brcm,cygnus";
> -
> -BCM58300
> -compatible = "brcm,bcm58300", "brcm,cygnus";
> -
> -BCM58302
> -compatible = "brcm,bcm58302", "brcm,cygnus";
> -
> -BCM58303
> -compatible = "brcm,bcm58303", "brcm,cygnus";
> -
> -BCM58305
> -compatible = "brcm,bcm58305", "brcm,cygnus";
> diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,cygnus.yaml b/Documentation/devicetree/bindings/arm/bcm/brcm,cygnus.yaml
> new file mode 100644
> index 000000000000..2606ca956caf
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/arm/bcm/brcm,cygnus.yaml
> @@ -0,0 +1,66 @@
> +# SPDX-License-Identifier: GPL-2.0
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/arm/bcm/brcm,cygnus.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Broadcom Cygnus device tree bindings
> +
> +maintainers:
> + - Ray Jui <rjui@broadcom.com>
> + - Scott Branden <sbranden@broadcom.com>
> +
> +properties:
> + $nodename:
> + const: '/'
> + compatible:
> + oneOf:
> + - description: BCM11300 based boards
> + items:
> + - enum:
> + - brcm,bcm11300
> + - const: brcm,cygnus
> +
> + - description: BCM11320 based boards
> + items:
> + - enum:
> + - brcm,bcm11320
> + - const: brcm,cygnus
This applies to other patches in your series too, but this can be
simplified to either (removing the description to make the example
simpler):
oneOf:
- items:
- const: brcm,bcm11300
- const: brcm,cygnus
- items:
- const: brcm,bcm11320
- const: brcm,cygnus
Or
items:
- enum:
- brcm,bcm11300
- brcm,bcm11320
- const: brcm,cygnus
The latter will provide more meaningful errors, so you should probably
pick this one over the former.
Maxime
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 06/12] dt-bindings: arm: bcm: Convert BCM21664 to YAML
2020-02-02 21:18 ` [PATCH 06/12] dt-bindings: arm: bcm: Convert BCM21664 " Florian Fainelli
@ 2020-02-03 8:30 ` Maxime Ripard
0 siblings, 0 replies; 21+ messages in thread
From: Maxime Ripard @ 2020-02-03 8:30 UTC (permalink / raw)
To: Florian Fainelli
Cc: linux-arm-kernel, devicetree, Rob Herring, Mark Rutland, Ray Jui,
Scott Branden, maintainer:BROADCOM IPROC ARM ARCHITECTURE,
Nicolas Saenz Julienne, Sugaya Taichi, Olof Johansson,
Andrew Jeffery, Lubomir Rintel,
moderated list:BROADCOM IPROC ARM ARCHITECTURE, open list,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE
On Sun, Feb 02, 2020 at 01:18:21PM -0800, Florian Fainelli wrote:
> Update the Broadcom BCM21664 SoC binding document for boards/SoCs to use
> YAML. Verified with dt_binding_check and dtbs_check.
>
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
> ---
> .../bindings/arm/bcm/brcm,bcm21664.txt | 15 ------------
> .../bindings/arm/bcm/brcm,bcm21664.yaml | 23 +++++++++++++++++++
> 2 files changed, 23 insertions(+), 15 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,bcm21664.txt
> create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,bcm21664.yaml
>
> diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm21664.txt b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm21664.txt
> deleted file mode 100644
> index e0774255e1a6..000000000000
> --- a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm21664.txt
> +++ /dev/null
> @@ -1,15 +0,0 @@
> -Broadcom BCM21664 device tree bindings
> ---------------------------------------
> -
> -This document describes the device tree bindings for boards with the BCM21664
> -SoC.
> -
> -Required root node property:
> - - compatible: brcm,bcm21664
> -
> -Example:
> - / {
> - model = "BCM21664 SoC";
> - compatible = "brcm,bcm21664";
> - [...]
> - }
> diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm21664.yaml b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm21664.yaml
> new file mode 100644
> index 000000000000..8a38a6b68f60
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm21664.yaml
> @@ -0,0 +1,23 @@
> +# SPDX-License-Identifier: GPL-2.0
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/arm/bcm/brcm,bcm21664.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Broadcom BCM21664 device tree bindings
> +
> +maintainers:
> + - Florian Fainelli <f.fainelli@gmail.com>
> +
> +properties:
> + $nodename:
> + const: '/'
> + compatible:
> + oneOf:
> + - description: BCM21664 based boards
> + items:
> + - enum:
> + - brcm,bcm21664-garnet
> + - const: brcm,bcm21664
Do you really need the oneOf here?
Maxime
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 08/12] dt-bindings: arm: bcm: Convert BCM4708 to YAML
2020-02-02 21:18 ` [PATCH 08/12] dt-bindings: arm: bcm: Convert BCM4708 " Florian Fainelli
@ 2020-02-03 8:31 ` Maxime Ripard
0 siblings, 0 replies; 21+ messages in thread
From: Maxime Ripard @ 2020-02-03 8:31 UTC (permalink / raw)
To: Florian Fainelli
Cc: linux-arm-kernel, devicetree, Rob Herring, Mark Rutland, Ray Jui,
Scott Branden, maintainer:BROADCOM IPROC ARM ARCHITECTURE,
Nicolas Saenz Julienne, Sugaya Taichi, Olof Johansson,
Andrew Jeffery, Lubomir Rintel,
moderated list:BROADCOM IPROC ARM ARCHITECTURE, open list,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE
Hi,
On Sun, Feb 02, 2020 at 01:18:23PM -0800, Florian Fainelli wrote:
> Update the Broadcom BCM4708 SoC family binding document for boards/SoCs
> to use YAML. Verified with dt_binding_check and dtbs_check.
>
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
> ---
> .../bindings/arm/bcm/brcm,bcm4708.txt | 15 ----
> .../bindings/arm/bcm/brcm,bcm4708.yaml | 88 +++++++++++++++++++
> 2 files changed, 88 insertions(+), 15 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.txt
> create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml
>
> diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.txt b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.txt
> deleted file mode 100644
> index 8608a776caa7..000000000000
> --- a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.txt
> +++ /dev/null
> @@ -1,15 +0,0 @@
> -Broadcom BCM4708 device tree bindings
> --------------------------------------------
> -
> -Boards with the BCM4708 SoC shall have the following properties:
> -
> -Required root node property:
> -
> -bcm4708
> -compatible = "brcm,bcm4708";
> -
> -bcm4709
> -compatible = "brcm,bcm4709";
> -
> -bcm53012
> -compatible = "brcm,bcm53012";
> diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml
> new file mode 100644
> index 000000000000..d48313c7ae45
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml
> @@ -0,0 +1,88 @@
> +# SPDX-License-Identifier: GPL-2.0
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/arm/bcm/brcm,bcm4708.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Broadcom BCM4708 device tree bindings
> +
> +description:
> + Broadcom BCM4708/47081/4709/47094/53012 Wi-Fi/network SoCs based
> + on the iProc architecture (Northstar).
> +
> +maintainers:
> + - Florian Fainelli <f.fainelli@gmail.com>
> + - Hauke Mehrtens <hauke@hauke-m.de>
> + - Rafal Milecki <zajec5@gmail.com>
> +
> +properties:
> + $nodename:
> + const: '/'
> + compatible:
> + oneOf:
> + - description: BCM4708 based boards
> + items:
> + - enum:
> + - asus,rt-ac56u
> + - asus,rt-ac68u
> + - buffalo,wzr-1750dhp
> + - linksys,ea6300-v1
> + - linksys,ea6500-v2
> + - luxul,xap-1510v1
> + - luxul,xwc-1000
> + - netgear,r6250v1
> + - netgear,r6300v2
> + - smartrg,sr400ac
> + - brcm,bcm94708
> + - const: brcm,bcm4708
I'm under the impression that while the SoC compatible description in
your other bindings is obvious enough, if anything, you should have a
description of the boards. But it's up to you :)
Maxime
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 11/12] dt-bindings: arm: Document Broadcom SoCs 'secondary-boot-reg'
2020-02-02 21:18 ` [PATCH 11/12] dt-bindings: arm: Document Broadcom SoCs 'secondary-boot-reg' Florian Fainelli
@ 2020-02-03 8:34 ` Maxime Ripard
2020-02-04 5:29 ` Florian Fainelli
0 siblings, 1 reply; 21+ messages in thread
From: Maxime Ripard @ 2020-02-03 8:34 UTC (permalink / raw)
To: Florian Fainelli
Cc: linux-arm-kernel, devicetree, Rob Herring, Mark Rutland, Ray Jui,
Scott Branden, maintainer:BROADCOM IPROC ARM ARCHITECTURE,
Nicolas Saenz Julienne, Sugaya Taichi, Olof Johansson,
Andrew Jeffery, Lubomir Rintel,
moderated list:BROADCOM IPROC ARM ARCHITECTURE, open list,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE
On Sun, Feb 02, 2020 at 01:18:26PM -0800, Florian Fainelli wrote:
> diff --git a/Documentation/devicetree/bindings/arm/cpus.yaml b/Documentation/devicetree/bindings/arm/cpus.yaml
> index c23c24ff7575..6f56a623c1cd 100644
> --- a/Documentation/devicetree/bindings/arm/cpus.yaml
> +++ b/Documentation/devicetree/bindings/arm/cpus.yaml
> @@ -272,6 +272,22 @@ properties:
> While optional, it is the preferred way to get access to
> the cpu-core power-domains.
>
> + secondary-boot-reg:
> + $ref: '/schemas/types.yaml#/definitions/uint32'
> + description: |
> + Required for systems that have an "enable-method" property value of
> + "brcm,bcm11351-cpu-method", "brcm,bcm23550" or "brcm,bcm-nsp-smp".
> +
> + This includes the following SoCs: |
> + BCM11130, BCM11140, BCM11351, BCM28145, BCM28155, BCM21664, BCM23550
> + BCM58522, BCM58525, BCM58535, BCM58622, BCM58623, BCM58625, BCM88312
> +
> + The secondary-boot-reg property is a u32 value that specifies the
> + physical address of the register used to request the ROM holding pen
> + code release a secondary CPU. The value written to the register is
> + formed by encoding the target CPU id into the low bits of the
> + physical start address it should jump to.
> +
You can make the requirement explicit (and enforced by the schemas) using:
if:
properties:
enable-method:
contains:
enum:
- brcm,bcm11351-cpu-method
- brcm,bcm23550
- brcm,bcm-nsp-smp
then:
required:
- secondary-boot-reg
Maxime
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 12/12] dt-bindings: arm: bcm: Convert BCM2835 firmware binding to YAML
2020-02-02 21:18 ` [PATCH 12/12] dt-bindings: arm: bcm: Convert BCM2835 firmware binding to YAML Florian Fainelli
@ 2020-02-03 10:14 ` Rob Herring
0 siblings, 0 replies; 21+ messages in thread
From: Rob Herring @ 2020-02-03 10:14 UTC (permalink / raw)
To: Florian Fainelli
Cc: linux-arm-kernel, devicetree, Florian Fainelli,
moderated list:BROADCOM IPROC ARM ARCHITECTURE, open list,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE
On Sun, 2 Feb 2020 13:18:27 -0800, Florian Fainelli wrote:
> Convert the Raspberry Pi BCM2835 firmware binding document to YAML.
> Verified with dt_binding_check and dtbs_check.
>
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
> ---
> .../arm/bcm/raspberrypi,bcm2835-firmware.txt | 14 --------
> .../arm/bcm/raspberrypi,bcm2835-firmware.yaml | 33 +++++++++++++++++++
> 2 files changed, 33 insertions(+), 14 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.txt
> create mode 100644 Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml
>
My bot found errors running 'make dt_binding_check' on your patch:
Documentation/devicetree/bindings/display/simple-framebuffer.example.dts:21.16-37.11: Warning (chosen_node_is_root): /example-0/chosen: chosen node must be at root node
Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml: $id: path/filename 'arm/bcm/raspberrypi,bcm2835.yaml' doesn't match actual filename
Documentation/devicetree/bindings/Makefile:12: recipe for target 'Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.example.dts' failed
make[1]: *** [Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.example.dts] Error 1
Makefile:1263: recipe for target 'dt_binding_check' failed
make: *** [dt_binding_check] Error 2
See https://patchwork.ozlabs.org/patch/1232487
Please check and re-submit.
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 11/12] dt-bindings: arm: Document Broadcom SoCs 'secondary-boot-reg'
2020-02-03 8:34 ` Maxime Ripard
@ 2020-02-04 5:29 ` Florian Fainelli
2020-02-04 9:19 ` Maxime Ripard
0 siblings, 1 reply; 21+ messages in thread
From: Florian Fainelli @ 2020-02-04 5:29 UTC (permalink / raw)
To: Maxime Ripard, Florian Fainelli
Cc: linux-arm-kernel, devicetree, Rob Herring, Mark Rutland, Ray Jui,
Scott Branden, maintainer:BROADCOM IPROC ARM ARCHITECTURE,
Nicolas Saenz Julienne, Sugaya Taichi, Olof Johansson,
Andrew Jeffery, Lubomir Rintel,
moderated list:BROADCOM IPROC ARM ARCHITECTURE, open list,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE
On 2/3/2020 12:34 AM, Maxime Ripard wrote:
> On Sun, Feb 02, 2020 at 01:18:26PM -0800, Florian Fainelli wrote:
>> diff --git a/Documentation/devicetree/bindings/arm/cpus.yaml b/Documentation/devicetree/bindings/arm/cpus.yaml
>> index c23c24ff7575..6f56a623c1cd 100644
>> --- a/Documentation/devicetree/bindings/arm/cpus.yaml
>> +++ b/Documentation/devicetree/bindings/arm/cpus.yaml
>> @@ -272,6 +272,22 @@ properties:
>> While optional, it is the preferred way to get access to
>> the cpu-core power-domains.
>>
>> + secondary-boot-reg:
>> + $ref: '/schemas/types.yaml#/definitions/uint32'
>> + description: |
>> + Required for systems that have an "enable-method" property value of
>> + "brcm,bcm11351-cpu-method", "brcm,bcm23550" or "brcm,bcm-nsp-smp".
>> +
>> + This includes the following SoCs: |
>> + BCM11130, BCM11140, BCM11351, BCM28145, BCM28155, BCM21664, BCM23550
>> + BCM58522, BCM58525, BCM58535, BCM58622, BCM58623, BCM58625, BCM88312
>> +
>> + The secondary-boot-reg property is a u32 value that specifies the
>> + physical address of the register used to request the ROM holding pen
>> + code release a secondary CPU. The value written to the register is
>> + formed by encoding the target CPU id into the low bits of the
>> + physical start address it should jump to.
>> +
>
> You can make the requirement explicit (and enforced by the schemas) using:
>
> if:
> properties:
> enable-method:
> contains:
> enum:
> - brcm,bcm11351-cpu-method
> - brcm,bcm23550
> - brcm,bcm-nsp-smp
>
> then:
> required:
> - secondary-boot-reg
Thanks! That was exactly what I was looking for, it seems to be matching
a bit too greedily though:
DTC arch/arm/boot/dts/bcm2836-rpi-2-b.dt.yaml
CHECK arch/arm/boot/dts/bcm2836-rpi-2-b.dt.yaml
/home/ff944844/dev/linux/arch/arm/boot/dts/bcm2836-rpi-2-b.dt.yaml:
cpu@0: 'secondary-boot-reg' is a required property
/home/ff944844/dev/linux/arch/arm/boot/dts/bcm2836-rpi-2-b.dt.yaml:
cpu@1: 'secondary-boot-reg' is a required property
/home/ff944844/dev/linux/arch/arm/boot/dts/bcm2836-rpi-2-b.dt.yaml:
cpu@2: 'secondary-boot-reg' is a required property
/home/ff944844/dev/linux/arch/arm/boot/dts/bcm2836-rpi-2-b.dt.yaml:
cpu@3: 'secondary-boot-reg' is a required property
DTC arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dt.yaml
not sure why though as your example appears correct.
--
Florian
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 11/12] dt-bindings: arm: Document Broadcom SoCs 'secondary-boot-reg'
2020-02-04 5:29 ` Florian Fainelli
@ 2020-02-04 9:19 ` Maxime Ripard
0 siblings, 0 replies; 21+ messages in thread
From: Maxime Ripard @ 2020-02-04 9:19 UTC (permalink / raw)
To: Florian Fainelli
Cc: linux-arm-kernel, devicetree, Rob Herring, Mark Rutland, Ray Jui,
Scott Branden, maintainer:BROADCOM IPROC ARM ARCHITECTURE,
Nicolas Saenz Julienne, Sugaya Taichi, Olof Johansson,
Andrew Jeffery, Lubomir Rintel,
moderated list:BROADCOM IPROC ARM ARCHITECTURE, open list,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE
[-- Attachment #1: Type: text/plain, Size: 3649 bytes --]
On Mon, Feb 03, 2020 at 09:29:30PM -0800, Florian Fainelli wrote:
>
>
> On 2/3/2020 12:34 AM, Maxime Ripard wrote:
> > On Sun, Feb 02, 2020 at 01:18:26PM -0800, Florian Fainelli wrote:
> >> diff --git a/Documentation/devicetree/bindings/arm/cpus.yaml b/Documentation/devicetree/bindings/arm/cpus.yaml
> >> index c23c24ff7575..6f56a623c1cd 100644
> >> --- a/Documentation/devicetree/bindings/arm/cpus.yaml
> >> +++ b/Documentation/devicetree/bindings/arm/cpus.yaml
> >> @@ -272,6 +272,22 @@ properties:
> >> While optional, it is the preferred way to get access to
> >> the cpu-core power-domains.
> >>
> >> + secondary-boot-reg:
> >> + $ref: '/schemas/types.yaml#/definitions/uint32'
> >> + description: |
> >> + Required for systems that have an "enable-method" property value of
> >> + "brcm,bcm11351-cpu-method", "brcm,bcm23550" or "brcm,bcm-nsp-smp".
> >> +
> >> + This includes the following SoCs: |
> >> + BCM11130, BCM11140, BCM11351, BCM28145, BCM28155, BCM21664, BCM23550
> >> + BCM58522, BCM58525, BCM58535, BCM58622, BCM58623, BCM58625, BCM88312
> >> +
> >> + The secondary-boot-reg property is a u32 value that specifies the
> >> + physical address of the register used to request the ROM holding pen
> >> + code release a secondary CPU. The value written to the register is
> >> + formed by encoding the target CPU id into the low bits of the
> >> + physical start address it should jump to.
> >> +
> >
> > You can make the requirement explicit (and enforced by the schemas) using:
> >
> > if:
> > properties:
> > enable-method:
> > contains:
> > enum:
> > - brcm,bcm11351-cpu-method
> > - brcm,bcm23550
> > - brcm,bcm-nsp-smp
> >
> > then:
> > required:
> > - secondary-boot-reg
>
> Thanks! That was exactly what I was looking for, it seems to be matching
> a bit too greedily though:
>
> DTC arch/arm/boot/dts/bcm2836-rpi-2-b.dt.yaml
> CHECK arch/arm/boot/dts/bcm2836-rpi-2-b.dt.yaml
> /home/ff944844/dev/linux/arch/arm/boot/dts/bcm2836-rpi-2-b.dt.yaml:
> cpu@0: 'secondary-boot-reg' is a required property
> /home/ff944844/dev/linux/arch/arm/boot/dts/bcm2836-rpi-2-b.dt.yaml:
> cpu@1: 'secondary-boot-reg' is a required property
> /home/ff944844/dev/linux/arch/arm/boot/dts/bcm2836-rpi-2-b.dt.yaml:
> cpu@2: 'secondary-boot-reg' is a required property
> /home/ff944844/dev/linux/arch/arm/boot/dts/bcm2836-rpi-2-b.dt.yaml:
> cpu@3: 'secondary-boot-reg' is a required property
> DTC arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dt.yaml
>
> not sure why though as your example appears correct.
Yeah, sorry, that's on me :)
The nodes that are generating this error are the cpu@[0-3] ones, and
they don't have the enable-method property at all.
This is because if needs a schema, and will only try to validate the
schema under then if the one under if is valid.
The one under if contains a list of values for enable-method, but in
the case where enable-method is absent, the schema will be valid, and
thus the schema under then will be applied.
What we actually want to express is "if there's an enable-method
property, and that property contains those three values, then you need
to have a secondary-boot-reg property."
So you need:
if:
# If the enable-method property contains one of those values
properties:
enable-method:
contains:
enum:
- brcm,bcm11351-cpu-method
- brcm,bcm23550
- brcm,bcm-nsp-smp
# and if enable method is present
required:
- enable-method
# Then we need secondary-boot-reg too
then:
required:
- secondary-boot-reg
Maxime
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
end of thread, other threads:[~2020-02-04 9:20 UTC | newest]
Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-02 21:18 [PATCH 00/12] dt-bindings: arm: bcm: Convert boards to YAML Florian Fainelli
2020-02-02 21:18 ` [PATCH 01/12] dt-bindings: arm: bcm: Convert Cygnus " Florian Fainelli
2020-02-03 8:29 ` Maxime Ripard
2020-02-02 21:18 ` [PATCH 02/12] dt-bindings: arm: bcm: Convert Hurricane 2 " Florian Fainelli
2020-02-02 21:18 ` [PATCH 03/12] dt-bindings: arm: bcm: Convert Northstar Plus " Florian Fainelli
2020-02-02 21:18 ` [PATCH 04/12] dt-bindings: arm: bcm: Convert Northstar 2 " Florian Fainelli
2020-02-02 21:18 ` [PATCH 05/12] dt-bindings: arm: bcm: Convert Stingray " Florian Fainelli
2020-02-02 21:18 ` [PATCH 06/12] dt-bindings: arm: bcm: Convert BCM21664 " Florian Fainelli
2020-02-03 8:30 ` Maxime Ripard
2020-02-02 21:18 ` [PATCH 07/12] dt-bindings: arm: bcm: Convert BCM23550 " Florian Fainelli
2020-02-02 21:18 ` [PATCH 08/12] dt-bindings: arm: bcm: Convert BCM4708 " Florian Fainelli
2020-02-03 8:31 ` Maxime Ripard
2020-02-02 21:18 ` [PATCH 09/12] dt-bindings: arm: bcm: Convert BCM11351 " Florian Fainelli
2020-02-02 21:18 ` [PATCH 10/12] dt-bindings: arm: bcm: Convert Vulcan " Florian Fainelli
2020-02-02 21:30 ` Rob Herring
2020-02-02 21:18 ` [PATCH 11/12] dt-bindings: arm: Document Broadcom SoCs 'secondary-boot-reg' Florian Fainelli
2020-02-03 8:34 ` Maxime Ripard
2020-02-04 5:29 ` Florian Fainelli
2020-02-04 9:19 ` Maxime Ripard
2020-02-02 21:18 ` [PATCH 12/12] dt-bindings: arm: bcm: Convert BCM2835 firmware binding to YAML Florian Fainelli
2020-02-03 10:14 ` Rob Herring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).