From patchwork Wed Jun 30 13:31:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 468692 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp354373jao; Wed, 30 Jun 2021 06:32:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfFKHqT4h79MfQaIV7KtMGgWbTs2CqcyAf4kCY+Vfx9adQzaHivg1M2WrnRzaHl8Rmx9Sr X-Received: by 2002:a05:6e02:530:: with SMTP id h16mr2844539ils.262.1625059922856; Wed, 30 Jun 2021 06:32:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625059922; cv=none; d=google.com; s=arc-20160816; b=Xo0+2AtkYMlQfu3AAJ07afL57jxOek/Z/pRDP1OsIlropdGwHvAeH8Gc8dnWfTddcB R86brqN7yJrOeN3LccivkAxHPcqdvFdsLcoOQUs+6/k+KAOWp4DtJvxmxqYUQzDZKldo RpAsbOKGHX5YW8Ik86WjmVuV1pb5Lxal8aeaG3WhGMS+o2UMlw2QbHbfaowY6y54O7In U5mbldcZJjJyfS7gSZyU1kd9A7TKa8LNuiaGvSxNH5Y1lEyV56D46lcg4DuxIlWmSQJa RuE0DVawN0y/H5yjFrT85tgV9Z9osCPFSTcutl0Xsl70WaYoWUZz8SMLLePO630ws2tw +G2Q== 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=K1GDsnRGky4n2WSFWX6nkRzIkPArqTdunnzWeNZQG3A=; b=tVHG6Gd00wMi5qqyC2OqBXzb7hm87K8carti/H7nuaVILWpbs9efGhzfDUDFK2as4i n7Dm/eCoGzTUMCOfbYPVsZabwR0u+Y/9vIw9MKMlVsIYySQyaAmgTLHPSEyhisYp16bu rScOafauqO96OO8oDdlS3NFL6QHZEaiximeC12zIOYbxFp6AvkzzEmQKHSjz9a+ic+vv uXbWEDX+Iq+79Jdap/UvGG7GITibkmYxzFxdVm2cDHYwVIOnyo8yQr1gcWJETey0VgZE PfEnHl/SSs+bLtpaAaGuHQxlCqNfQDbEqrEpdYs5xSJPPdmMstdLSYa0ykO53i21TCay GiCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bQGflZQk; 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 s9si1455631iow.41.2021.06.30.06.32.01; Wed, 30 Jun 2021 06:32:02 -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=bQGflZQk; 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 S235215AbhF3Ne2 (ORCPT + 17 others); Wed, 30 Jun 2021 09:34:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235022AbhF3Ne0 (ORCPT ); Wed, 30 Jun 2021 09:34:26 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E818C0613A3 for ; Wed, 30 Jun 2021 06:31:55 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id r16so3289797ljk.9 for ; Wed, 30 Jun 2021 06:31:55 -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=K1GDsnRGky4n2WSFWX6nkRzIkPArqTdunnzWeNZQG3A=; b=bQGflZQkDcyr6mgCmHJ8pSZ2SwAFyb1Km0sWhPOjKc504hvSRWVVkagL9gZmkLq1nX DQillDABvOW4fTXlK5gp401kBjkFzoNEXLiMO1I6uC3ZBK+R1xiqelD0XosOUBvf/V4D k3qYfcYZdWcIkfMfuSOwfJcNTEEw9TAsn3ur7XtbtFTuDhDbf7udKBQJNFUq5XmWp9f1 dPi+YBWNSJn95IQy5ExcIZ8OTkGIn8sfVX7bvPKxHzWmClpW3oTmwwosj4+5E5mjCwCb BF6tw025SP2sr8XqQKehZej75PkxgPK1gkk19W/24ax7JiSUr+RyCYJ8v4qRLJ9qSEAO 3K0g== 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=K1GDsnRGky4n2WSFWX6nkRzIkPArqTdunnzWeNZQG3A=; b=pCEMHnfuMGs/zCeFg4+CLJA8OpZCwKDjvCS+k7EZ+3Ra7yqPyL80QaVpQ2635Ce6AA Ss4c/O1nVR1Mkw3phfXbcmZnzavgXrx6GlPO53ItHURtyJniAI2CytwMGDeXkPBCE33O YF13fbwLCSHE9fOBZY5l70ziKFS9T96jpPuO/sXWmSgAyrk/vTiVxgPH1L4qCGRCXnDt 7q+QEqFpgjwO37yGnCOEHOqyO/qwrcAOx+I68Ff+SCvdRe1FVpH2Jo/33IHKOea7DG8Q YTmIUJNPJ/xp/TfQmr9Fk94f+X7WhARKnt5bLX5gijqUDYNZ/CIzREGuVs/+IZRGjrK8 y+0w== X-Gm-Message-State: AOAM5301W3Rqgpm0NO/+JdqIYEoakU8BmQTzBshyS2kJDoDYBQSGSPgb pCvuH3VQw0LSafRJQD3JUxX0Qw== X-Received: by 2002:a2e:50b:: with SMTP id 11mr8090463ljf.220.1625059913891; Wed, 30 Jun 2021 06:31:53 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id x20sm1578098lfd.128.2021.06.30.06.31.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Jun 2021 06:31:52 -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 Subject: [PATCH 2/6] dt-bindings: clock: qcom, videocc: add mmcx power domain Date: Wed, 30 Jun 2021 16:31:45 +0300 Message-Id: <20210630133149.3204290-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210630133149.3204290-1-dmitry.baryshkov@linaro.org> References: <20210630133149.3204290-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On sm8250 videocc 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 --- .../bindings/clock/qcom,videocc.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) -- 2.30.2 diff --git a/Documentation/devicetree/bindings/clock/qcom,videocc.yaml b/Documentation/devicetree/bindings/clock/qcom,videocc.yaml index 567202942b88..22421173e1ca 100644 --- a/Documentation/devicetree/bindings/clock/qcom,videocc.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,videocc.yaml @@ -47,6 +47,16 @@ properties: reg: maxItems: 1 + power-domains: + description: + A phandle and PM domain specifier for the MMCX power domain. + maxItems: 1 + + required-opps: + description: + Performance state to use for MMCX to enable register access. + maxItems: 1 + required: - compatible - reg @@ -56,6 +66,15 @@ required: - '#reset-cells' - '#power-domain-cells' +# Either both properties are present or both are absent +dependencies: + power-domains: + required: + - required-opps + required-opps: + required: + - power-domains + additionalProperties: false examples: