From patchwork Fri Sep 11 13:09:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 249725 Delivered-To: patch@linaro.org Received: by 2002:a17:906:6011:0:0:0:0 with SMTP id o17csp448306ejj; Fri, 11 Sep 2020 07:09:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXXgKno+CngaACGKsmyNKgJqVIi8X+tGvW+u3RiO5F3B5ALX4kaCu2Oidwy82EeTeZdNLs X-Received: by 2002:a17:906:6409:: with SMTP id d9mr2213273ejm.344.1599833368147; Fri, 11 Sep 2020 07:09:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599833368; cv=none; d=google.com; s=arc-20160816; b=ODvuI4BytuNokU+NHauUq92B3OLefxzxEc8/A0PM9fUJ4EJgVPVg11H4bLUPJlDFIm ywsK4gQAWHMabGxVPIitm9vvazksL+Lh/nTuNqu5KrATV2oOmTTjTLdhU82N0XqS4JcR s+XhEeS2enpDGA1IC0EdSZJCXSt84V7hTzsOX5kqKn3tJAA/cbpkfZUzUXIvimzTTVuQ ajBUUKEeAQnKKXhk3c3iyof27+6yno5LnsVJY7CoO8Yxs/+uh1KfMZ1v1/IlEgeTxoht hPj0GlmAUo/65MCkuyIgNRs/QXRtLLY12JxJRIPmNc7LaG2mvK8fyVmuNhtmrM72aTMW sLMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=m4ns89YXuM0U6R9CSxExw55LeHRMBm6M9s8J9s8KJ5Y=; b=dHDmR9wIBk+ehxDdQgmkAyYkTET9UEhUM9Fd8kgQ4EAD2skbffkzEKLpiNEh3IVVoC 8W8mtD08P/fgKRwoLSqnbJI7wvRCUJFAUg7Cd7LljCIiWp5Qpfy/cvQ6xBIy3teq2sxJ HRGcwnglrQ6JmGaVcmlTT7b6ZrRb3QZGgt4PZvaQqkT9itkgaujDzRvi20MZclSQbD7S Ywm1VEmaao+mHncqnYgtq3mE8GV6Z30exqrR0fStXFCE4C7I6iCxjKPA/ZMXh7t2GIZ6 rumLipXm0JgfIPOGrTglmov2KteRsN7T5y/xzFw4gH3Fi97tf+aKluL+F2FGCR8pP70T sgtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MyFqACBL; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 t21si1410584edy.123.2020.09.11.07.09.27; Fri, 11 Sep 2020 07:09:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-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=MyFqACBL; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1725798AbgIKOIS (ORCPT + 15 others); Fri, 11 Sep 2020 10:08:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726222AbgIKNSO (ORCPT ); Fri, 11 Sep 2020 09:18:14 -0400 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FB59C06179A for ; Fri, 11 Sep 2020 06:09:59 -0700 (PDT) Received: by mail-lf1-x141.google.com with SMTP id d15so5756172lfq.11 for ; Fri, 11 Sep 2020 06:09:59 -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=m4ns89YXuM0U6R9CSxExw55LeHRMBm6M9s8J9s8KJ5Y=; b=MyFqACBLzEsrNY0onzRu9H2Pgubk3KjyVfKXRb8fM3agrYTYxV1/3561aCaUSBWAMU ++C8z0rXTCH01Ia6ahO6l0U5CopuutNfVaEYOnlJLEVaIRkbfpwveN9kIJjyWfoEqW31 ky3j8tZxK0k2SBvWncA5VBxnq/+Xcs4DACk+jvRnvrnggJBZZlwxhu1YBxgWqseZsxM3 RICde87H4cmidvHQ653IZc/kMxc3HwDlHUIBHOs4UIJfxIym/eGX9fARjRiHqxNMGv2U YuH1RIGVU2X1Kr1qJ404HiG0o9xV8p3ZOSXRLtbgeFVzF3qffq+SMclUnKa1frfv9LbH mnwQ== 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=m4ns89YXuM0U6R9CSxExw55LeHRMBm6M9s8J9s8KJ5Y=; b=Ba/+Fxa9d9eDnX5V9Fmb2RLDJzxyP9ZGljgfPe+3/QRKYLNOmwNfXl34sysLYl3Z06 T2rxv3NuNcH9O2DtojH/4l7LAElnjnJaOT0/HLZbuwEQklutDczvXZZxL+fq79wrJ6wW misxnDQEzR6H9vlCOxQrM+zdLN2ZBKnv+o6/0IjcsJTPt2GvOVAtFKpRFOMwQCsg6FYM z1DcuHxYSXaO6Ij56M0KHZMqEb9K2luzHk0RuEYRPtCWsqcrRKO6LQfz5dbuxk1uHaqG 7GQRIkfmU3PRwmvYC4/PST780+yFqxXmNwpA1ojtxZEOnD4MjlHK8rIiIrSvPsr5cTKS 2aHQ== X-Gm-Message-State: AOAM532i4vAPqBOWxSlg7QOJ/bdjdZ5gTtFTrcr2RgdWXoBOuXyOc5QZ MdWCQ4qekBO53NLZPlQl8vLIfw== X-Received: by 2002:a19:8005:: with SMTP id b5mr732861lfd.70.1599829797711; Fri, 11 Sep 2020 06:09:57 -0700 (PDT) Received: from eriador.lan ([188.162.64.141]) by smtp.gmail.com with ESMTPSA id 10sm429500lfq.64.2020.09.11.06.09.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2020 06:09:57 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring , Jonathan Marek , Stephen Boyd , Michael Turquette Cc: linux-arm-msm@vger.kernel.org, Manivannan Sadhasivam , devicetree@vger.kernel.org Subject: [RFC 1/4] dt-bindings: clock: qcom, dispcc: document power domain bindings Date: Fri, 11 Sep 2020 16:09:47 +0300 Message-Id: <20200911130950.578483-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200911130950.578483-1-dmitry.baryshkov@linaro.org> References: <20200911130950.578483-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org SM8250 requires special power domain for accessing MMDS_GDSC registers. Add bindings for the MMCX power domain. Signed-off-by: Dmitry Baryshkov --- .../bindings/clock/qcom,dispcc.yaml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) -- 2.28.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/clock/qcom,dispcc.yaml b/Documentation/devicetree/bindings/clock/qcom,dispcc.yaml index 0b905a4e9ada..6325d9969913 100644 --- a/Documentation/devicetree/bindings/clock/qcom,dispcc.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,dispcc.yaml @@ -66,6 +66,16 @@ properties: reg: maxItems: 1 + power-domains: + maxItems: 1 + + power-domain-names: + items: + - const: mmcx + + required-opps: + maxItems: 1 + required: - compatible - reg @@ -81,6 +91,7 @@ examples: - | #include #include + #include clock-controller@af00000 { compatible = "qcom,sdm845-dispcc"; reg = <0x0af00000 0x10000>; @@ -105,5 +116,22 @@ examples: #clock-cells = <1>; #reset-cells = <1>; #power-domain-cells = <1>; + /* this is a part of sm8250 setup the power domain example */ + power-domains = <&rpmhpd SDM845_CX>; + power-domain-names = "mmcx"; + required-opps = <&rpmhpd_opp_low_svs>; + }; + rpmhpd: power-controller { + compatible = "qcom,sdm845-rpmhpd"; + #power-domain-cells = <1>; + operating-points-v2 = <&rpmhpd_opp_table>; + + rpmhpd_opp_table: opp-table { + compatible = "operating-points-v2"; + + rpmhpd_opp_low_svs: opp3 { + opp-level = ; + }; + }; }; ...