dt-bindings: arm: bcm: Convert boards to YAML
Subsystems (4)
cover dt-bindings: arm: bcm: Convert boards to YAML
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
Signature · 1 line
2.17.1
PATCH 1/12 dt-bindings: arm: bcm: Convert Cygnus to YAML
Update the Broadocom Cygnus SoC binding document for boards/SoCs to use YAML. Verified with dt_binding_check and dtbs_check.
--- .../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
Documentation/devicetree/bindings/arm/bcm/brcm,cygnus.txt deleted +0 -31
@@ -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";
Documentation/devicetree/bindings/arm/bcm/brcm,cygnus.yaml new file +66 -0
66 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH 2/12 dt-bindings: arm: bcm: Convert Hurricane 2 to YAML
In reply to Florian FainelliUpdate the Broadcom Hurricane 2 SoC binding document for boards/SoCs to use YAML. Verified with dt_binding_check and dtbs_check.
--- .../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
Documentation/devicetree/bindings/arm/bcm/brcm,hr2.txt deleted +0 -14
@@ -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";
Documentation/devicetree/bindings/arm/bcm/brcm,hr2.yaml new file +30 -0
@@ -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 <[email protected]> + +properties: + $nodename: + const: '/' + compatible: + oneOf: + - description: BCM53342 based boards + items: + - enum: + - ubnt,unifi-switch8 + - const: brcm,bcm53342 + - const: brcm,hr2 + +...
Signature · 1 line
2.17.1
PATCH 3/12 dt-bindings: arm: bcm: Convert Northstar Plus to YAML
In reply to Florian FainelliUpdate the Broadcom Northstar Plus SoC binding document for boards/SoCs to use YAML. Verified with dt_binding_check and dtbs_check.
--- .../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
Documentation/devicetree/bindings/arm/bcm/brcm,nsp.txt deleted +0 -34
@@ -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";
Documentation/devicetree/bindings/arm/bcm/brcm,nsp.yaml new file +68 -0
68 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH 8/12 dt-bindings: arm: bcm: Convert BCM4708 to YAML
In reply to Florian FainelliUpdate the Broadcom BCM4708 SoC family binding document for boards/SoCs to use YAML. Verified with dt_binding_check and dtbs_check.
--- .../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
Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.txt deleted +0 -15
@@ -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";
Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml new file +88 -0
88 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH 9/12 dt-bindings: arm: bcm: Convert BCM11351 to YAML
In reply to Florian FainelliUpdate the Broadcom BCM11351 SoC family binding document for boards/SoCs to use YAML. Verified with dt_binding_check and dtbs_check.
--- .../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
Documentation/devicetree/bindings/arm/bcm/brcm,bcm11351.txt deleted +0 -10
@@ -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";
Documentation/devicetree/bindings/arm/bcm/brcm,bcm11351.yaml new file +23 -0
@@ -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 <[email protected]> + +properties: + $nodename: + const: '/' + compatible: + oneOf: + - description: BCM11351 based boards + items: + - enum: + - brcm,bcm28155-ap + - const: brcm,bcm11351 + +...
Signature · 1 line
2.17.1
PATCH 10/12 dt-bindings: arm: bcm: Convert Vulcan to YAML
In reply to Florian FainelliUpdate Vulcan SoC family binding document for boards/SoCs to use YAML. Verified with dt_binding_check and dtbs_check.
--- .../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
Documentation/devicetree/bindings/arm/bcm/brcm,vulcan-soc.txt deleted +0 -10
@@ -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";
Documentation/devicetree/bindings/arm/bcm/brcm,vulcan-soc.yaml new file +24 -0
@@ -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 <[email protected]> + +properties: + $nodename: + const: '/' + compatible: + oneOf: + - description: Northstar2 based boards + items: + - enum: + - brcm,vulcan-eval + - cavium,thunderx2-cn9900 + - const: brcm,vulcan-soc + +...
Signature · 1 line
2.17.1
PATCH 12/12 dt-bindings: arm: bcm: Convert BCM2835 firmware binding to YAML
In reply to Florian FainelliConvert the Raspberry Pi BCM2835 firmware binding document to YAML. Verified with dt_binding_check and dtbs_check.
--- .../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
Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.txt deleted +0 -14
@@ -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>; -};
Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml new file +33 -0
@@ -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 <[email protected]> + - Stefan Wahren <[email protected]> + +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>; + }; +...
Signature · 1 line
2.17.1
PATCH 11/12 dt-bindings: arm: Document Broadcom SoCs 'secondary-boot-reg'
In reply to Florian FainelliConsolidate and move the 'secondary-boot-reg' property from the 3 existing bindingn document into the main cpus.yaml documentation.
--- .../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
Documentation/devicetree/bindings/arm/bcm/brcm,bcm11351-cpu-method.txt deleted +0 -36
@@ -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>; - }; - };
Documentation/devicetree/bindings/arm/bcm/brcm,bcm23550-cpu-method.txt deleted +0 -36
@@ -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>; - }; - };
Documentation/devicetree/bindings/arm/bcm/brcm,nsp-cpu-method.txt deleted +0 -39
@@ -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>; - }; - };
Documentation/devicetree/bindings/arm/cpus.yaml +16 -0
@@ -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
Signature · 1 line
2.17.1
PATCH 4/12 dt-bindings: arm: bcm: Convert Northstar 2 to YAML
In reply to Florian FainelliUpdate the Broadcom Northstar 2 SoC binding document for boards/SoCs to use YAML. Verified with dt_binding_check and dtbs_check.
--- .../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
Documentation/devicetree/bindings/arm/bcm/brcm,ns2.txt deleted +0 -9
@@ -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";
Documentation/devicetree/bindings/arm/bcm/brcm,ns2.yaml new file +25 -0
@@ -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 <[email protected]> + - Scott Branden <[email protected]> + +properties: + $nodename: + const: '/' + compatible: + oneOf: + - description: Northstar2 based boards + items: + - enum: + - brcm,ns2-svk + - brcm,ns2-xmc + - const: brcm,ns2 + +...
Signature · 7 lines
2.17.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 6/12 dt-bindings: arm: bcm: Convert BCM21664 to YAML
In reply to Florian FainelliUpdate the Broadcom BCM21664 SoC binding document for boards/SoCs to use YAML. Verified with dt_binding_check and dtbs_check.
--- .../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
Documentation/devicetree/bindings/arm/bcm/brcm,bcm21664.txt deleted +0 -15
@@ -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"; - [...] - }
Documentation/devicetree/bindings/arm/bcm/brcm,bcm21664.yaml new file +23 -0
@@ -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 <[email protected]> + +properties: + $nodename: + const: '/' + compatible: + oneOf: + - description: BCM21664 based boards + items: + - enum: + - brcm,bcm21664-garnet + - const: brcm,bcm21664 + +...
Signature · 1 line
2.17.1
PATCH 5/12 dt-bindings: arm: bcm: Convert Stingray to YAML
In reply to Florian FainelliUpdate the Broadcom Stingray SoC binding document for boards/SoCs to use YAML. Verified with dt_binding_check and dtbs_check.
--- .../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
Documentation/devicetree/bindings/arm/bcm/brcm,stingray.txt deleted +0 -12
@@ -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";
Documentation/devicetree/bindings/arm/bcm/brcm,stingray.yaml new file +26 -0
@@ -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 <[email protected]> + - Scott Branden <[email protected]> + +properties: + $nodename: + const: '/' + compatible: + oneOf: + - description: Broadcom Stingray based boards + items: + - enum: + - brcm,bcm958742k + - brcm,bcm958742t + - brcm,bcm958802a802x + - const: brcm,stingray + +...
Signature · 1 line
2.17.1
PATCH 7/12 dt-bindings: arm: bcm: Convert BCM23550 to YAML
In reply to Florian FainelliUpdate the Broadcom BCM23550 SoC binding document for boards/SoCs to use YAML. Verified with dt_binding_check and dtbs_check.
--- .../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
Documentation/devicetree/bindings/arm/bcm/brcm,bcm23550.txt deleted +0 -15
@@ -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"; - [...] - }
Documentation/devicetree/bindings/arm/bcm/brcm,bcm23550.yaml new file +23 -0
@@ -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 <[email protected]> + +properties: + $nodename: + const: '/' + compatible: + oneOf: + - description: BCM23550 based boards + items: + - enum: + - brcm,bcm23550-sparrow + - const: brcm,bcm23550 + +...
Signature · 1 line
2.17.1
Re: [PATCH 10/12] dt-bindings: arm: bcm: Convert Vulcan to YAML
In reply to Florian FainelliQuoted 41 lines · Florian Fainelli
Update Vulcan SoC family binding document for boards/SoCs to use YAML. Verified with
dt_binding_checkanddtbs_check.Signed-off-by Florian Fainelli <[email protected]>--- .../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.yamlDocumentation/devicetree/bindings/arm/bcm/brcm,vulcan-soc.txt deleted +0
-10@@ -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";Documentation/devicetree/bindings/arm/bcm/brcm,vulcan-soc.yaml new file +7
-0@@ -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
Documentation/devicetree/bindings/arm/bcm/brcm,vulcan-soc.yaml line 17
Quoted 10 lines
Documentation/devicetree/bindings/arm/bcm/brcm,vulcan-soc.yaml new file +10
-0+ +maintainers: + - Robert Richter <[email protected]> + +properties: + $nodename: + const: '/' + compatible: + oneOf: + - description: Northstar2 based boards
Copy-n-paste?
Quoted 10 lines
Documentation/devicetree/bindings/arm/bcm/brcm,vulcan-soc.yaml new file +7
-1+ items: + - enum: + - brcm,vulcan-eval + - cavium,thunderx2-cn9900 + - const: brcm,vulcan-soc + +... --2.17.1
Re: [PATCH 01/12] dt-bindings: arm: bcm: Convert Cygnus to YAML
In reply to Florian FainelliHi Florian,
Quoted 72 lines · Florian Fainelli
Update the Broadocom Cygnus SoC binding document for boards/SoCs to use YAML. Verified with
dt_binding_checkanddtbs_check.Signed-off-by Florian Fainelli <[email protected]>--- .../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.yamlDocumentation/devicetree/bindings/arm/bcm/brcm,cygnus.txt deleted +0
-31@@ -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";Documentation/devicetree/bindings/arm/bcm/brcm,cygnus.yaml new file +18
-0@@ -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 <[email protected]> + - Scott Branden <[email protected]> + +properties: + $nodename: + const: '/' + compatible: + oneOf: + - description: BCM11300 based boards
Documentation/devicetree/bindings/arm/bcm/brcm,cygnus.yaml line 28
Quoted 10 lines
Documentation/devicetree/bindings/arm/bcm/brcm,cygnus.yaml new file +10
-0+ 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
Re: [PATCH 06/12] dt-bindings: arm: bcm: Convert BCM21664 to YAML
In reply to Florian FainelliQuoted 49 lines · Florian Fainelli
Update the Broadcom BCM21664 SoC binding document for boards/SoCs to use YAML. Verified with
dt_binding_checkanddtbs_check.Signed-off-by Florian Fainelli <[email protected]>--- .../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.yamlDocumentation/devicetree/bindings/arm/bcm/brcm,bcm21664.txt deleted +0
-15@@ -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"; - [...] - }Documentation/devicetree/bindings/arm/bcm/brcm,bcm21664.yaml new file +11
-0@@ -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 <[email protected]> +
Documentation/devicetree/bindings/arm/bcm/brcm,bcm21664.yaml line 21
Quoted 10 lines
Documentation/devicetree/bindings/arm/bcm/brcm,bcm21664.yaml new file +10
-0+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
Re: [PATCH 08/12] dt-bindings: arm: bcm: Convert BCM4708 to YAML
In reply to Florian FainelliHi,
Quoted 65 lines · Florian Fainelli
Update the Broadcom BCM4708 SoC family binding document for boards/SoCs to use YAML. Verified with
dt_binding_checkanddtbs_check.Signed-off-by Florian Fainelli <[email protected]>--- .../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.yamlDocumentation/devicetree/bindings/arm/bcm/brcm,bcm4708.txt deleted +0
-15@@ -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";Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml new file +27
-0@@ -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 <[email protected]> + - Hauke Mehrtens <[email protected]> + - Rafal Milecki <[email protected]> + +properties: + $nodename: + const: '/' + compatible: + oneOf: + - description: BCM4708 based boards + items: + - enum: + - asus,rt-ac56u + - asus,rt-ac68u
Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml line 37
Quoted 10 lines
Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml new file +10
-0+ - 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
Re: [PATCH 11/12] dt-bindings: arm: Document Broadcom SoCs 'secondary-boot-reg'
In reply to Florian FainelliQuoted 14 lines · Florian Fainelli
Documentation/devicetree/bindings/arm/cpus.yaml +6
-0@@ -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". +
Documentation/devicetree/bindings/arm/cpus.yaml properties: · line 290
Quoted 10 lines
Documentation/devicetree/bindings/arm/cpus.yaml +10
-0+ 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
Rob Herring
maintainerRe: [PATCH 12/12] dt-bindings: arm: bcm: Convert BCM2835 firmware binding to YAML
In reply to Florian FainelliQuoted 11 lines · Florian Fainelli
Convert the Raspberry Pi BCM2835 firmware binding document to YAML. Verified with
dt_binding_checkanddtbs_check.Signed-off-by Florian Fainelli <[email protected]>--- .../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.
Re: [PATCH 11/12] dt-bindings: arm: Document Broadcom SoCs 'secondary-boot-reg'
In reply to Maxime RipardQuoted 37 lines · Maxime Ripard
Quoted 14 lines · Florian Fainelli
Documentation/devicetree/bindings/arm/cpus.yaml +6
-0@@ -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". +Documentation/devicetree/bindings/arm/cpus.yaml properties: · line 290
Quoted 10 lines
Documentation/devicetree/bindings/arm/cpus.yaml +10
-0+ 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
Quoted 3 lines
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.
Signature · 1 line
Florian
Re: [PATCH 11/12] dt-bindings: arm: Document Broadcom SoCs 'secondary-boot-reg'
Quoted 59 lines · Florian Fainelli
Quoted 37 lines · Maxime Ripard
Quoted 14 lines · Florian Fainelli
Documentation/devicetree/bindings/arm/cpus.yaml +6
-0@@ -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". +Documentation/devicetree/bindings/arm/cpus.yaml properties: · line 290
Quoted 10 lines
Documentation/devicetree/bindings/arm/cpus.yaml +10
-0+ 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-smpQuoted 3 lines
then:
required:
- secondary-boot-regThanks! 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
CHECKarch/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
DTCarch/arm/boot/dts/bcm2837-rpi-3-a-plus.dt.yaml
Quoted 1 line
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