From patchwork Tue Jul 27 20:19:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 486753 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:1185:0:0:0:0 with SMTP id f5csp550694jas; Tue, 27 Jul 2021 13:20:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyudmEXyE9jS3BNmU/2zpya3+RsvyW4WGBQv/CMj+fNYvS39eLDGA0uNMUG1RpAHzyPb+h X-Received: by 2002:a05:6402:17d3:: with SMTP id s19mr29609901edy.49.1627417222493; Tue, 27 Jul 2021 13:20:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627417222; cv=none; d=google.com; s=arc-20160816; b=DBAaF0cGnR4YHBuU/aJJba5xyXn2LRyCxfGRuzNclJenvaWoIU+qEExC5DetQZmFNg h7mplj2CYWggztOnzHMZVfv7Bq+MhciKx6me0iS0fOJqaQpv759e798+r/jT1ZQh19cn P0xsKw01O+0GZA+/UcztSAV7BBPAxmrfiZFJ6bOreLa7xAgyIS2IlJ91sxciNJy6ggJr eiXPu3pTN22ScBRHvmNVrVlmmcSMjNnfsCq+3RSBdsj3yCVNhS7BH58pk56eJuvB0818 J9+uNdpGL5Mkhid8m1JRyeLC9uFL4GaDGmcuZY3sZhCfn/XnZ0sI1ubts4wydiZcitY7 WnxQ== 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=D63/+TxRKfSO58fkCSffqgWBORWJvZPVM0amiHKwxec=; b=UdHDg068Yc/dB3R/OnBq6oC9tUo/NVEXuxACWSqmkWHLSQVT3Q8x7YP8Vz7hrLaBtu GOLNq2gtrnsVyHIXYM70QGfjRZCDCzlGXy+qQSO+WBT19ky434OXJHaf0Bs6KwSzK652 jQWNKwd1ec7UnWvxLllYdITJ35LusGjqltlt86nI4eRn5cFO41XK+bLxwhLiKIj4gANm 8fVg1dJvvByhkZUy3c19bUawqIzn6KUy0mecToQrwC1+KM2EprXccEfVcHMjj8PEAmBU s+hg0vi9MdhgRVvL5ExGbFZJzu52NacgmrtSAG2WIEmparKcU5PvbNy08aASpKWhrS3O izRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uc6aI1bT; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qk43si2817945ejc.325.2021.07.27.13.20.22; Tue, 27 Jul 2021 13:20:22 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uc6aI1bT; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S232027AbhG0UUV (ORCPT + 7 others); Tue, 27 Jul 2021 16:20:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231351AbhG0UUU (ORCPT ); Tue, 27 Jul 2021 16:20:20 -0400 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 D6843C061760 for ; Tue, 27 Jul 2021 13:20:19 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id z2so23959977lft.1 for ; Tue, 27 Jul 2021 13:20:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=D63/+TxRKfSO58fkCSffqgWBORWJvZPVM0amiHKwxec=; b=uc6aI1bT4oYPAXdYes42FS0Izp1zNLRkiWaGnSYlwTVIVOsTJSUmch0aAT5BmcYlcE ytrOkbt2DiOy0FKyOcCFU+QB/iJe6Azcx27O4p4DElOfL9rh8oagFB3QRQyOwv6/ykRA VBUr9jguO2RzUwDjQ60ngQSZABJqc1xPbbyPCkpfHBGiVdJRGYuR4ks1ey5VdH2H3HwP 4QDg8KYTIo/TvTnZDpGJDH+qyfCfrr4BDU8eu4keUJfMmRB3rDIGP6R0PasbOvffXzkU thDS7DIzY3kpx5HSg4cXVYslvWprRGRgaKWoEqZ5HXMlg2o1bt8UcQe4MwD0esSupeAp NF+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=D63/+TxRKfSO58fkCSffqgWBORWJvZPVM0amiHKwxec=; b=rQVMyqXBxtxlOnWl7hp+v0uOL+L+zqlDKzFUqnqT2xhvjDveXIfrBOBUjV33qu1n5n 2MlpRK0cwzfM9Lq4QRHTokWJlFCXTCFTSyBg0f5OGITbeEikUW9GNYMsTrfuXeAzkp4D xcl23JV6i/zC1n+frFGDmVZDWEu8h7ZUtmxm1cgSmgFQg15lgvl4Z5mA3fxvxTNTyHT8 PY93m0A9S60zRt14e7l3A1ZBs+0pRkqVvclDx/pVxEN5KP8S76B2OBINmV2eeS2bd12G xDB/VWWTaCRbN3dnPT64m7l3kzjAQ/s2ZqS+F7u5FpBrUGErHbYTagOABucwRp+HQAt/ mbpA== X-Gm-Message-State: AOAM530gon06Vqutec1YrurCU2KZpsPRGYdivE8kwn6G/PamZD4atXEo qEb9oMB+l3q5i1FsbIEw6SDoEQ== X-Received: by 2002:a19:f716:: with SMTP id z22mr17747060lfe.13.1627417218148; Tue, 27 Jul 2021 13:20:18 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id i11sm376502lfe.215.2021.07.27.13.20.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jul 2021 13:20:17 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring , Stephen Boyd , Taniya Das , Jonathan Marek , Michael Turquette Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, Bryan O'Donoghue , Mark Brown , Ulf Hansson , linux-kernel@vger.kernel.org, Rob Herring Subject: [PATCH v6 1/8] dt-bindings: clock: qcom, dispcc-sm8x50: add mmcx power domain Date: Tue, 27 Jul 2021 23:19:57 +0300 Message-Id: <20210727202004.712665-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210727202004.712665-1-dmitry.baryshkov@linaro.org> References: <20210727202004.712665-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On sm8250 dispcc requires MMCX power domain to be powered up before clock controller's registers become available. For now sm8250 was using external regulator driven by the power domain to describe this relationship. Switch into specifying power-domain and required opp-state directly. Signed-off-by: Dmitry Baryshkov Reviewed-by: Bjorn Andersson Reviewed-by: Rob Herring --- .../devicetree/bindings/clock/qcom,dispcc-sm8x50.yaml | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.30.2 diff --git a/Documentation/devicetree/bindings/clock/qcom,dispcc-sm8x50.yaml b/Documentation/devicetree/bindings/clock/qcom,dispcc-sm8x50.yaml index 6667261dc665..6b3380cf1a10 100644 --- a/Documentation/devicetree/bindings/clock/qcom,dispcc-sm8x50.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,dispcc-sm8x50.yaml @@ -56,6 +56,11 @@ properties: reg: maxItems: 1 + power-domains: + description: + A phandle and PM domain specifier for the MMCX power domain. + maxItems: 1 + required: - compatible - reg @@ -70,6 +75,7 @@ additionalProperties: false examples: - | #include + #include clock-controller@af00000 { compatible = "qcom,sm8250-dispcc"; reg = <0x0af00000 0x10000>; @@ -90,5 +96,6 @@ examples: #clock-cells = <1>; #reset-cells = <1>; #power-domain-cells = <1>; + power-domains = <&rpmhpd SM8250_MMCX>; }; ...