dt-bindings: Fix phandle-array constraints, again
Subsystems (22)
Rob Herring (Arm)
maintainerPATCH 1/1 dt-bindings: Fix phandle-array constraints, again
The unfortunately named 'phandle-array' property type is really a matrix with phandle and fixed arg cells entries. A matrix property should have 2 levels of items constraints.
---
Can someone from QCom provide some descriptions for 'qcom,smem-states' properties.
--- .../display/rockchip/rockchip,rk3399-cdn-dp.yaml | 2 ++ .../bindings/mmc/hisilicon,hi3798cv200-dw-mshc.yaml | 7 ++++--- Documentation/devicetree/bindings/net/qcom,bam-dmux.yaml | 6 ++++++ Documentation/devicetree/bindings/net/qcom,ipa.yaml | 6 ++++++ .../devicetree/bindings/net/wireless/qcom,ath10k.yaml | 5 ++++- .../devicetree/bindings/net/wireless/qcom,ath11k.yaml | 5 ++++- .../bindings/net/wireless/qcom,ipq5332-wifi.yaml | 9 +++++++++ .../devicetree/bindings/pci/toshiba,tc9563.yaml | 5 +++-- .../bindings/remoteproc/qcom,msm8916-mss-pil.yaml | 3 +++ .../bindings/remoteproc/qcom,msm8996-mss-pil.yaml | 3 +++ .../devicetree/bindings/remoteproc/qcom,pas-common.yaml | 4 ++++ .../bindings/remoteproc/qcom,qcs404-cdsp-pil.yaml | 4 ++++ .../bindings/remoteproc/qcom,sc7180-mss-pil.yaml | 3 +++ .../bindings/remoteproc/qcom,sc7280-adsp-pil.yaml | 3 +++ .../bindings/remoteproc/qcom,sc7280-mss-pil.yaml | 3 +++ .../bindings/remoteproc/qcom,sc7280-wpss-pil.yaml | 3 +++ .../bindings/remoteproc/qcom,sdm845-adsp-pil.yaml | 3 +++ .../devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml | 3 +++ Documentation/devicetree/bindings/sound/samsung,tm2.yaml | 2 ++ .../devicetree/bindings/spi/st,stm32mp25-ospi.yaml | 5 +++-- .../devicetree/bindings/usb/chipidea,usb2-common.yaml | 2 ++ Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml | 7 ++++--- 22 files changed, 81 insertions(+), 12 deletions(-)
Documentation/devicetree/bindings/display/rockchip/rockchip,rk3399-cdn-dp.yaml +2 -0
@@ -41,7 +41,9 @@ properties: minItems: 1 items: - description: Extcon device providing the cable state for DP PHY device 0 + maxItems: 1 - description: Extcon device providing the cable state for DP PHY device 1 + maxItems: 1 description: List of phandle to the extcon device providing the cable state for the DP PHY.
Documentation/devicetree/bindings/mmc/hisilicon,hi3798cv200-dw-mshc.yaml +4 -3
@@ -39,10 +39,11 @@ properties: $ref: /schemas/types.yaml#/definitions/phandle-array description: | DWMMC core on Hi3798MV2x SoCs has a delay-locked-loop(DLL) attached to card data input path. - It is integrated into CRG core on the SoC and has to be controlled during tuning. + It is integrated into CRG core on the SoC and has to be controlled during tuning items: - - description: A phandle pointed to the CRG syscon node - - description: Sample DLL register offset in CRG address space + - items: + - description: A phandle pointed to the CRG syscon node + - description: Sample DLL register offset in CRG address space required: - compatible
Documentation/devicetree/bindings/net/qcom,bam-dmux.yaml +6 -0
@@ -42,7 +42,13 @@ properties: description: State bits used by the AP to signal the modem. items: - description: Power control + items: + - description: Phandle to ??? + - description: ??? - description: Power control acknowledgment + items: + - description: Phandle to ??? + - description: ??? qcom,smem-state-names: description: Names for the state bits used by the AP to signal the modem.
Documentation/devicetree/bindings/net/qcom,ipa.yaml +6 -0
@@ -123,7 +123,13 @@ properties: description: State bits used in by the AP to signal the modem. items: - description: Whether the "ipa-clock-enabled" state bit is valid + items: + - description: Phandle to ??? + - description: ??? - description: Whether the IPA clock is enabled (if valid) + items: + - description: Phandle to ??? + - description: ??? qcom,smem-state-names: description: The names of the state bits used for SMP2P output
Documentation/devicetree/bindings/net/wireless/qcom,ath10k.yaml +4 -1
@@ -158,7 +158,10 @@ properties: description: State bits used by the AP to signal the WLAN Q6. items: - description: Signal bits used to enable/disable low power mode - on WCN in the case of WoW (Wake on Wireless). + on WCN in the case of WoW (Wake on Wireless). + items: + - description: Phandle to ??? + - description: ??? qcom,smem-state-names: description: The names of the state bits used for SMP2P output.
Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml +4 -1
@@ -80,7 +80,10 @@ properties: description: State bits used by the AP to signal the WLAN Q6. items: - description: Signal bits used to enable/disable low power mode - on WCN6750 in the case of WoW (Wake on Wireless). + on WCN6750 in the case of WoW (Wake on Wireless). + items: + - description: Phandle to ??? + - description: ??? qcom,smem-state-names: description: The names of the state bits used for SMP2P output.
Documentation/devicetree/bindings/net/wireless/qcom,ipq5332-wifi.yaml +9 -0
@@ -167,8 +167,17 @@ properties: description: States used by the AP to signal the remote processor items: - description: Shutdown WCSS pd + items: + - description: Phandle to ??? + - description: ??? - description: Stop WCSS pd + items: + - description: Phandle to ??? + - description: ??? - description: Spawn WCSS pd + items: + - description: Phandle to ??? + - description: ??? qcom,smem-state-names: description:
Documentation/devicetree/bindings/pci/toshiba,tc9563.yaml +3 -2
@@ -49,8 +49,9 @@ properties: A phandle to the parent I2C node and the slave address of the device used to configure tc9563 to change FTS, tx amplitude etc. items: - - description: Phandle to the I2C controller node - - description: I2C slave address + - items: + - description: Phandle to the I2C controller node + - description: I2C slave address patternProperties: "^pcie@[1-3],0$":
Documentation/devicetree/bindings/remoteproc/qcom,msm8916-mss-pil.yaml +3 -0
@@ -104,6 +104,9 @@ properties: description: States used by the AP to signal the Hexagon core items: - description: Stop modem + items: + - description: Phandle to ??? + - description: ??? qcom,smem-state-names: description: Names of the states used by the AP to signal the Hexagon core
Documentation/devicetree/bindings/remoteproc/qcom,msm8996-mss-pil.yaml +3 -0
@@ -101,6 +101,9 @@ properties: description: States used by the AP to signal the Hexagon core items: - description: Stop modem + items: + - description: Phandle to ??? + - description: ??? qcom,smem-state-names: description: Names of the states used by the AP to signal the Hexagon core
Documentation/devicetree/bindings/remoteproc/qcom,pas-common.yaml +4 -0
@@ -60,6 +60,10 @@ properties: description: States used by the AP to signal the Hexagon core items: - description: Stop the modem + items: + - description: Phandle to ??? + - description: ??? + qcom,smem-state-names: description: The names of the state bits used for SMP2P output
Documentation/devicetree/bindings/remoteproc/qcom,qcs404-cdsp-pil.yaml +4 -0
@@ -92,6 +92,10 @@ properties: description: States used by the AP to signal the Hexagon core items: - description: Stop the modem + items: + - description: Phandle to ??? + - description: ??? + qcom,smem-state-names: description: The names of the state bits used for SMP2P output
Documentation/devicetree/bindings/remoteproc/qcom,sc7180-mss-pil.yaml +3 -0
@@ -134,6 +134,9 @@ properties: description: States used by the AP to signal the Hexagon core items: - description: Stop the modem + items: + - description: Phandle to ??? + - description: ??? qcom,smem-state-names: description: The names of the state bits used for SMP2P output
Documentation/devicetree/bindings/remoteproc/qcom,sc7280-adsp-pil.yaml +3 -0
@@ -91,6 +91,9 @@ properties: description: States used by the AP to signal the Hexagon core items: - description: Stop the modem + items: + - description: Phandle to ??? + - description: ??? qcom,smem-state-names: description: The names of the state bits used for SMP2P output
Documentation/devicetree/bindings/remoteproc/qcom,sc7280-mss-pil.yaml +3 -0
@@ -148,6 +148,9 @@ properties: description: States used by the AP to signal the Hexagon core items: - description: Stop the modem + items: + - description: Phandle to ??? + - description: ??? qcom,smem-state-names: description: The names of the state bits used for SMP2P output
Documentation/devicetree/bindings/remoteproc/qcom,sc7280-wpss-pil.yaml +3 -0
@@ -104,6 +104,9 @@ properties: description: States used by the AP to signal the Hexagon core items: - description: Stop the modem + items: + - description: Phandle to ??? + - description: ??? qcom,smem-state-names: description: The names of the state bits used for SMP2P output
Documentation/devicetree/bindings/remoteproc/qcom,sdm845-adsp-pil.yaml +3 -0
@@ -92,6 +92,9 @@ properties: description: States used by the AP to signal the Hexagon core items: - description: Stop the modem + items: + - description: Phandle to ??? + - description: ??? qcom,smem-state-names: description: The names of the state bits used for SMP2P output
Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml +3 -0
@@ -84,6 +84,9 @@ properties: States used by the AP to signal the WCNSS core that it should shutdown items: - description: Stop the modem + items: + - description: Phandle to ??? + - description: ??? qcom,smem-state-names: description: The names of the state bits used for SMP2P output
Documentation/devicetree/bindings/sound/samsung,tm2.yaml +2 -0
@@ -46,7 +46,9 @@ properties: $ref: /schemas/types.yaml#/definitions/phandle-array items: - description: Phandle to I2S0. + maxItems: 1 - description: Phandle to I2S1. + maxItems: 1 mic-bias-gpios: description: GPIO pin that enables the Main Mic bias regulator.
Documentation/devicetree/bindings/spi/st,stm32mp25-ospi.yaml +3 -2
@@ -49,8 +49,9 @@ properties: description: configure OCTOSPI delay block. $ref: /schemas/types.yaml#/definitions/phandle-array items: - - description: phandle to syscfg - - description: register offset within syscfg + - items: + - description: phandle to syscfg + - description: register offset within syscfg access-controllers: description: phandle to the rifsc device to check access right
Documentation/devicetree/bindings/usb/chipidea,usb2-common.yaml +2 -0
@@ -97,7 +97,9 @@ properties: minItems: 1 items: - description: vbus extcon + maxItems: 1 - description: id extcon + maxItems: 1 phy-clkgate-delay-us: description:
Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml +4 -3
@@ -61,9 +61,10 @@ properties: offset, and phy index $ref: /schemas/types.yaml#/definitions/phandle-array items: - - description: phandle to TCSR node - - description: register offset - - description: phy index + - items: + - description: phandle to TCSR node + - description: register offset + - description: phy index nvidia,phy: description: phandle of usb phy that connects to the port. Use "phys" instead.
Signature · 1 line
2.53.0
Quoted 3 lines · Rob Herring (Arm)
The unfortunately named 'phandle-array' property type is really a matrix with phandle and fixed arg cells entries. A matrix property should have 2 levels of items constraints.
Rob Herring (Arm)
maintainerQuoted 24 lines · Rob Herring (Arm)
The unfortunately named 'phandle-array' property type is really a matrix with phandle and fixed arg cells entries. A matrix property should have 2 levels of items constraints.
Signed-off-by Rob Herring (Arm) <[email protected]>---
Can someone from QCom provide some descriptions for 'qcom,smem-states' properties.--- .../display/rockchip/rockchip,rk3399-cdn-dp.yaml | 2 ++ .../bindings/mmc/hisilicon,hi3798cv200-dw-mshc.yaml | 7 ++++--- Documentation/devicetree/bindings/net/qcom,bam-dmux.yaml | 6 ++++++ Documentation/devicetree/bindings/net/qcom,ipa.yaml | 6 ++++++ .../devicetree/bindings/net/wireless/qcom,ath10k.yaml | 5 ++++- .../devicetree/bindings/net/wireless/qcom,ath11k.yaml | 5 ++++- .../bindings/net/wireless/qcom,ipq5332-wifi.yaml | 9 +++++++++ .../devicetree/bindings/pci/toshiba,tc9563.yaml | 5 +++-- .../bindings/remoteproc/qcom,msm8916-mss-pil.yaml | 3 +++ .../bindings/remoteproc/qcom,msm8996-mss-pil.yaml | 3 +++ .../devicetree/bindings/remoteproc/qcom,pas-common.yaml | 4 ++++ .../bindings/remoteproc/qcom,qcs404-cdsp-pil.yaml | 4 ++++ .../bindings/remoteproc/qcom,sc7180-mss-pil.yaml | 3 +++ .../bindings/remoteproc/qcom,sc7280-adsp-pil.yaml | 3 +++ .../bindings/remoteproc/qcom,sc7280-mss-pil.yaml | 3 +++
Quoted 9 lines
.../bindings/remoteproc/qcom,sc7280-wpss-pil.yaml | 3 +++ .../bindings/remoteproc/qcom,sdm845-adsp-pil.yaml | 3 +++ .../devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml | 3 +++ Documentation/devicetree/bindings/sound/samsung,tm2.yaml | 2 ++ .../devicetree/bindings/spi/st,stm32mp25-ospi.yaml | 5 +++-- .../devicetree/bindings/usb/chipidea,usb2-common.yaml | 2 ++ Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml | 7 ++++--- 22 files changed, 81 insertions(+), 12 deletions(-)
My bot found errors running 'make dt_binding_check' on your patch:
yamllint warnings/errors:./Documentation/devicetree/bindings/remoteproc/qcom,qcs404-cdsp-pil.yaml:99:1: [warning] too many blank lines (2 > 1) (empty-lines) ./Documentation/devicetree/bindings/remoteproc/qcom,pas-common.yaml:67:1: [warning] too many blank lines (2 > 1) (empty-lines)
dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/i2c/i2c-demux-pinctrl.example.dtb: i2c-mux3 (i2c-demux-pinctrl): i2c-parent:0: [2, 3, 4] is too long
from schema $id: http://devicetree.org/schemas/i2c/i2c-demux-pinctrl.yaml
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/sound/samsung,tm2.example.dtb: sound (samsung,tm2-audio): i2s-controller: [[4294967295], [0], [4294967295], [0]] is too long
from schema $id: http://devicetree.org/schemas/sound/samsung,tm2.yaml
doc reference errors (make refcheckdocs):
See https://patchwork.kernel.org/project/devicetree/patch/[email protected]
The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch.
If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:
pip3 install dtschema --upgrade
Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.
Quoted 24 lines · Rob Herring (Arm)
The unfortunately named 'phandle-array' property type is really a matrix with phandle and fixed arg cells entries. A matrix property should have 2 levels of items constraints.
Signed-off-by Rob Herring (Arm) <[email protected]>---
Can someone from QCom provide some descriptions for 'qcom,smem-states' properties.--- .../display/rockchip/rockchip,rk3399-cdn-dp.yaml | 2 ++ .../bindings/mmc/hisilicon,hi3798cv200-dw-mshc.yaml | 7 ++++--- Documentation/devicetree/bindings/net/qcom,bam-dmux.yaml | 6 ++++++ Documentation/devicetree/bindings/net/qcom,ipa.yaml | 6 ++++++ .../devicetree/bindings/net/wireless/qcom,ath10k.yaml | 5 ++++- .../devicetree/bindings/net/wireless/qcom,ath11k.yaml | 5 ++++- .../bindings/net/wireless/qcom,ipq5332-wifi.yaml | 9 +++++++++ .../devicetree/bindings/pci/toshiba,tc9563.yaml | 5 +++-- .../bindings/remoteproc/qcom,msm8916-mss-pil.yaml | 3 +++ .../bindings/remoteproc/qcom,msm8996-mss-pil.yaml | 3 +++ .../devicetree/bindings/remoteproc/qcom,pas-common.yaml | 4 ++++ .../bindings/remoteproc/qcom,qcs404-cdsp-pil.yaml | 4 ++++ .../bindings/remoteproc/qcom,sc7180-mss-pil.yaml | 3 +++ .../bindings/remoteproc/qcom,sc7280-adsp-pil.yaml | 3 +++ .../bindings/remoteproc/qcom,sc7280-mss-pil.yaml | 3 +++
Quoted 8 lines
.../bindings/remoteproc/qcom,sc7280-wpss-pil.yaml | 3 +++ .../bindings/remoteproc/qcom,sdm845-adsp-pil.yaml | 3 +++ .../devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml | 3 +++ Documentation/devicetree/bindings/sound/samsung,tm2.yaml | 2 ++ .../devicetree/bindings/spi/st,stm32mp25-ospi.yaml | 5 +++-- .../devicetree/bindings/usb/chipidea,usb2-common.yaml | 2 ++ Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml | 7 ++++--- 22 files changed, 81 insertions(+), 12 deletions(-)
Quoted 8 lines · Rob Herring (Arm)
The unfortunately named 'phandle-array' property type is really a matrix with phandle and fixed arg cells entries. A matrix property should have 2 levels of items constraints.
Signed-off-by Rob Herring (Arm) <[email protected]>---
Can someone from QCom provide some descriptions for 'qcom,smem-states' properties.
Working on it...
Best regards,
Krzysztof
Quoted 6 lines · Rob Herring (Arm)
Documentation/devicetree/bindings/net/qcom,bam-dmux.yaml +0
-0@@ -42,7 +42,13 @@ properties: description: State bits used by the AP to signal the modem.
Documentation/devicetree/bindings/net/qcom,bam-dmux.yaml properties: · line 52
Quoted 10 lines
Documentation/devicetree/bindings/net/qcom,bam-dmux.yaml +6
-0items: - description: Power control + items: + - description: Phandle to ??? + - description: ??? - description: Power control acknowledgment + items: + - description: Phandle to ??? + - description: ???
Here and in all cases except qcom,msm8916-mss-pil:
- description: Phandle to the Shared Memory Point 2 Point device handling the communication with a remote processor
- description: Single bit index to toggle in the value sent to the remote processor
maximum: 32
...
Documentation/devicetree/bindings/remoteproc/qcom,msm8916-mss-pil.yaml properties: · line 109
Quoted 11 lines
Documentation/devicetree/bindings/remoteproc/qcom,msm8916-mss-pil.yaml +3
-0@@ -104,6 +104,9 @@ properties: description: States used by the AP to signal the Hexagon core items: - description: Stop modem + items: + - description: Phandle to ??? + - description: ???
- description: Phandle to the Shared Memory Point 2 Point or Shared Memory Manager device handling the communication with a remote processor
- description: Single bit index to toggle in the value sent to the remote processor
maximum: 32
Best regards,
Krzysztof