Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp673627rwb; Wed, 26 Jul 2023 00:29:28 -0700 (PDT) X-Google-Smtp-Source: APBJJlHoI4wF4hlrZCw1JzunJRw0Ly91JQGNW6cz906X5qhRHe2qnGisjlifnNnTEgpQnpAPJP4K X-Received: by 2002:a05:6808:194:b0:3a1:b67c:5555 with SMTP id w20-20020a056808019400b003a1b67c5555mr1188606oic.58.1690356568121; Wed, 26 Jul 2023 00:29:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690356568; cv=none; d=google.com; s=arc-20160816; b=l3ZnKtrWycvmA91R0QvRxARxayZmxG3vbGhLTXiqNqSVpNPRjCb2zHf3Fwp1pry05D W9gFj0u+Efrh+rVM+GiC3HSe/4/POGwVXsDpGG/wEJeGKYzY23XO2r0HGgT2aAIHdXr/ 9N4EjEpnled4/ZwTsYbrbxy/OYx+6hvM/Z00scJhwjwEtEmM+Aa3nF5+3UawPgXVZzh+ rUSpLDx0B31OhiemxFhufIdAvCsr3k3fGanKLvTOSRSXodE9Zd0g79HxUX0Ld7BRl33f J/j4Y11/P3wNWy/G1hWvBw3PLHY6dqGQzEMDeRLd2pSJt9rzQY+VXLN7psq6ezSPEec3 CyBw== 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=VE6+jh1jGUDgaLwcXDZ0os/y7GlAJU39aNPtfSV+1yo=; fh=qCDlhzT+Kd7dyFPhHsXP3rfILDOHr7ZW0IBtD5+1gRs=; b=a2kQ+cFppv2/HIwDUz5XvU4TWRFuXYId4Z15OGnUDwgs/HZFzitWIEpCNmGH8aU5j5 3BYIOGuAE9i1Ex9JNB/V1qr10/VoY6KLAclPPha8oiqH0ftQK9ZOiXHn2H8Lzm7HLGO7 DcD38KtcRty9nm/MU+bq/X+uNkP/UAnp4BfDIJ8E6blm0GB5PpTLhE+dqx7DkFIdmuIm a5IhMr0Rpjm6yrwZtDyKM3ddyKb8GKu4kTqpblah5IOY8iOfbR4y7L+82Vzu2v0tTghO toWtPCZtM0b6rlcIBtKUkcbMqCYsuzS5t40MZxdEYkoSlY9gBeFyZ5+1IkBb0rmeLao/ p3rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DHBj1FEj; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a24-20020a63d218000000b0055fc7d2e920si12479119pgg.638.2023.07.26.00.29.15; Wed, 26 Jul 2023 00:29:28 -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=DHBj1FEj; 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 S231785AbjGZG4t (ORCPT + 99 others); Wed, 26 Jul 2023 02:56:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231201AbjGZG4n (ORCPT ); Wed, 26 Jul 2023 02:56:43 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B182269E for ; Tue, 25 Jul 2023 23:56:39 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-99454855de1so927207966b.2 for ; Tue, 25 Jul 2023 23:56:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690354598; x=1690959398; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=VE6+jh1jGUDgaLwcXDZ0os/y7GlAJU39aNPtfSV+1yo=; b=DHBj1FEjGaYp/Unf+8NglucgrXB+rymFE9M8XTUjKySAEXgskGmsYryeSW+0pX7xxo cwHUnIV+5Q5pduXUYSwiDJJ1UeaUI4BhbtU/ALRTZhEtR5DaiCSQtYwYBhAP4XQ3dDHG azu8QhudxkXwielBX7Rh4/pNjww2wONds1p4UZX3s5fb04gpjMfE2WPhZ2xRdKBr3G5d wLSY/WC0/XSDFp84bmd9/fP4ufx2iW+gcIkMXZOlfcQXPZ9W001Yp4clXdyCB2K9CPSn Fpf+gsIoyyi5TUWxDGT00frL3t6i2ilfX5aD2g6WLwQ34py7Imv8bpqyOHVR6NaVeHN1 8w1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690354598; x=1690959398; 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=VE6+jh1jGUDgaLwcXDZ0os/y7GlAJU39aNPtfSV+1yo=; b=Gbjrn6T0qnRtiC5iawm66vRjzFDkRKYz6q7SBo48gSs0Q4HJOpjDzOBp/6nGCPWlJB 6G1O6AHbi0+zVtrqh6gfV8IUKWfabmpfH1jDwZbiD49/gZTx9bHQJvq7S9MyZDCLCQk1 132B8Y/3EcYB7/RsZWujOT6CpYhiGNMrwA+Tpt2EQ9LvIk2RQfSzrNjq3bKl4r8LVYr9 LS/B0Bn162bO6V9Vb+QrxmXuJtnXMwFqvOChizmjI7ctl3+fWhZYVJhEjdkuEq9uToVb 8l5VRXLooM/o/gVoYYIO/SkskGd5FDaqGzvxRacQZxnfq9P/fO1l+fO8Yz/Z1DM6FC00 wH8g== X-Gm-Message-State: ABy/qLYlhHVFEDrR5rY21In5IDaFYrDL+H4ZrdkEuaBRstc8jKurNWeO LIi18bP+saQ6Ox+xpHzGY9wCYw== X-Received: by 2002:a17:906:74d8:b0:993:ffcb:ad4e with SMTP id z24-20020a17090674d800b00993ffcbad4emr982634ejl.13.1690354597852; Tue, 25 Jul 2023 23:56:37 -0700 (PDT) Received: from krzk-bin.. ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id gs18-20020a170906f19200b00993150e5325sm9178420ejb.60.2023.07.25.23.56.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 23:56:37 -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 v3 1/2] dt-bindings: mfd: st,stpmic1: Merge patterns for nodes Date: Wed, 26 Jul 2023 08:56:32 +0200 Message-Id: <20230726065633.74924-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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. This points to missing regulator-min/max-microvolt in LDO4 node. Signed-off-by: Krzysztof Kozlowski --- Changes in v3: 1. Add regulator-min/max-microvolt in ldo4 Changes in v2: 1. Merge the entries instead of duplicating regulator properties. --- .../devicetree/bindings/mfd/st,stpmic1.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/st,stpmic1.yaml b/Documentation/devicetree/bindings/mfd/st,stpmic1.yaml index 97c61097f9e2..b17ebeb0a42f 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: @@ -142,11 +144,14 @@ properties: regulator-name: true regulator-boot-on: true regulator-always-on: true + regulator-min-microvolt: true + regulator-max-microvolt: true regulator-over-current-protection: true additionalProperties: false vref_ddr: + $ref: /schemas/regulator/regulator.yaml type: object properties: @@ -165,6 +170,7 @@ properties: additionalProperties: false boost: + $ref: /schemas/regulator/regulator.yaml type: object properties: @@ -187,10 +193,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 +217,7 @@ properties: additionalProperties: false "^buck[1-4]$": + $ref: /schemas/regulator/regulator.yaml type: object properties: @@ -237,6 +242,7 @@ properties: additionalProperties: false "^pwr_sw[1-2]$": + $ref: /schemas/regulator/regulator.yaml type: object properties: -- 2.34.1