Re: [PATCH V2 3/4] dt-bindings: power: reset: qcom-pon: Convert qcom PON binding to yaml
From: <hidden>
Date: 2021-04-27 06:15:52
Also in:
linux-arm-msm, linux-devicetree, linux-pm, lkml
From: <hidden>
Date: 2021-04-27 06:15:52
Also in:
linux-arm-msm, linux-devicetree, linux-pm, lkml
Hi Sebastian, On 2021-04-09 13:48, skakit@codeaurora.org wrote:
Hi Sebastian, On 2021-04-08 18:30, Sebastian Reichel wrote:quoted
Hi, On Thu, Apr 08, 2021 at 05:01:08PM +0530, satya priya wrote:quoted
Convert qcom PON binding from .txt to .yaml format. Signed-off-by: satya priya <redacted> ---Thanks for doing this.quoted
Changes in V2: - As per Rob's comments, converted the main PON binding and added in V2.
[...]
quoted
quoted
+ reg: + description: Specifies the physical address of the pon registerThat description is obvious and pointless. Instead add maxItems: 1Okay.quoted
quoted
+ pwrkey: + type: object + $ref: "../../input/qcom,pm8941-pwrkey.yaml#" + + resin: + type: object + $ref: "../../input/qcom,pm8941-pwrkey.yaml#" + +required: + - compatible + - reg + +additionalProperties: trueInstead of allowing arbitrary properties, only valid modes should be allowed. So drop additionalProperties and do this instead: allOf: - $ref: reboot-mode.yaml# unevaluatedProperties: falseOkay.
I am not able to use 'allOf' to refer reboot-mode.yaml as some of the properties do not match with reboot-mode.yaml properties. Can we use oneOf like below? oneOf: - $ref: "reboot-mode.yaml#" - $ref: "../../input/qcom,pm8941-pwrkey.yaml#" Also, If I drop additionalProperties I am getting below error. kernel/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml: 'additionalProperties' is a required property Thanks, Satya Priya