From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: Lee Jones <lee@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Yu Chen <chenyu56@huawei.com>, Binghui Wang <wangbinghui@hisilicon.com>, Kishon Vijay Abraham I <kishon@ti.com>, Vinod Koul <vkoul@kernel.org>, Mauro Carvalho Chehab <mchehab@kernel.org>, Andy Gross <agross@kernel.org>, Bjorn Andersson <bjorn.andersson@linaro.org>, Konrad Dybcio <konrad.dybcio@somainline.org>, Mathieu Poirier <mathieu.poirier@linaro.org>, Carvalho Chehab <mchehab+huawei@kernel.org>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-phy@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Subject: [PATCH 4/4] dt-bindings: mfd: syscon: require specific compatible also for simple-mfd Date: Wed, 17 Aug 2022 17:22:46 +0300 [thread overview] Message-ID: <20220817142246.828762-5-krzysztof.kozlowski@linaro.org> (raw) In-Reply-To: <20220817142246.828762-1-krzysztof.kozlowski@linaro.org> The syscon bindings require a device specific compatible, beside the "syscon". However schema counts "simple-mfd" as such, which allows simple-mfd+syscon to sneak in. Adjust the match to be sure simple-mfd also comes with a device specific compatible. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> --- Documentation/devicetree/bindings/mfd/syscon.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mfd/syscon.yaml b/Documentation/devicetree/bindings/mfd/syscon.yaml index c958086a5fc3..a64c7a71e6fe 100644 --- a/Documentation/devicetree/bindings/mfd/syscon.yaml +++ b/Documentation/devicetree/bindings/mfd/syscon.yaml @@ -72,7 +72,7 @@ properties: - contains: const: syscon minItems: 2 - maxItems: 4 # Should be enough + maxItems: 5 # Should be enough reg: maxItems: 1 @@ -93,6 +93,18 @@ required: - compatible - reg +allOf: + - if: + properties: + compatible: + contains: + const: simple-mfd + then: + properties: + compatible: + minItems: 3 + maxItems: 5 + additionalProperties: true examples: -- 2.34.1
WARNING: multiple messages have this Message-ID (diff)
From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: Lee Jones <lee@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Yu Chen <chenyu56@huawei.com>, Binghui Wang <wangbinghui@hisilicon.com>, Kishon Vijay Abraham I <kishon@ti.com>, Vinod Koul <vkoul@kernel.org>, Mauro Carvalho Chehab <mchehab@kernel.org>, Andy Gross <agross@kernel.org>, Bjorn Andersson <bjorn.andersson@linaro.org>, Konrad Dybcio <konrad.dybcio@somainline.org>, Mathieu Poirier <mathieu.poirier@linaro.org>, Carvalho Chehab <mchehab+huawei@kernel.org>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-phy@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Subject: [PATCH 4/4] dt-bindings: mfd: syscon: require specific compatible also for simple-mfd Date: Wed, 17 Aug 2022 17:22:46 +0300 [thread overview] Message-ID: <20220817142246.828762-5-krzysztof.kozlowski@linaro.org> (raw) In-Reply-To: <20220817142246.828762-1-krzysztof.kozlowski@linaro.org> The syscon bindings require a device specific compatible, beside the "syscon". However schema counts "simple-mfd" as such, which allows simple-mfd+syscon to sneak in. Adjust the match to be sure simple-mfd also comes with a device specific compatible. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> --- Documentation/devicetree/bindings/mfd/syscon.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mfd/syscon.yaml b/Documentation/devicetree/bindings/mfd/syscon.yaml index c958086a5fc3..a64c7a71e6fe 100644 --- a/Documentation/devicetree/bindings/mfd/syscon.yaml +++ b/Documentation/devicetree/bindings/mfd/syscon.yaml @@ -72,7 +72,7 @@ properties: - contains: const: syscon minItems: 2 - maxItems: 4 # Should be enough + maxItems: 5 # Should be enough reg: maxItems: 1 @@ -93,6 +93,18 @@ required: - compatible - reg +allOf: + - if: + properties: + compatible: + contains: + const: simple-mfd + then: + properties: + compatible: + minItems: 3 + maxItems: 5 + additionalProperties: true examples: -- 2.34.1 -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy
next prev parent reply other threads:[~2022-08-17 14:23 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-08-17 14:22 [PATCH 0/4] mfd/phy/remoteproc: dt-bindings: syscon: be specific Krzysztof Kozlowski 2022-08-17 14:22 ` Krzysztof Kozlowski 2022-08-17 14:22 ` [PATCH 1/4] dt-bindings: phy: hisilicon,hi3660-usb3: simplify example Krzysztof Kozlowski 2022-08-17 14:22 ` Krzysztof Kozlowski 2022-09-02 17:25 ` Vinod Koul 2022-09-02 17:25 ` Vinod Koul 2022-09-05 6:21 ` Mauro Carvalho Chehab 2022-09-05 6:21 ` Mauro Carvalho Chehab 2022-08-17 14:22 ` [PATCH 2/4] dt-bindings: phy: hisilicon,hi3670-usb3: " Krzysztof Kozlowski 2022-08-17 14:22 ` Krzysztof Kozlowski 2022-09-02 17:26 ` Vinod Koul 2022-09-02 17:26 ` Vinod Koul 2022-09-05 6:19 ` Mauro Carvalho Chehab 2022-09-05 6:19 ` Mauro Carvalho Chehab 2022-08-17 14:22 ` [PATCH 3/4] dt-bindings: remoteproc: qcom,pil-info: add missing imem compatible Krzysztof Kozlowski 2022-08-17 14:22 ` Krzysztof Kozlowski 2022-08-17 14:22 ` Krzysztof Kozlowski [this message] 2022-08-17 14:22 ` [PATCH 4/4] dt-bindings: mfd: syscon: require specific compatible also for simple-mfd Krzysztof Kozlowski 2022-09-05 14:40 ` Lee Jones 2022-09-05 14:40 ` Lee Jones 2022-09-12 18:29 ` [PATCH 0/4] mfd/phy/remoteproc: dt-bindings: syscon: be specific Rob Herring 2022-09-12 18:29 ` Rob Herring
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=20220817142246.828762-5-krzysztof.kozlowski@linaro.org \ --to=krzysztof.kozlowski@linaro.org \ --cc=agross@kernel.org \ --cc=bjorn.andersson@linaro.org \ --cc=chenyu56@huawei.com \ --cc=devicetree@vger.kernel.org \ --cc=kishon@ti.com \ --cc=konrad.dybcio@somainline.org \ --cc=krzysztof.kozlowski+dt@linaro.org \ --cc=lee@kernel.org \ --cc=linux-arm-msm@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-phy@lists.infradead.org \ --cc=linux-remoteproc@vger.kernel.org \ --cc=linux-usb@vger.kernel.org \ --cc=mathieu.poirier@linaro.org \ --cc=mchehab+huawei@kernel.org \ --cc=mchehab@kernel.org \ --cc=robh+dt@kernel.org \ --cc=vkoul@kernel.org \ --cc=wangbinghui@hisilicon.com \ /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.