From patchwork Tue Sep 12 14:30:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 138346 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp583507vqx; Tue, 12 Sep 2023 11:00:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG0hj7IVIq8UhZSlh7C8+3nJ1Rjicbf6Ryb05u5tLUWrNaJtj2cgmC6OIj7yZmMVXuYEDns X-Received: by 2002:a17:90a:d593:b0:273:4b39:e5b9 with SMTP id v19-20020a17090ad59300b002734b39e5b9mr12845pju.4.1694541635116; Tue, 12 Sep 2023 11:00:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694541635; cv=none; d=google.com; s=arc-20160816; b=v5ac7EL2sXwIU6yOK/EVE1/EwnR0wBLTSg8grs2H89Gpzucv6jY6oI2ww185FI2f5I xrxd/eAXVQf9XF1fcdd5qklcUqF1mUBvsvOSOyJppAoqdZV4WJKO+7ptFqqXML1Uuso9 tNm/Lu9zfwaJkye+Sw/FobuVHr1r557vb0gh2pyKeXc6kKQW99AJzOOvInoHD5FEJ3iu JPS6iBKch7vIJCa6POYDrafK3ECpJtWkUkuYn18F0jDhXkF/eUutmWtAgoLM8cyIJff8 w1sBEXNbinsWtSJyEGF1K70D5YSBJQSwDVCZ8ynzie2gzvSa89i8dd4thIqUBIX+GFlk 5RZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=e0RspZwtHY4b6xeF+Vsx+c1salPGf7KUDftS+3xrVTM=; fh=10DQ9cLgm4jgsgyilmWpXaSieUpiqS1iqWfjfWaX8GI=; b=ubpbOaGdaQKRgYvupuDXblc88tawHlkgLX3kbsvm4XvituL6GGJnw/HSnAl5ayXvE+ ATRBSB7aoMugvjWYt2akgjhUuipbbM908HLBUthYiual+1kMg3OL6bygmmHaG8buuVx9 Lxet/oCDHynxyH8ABSrtEfEzUbZy0qDKi8p57rCKZ3CjJ3ynfpBgrZNpSeKSEtjLLiTo PFSiL60qqjDTWUG/KcwDFb0tlbCh3zJA8Hbna2B5BrjbFeVPvhIOiI9IcANUFIrHTlgH UPNTlR7cRzBglZ87MRHeHB8pF/4sTgJkrUfBgsjJEiI3clrvJLLGo/2ZWUnIocW93olG cfZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernkonzept.com header.s=mx1 header.b=D8tMDnO2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernkonzept.com Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id mi4-20020a17090b4b4400b00271bea73dcesi10693639pjb.96.2023.09.12.11.00.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 11:00:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernkonzept.com header.s=mx1 header.b=D8tMDnO2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernkonzept.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 55E73808AB84; Tue, 12 Sep 2023 07:31:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235952AbjILOa6 (ORCPT + 37 others); Tue, 12 Sep 2023 10:30:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235741AbjILOaz (ORCPT ); Tue, 12 Sep 2023 10:30:55 -0400 Received: from mx.kernkonzept.com (serv1.kernkonzept.com [IPv6:2a01:4f8:1c1c:b490::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B952118; Tue, 12 Sep 2023 07:30:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kernkonzept.com; s=mx1; h=Cc:To:In-Reply-To:References:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From: Reply-To:Content-ID:Content-Description; bh=e0RspZwtHY4b6xeF+Vsx+c1salPGf7KUDftS+3xrVTM=; b=D8tMDnO24+Gcj2XS/qcJZVEek4 1iIPIOQy+bYEclNUMc81yKtm0lqpToj0AD/LQp37m33Mk2CtW29mvHO2dd8qrc7/t7qxosfnRZ8R5 GVmBwHjPVyH4xicTvOmSPU2uO2ZEBjOUmAQvrPpds4HP5LJNPpIOdGUS8NsFKGF/T4CW490t2yrVM MLaF2vMCJ9+ZG8V0aaYh4KNLPk8FqKoU2O+H2KbdFse9fpVrb2DBqVjF/lTyQV1PNYFC0gjiOjg9A Ge3ArM4LitLiFZzS8o9V5NY80vIodpUW51EW6QlasO0gcjbK4wjMqE/JkqO9yT/mxuNzF44v9rpQA e/JUTaJg==; Received: from [10.22.3.24] (helo=serv1.dd1.int.kernkonzept.com) by mx.kernkonzept.com with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) id 1qg4Pf-0034i9-2Z; Tue, 12 Sep 2023 16:30:47 +0200 From: Stephan Gerhold Date: Tue, 12 Sep 2023 16:30:36 +0200 Subject: [PATCH 1/4] spi: dt-bindings: qup: Document power-domains and OPP MIME-Version: 1.0 Message-Id: <20230912-spi-qup-dvfs-v1-1-3e38aa09c2bd@kernkonzept.com> References: <20230912-spi-qup-dvfs-v1-0-3e38aa09c2bd@kernkonzept.com> In-Reply-To: <20230912-spi-qup-dvfs-v1-0-3e38aa09c2bd@kernkonzept.com> To: Mark Brown Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Stephan Gerhold X-Mailer: b4 0.12.3 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 12 Sep 2023 07:31:17 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 groat.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776855689797529344 X-GMAIL-MSGID: 1776855689797529344 Document power-domains and operating-points-v2 to allow making performance state votes for certain clock frequencies of the SPI QUP controller. Signed-off-by: Stephan Gerhold Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/spi/qcom,spi-qup.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/spi/qcom,spi-qup.yaml b/Documentation/devicetree/bindings/spi/qcom,spi-qup.yaml index 93f14dd01afc..1e498a791406 100644 --- a/Documentation/devicetree/bindings/spi/qcom,spi-qup.yaml +++ b/Documentation/devicetree/bindings/spi/qcom,spi-qup.yaml @@ -47,6 +47,11 @@ properties: interrupts: maxItems: 1 + operating-points-v2: true + + power-domains: + maxItems: 1 + reg: maxItems: 1 @@ -63,6 +68,7 @@ examples: - | #include #include + #include spi@7575000 { compatible = "qcom,spi-qup-v2.2.1"; @@ -76,6 +82,8 @@ examples: pinctrl-1 = <&blsp1_spi1_sleep>; dmas = <&blsp1_dma 12>, <&blsp1_dma 13>; dma-names = "tx", "rx"; + power-domains = <&rpmpd MSM8996_VDDCX>; + operating-points-v2 = <&spi_opp_table>; #address-cells = <1>; #size-cells = <0>; };