Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp461384imw; Thu, 14 Jul 2022 04:58:44 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vbtGrITrM50HAzVcBuShDEEmnuliiU2nTiJpp6anZf5n2Hzhww+xlQCPFyrkcz2t5WQCpg X-Received: by 2002:aa7:88cc:0:b0:51c:319e:772c with SMTP id k12-20020aa788cc000000b0051c319e772cmr8146947pff.41.1657799924068; Thu, 14 Jul 2022 04:58:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657799924; cv=none; d=google.com; s=arc-20160816; b=l2rs99rrt9Z6QhjXUIVJzdzRnGv0ntAM+zvmMdpHkqnNkbD7iew+oMyaIq+tq6qoeT NWzduD4ye3Tw7q7zjPQ2blUaTbI24vQmQqTExTFOxzyBRkm7BDTbrCPHsD1HAKEYJU7C DvWnD5yJ4d5ix1BMC76FgOgx5dqy3raKpGhvf/jSOa/MuaSPiIojhXQzty5O1F8O/432 a6LrHqrj1WKn7FuY5p6tCtGuB7LhcHOczr2Gw1ezclsJFsZczYfwNxFJMkyGXC6wYJ3D 2m8Lt9LeGUjWzeC9NPHlAu7mdL0OQHRmPuQkS+lCaDeD99k0aAwCdGEqzZ6ODD1v7I6J W2kA== 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=KmdkLZQTH7Au+8JqBR3UHKGQf5x82UafUt+CMJrqYow=; b=Ks2mA5VvEtJBrYe0iuT1bFXZss4uzi221y1F3bR4KPrXX6fQ1UoaycS5t69dQLDAKL //onEW17iWb1URE09KZgpNpLeIZYicgVguu8ZvmKK37LkGrK6qtaXAVSWIEpIh9Ak8j2 K+OhENe0by/+SSHHlgdH8OQlekdIoBObq/zt5JWpoO7YyXTYkSAdKrCq2+LOjHTEyrlM 7V/wj05PreyLDSbtT2IPdxo5FDTG8o4S28HZ548Cqe0w4wXDx19e9iIZIBiMlTYGGXxO gX0lhbgqCzDRBhWCVtdEfzK+H4smLOuFBoGIogcQAFYzhkLaX1RZs1QBJwUwUKhhMn3Z GZog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ykwOYMW0; 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 p3-20020a170902f08300b001677ae609e3si1512956pla.426.2022.07.14.04.58.32; Thu, 14 Jul 2022 04:58:44 -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=ykwOYMW0; 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 S239067AbiGNLso (ORCPT + 99 others); Thu, 14 Jul 2022 07:48:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239066AbiGNLsl (ORCPT ); Thu, 14 Jul 2022 07:48:41 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 219A47661 for ; Thu, 14 Jul 2022 04:48:38 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id u14so1879004ljh.2 for ; Thu, 14 Jul 2022 04:48:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=KmdkLZQTH7Au+8JqBR3UHKGQf5x82UafUt+CMJrqYow=; b=ykwOYMW0SFy7xWmcHnQ1EXNmukntRLlae+V63adrgl2q5taon6yOi4QBkcZ5yYkq0F rQsfSIfLMlr2bASl8+YqShrkKiUsmjlkMki8jt1v1AJPefxgpNEqfYsi89vCjKrWO1Rj AX6abGCe7KI0Y1er2+nTRmPMc5vjSsiad5Pkuuo9wKclct88rO3JGyiig1nwiUo12CAS BG9jzcvpXGiblYNyiaqNJopPjxPW+NcIpxwZ2Ob3nTWu6AoFjjNQL0Q2uvG/pPmfnP69 d3w5KMCdTj/hpHFJZxeTJj74fJ+lO0yYh0LbAuv9Xa0iZrO4TB5ahNUbpnlh47PzcJIt oM8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=KmdkLZQTH7Au+8JqBR3UHKGQf5x82UafUt+CMJrqYow=; b=UlefcWn2xChJxnEXdGpO3LehNhnvNFqIcgi9HCh4+in3/q+wiMrJjI3/xJcb4VMKR8 c4HDxbmEssIbAzUf+D/FcQjDhZHTFj70/24UxChvfPldPRC5/P96PRBU9Rh+x0+YIX5a ELeX8mW4oyjaMlw4uEDdjMZyo4XjlbK9dJ6zCoUVVyV2N+NfJ2VEi5SBA+b9Td7n2pWo 6zFMZJREW9a8Y8keETA978VPlrUsGCqj0rEeuUcnIAD8JtLjIhZYcqDgJ9CXQRfxNGd/ VzgyT21I6Wh/L1itVm6gNnJTuDNw1LAMqYfyzPkmrgSn5l2AuQ6MFMDf2HNW6IQZJR91 3WTA== X-Gm-Message-State: AJIora84Pj/as1cOCi2oeV8bOgkOp8xpX0zZK7GLTIbmJCkq6902bA+A z++bEoBDuZwYnbojeava9iWOiA== X-Received: by 2002:a2e:b892:0:b0:25b:ce73:675f with SMTP id r18-20020a2eb892000000b0025bce73675fmr4185438ljp.67.1657799316481; Thu, 14 Jul 2022 04:48:36 -0700 (PDT) Received: from [10.0.0.8] (fwa5da9-171.bb.online.no. [88.93.169.171]) by smtp.gmail.com with ESMTPSA id j28-20020ac2551c000000b0048329aa6c92sm318315lfk.139.2022.07.14.04.48.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Jul 2022 04:48:35 -0700 (PDT) Message-ID: Date: Thu, 14 Jul 2022 13:48:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v3 1/2] dt-bindings: power: reset: qcom-pon: update "reg" property details Content-Language: en-US To: Anjelique Melendez , corbet@lwn.net, sre@kernel.org, robh+dt@kernel.org, agross@kernel.org, bjorn.andersson@linaro.org Cc: krzysztof.kozlowski+dt@linaro.org, vkoul@kernel.org, linux-doc@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, David Collins References: <20220713193350.29796-1-quic_amelende@quicinc.com> <20220713193350.29796-2-quic_amelende@quicinc.com> From: Krzysztof Kozlowski In-Reply-To: <20220713193350.29796-2-quic_amelende@quicinc.com> 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,T_SCC_BODY_TEXT_LINE 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 On 13/07/2022 21:33, Anjelique Melendez wrote: > From: David Collins > > Update the description of "reg" property to add the PON_PBS base > address along with PON_HLOS base address. Also add "reg-names" > property description. > > Signed-off-by: David Collins > Signed-off-by: Anjelique Melendez > --- > Documentation/devicetree/bindings/power/reset/qcom,pon.yaml | 73 ++++++++++++++++++++++++++++-- > 1 file changed, 69 insertions(+), 4 deletions(-) > > diff --git a/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml b/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml > index 353f155d..562fe308 100644 > --- a/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml > +++ b/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml > @@ -15,18 +15,26 @@ description: | > > This DT node has pwrkey and resin as sub nodes. > > -allOf: > - - $ref: reboot-mode.yaml# > - > properties: > compatible: > enum: > - qcom,pm8916-pon > - qcom,pms405-pon > - qcom,pm8998-pon > + - qcom,pmk8350-pon > > reg: > - maxItems: 1 > + description: | > + Specifies the SPMI base address for the PON (power-on) peripheral. For > + PMICs that have the PON peripheral (GEN3) split into PON_HLOS and PON_PBS > + (e.g. PMK8350), this can hold addresses of both PON_HLOS and PON_PBS > + peripherals. In that case, the PON_PBS address needs to be specified to > + facilitate software debouncing on some PMIC. You miss here min and maxItems > + > + reg-names: > + description: | > + For PON GEN1 and GEN2, it should be "pon". For PON GEN3 it should include > + "hlos" and optionally "pbs". Skip description. You miss here min and maxItems. See https://elixir.bootlin.com/linux/v5.19-rc6/source/Documentation/devicetree/bindings/clock/samsung,exynos7-clock.yaml#L57 for examples. > > pwrkey: > type: object > @@ -42,6 +50,63 @@ required: > > unevaluatedProperties: false > > +allOf: > + - $ref: reboot-mode.yaml# > + - if: > + properties: > + compatible: > + contains: > + const: qcom,pm8916-pon > + then: > + properties: > + reg: > + maxItems: 1 > + reg-names: > + items: > + - const: pon > + > + - if: > + properties: > + compatible: > + contains: > + const: qcom,pms405-pon > + then: > + properties: > + reg: > + maxItems: 1 > + reg-names: > + items: > + - const: pon > + > + - if: > + properties: > + compatible: > + contains: > + const: qcom,pm8998-pon > + then: > + properties: > + reg: > + maxItems: 1 > + reg-names: > + items: > + - const: pon No clue why you made three if statements. This is one if for all three variants. > + > + - if: > + properties: > + compatible: > + contains: > + const: qcom,pmk8350-pon > + then: > + properties: > + reg: > + minItems: 1 > + maxItems: 2 > + reg-names: > + minItems: 1 > + items: > + - const: hlos > + - const: pbs > + > examples: > - | > #include Best regards, Krzysztof