From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Alim Akhtar <alim.akhtar@samsung.com>, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, Geert Uytterhoeven <geert@linux-m68k.org> Subject: [PATCH 1/2] regulator: dt-bindings: maxim,max8997: correct array of voltages Date: Thu, 31 Mar 2022 23:16:52 +0200 [thread overview] Message-ID: <20220331211653.175200-1-krzysztof.kozlowski@linaro.org> (raw) uint32-array with voltages should be within one bracket pair <>, not each number in its own <>. Also the number of elements in the array should be defined within "items:". This fixes DT schema warnings like: maxim,max8997.example.dtb: pmic@66: max8997,pmic-buck1-dvs-voltage: [[1350000, 1300000, 1250000, 1200000, 1150000, 1100000, 1000000, 950000]] is too short Fixes: 1d2104f21618 ("regulator: dt-bindings: maxim,max8997: convert to dtschema") Reported-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> --- Patch is independent of DTS. --- .../bindings/regulator/maxim,max8997.yaml | 55 +++++++++++-------- 1 file changed, 31 insertions(+), 24 deletions(-) diff --git a/Documentation/devicetree/bindings/regulator/maxim,max8997.yaml b/Documentation/devicetree/bindings/regulator/maxim,max8997.yaml index d5a44ca3df04..6305a9abaead 100644 --- a/Documentation/devicetree/bindings/regulator/maxim,max8997.yaml +++ b/Documentation/devicetree/bindings/regulator/maxim,max8997.yaml @@ -32,8 +32,9 @@ properties: max8997,pmic-buck1-dvs-voltage: $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 1 - maxItems: 8 + items: + minItems: 1 + maxItems: 8 description: | A set of 8 voltage values in micro-volt (uV) units for buck1 when changing voltage using GPIO DVS. @@ -44,8 +45,9 @@ properties: max8997,pmic-buck2-dvs-voltage: $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 1 - maxItems: 8 + items: + minItems: 1 + maxItems: 8 description: | A set of 8 voltage values in micro-volt (uV) units for buck2 when changing voltage using GPIO DVS. @@ -56,8 +58,9 @@ properties: max8997,pmic-buck5-dvs-voltage: $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 1 - maxItems: 8 + items: + minItems: 1 + maxItems: 8 description: | A set of 8 voltage values in micro-volt (uV) units for buck5 when changing voltage using GPIO DVS. @@ -267,14 +270,17 @@ if: then: properties: max8997,pmic-buck1-dvs-voltage: - minItems: 8 - maxItems: 8 + items: + minItems: 8 + maxItems: 8 max8997,pmic-buck2-dvs-voltage: - minItems: 8 - maxItems: 8 + items: + minItems: 8 + maxItems: 8 max8997,pmic-buck5-dvs-voltage: - minItems: 8 - maxItems: 8 + items: + minItems: 8 + maxItems: 8 examples: - | @@ -303,20 +309,21 @@ examples: <&gpx0 6 GPIO_ACTIVE_HIGH>, <&gpl0 0 GPIO_ACTIVE_HIGH>; - max8997,pmic-buck1-dvs-voltage = <1350000>, <1300000>, - <1250000>, <1200000>, - <1150000>, <1100000>, - <1000000>, <950000>; + max8997,pmic-buck1-dvs-voltage = <1350000 1300000 + 1250000 1200000 + 1150000 1100000 + 1000000 950000>; + + max8997,pmic-buck2-dvs-voltage = <1100000 1000000 + 950000 900000 + 1100000 1000000 + 950000 900000>; - max8997,pmic-buck2-dvs-voltage = <1100000>, <1000000>, - <950000>, <900000>, - <1100000>, <1000000>, - <950000>, <900000>; - max8997,pmic-buck5-dvs-voltage = <1200000>, <1200000>, - <1200000>, <1200000>, - <1200000>, <1200000>, - <1200000>, <1200000>; + max8997,pmic-buck5-dvs-voltage = <1200000 1200000 + 1200000 1200000 + 1200000 1200000 + 1200000 1200000>; pinctrl-0 = <&max8997_irq>, <&otg_gp>, <&usb_sel>; pinctrl-names = "default"; -- 2.32.0
WARNING: multiple messages have this Message-ID (diff)
From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Alim Akhtar <alim.akhtar@samsung.com>, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, Geert Uytterhoeven <geert@linux-m68k.org> Subject: [PATCH 1/2] regulator: dt-bindings: maxim, max8997: correct array of voltages Date: Thu, 31 Mar 2022 23:16:52 +0200 [thread overview] Message-ID: <20220331211653.175200-1-krzysztof.kozlowski@linaro.org> (raw) uint32-array with voltages should be within one bracket pair <>, not each number in its own <>. Also the number of elements in the array should be defined within "items:". This fixes DT schema warnings like: maxim,max8997.example.dtb: pmic@66: max8997,pmic-buck1-dvs-voltage: [[1350000, 1300000, 1250000, 1200000, 1150000, 1100000, 1000000, 950000]] is too short Fixes: 1d2104f21618 ("regulator: dt-bindings: maxim,max8997: convert to dtschema") Reported-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> --- Patch is independent of DTS. --- .../bindings/regulator/maxim,max8997.yaml | 55 +++++++++++-------- 1 file changed, 31 insertions(+), 24 deletions(-) diff --git a/Documentation/devicetree/bindings/regulator/maxim,max8997.yaml b/Documentation/devicetree/bindings/regulator/maxim,max8997.yaml index d5a44ca3df04..6305a9abaead 100644 --- a/Documentation/devicetree/bindings/regulator/maxim,max8997.yaml +++ b/Documentation/devicetree/bindings/regulator/maxim,max8997.yaml @@ -32,8 +32,9 @@ properties: max8997,pmic-buck1-dvs-voltage: $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 1 - maxItems: 8 + items: + minItems: 1 + maxItems: 8 description: | A set of 8 voltage values in micro-volt (uV) units for buck1 when changing voltage using GPIO DVS. @@ -44,8 +45,9 @@ properties: max8997,pmic-buck2-dvs-voltage: $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 1 - maxItems: 8 + items: + minItems: 1 + maxItems: 8 description: | A set of 8 voltage values in micro-volt (uV) units for buck2 when changing voltage using GPIO DVS. @@ -56,8 +58,9 @@ properties: max8997,pmic-buck5-dvs-voltage: $ref: /schemas/types.yaml#/definitions/uint32-array - minItems: 1 - maxItems: 8 + items: + minItems: 1 + maxItems: 8 description: | A set of 8 voltage values in micro-volt (uV) units for buck5 when changing voltage using GPIO DVS. @@ -267,14 +270,17 @@ if: then: properties: max8997,pmic-buck1-dvs-voltage: - minItems: 8 - maxItems: 8 + items: + minItems: 8 + maxItems: 8 max8997,pmic-buck2-dvs-voltage: - minItems: 8 - maxItems: 8 + items: + minItems: 8 + maxItems: 8 max8997,pmic-buck5-dvs-voltage: - minItems: 8 - maxItems: 8 + items: + minItems: 8 + maxItems: 8 examples: - | @@ -303,20 +309,21 @@ examples: <&gpx0 6 GPIO_ACTIVE_HIGH>, <&gpl0 0 GPIO_ACTIVE_HIGH>; - max8997,pmic-buck1-dvs-voltage = <1350000>, <1300000>, - <1250000>, <1200000>, - <1150000>, <1100000>, - <1000000>, <950000>; + max8997,pmic-buck1-dvs-voltage = <1350000 1300000 + 1250000 1200000 + 1150000 1100000 + 1000000 950000>; + + max8997,pmic-buck2-dvs-voltage = <1100000 1000000 + 950000 900000 + 1100000 1000000 + 950000 900000>; - max8997,pmic-buck2-dvs-voltage = <1100000>, <1000000>, - <950000>, <900000>, - <1100000>, <1000000>, - <950000>, <900000>; - max8997,pmic-buck5-dvs-voltage = <1200000>, <1200000>, - <1200000>, <1200000>, - <1200000>, <1200000>, - <1200000>, <1200000>; + max8997,pmic-buck5-dvs-voltage = <1200000 1200000 + 1200000 1200000 + 1200000 1200000 + 1200000 1200000>; pinctrl-0 = <&max8997_irq>, <&otg_gp>, <&usb_sel>; pinctrl-names = "default"; -- 2.32.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2022-03-31 21:17 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-03-31 21:16 Krzysztof Kozlowski [this message] 2022-03-31 21:16 ` [PATCH 1/2] regulator: dt-bindings: maxim, max8997: correct array of voltages Krzysztof Kozlowski 2022-03-31 21:16 ` [PATCH 2/2] ARM: dts: exynos: correct array of voltages in i9100 and Trats Krzysztof Kozlowski 2022-03-31 21:16 ` Krzysztof Kozlowski 2022-04-01 7:46 ` [PATCH 1/2] regulator: dt-bindings: maxim,max8997: correct array of voltages Geert Uytterhoeven 2022-04-01 7:46 ` [PATCH 1/2] regulator: dt-bindings: maxim, max8997: " Geert Uytterhoeven 2022-04-03 15:11 ` [PATCH 1/2] regulator: dt-bindings: maxim,max8997: " Rob Herring 2022-04-03 15:11 ` [PATCH 1/2] regulator: dt-bindings: maxim, max8997: " Rob Herring 2022-04-03 15:46 ` [PATCH 1/2] regulator: dt-bindings: maxim,max8997: " Krzysztof Kozlowski 2022-04-03 15:46 ` [PATCH 1/2] regulator: dt-bindings: maxim, max8997: " Krzysztof Kozlowski
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220331211653.175200-1-krzysztof.kozlowski@linaro.org \ --to=krzysztof.kozlowski@linaro.org \ --cc=alim.akhtar@samsung.com \ --cc=broonie@kernel.org \ --cc=devicetree@vger.kernel.org \ --cc=geert@linux-m68k.org \ --cc=krzk+dt@kernel.org \ --cc=lgirdwood@gmail.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-samsung-soc@vger.kernel.org \ --cc=robh+dt@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.