Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp10110848rwb; Fri, 25 Nov 2022 00:52:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf76ofikBPl23QQK4lyLVJVTwj8EeAywOuEx9WbmV3loucay3otvG5+t3dVuTyKasnb5mWP0 X-Received: by 2002:a63:ed46:0:b0:476:e11d:8d51 with SMTP id m6-20020a63ed46000000b00476e11d8d51mr17298529pgk.252.1669366334556; Fri, 25 Nov 2022 00:52:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669366334; cv=none; d=google.com; s=arc-20160816; b=lg8lP+qfDCJFi+BTxwBtPn5H+fzqLH8i7+a8D7w/ASjvj7LVZnUack2eGFbAh1A7Q5 0TnA0tQzK2h0MYP8aaamLeMT+/VSri1A3ZNKe2128NRU6fva0pbyq4mpB//Ui+sHXQpi lzXtm2rbcggQGPpDk1J+TKUqono4xwWXZy+WSsmX0Pef2DKaOmKF6XJuM23J1fcjtKeL HuNTq9T26KdxwuvF2TkNApRmNkZ/EscLW94fVkF63cq6I7JFqD2viPlbvzvzW7S5JHSj r679rvrQJ9wXg1R+VM+sLG5dK4rusj3lgZUGqW7el1OViXLQiS1zpnpZZHI/gjc2xgxX 94iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=sL1NUAu6lSv+jlMLYFhjd/8Pjp4yH4Gi/+vBxDoZ+ks=; b=tsGu6AiX9H6+JHg957v8JtfioF025W17G6mGgxspQ5vthQNHdN54Uss9Mcs1lpCCXd STPFo2FbL5IxbiQe+F/gRt/vXW3tOfRe2m5YIg+kLHkheqLKxGM71LftWuQe8z7mc7D5 tUKcHEzuwoadBrZVlgv/30DX5s7O5C7m0ey8WVGiIPL9PIInPG3KDrDsY6OZoJPDgC4d cHpzI+s4tISv1mrqoPS2ghx1x+KOCEXSv18/5actUzh6KyjDQdNzyyNffZgU38VOoLJN u6jW/2QeU4R/tE+DXX2bZiQKjL38aUYL0+de4EyZ/PZwVEiRyfMfBk0DrMRKouPDaber B2fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g3+PUwY4; 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 z20-20020a637e14000000b0046afc3948c4si3525454pgc.707.2022.11.25.00.51.41; Fri, 25 Nov 2022 00:52:14 -0800 (PST) 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=g3+PUwY4; 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 S229869AbiKYILH (ORCPT + 87 others); Fri, 25 Nov 2022 03:11:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229885AbiKYIK4 (ORCPT ); Fri, 25 Nov 2022 03:10:56 -0500 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1009C21E01 for ; Fri, 25 Nov 2022 00:10:55 -0800 (PST) Received: by mail-lf1-x12a.google.com with SMTP id a29so5722663lfj.9 for ; Fri, 25 Nov 2022 00:10:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=sL1NUAu6lSv+jlMLYFhjd/8Pjp4yH4Gi/+vBxDoZ+ks=; b=g3+PUwY4xc1OsQmrGhCpvVD+xktnoc9Q+9u9ZqE5ygYSKXtbkKc7gSdri4jQDsAhE3 TDBzrmi0Lr38VfXcPtrPK77gCo/Bt6uzdnQftL5A6rgpSiP/C8+zMyhCHB9nVHg8iKZK +F6ItGNB20GLolup29DA+M+kgJojEQ8Pv09lUdMwbzfe9Czs9tjflxTouy9zKvnf5k14 XQUIZutT+Snv52pnteTN7AqffK7zKfk4W2gdY473UEJ9QSKf4BXjsrlH8qSfHi1dEthw vL6E+F9OWHpv0STEwfrsokr51+gGm5iHmpMvpdF6FroJYOdLlmCEH8r/hCTcQsPa609J TUKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=sL1NUAu6lSv+jlMLYFhjd/8Pjp4yH4Gi/+vBxDoZ+ks=; b=yBkP1UwpEMjVgwbg0M28RkujzC2Dz+OjHRGIc2L8jR1/GiS+75sWmlUku7OeLDaxSa /l0cuEP7tM4rg2nTO/ZADxbg+46G0ebK+4d/Of56xqfiOckmwOby+m2EbIi8TxxIRI/s vOZ4LGp03AzouP17Pg4tcOAO0eMcMivDECy3lbqi/c1PQmuFd2PaIsJzE8TOjcKDXWp9 YwPOjBYtBAOouTEzMHtD4/pnmrVmlJ0BHeE+yoTjmSPe3mo+9LwDBISLAsTOvhzimQY7 STLivViLXhCSlRPx3ze9ltEFl9LvEuS45LiKe1Zhw2gUh9M4gjh1RFeFdepQWfhY3rpW et/A== X-Gm-Message-State: ANoB5pnC0Hwp9axPCQiKhdCYMnjyXynr5qCI8CasbICM7wm0xwQW/PEK JvhUWyURRBszwnuKX951KDSNGg== X-Received: by 2002:a05:6512:c29:b0:4b1:b061:4815 with SMTP id z41-20020a0565120c2900b004b1b0614815mr11672276lfu.18.1669363853422; Fri, 25 Nov 2022 00:10:53 -0800 (PST) Received: from [192.168.0.20] (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id s6-20020a056512214600b004afac783b5esm425357lfr.238.2022.11.25.00.10.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Nov 2022 00:10:52 -0800 (PST) Message-ID: <8fe3c2a6-845a-06ab-1164-9ddd4f5e5ac9@linaro.org> Date: Fri, 25 Nov 2022 09:10:51 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH v4 3/4] dt-bindings: sram: sunxi-sram: Add regulators child Content-Language: en-US To: Samuel Holland , Liam Girdwood , Mark Brown , Chen-Yu Tsai , Jernej Skrabec , Krzysztof Kozlowski , Rob Herring Cc: Andrew Lunn , Heiko Stuebner , Maxime Ripard , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev References: <20221125040112.18160-1-samuel@sholland.org> <20221125040112.18160-4-samuel@sholland.org> From: Krzysztof Kozlowski In-Reply-To: <20221125040112.18160-4-samuel@sholland.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 On 25/11/2022 05:01, Samuel Holland wrote: > Some sunxi SoCs have in-package regulators controlled by a register in > the system control MMIO block. Allow a child node for this regulator > device in addition to SRAM child nodes. > > Signed-off-by: Samuel Holland > --- > > Changes in v4: > - Remove unevaluatedProperties from regulators schema reference > > Changes in v3: > - Require the regulators node to have a unit address > - Reference the regulator schema from the SRAM controller schema > - Move the system LDOs example to the SRAM controller schema > - Reorder the patches so the example passes validation > > Changes in v2: > - New patch for v2 > > .../allwinner,sun4i-a10-system-control.yaml | 28 +++++++++++++++++++ > 1 file changed, 28 insertions(+) > > diff --git a/Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml b/Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml > index 98a7dc7f467d..c487ac9521e9 100644 > --- a/Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml > +++ b/Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml > @@ -56,6 +56,9 @@ properties: > ranges: true > > patternProperties: > + "^regulators@[0-9a-f]+$": > + $ref: /schemas/regulator/allwinner,sun20i-d1-system-ldos.yaml# > + > "^sram@[a-z0-9]+": > type: object You could add allOf:if:not:...then: clause making regulators as false for all variants which do not support it. This would make it more specific. Anyway: Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof