From patchwork Tue Jul 25 12:46:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 125609 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp2447742vqg; Tue, 25 Jul 2023 05:58:06 -0700 (PDT) X-Google-Smtp-Source: APBJJlG82cXaC05ldw7iib/C2ZHgzHvPWo5fIPxRx3OQcFtFY5DoYJ/MZ15FjvpUjAJZvM/SHCsU X-Received: by 2002:a05:6358:723:b0:139:55de:329 with SMTP id e35-20020a056358072300b0013955de0329mr3687253rwj.27.1690289885513; Tue, 25 Jul 2023 05:58:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690289885; cv=none; d=google.com; s=arc-20160816; b=i4/vIiZPzP3Mbq8sKo9nxSM3G6EH4k468jPjCvTJPtOc0gfxcDI+52/oSsrZBZDRgc Dxq3+UZ9ZAvojwIffMBBXXORAW9faWL9dleKQ5f7MSc5+f9X5Srs5j9aKyOmVksHqCLG BnvkRLnVvT/tmRwPMwikc916EQCbXtr5umY73/pCm5tIGJV+7litxN/S+aQzlmFtpXw1 2vzShlU7J6wtR0cHfzd6cr/BHS6PAnomS+DZCjX27dmnDE/jDNYAROy6vCM9Z6MLs9oG VH+h6nJM4EFOGHsJeZVA45FrvW9dOCvYBKlqr3NuYySSWBYrej8hTGzEmF/5orHtw0i4 3f8A== 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=wD+HKpK+g9V/Eo1ZfyVeqQv2ZkF14fSbqDdkDUNFUT0=; fh=aolTR0pBrD1fUmg3N1tbWLVaqaRMPrl2Wrc/zC57mqM=; b=s3zTYve7rF9qHi0Yc6RVX3Pt6RnkGMF32bm2rHHmmlQRQpGDp3NsilLGS4FBSAogta P98l7VcUbPIiWhsg3fgY4Uj5O08+RjPldyiVp736CH6KhtXga8THx5HuqbGEDPiZVjHf ZM/GH7STWkpgvl0rTkxMoroSqeszY/9sgH4q5mnr4SdeS/kmvLSW2We1umZe0IzOOY4D c1GzrMtwYVor0POJYJ64W81WUr5Zj3dXmA5K7a9Z9hNmsNLfpomtVRywlaFi9cDKNLuI y1Kmc96uUwIAW3K5EshO4MvF1nplE5Q4gFV9P053OBVmBEnCXHRxK/ioOlWQk+DxRSsK nrrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="w/PO9oZ0"; 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 s21-20020a63af55000000b005639fa45a28si6546929pgo.630.2023.07.25.05.57.51; Tue, 25 Jul 2023 05:58:05 -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="w/PO9oZ0"; 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 S232371AbjGYMqh (ORCPT + 99 others); Tue, 25 Jul 2023 08:46:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231381AbjGYMqf (ORCPT ); Tue, 25 Jul 2023 08:46:35 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7B23DB for ; Tue, 25 Jul 2023 05:46:33 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-51a52a7d859so13617317a12.0 for ; Tue, 25 Jul 2023 05:46:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690289192; x=1690893992; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=wD+HKpK+g9V/Eo1ZfyVeqQv2ZkF14fSbqDdkDUNFUT0=; b=w/PO9oZ0vX3AIlwXEpgXMDW69Lc/0t4Q2pAZ/uS7RSzivD7nkhJpcjl9UWzAZ7ut5I KhmYCCSQN4Bs69y9b0VZ5bauEy7/q4xRcb90z0QlFm9T6i26sJGSMVcFfOfmlqc/BLQ5 mMkJjOH3MdKJB1vlpgSuRDrXx2hKaindWuGl+lcDk60VmT8Kp1kZwQkMJ4oNP0GMALr3 wYXV59lREFP/wgD3xzESJfoo1aQlebIab4yH5/clqobmdRLlIXm7w1CXjjvfAahEFn6+ aV/loCTrvYF0dm2IydcoyD2f+hlQs8qvKYVcOES0KtiN9r8BxQvNaC6Y0QIffJbaqAO4 j6rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690289192; x=1690893992; 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=wD+HKpK+g9V/Eo1ZfyVeqQv2ZkF14fSbqDdkDUNFUT0=; b=B5pWdZwr+ZaTWGCfQMQfiU7OQUEuHuP+PZDRZqWszU/GRd+WDjlpe0LsLIXhiSOfeo Ag0DrzMqX4HkPTS9YDBloX5yAet/yd/xFdgZ3ZGs4FcLADulouB25jylLwfG8OZdu2SW JY/VVsCyGCub50HdY9trl2Ef5nA5F+eh9dp+DM+IGL9GPcyFPvrkctIkrhbUeTI6gVtd rfZl3VxqX9Zp0ASCp+clRx7MC+LUDhdYqA+4DJEbiUAF3JpG6DY7qcpEDBCXrZvwLJpy 1smVuX2qGAdGFMSy8yZzNuTvihXB6teYaPPXpUZCshbqpjDVYuvjW2hMlTU4rdUZQkm7 Wx2Q== X-Gm-Message-State: ABy/qLYgcpc47MuPFWAh3XfB+0xWG587m304ioyLbzkEZhtB9A3JYVdU ZVVQhOcdPtECx+P6DdcPaM7TGA== X-Received: by 2002:a17:906:53c5:b0:99b:50ea:2f96 with SMTP id p5-20020a17090653c500b0099b50ea2f96mr2290951ejo.12.1690289192327; Tue, 25 Jul 2023 05:46:32 -0700 (PDT) Received: from krzk-bin.. ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id xo18-20020a170907bb9200b0099b5a71b0bfsm7970576ejc.94.2023.07.25.05.46.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 05:46:31 -0700 (PDT) From: Krzysztof Kozlowski To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Support Opensource , Paul Cercueil , Adam Ward , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/3] regulator: dt-bindings: dlg,da9121: add buck2 constraints Date: Tue, 25 Jul 2023 14:46:27 +0200 Message-Id: <20230725124629.150113-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: 1772397407121487756 X-GMAIL-MSGID: 1772397407121487756 Instead of describing the constraints for some devices (buck2 not present), code it in allOf:if:then section to actually allow validation of this requirement. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Conor Dooley --- .../bindings/regulator/dlg,da9121.yaml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/regulator/dlg,da9121.yaml b/Documentation/devicetree/bindings/regulator/dlg,da9121.yaml index dc626517c2ad..43f99bc8fbd4 100644 --- a/Documentation/devicetree/bindings/regulator/dlg,da9121.yaml +++ b/Documentation/devicetree/bindings/regulator/dlg,da9121.yaml @@ -97,8 +97,6 @@ properties: properties: regulator-name: pattern: "^BUCK([1-2])$" - description: | - BUCK2 present in DA9122, DA9220, DA9131, DA9132 only regulator-initial-mode: enum: [ 0, 1, 2, 3 ] @@ -122,6 +120,23 @@ required: - reg - regulators +allOf: + - if: + properties: + compatible: + not: + contains: + enum: + - dlg,da9122 + - dlg,da9131 + - dlg,da9132 + - dlg,da9220 + then: + properties: + regulators: + properties: + buck2: false + additionalProperties: false examples: From patchwork Tue Jul 25 12:46:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 125610 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp2447833vqg; Tue, 25 Jul 2023 05:58:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlFkmyZi256sYCXqzqpIKXTnCenYkyQIZ0xf2h11wl+1IXYhAxO1jOW7Q/1TydZy0HxnjUaH X-Received: by 2002:a17:90b:19c9:b0:262:e49b:12d0 with SMTP id nm9-20020a17090b19c900b00262e49b12d0mr7284472pjb.48.1690289894395; Tue, 25 Jul 2023 05:58:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690289894; cv=none; d=google.com; s=arc-20160816; b=KasKqoKF/mOGSQbuhyCQWb8Hx0Dze8K7yd3n94cJK3pD4CdVee1jHuNRsKPX5MqC+S l/QT+/Ggc5Yrlw9HobiQKUtmuTlGCfqweWf7Lz6l/UVNw4eypf87yaltJ/XM4B/jI7u5 lHIKTlZG2e1+SUb8yHvJ3mn0kKJcvovxHXpAvHZDX/XU2iSiq6MIUaP9Lyu+KuDuH5oW KGCu9pi98KVmefRmTnby6TvK8fooyo0AjNpAqAao9z+blA6d4QZvIYvHdp0OWU2YOcHW +Z9fZL03GtY9vW1wItnn3PE/wuC0vss5HLAuYe/H3tIjiiOQx1JE9HfoA923mVV8JI5I 39xw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SlNxPg8P250n7ISOOb9O3P6IRwX+V9i/tQQGaWegZyk=; fh=aolTR0pBrD1fUmg3N1tbWLVaqaRMPrl2Wrc/zC57mqM=; b=Mq04nedYkp+y1pTrCjDyCOs7udICV3UfjVfRw70/fuaA4ltvy16dhi+GcfKtABKNU1 xO7aDJRffLOChDeiHNEdoSXbXlTeKG2ZXkyPkGkbCFhKpQXEQubsExAqgHwK7Vvb7XJ3 p7duYmXRbPrR9+v+OUDlIbAxZxKUMcpCnawwukXTCcCOr/ib0dRVzFzwQSvs3wzE1vdf GwpbsCWfYWjP8iDq/R2wmbmB9xGUgopU6qxj4/22PF4KzxYp3cV43V3Wq9RZwxONaN/M nWV/sJRiFXE3ZkFZwPh7eAHObh51luS6CliEKkPa39KWIbffM2rDzJ0j3L3dnJh7OL55 vhXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GZsQG4NI; 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 ob11-20020a17090b390b00b00268112869c0si5618998pjb.156.2023.07.25.05.58.01; Tue, 25 Jul 2023 05:58:14 -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=GZsQG4NI; 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 S233255AbjGYMqj (ORCPT + 99 others); Tue, 25 Jul 2023 08:46:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231591AbjGYMqg (ORCPT ); Tue, 25 Jul 2023 08:46:36 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F02BEFB for ; Tue, 25 Jul 2023 05:46:34 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-991da766865so922215866b.0 for ; Tue, 25 Jul 2023 05:46:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690289193; x=1690893993; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SlNxPg8P250n7ISOOb9O3P6IRwX+V9i/tQQGaWegZyk=; b=GZsQG4NIMegnM2aHjh5PeChjkSG29o/EHxvjXXIK5ZiFmj7UnLTS4mO1zxoEmyF0WY Qxg3stDeF/rWJeBZZ1suq5KuY87uc/nGa1lIcOPH6MLKAYDKkZ4goB0TMtksIIs8edRK Wvi9meyt7AAU7XwbjBGROP/Cjj8U6LqUDeV/nMnwE+WYDfvxhOX4C0UPBaPWr6pTH5uo +F0lfOzaoo8iI0cw+A+TxDzYIITFJSfsjRXovOBv2NiO1UYX2pBFJJUrMD4y4gMvD3kU JAfAESAvLqWg8TDVR/rqiF8TYJh5H9r4jrcrxRV4omeBJnIuSshUsUnJVhOTewdmmgnA Zh5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690289193; x=1690893993; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SlNxPg8P250n7ISOOb9O3P6IRwX+V9i/tQQGaWegZyk=; b=YYvlcX3aKDsOVS3pzjy1RiIlEA810wxvQ78DrkWyttvKYdmCneNiNMDhFiW18U4RcP tsZ8dUuaxMFTnkL8a6cpbnZ7vOTWDOO6IHc4RIpqbCEgsSBt/uOkvEmEX47b5fuUAFn2 LgE5VS5akBhZ/4OSQrBvKtYax7NWBjEj46N0dVe7Y2wSW0AZcAkQMpVVkR095jF1btt2 OnxJ9Sww56xXbkxmenwqZKwkboYN1OeQPQgZevcuyEUfbq/iPZ9zm/ZPGfEm1t8Ls4sc XtjYMWv6rQqrCCH8DY6DMbQECskpclyoyb47hMomUNCC/fGfdUExxQU8NX6HMHY0L7TS tYDg== X-Gm-Message-State: ABy/qLZmyZzZQSy4iUwf0xNUFmvXzYTsomdSgNdA0kR+kNAyB3HRdTj1 8SzJEIgSVJGD1+B1RxR9wlEM1Q== X-Received: by 2002:a17:907:7757:b0:99b:627b:e962 with SMTP id kx23-20020a170907775700b0099b627be962mr13840966ejc.47.1690289193623; Tue, 25 Jul 2023 05:46:33 -0700 (PDT) Received: from krzk-bin.. ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id xo18-20020a170907bb9200b0099b5a71b0bfsm7970576ejc.94.2023.07.25.05.46.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 05:46:33 -0700 (PDT) From: Krzysztof Kozlowski To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Support Opensource , Paul Cercueil , Adam Ward , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/3] regulator: dt-bindings: dlg,da9121: allow different names Date: Tue, 25 Jul 2023 14:46:28 +0200 Message-Id: <20230725124629.150113-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230725124629.150113-1-krzysztof.kozlowski@linaro.org> References: <20230725124629.150113-1-krzysztof.kozlowski@linaro.org> 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: 1772397416263935694 X-GMAIL-MSGID: 1772397416263935694 Regulator names, as specified by regulator-name, are board-dependent and should describe the name used on the actual board. Do not enforce generic buck1/2 names. This also fixes dtbs_check warnings like: zynqmp-sm-k26-revA.dtb: pmic@33: regulators:buck1:regulator-name:0: 'da9131_buck1' does not match '^BUCK([1-2])$' Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/regulator/dlg,da9121.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/Documentation/devicetree/bindings/regulator/dlg,da9121.yaml b/Documentation/devicetree/bindings/regulator/dlg,da9121.yaml index 43f99bc8fbd4..13b3f75f8e5e 100644 --- a/Documentation/devicetree/bindings/regulator/dlg,da9121.yaml +++ b/Documentation/devicetree/bindings/regulator/dlg,da9121.yaml @@ -95,9 +95,6 @@ properties: Properties for a single BUCK regulator properties: - regulator-name: - pattern: "^BUCK([1-2])$" - regulator-initial-mode: enum: [ 0, 1, 2, 3 ] description: Defined in include/dt-bindings/regulator/dlg,da9121-regulator.h From patchwork Tue Jul 25 12:46:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 125612 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp2456635vqg; Tue, 25 Jul 2023 06:09:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlEJ9IPj9bYluh7TvXHbGLHgwnBq0rluYPMTqZwGA0mHVJQXsc4V4/kHhtWVI+G3SkvSs3Ez X-Received: by 2002:a05:6a00:1817:b0:673:5d1e:6657 with SMTP id y23-20020a056a00181700b006735d1e6657mr10482462pfa.7.1690290541728; Tue, 25 Jul 2023 06:09:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690290541; cv=none; d=google.com; s=arc-20160816; b=bro2ZVOSqzYM+s4wNj45mXwEs0T5yhAlptg0mQHh/QlZ7aYCOOHFBJOGfCLUOHMDB2 uJPCKyQoL86G5LyCkdtiGTaI5yjdD29Pc7IhiUiPR7Sv+wb2zhu3rFteHkBXWn/cys+4 cVVZC5IeQNfWmBWxxzYvtaF2Zh1aG/qWKPVnwgF0vgXHh+66ie+q9T8XTmIlw1zHqAnl t16WUnZHzLD3l7iikwNG18V23YYvpPK5OXeZEjRh950+jrnbJH+2ECPqKto3ijZWI9gd FLY2d1n6NTCUJnVBhFF1oOzedeXplQaKNElKR7OBtJrqvDKCc+itBCM/bLxDu+UgtrWj piZw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=70cgH7bcTezXiFaY+4RlRcKU5uTrnjXCHWZFlgmgH40=; fh=aolTR0pBrD1fUmg3N1tbWLVaqaRMPrl2Wrc/zC57mqM=; b=Tf9Byf7Sb1EzynsjcZ7B/bW2ryVBpVTCpeI1Euc+gPI/Ep4XfF/7h0BQoIj8cJfmcd 261hsXpV5LiiGLJbDODfPcy8JfsibZfb4v2ObK1zbkHhF1JzgxjC6SnhucxxCKCZcQVf zD5RvpSGL+qAwaHAp3SAhpAvjBY5GHn0BSYvs54+K06EgkEKi71RM4NJupn7owsq4/qR B2/7VS9x6fwGK+gno++zoWrfqt/0M9jzE6jT8Tgg6AGXp93/vBDJUEjCWeJznZ9QjOR1 ZPGNa7nVGjSAwt/SxtcNRiIrQgUn6Qv2Y9ioGm7V2ctRc0NKa/Tf3TgoXV2zuiPhWca1 L3iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vZruUF3l; 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 w21-20020a056a0014d500b00668750818ffsi12275550pfu.174.2023.07.25.06.08.39; Tue, 25 Jul 2023 06:09:01 -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=vZruUF3l; 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 S233394AbjGYMqm (ORCPT + 99 others); Tue, 25 Jul 2023 08:46:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231605AbjGYMqh (ORCPT ); Tue, 25 Jul 2023 08:46:37 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 978C5B0 for ; Tue, 25 Jul 2023 05:46:36 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-98dfb3f9af6so933354266b.2 for ; Tue, 25 Jul 2023 05:46:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690289195; x=1690893995; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=70cgH7bcTezXiFaY+4RlRcKU5uTrnjXCHWZFlgmgH40=; b=vZruUF3l7G9M/Qs7fx13Nq6q7Xt4B31DfefiM9maCXsLl7SHRZlX7dmPDAi2cqbkfV r311SrWYNErkvw3Y8pn32iObCCP/ZwM5Ha3wHmPueD+rKNyCRLEODVmX7zOIpMjcGPlR /PV87IF4YRLW7nIidvwxpg0WqebvDIPKBfZryDNEzt3Uc4KOjLIbd6ZM0eyC4Ef/VCbf bqgXfPP3tsNbawD8+waZBUigGw6l9TE/NFnQ18uXKi1sOb2vXuiH34kQRkrrc50G4F3i TZsp0cs0yJ1GJw59dTLw5c3KjPId9MjS3yOcFdWoKDr30WXVQEyzWg5PWdaI7PXq3pJV NG1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690289195; x=1690893995; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=70cgH7bcTezXiFaY+4RlRcKU5uTrnjXCHWZFlgmgH40=; b=N2mo46lFMpfS4Y0874Z3jCyimN7a4n3OVxNiz4Oq38EbJjcHGMHiYJ/GdDd0Thwn3p 6pgAFiNfRe/yhz+cDKiNDVwAbk2kpidJsoIOAiBx2pii+BpGASpA8t8qnZsAbIKH5gJO 1EenLMMvX5VIxGo+a8xQF/TQjHvh9f/IeHufA5BeNyqZOG9h0ewCKVUIeFtlpmwI+cYM 8T1lqOyumY5SMfgUAgndjN+97+gE9kxnaFwV2j2AEU5AUWx9Hfu0nFonutSrXjFq95c9 HZ06RFlFJdLZayxhMSpmXtLVN2Q1RiuRXWnSksJj//pKGlyHLhFF0KCav3xlfSX/iRF6 TN9w== X-Gm-Message-State: ABy/qLYR7EHLRqpIT+p8gWcFKX1nkN6xN4zuPwLlPn4P8q1dAbjGh5j1 Lmh15Pnnu2mWR0EWsfYi1UxeYoA+GnqL8+IG2MM= X-Received: by 2002:a17:906:73c1:b0:993:f4cd:34b5 with SMTP id n1-20020a17090673c100b00993f4cd34b5mr13377645ejl.29.1690289195056; Tue, 25 Jul 2023 05:46:35 -0700 (PDT) Received: from krzk-bin.. ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id xo18-20020a170907bb9200b0099b5a71b0bfsm7970576ejc.94.2023.07.25.05.46.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 05:46:34 -0700 (PDT) From: Krzysztof Kozlowski To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Support Opensource , Paul Cercueil , Adam Ward , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 3/3] regulator: dt-bindings: active-semi,act8846: correct supplies Date: Tue, 25 Jul 2023 14:46:29 +0200 Message-Id: <20230725124629.150113-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230725124629.150113-1-krzysztof.kozlowski@linaro.org> References: <20230725124629.150113-1-krzysztof.kozlowski@linaro.org> 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=ham 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: 1772398094964524365 X-GMAIL-MSGID: 1772398094964524365 Regulator supplies are per-device, not per regulator, so they are expected to be present in device node. Moving them to proper place allows to simplify a lot, because now none of the regulators differ. This also fixes dtbs_check warnings like: rk3368-evb-act8846.dtb: act8846@5a: 'inl1-supply', 'inl2-supply', 'inl3-supply', 'vp1-supply', 'vp2-supply', 'vp3-supply', 'vp4-supply' do not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Krzysztof Kozlowski Acked-by: Conor Dooley --- .../regulator/active-semi,act8846.yaml | 82 +++++-------------- 1 file changed, 22 insertions(+), 60 deletions(-) diff --git a/Documentation/devicetree/bindings/regulator/active-semi,act8846.yaml b/Documentation/devicetree/bindings/regulator/active-semi,act8846.yaml index 3725348bb235..02f45b5834d0 100644 --- a/Documentation/devicetree/bindings/regulator/active-semi,act8846.yaml +++ b/Documentation/devicetree/bindings/regulator/active-semi,act8846.yaml @@ -28,75 +28,37 @@ properties: the VSEL pin is assumed to be low. type: boolean + inl1-supply: + description: Handle to the INL1 input supply (REG5-7) + + inl2-supply: + description: Handle to the INL2 input supply (REG8-9) + + inl3-supply: + description: Handle to the INL3 input supply (REG10-12) + + vp1-supply: + description: Handle to the VP1 input supply (REG1) + + vp2-supply: + description: Handle to the VP2 input supply (REG2) + + vp3-supply: + description: Handle to the VP3 input supply (REG3) + + vp4-supply: + description: Handle to the VP4 input supply (REG4) + regulators: type: object additionalProperties: false - properties: - REG1: - type: object - $ref: /schemas/regulator/regulator.yaml# - unevaluatedProperties: false - - properties: - vp1-supply: - description: Handle to the VP1 input supply - - REG2: - type: object - $ref: /schemas/regulator/regulator.yaml# - unevaluatedProperties: false - - properties: - vp2-supply: - description: Handle to the VP2 input supply - - REG3: - type: object - $ref: /schemas/regulator/regulator.yaml# - unevaluatedProperties: false - - properties: - vp3-supply: - description: Handle to the VP3 input supply - - REG4: - type: object - $ref: /schemas/regulator/regulator.yaml# - unevaluatedProperties: false - - properties: - vp4-supply: - description: Handle to the VP4 input supply - patternProperties: - "^REG[5-7]$": + "^REG([1-9]|1[0-2])$": type: object $ref: /schemas/regulator/regulator.yaml# unevaluatedProperties: false - properties: - inl1-supply: - description: Handle to the INL1 input supply - - "^REG[8-9]$": - type: object - $ref: /schemas/regulator/regulator.yaml# - unevaluatedProperties: false - - properties: - inl2-supply: - description: Handle to the INL2 input supply - - "^REG1[0-2]$": - type: object - $ref: /schemas/regulator/regulator.yaml# - unevaluatedProperties: false - - properties: - inl3-supply: - description: Handle to the INL3 input supply - additionalProperties: false required: