From patchwork Wed Jul 26 06:36:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 126146 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp231377vqo; Wed, 26 Jul 2023 00:26:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlH4rN8lD5uyDMw7HlSefPd4SgarpRFJ8T1eCajb5WXNMZ9mG0LodUP3yo2XzE4hAoaPID8j X-Received: by 2002:a05:6a21:66c7:b0:12d:f1ac:e2cd with SMTP id ze7-20020a056a2166c700b0012df1ace2cdmr1029993pzb.32.1690356406581; Wed, 26 Jul 2023 00:26:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690356406; cv=none; d=google.com; s=arc-20160816; b=SOmxI0sdCxxJ2y8M9Gm1Me1kY8LKhayTMK0XqxboIzeqjpIAiAV5KeXI/hO2pQHWyk UxBVu2U/3xL6aKbCFGRASswBGjGNgX0PJfviCKC/QxdvXM30PQqq5upWZXwV6j+C/Nv6 j40iYSnISHK0k9FRjFAgZWO79YLiCHM4QWYGOhkqM5hmggaEHbQdUb8ELFmC3seJsFDc 2NJ4s0XAAkv7OsDYOzMIdadl3qSnjp6TEKhwdOSg2sHIFbb0Lq6QIxz1F0yoRKuoJhbR vwRNPm022cokXie+DBThi0IzG0mNQk/IVNI+NU2RiGaeJaiyhdn9NAXO7OOFuFh+L2VQ 0xmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ayyVdy2SPTLgLEOyosJwICplFlSWRn2s+e25D/uiqqQ=; fh=qCDlhzT+Kd7dyFPhHsXP3rfILDOHr7ZW0IBtD5+1gRs=; b=RI2y0hFRe91/xTJHtuqHKwfg1xm3ajkDaiTJuiP/IEQsSa4zMvhii3trmQGp7INTC8 D/KtWuP+UMWPCoBJ0CD3KH7TnqIQYJ83QIHl3Mlcmo5Ue555zRCLKB5Txinx3crcUxih VdELOF3B8CqPRI9cCLTiEhTIwDFQK4mgQvCT4A4nWvGKFaVfCrYvUPDv1Hfpx2cElNMi kehouG6b8I4Jg54L/hbCafXJlmsgMwRGWuD/a4y4CXiqdyc8YyWvGvm0lstnUuuox1uW nMJTdSbYvjJVMhRkOdTei9auK29e5j5w9xX9l/m1nEWpKhZYaw/il7o68Am2ZYF/KvKK zRhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n1Kx737D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bu22-20020a632956000000b0055ba5bb0bd4si12236814pgb.776.2023.07.26.00.26.33; Wed, 26 Jul 2023 00:26:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n1Kx737D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231630AbjGZGgT (ORCPT + 99 others); Wed, 26 Jul 2023 02:36:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231206AbjGZGgQ (ORCPT ); Wed, 26 Jul 2023 02:36:16 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02D982116 for ; Tue, 25 Jul 2023 23:36:15 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-4fdfefdf5abso2933180e87.1 for ; Tue, 25 Jul 2023 23:36:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690353373; x=1690958173; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ayyVdy2SPTLgLEOyosJwICplFlSWRn2s+e25D/uiqqQ=; b=n1Kx737Dxds1SWzQjW2/U3tPFuteCpA+DX2cIXLx+k49SV9UelUEwA6uydmqWRJriD pR+McjTeIc7SDNahMZ//vDbYRIXCg+OhrtmxDjg2fjB8Z5yNbaDHsBdUiI+qQafo+6hh e1Woo6SCdCEwqe/LqLUyAVl8N68FPGP7yBxqgY5JkvjF8YJNkODKISPovxqPXw6L611p qS1XnRJt6xWLSsIQ8dQZvEWX2TjWzNHcoK33WuUNrXj5zIb9Djgp07SE488wC0S/hXme HqJkExC+AFpgEhItIwbQ7hw+ap+hwwxqetIKAbF2QNugyKn/ViJDovHGbwoQSMd8OU3w XkZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690353373; x=1690958173; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ayyVdy2SPTLgLEOyosJwICplFlSWRn2s+e25D/uiqqQ=; b=W1ieezSvQbzGzGD92I2Ds7y3okImhNc7FfQwZFgMeFkjLQp0kmZvmD7d4AgBE2WSK6 y9NmXuZusSuVHIF3Eqv9m93tlqsOoztEkIpy7ukallqOcVjXbu76+oh9AaLDwlMl2IFe GlUL6Nvehcgf3iUS85i4cdCr5F9cl4Mn8tSlC9tqMoCo1AVilAwrecLvY8iTdLCsIhIi SCaMs2wK22fFOiCJx7t/EnogKbv1QuMCE43qHMuYSEyb4DKbOtL2C0v/Qm8EMr8iSNg3 8xr+odpHizc2A+MusOnXCHzNx1GaLMfW7R6uXr3j+89xBVAqDdYDrZvwTL00UQ8CBPj2 veqQ== X-Gm-Message-State: ABy/qLalkgsJxEwOu/X02RMuR2GjHmjoI1KDdEqMuKZ4sII69Z4mlmyy Xudcu4L3kH0CwrNf2+icERCzwg== X-Received: by 2002:ac2:5e2f:0:b0:4fb:8f79:631 with SMTP id o15-20020ac25e2f000000b004fb8f790631mr623122lfg.46.1690353373205; Tue, 25 Jul 2023 23:36:13 -0700 (PDT) Received: from krzk-bin.. ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id t24-20020aa7d718000000b0051de20c59d7sm8336270edq.15.2023.07.25.23.36.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 23:36:12 -0700 (PDT) From: Krzysztof Kozlowski To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , pascal Paillet , Linus Walleij , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v2 1/2] dt-bindings: mfd: st,stpmic1: Merge patterns for nodes Date: Wed, 26 Jul 2023 08:36:09 +0200 Message-Id: <20230726063610.5394-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772466593099843780 X-GMAIL-MSGID: 1772467159253917176 Properties should be described only once, thus having separate pattern for children just to specify the $ref to regulator.yaml is not correct. It also makes impossible to finish it with additional/unevaluatedProperties:false to restrict allowed properties in regulator node. Merge the patterns, so each regulator subnode has regulator.yaml $ref, additional properties and ends with additionalProperties:false. Signed-off-by: Krzysztof Kozlowski --- Changes in v2: 1. Merge the entries instead of duplicating regulator properties. --- Documentation/devicetree/bindings/mfd/st,stpmic1.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/st,stpmic1.yaml b/Documentation/devicetree/bindings/mfd/st,stpmic1.yaml index 97c61097f9e2..0eccfc01233f 100644 --- a/Documentation/devicetree/bindings/mfd/st,stpmic1.yaml +++ b/Documentation/devicetree/bindings/mfd/st,stpmic1.yaml @@ -106,6 +106,7 @@ properties: const: st,stpmic1-regulators ldo3: + $ref: /schemas/regulator/regulator.yaml type: object properties: @@ -128,6 +129,7 @@ properties: additionalProperties: false ldo4: + $ref: /schemas/regulator/regulator.yaml type: object properties: @@ -147,6 +149,7 @@ properties: additionalProperties: false vref_ddr: + $ref: /schemas/regulator/regulator.yaml type: object properties: @@ -165,6 +168,7 @@ properties: additionalProperties: false boost: + $ref: /schemas/regulator/regulator.yaml type: object properties: @@ -187,10 +191,8 @@ properties: "^(buck[1-4]|ldo[1-6]|vref_ddr|boost|pwr_sw[1-2])-supply$": description: STPMIC1 voltage regulators supplies - "^(buck[1-4]|ldo[1-6]|boost|vref_ddr|pwr_sw[1-2])$": - $ref: ../regulator/regulator.yaml - "^ldo[1-2,5-6]$": + $ref: /schemas/regulator/regulator.yaml type: object properties: @@ -213,6 +215,7 @@ properties: additionalProperties: false "^buck[1-4]$": + $ref: /schemas/regulator/regulator.yaml type: object properties: @@ -237,6 +240,7 @@ properties: additionalProperties: false "^pwr_sw[1-2]$": + $ref: /schemas/regulator/regulator.yaml type: object properties: