Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5365927rwl; Tue, 11 Apr 2023 04:35:12 -0700 (PDT) X-Google-Smtp-Source: AKy350bKT753OfOfy0yCidnNR7KTMf4MJ2e5Zpzc5qXTLs28NxkigX49pto7ARj76krThMdtd1Iq X-Received: by 2002:a17:902:d4c6:b0:1a1:cef2:acd4 with SMTP id o6-20020a170902d4c600b001a1cef2acd4mr17912967plg.21.1681212912061; Tue, 11 Apr 2023 04:35:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681212912; cv=none; d=google.com; s=arc-20160816; b=yx87LvtQ+MpzrV9Mw0H11yP2kN3mszNHdLqflZ6wAzeabtqHZ3Bl+l/yE1fZBF7m7F 7xVljy1u5hfDt84hzJJyBS0JB2cLjkJw9Ho/qHzO5YAbiA9zJ3aqIuFyijCCT2Ln77jd fRC5smwxzZ6hEajB3b9vTNXFtCX501HFcD6mMf85LqUNBmk95O7HKijQh7tjZ2gRTmQU oIpsOY4NzoWH6PU4iIa3ffZE5hLT0jlz5fSzASCFqPM4NjCdyAuev2s6WbBrG5x+vI/4 YGDud5RWac7uEOZ7AKD4fKXVtQDo5HBDL1UdSFZeasWLRmTO44fdJICWtGFFHC3z8mkO iYoQ== 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:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=mO52s6mKQHmY0l0OyHS8ECqMNi9aQa6bkpfbk2zZBzI=; b=jaLV83qFlqKgjmQvsXjz2eRfE7nE7trJzxgdLRWkTsnK1Nxbi6yOhP4slDL4Sv/KM1 S/GsGC0k+wm31oALztN7bdJo20O3AmDiB5d14WXD2JsPrHRjyhdp9drW8iodq3bZzxm3 xQv9E+q6ZMABsuj4R7sW3Uf+UeAhQiXec5T/v6Ags7wntKdKRK19qoX4yibVRHJIlGRK pCs0XUo+3/Skboqqi3x9dacDaXGIJED2oBva/f7nUUxnvk2fCjq8icUzZC0qPNf9Kyph KtNtQrXqwh5vVH0sllp8hu/n9MccgDm5Cao5Ur1/d8QgjdM04VkpcyM5sbUfymHnb5vG DGgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=j7Pt8ae8; 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 u1-20020a170902e5c100b001a52db202c7si8256833plf.382.2023.04.11.04.34.59; Tue, 11 Apr 2023 04:35:12 -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=j7Pt8ae8; 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 S229565AbjDKL1Y (ORCPT + 99 others); Tue, 11 Apr 2023 07:27:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229521AbjDKL1W (ORCPT ); Tue, 11 Apr 2023 07:27:22 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 399BE35AB for ; Tue, 11 Apr 2023 04:27:21 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id x31so4087181ljq.10 for ; Tue, 11 Apr 2023 04:27:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681212439; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=mO52s6mKQHmY0l0OyHS8ECqMNi9aQa6bkpfbk2zZBzI=; b=j7Pt8ae8gKTdfQX0/1NJQfb8hKrdEeyPzRerwfez1/I2fK3jK3W4BNfQa4Q6a42vmV 7qI0iuY9Q+0fHNXNKNhWFofsiXJdG6mz8/6O80H4DDuW3/RIuDwz1ybPAr2Lucq2allR ZSVPxjhXxYZnja3uqyCyLC/W6qaBmmyfiNgW3tilT7PKr2rVN+VW0Ak+0NQHW2rU8rwh zgVSr9G+cXHy7dEwRVcDIlykcNEm3CcJfcQ59RcOyKheecqppez+jtOnZuypa14/8vjx IFKlh1y5ul2PXkIIZGXW+66Vj5UEH7Y4lIL7jjf9+5HHg4YeUKbzDgjI66eVBmczKMC4 malQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681212439; h=content-transfer-encoding:in-reply-to:from:references: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=mO52s6mKQHmY0l0OyHS8ECqMNi9aQa6bkpfbk2zZBzI=; b=f4WA1Jxwejggsn+daeEwY+netWEgsD9N4D+qir95xNPMNJJ9fM1kCoTOElORACfuSW v60uvbQYmqw7ZRUI6UifHtcNnsei7C1mbN3MvSkfppGH5lsMVstLCa4vkgIgE4DVwgaB 3+3suCTs5jPNAXAB61f5ej8IBYIJ8bLZNprdzcDGc3XBj1SX+EwWVSHBeENkM+d1q+d5 7n0jrI+p/XGJZ199Qn4w4l1mxp81RIbVcr1lP4rijcBTKStXMsc33cqJJkRDnkPl543N 5g6f99X9Auc7bSzmJ9Hwh4c/cfQ2c+TNWixT6jexs3ykeoRUa9mLXW6E8zHKQF9Shsqg x4pg== X-Gm-Message-State: AAQBX9eJ76nfa2u/5MpD3kXGFibDH3OnbnD409EPrw46RyH5SXFN9sx9 chw6Ht/MTJPR03zp31o0adCEsA== X-Received: by 2002:a2e:6a06:0:b0:293:4e6d:9194 with SMTP id f6-20020a2e6a06000000b002934e6d9194mr2813065ljc.24.1681212439462; Tue, 11 Apr 2023 04:27:19 -0700 (PDT) Received: from [192.168.1.101] (abxj23.neoplus.adsl.tpnet.pl. [83.9.3.23]) by smtp.gmail.com with ESMTPSA id i15-20020a2e940f000000b002a615c75bf2sm2751558ljh.6.2023.04.11.04.27.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Apr 2023 04:27:19 -0700 (PDT) Message-ID: Date: Tue, 11 Apr 2023 13:27:17 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH 2/3] dt-bindings: clock: qcom,gcc-sc7180: document CX power domain Content-Language: en-US To: Rajendra Nayak , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Taniya Das , Dmitry Baryshkov , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230408134820.76050-1-krzysztof.kozlowski@linaro.org> <20230408134820.76050-2-krzysztof.kozlowski@linaro.org> <4757c33c-7e71-262d-a51a-c5f9fb53ff41@linaro.org> From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 11.04.2023 06:56, Rajendra Nayak wrote: > > > On 4/8/2023 7:33 PM, Konrad Dybcio wrote: >> >> >> On 8.04.2023 15:48, Krzysztof Kozlowski wrote: >>> The GCC clock controller needs CX power domain, at least according to >>> DTS: >>> >>>    sc7180-trogdor-pompom-r3.dtb: clock-controller@100000: Unevaluated properties are not allowed ('power-domains' was unexpected) >>> >>> Signed-off-by: Krzysztof Kozlowski >>> --- >> +CC Rajendra (author of 5d6fc6321db1 ("arm64: dts: qcom: >> sc7180: Add required-opps for USB")) >> >> Rajendra, shouldn't SC7180 GCC have PM ops to make sure a vote >> is only there when AP is active? So IIUC, CX is never supposed to be shut down? Konrad > > hmm, I am not quite sure why we would want the performance votes > from peripherals dropped when CPUs go down in idle? > >> Are all GDSCs powered by CX? >> If not, wouldn't this also need power-domain-names to >> facilitate e.g. potential MX-powered ones? > > For sc7180 GCC, yes. > >> >> Konrad >>>   .../devicetree/bindings/clock/qcom,gcc-sc7180.yaml         | 7 +++++++ >>>   1 file changed, 7 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/clock/qcom,gcc-sc7180.yaml b/Documentation/devicetree/bindings/clock/qcom,gcc-sc7180.yaml >>> index 06dce0c6b7d0..8bf9b6f49550 100644 >>> --- a/Documentation/devicetree/bindings/clock/qcom,gcc-sc7180.yaml >>> +++ b/Documentation/devicetree/bindings/clock/qcom,gcc-sc7180.yaml >>> @@ -32,6 +32,10 @@ properties: >>>         - const: bi_tcxo_ao >>>         - const: sleep_clk >>>   +  power-domains: >>> +    items: >>> +      - description: CX domain >>> + >>>   required: >>>     - compatible >>>     - clocks >>> @@ -45,6 +49,8 @@ unevaluatedProperties: false >>>   examples: >>>     - | >>>       #include >>> +    #include >>> + >>>       clock-controller@100000 { >>>         compatible = "qcom,gcc-sc7180"; >>>         reg = <0x00100000 0x1f0000>; >>> @@ -52,6 +58,7 @@ examples: >>>                  <&rpmhcc RPMH_CXO_CLK_A>, >>>                  <&sleep_clk>; >>>         clock-names = "bi_tcxo", "bi_tcxo_ao", "sleep_clk"; >>> +      power-domains = <&rpmhpd SC7180_CX>; >>>         #clock-cells = <1>; >>>         #reset-cells = <1>; >>>         #power-domain-cells = <1>;