From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 629D6C32772 for ; Tue, 16 Aug 2022 10:00:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=M4PPKvn+XH1FSebDWNZROHZRCjTtnlshcCYL1iBLBOg=; b=yELs3qd+Q2AYqn VIwYOKqi6haDC5MlMphVVE9T44cZp7LQa3NCfDOU9dIUBRMz6I4NEJZAkWXzGxblte+AmWEBgBJoG KDrzy9MuVf+4ktT+sf6B9iMdcxL1eQ1GnyFHWsHeUkWlClJwCdbj3TbhNDd0SZacr6Rs7gghSKK8+ NI7ayZW3IVx1CUcixdWL2EJSrjEYYMONQoZMTIQrc0lqRHOqwPMxC3INekSsF65UZngZoZ3PyzDyD ejtKxXoRczEPr+Ajjb3f6QLfCNlxLoGDDHLPW9GCpDfx7HlhAyWEOiSn6YJQQ+P5MKeENd21jHZug 7FwoiZfr+lepuKY7tqkA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oNtMR-000ZK8-0b; Tue, 16 Aug 2022 09:59:47 +0000 Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oNtMO-000ZGx-Dp for linux-arm-kernel@lists.infradead.org; Tue, 16 Aug 2022 09:59:45 +0000 Received: by mail-lj1-x229.google.com with SMTP id l10so10000185lje.7 for ; Tue, 16 Aug 2022 02:59:42 -0700 (PDT) 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; bh=FUFa0tAMMh/TtMA4JL4AeBH252o6vhFi0++29Z10b24=; b=zVE9sjyWG25xLS+qfczRwgEvdChwcxYO9y9ThgToxbiD92NoriI2/CugHb+2TF3ZFF /VXzNtQOnWx3R0kfeyzg8WfW+5EUt9bgy1gW7Yegna+Po6NGdGDJgHl5Nxz6UXRqKqFP fTc++mSbFkWyzCFK0wXmxpUKsuOcNjJgDR39utT/D3NxyGfYnbhTWBdIuj6akm4Bzko7 vz8sowWFwXLFNBVl4aaNXSw+3yD83buEjvoUZ2WYEtGbit0Tgtc5xyxrwWGU2kIA2HyZ y/47r3YT6oT3mH6gKYu00BulMGdQcHyDyBVfKhGRcfRG38Zqvj/ELALRHaU37DJ7c1MF Om0A== 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; bh=FUFa0tAMMh/TtMA4JL4AeBH252o6vhFi0++29Z10b24=; b=XgAVbUsSGdp6fSliG9q8Wu3bWfA6WqOjn/nuF91Zi4vkI05vbW5h2WOlEVhtnWFHe/ qNXKH/yr7Yj97ziLpvj6ab+KQXygRtwBecftmjmwTDQIEu9+zbcrCtTYU56T3ypA9D6F VGgwdtXvVxyWgxoWKCh77n/++kaCxqML7pWktenlZg4IbEyM+WJFB634xvzo90M+5Vjm 0Jijyio/IkhryoDHQJ5LC6iVC8YuguHr/2mejYQxMRhT5OXezHXymRzqvEyc5De/dpmS v6uYGUaRkUCF158brdc3YHY4N6hrltowgtTgkxmhgPiXfNKFvqmyH7VcZf5hTe0kyBjm jazw== X-Gm-Message-State: ACgBeo1ia1/emD42+zJkra2oMnRerkWm9dohi86dJjeMCpvGE4hEJZDC wxth40rtt/13+aJ6Bmdp2CIexg== X-Google-Smtp-Source: AA6agR6vA3wQXqUJnn2nYR4Cb7jBvUzx/9ftdty6xbOM/7CP2StR5ZpMn2Us3AJtLeblD6qmRz2oQg== X-Received: by 2002:a2e:b74a:0:b0:25f:3f72:9210 with SMTP id k10-20020a2eb74a000000b0025f3f729210mr6307340ljo.8.1660643981080; Tue, 16 Aug 2022 02:59:41 -0700 (PDT) Received: from ?IPV6:2001:14bb:ae:539c:1782:dd68:b0c1:c1a4? (d15l54g8c71znbtrbzt-4.rev.dnainternet.fi. [2001:14bb:ae:539c:1782:dd68:b0c1:c1a4]) by smtp.gmail.com with ESMTPSA id o5-20020a2e9445000000b0025e0396786dsm1741897ljh.93.2022.08.16.02.59.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Aug 2022 02:59:40 -0700 (PDT) Message-ID: <3e23c288-7065-a3fd-c326-8d66e168ba41@linaro.org> Date: Tue, 16 Aug 2022 12:59:39 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH v3 3/4] dt-bindings: sram: sunxi-sram: Add optional regulators child Content-Language: en-US To: Samuel Holland , Liam Girdwood , Mark Brown , Chen-Yu Tsai , Jernej Skrabec , Krzysztof Kozlowski , Rob Herring Cc: Maxime Ripard , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev References: <20220815043436.20170-1-samuel@sholland.org> <20220815043436.20170-4-samuel@sholland.org> From: Krzysztof Kozlowski In-Reply-To: <20220815043436.20170-4-samuel@sholland.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220816_025944_515804_45B09814 X-CRM114-Status: GOOD ( 18.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 15/08/2022 07:34, 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 these regulators > in addition to SRAM child nodes. > > Signed-off-by: Samuel Holland > --- > > 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 | 29 +++++++++++++++++++ > 1 file changed, 29 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 d64c1b28fb61..915ca85c3f10 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,10 @@ properties: > ranges: true > > patternProperties: > + "^regulators@[0-9a-f]+$": > + $ref: /schemas/regulator/allwinner,sun20i-d1-system-ldos.yaml# > + unevaluatedProperties: false unevaluatedProperties is not needed. Your other schema does not allow anything else here. > + > "^sram@[a-z0-9]+": > type: object > > @@ -130,3 +134,28 @@ examples: > }; > }; > }; > + > + - | > + syscon@3000000 { > + compatible = "allwinner,sun20i-d1-system-control"; Your other example uses simple-mfd, syscon... A bit confusing. > + reg = <0x3000000 0x1000>; > + ranges; > + #address-cells = <1>; > + #size-cells = <1>; > + > + regulators@3000150 { > + compatible = "allwinner,sun20i-d1-system-ldos"; > + reg = <0x3000150 0x4>; > + > + reg_ldoa: ldoa { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + }; > + > + reg_ldob: ldob { > + regulator-name = "vcc-dram"; > + regulator-min-microvolt = <1500000>; > + regulator-max-microvolt = <1500000>; > + }; > + }; > + }; Best regards, Krzysztof _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel