Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp92292rdg; Wed, 11 Oct 2023 22:46:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHylQZmJ5GnIbC3GyDB7xplvpI8WGzNBEA3mRbzLLmocl9p65r7wwQmY6g2G1Dg67I+FFax X-Received: by 2002:a81:b61d:0:b0:5a7:a81b:d9af with SMTP id u29-20020a81b61d000000b005a7a81bd9afmr9348694ywh.7.1697089612941; Wed, 11 Oct 2023 22:46:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697089612; cv=none; d=google.com; s=arc-20160816; b=QrWg7njedE9cRbMuIKHKzetmQ+vMYxivbVyUG7k8LWUV5E3W8iANaWOwzmuRws1KmK pZLk/LLDJ5KjGJXHV1UmT8teqig+s59ReDk0R8F4HCSyscsVL4IQEPUxOLFmsW5tEuRn 6XuuPGJbt00Rjg2+xWqx6Z8EKslnW17dEZmXjnhIUwcwAb1rCUuqiZiMnAIMGtOEdXi2 10qtei+f3KD8uci2JEZUMORH9XKPysSVXdh7JeEaRrNSd7nvYVplzEzOdb0CdSZ4whgt zk5Hbi6ypti/SDPi8DOmcUrwWz3ci1oJMSfl0vUTH5R+X0LIjwmcBSbi9dqoWYqHNBek AZ8w== 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=emz03f3uxdP7Dq6lqeINaZBEdrIm5oTH0vEaEEX0iS4=; fh=XWWEjGXdKG6DIutc6eYe1CUiwiv7VicjYyb7/1VlSEs=; b=TgdvMNgDP79lH4naZNn5Eqsndi0P9kiHFr0Fhshenm2RcEVB5WqiNntctdEkZS3DMj xdeupmON8sCuX58onm4EF04CxrurxXnAPyBgixt1wtC0qe0Ivdg2lVpPHKWoeSCZUN4X q8p97nXcID1dh0/habn15MS6cCC4McxpP4fmppHY4D+oWwG3GYxpFGLsgSNdDEz8/7Nw 88uQ9vGraK3I1JrEu7eMxVi6VYDVJ+OVyrx/U+uiVFwEDXwaTfrsrO3ZU2Ux0uSAkmi2 HMH1KjaphdycNBRBF6fq4SYnQ+CO8IWR2Etie9ReqvfvMFfL/6hNtIIQOyly4zFPf/P5 SCjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cPOboPIu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id d129-20020a633687000000b00565e9c3a308si1451422pga.788.2023.10.11.22.46.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 22:46:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cPOboPIu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 0CA85804C57A; Wed, 11 Oct 2023 22:45:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377222AbjJLFpk (ORCPT + 99 others); Thu, 12 Oct 2023 01:45:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235303AbjJLFpi (ORCPT ); Thu, 12 Oct 2023 01:45:38 -0400 Received: from mail-oo1-xc2c.google.com (mail-oo1-xc2c.google.com [IPv6:2607:f8b0:4864:20::c2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1341C4 for ; Wed, 11 Oct 2023 22:45:34 -0700 (PDT) Received: by mail-oo1-xc2c.google.com with SMTP id 006d021491bc7-57bca5b9b0aso328001eaf.3 for ; Wed, 11 Oct 2023 22:45:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697089534; x=1697694334; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=emz03f3uxdP7Dq6lqeINaZBEdrIm5oTH0vEaEEX0iS4=; b=cPOboPIuiGULl4ywyZ+vTEQcal+KjFCxEMwe15M2MbtNNriSed1lShRfcXNd79Goer vKpixXkX+1Dw1vvpzyX7zYh0c0fMTR4KTgXyXExgM+D528MdTxjF33+pERUVPYG81D+N CezrrKC0Rm6J/I5E/R9TADosnlXtou/t/157XBl+/l1wAdg4sM9UHR4a0WfLyJvbUzrc SIIe6GxvwQLxDnmBSk/PdPW99pQOth0EbxojzjucdinhR7u7oDMHZEKraKn0ArLNX2/b cV3bhIcKQNwHjLH6kLypQSx81wi1gPb2VWoeaLs8D1sGbuBzcjdK3b7u1d2HrmSd5V61 30EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697089534; x=1697694334; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=emz03f3uxdP7Dq6lqeINaZBEdrIm5oTH0vEaEEX0iS4=; b=O7cvYzLu66ajc/mVawDqnpTDESpNaPDYHnYDW+J6SzSlzdqeZJ10kHVyUIyEkuXG0y I4S039solw5K+SUoLrn1N3x4VO1UBuJsMqWHUHuPVRXPZiLgiEwZOGuLa2kF5H4Y0Vbl 6Tr4Cq5rbSgtbOb/+Nwbfm5nZI5ilsB+YJM8bU6Th8IOoER8/9VlQ8gkqvO96dVhWuRP CjGhnSYtf3cILG/vPZQgeca9ACqAxeCSsw7IUV/yogeP3hGfxu1xVp2yXqu5mhMKidYK zlKyuvLlzbPaQSTmMAbIShFAsS7NIjY6F7LPK8FAatpNQUlb+BiReyEtGaLHMx2pYIRt Lh/A== X-Gm-Message-State: AOJu0YxPaPpku0s8WvUHWz7iczKyEvRAgAYg4aj6GPscgIshJBVZkrxD GWwCFiMdgxbSriNasnRkEmrg X-Received: by 2002:a05:6870:2c99:b0:1e9:a741:44f3 with SMTP id oh25-20020a0568702c9900b001e9a74144f3mr2647290oab.14.1697089534033; Wed, 11 Oct 2023 22:45:34 -0700 (PDT) Received: from localhost.localdomain ([120.138.12.180]) by smtp.gmail.com with ESMTPSA id c5-20020a633505000000b0057cb5a780ebsm812396pga.76.2023.10.11.22.45.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 22:45:33 -0700 (PDT) From: Manivannan Sadhasivam To: vireshk@kernel.org, nm@ti.com, sboyd@kernel.org, myungjoo.ham@samsung.com, kyungmin.park@samsung.com, cw00.choi@samsung.com, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jejb@linux.ibm.com, martin.petersen@oracle.com Cc: alim.akhtar@samsung.com, avri.altman@wdc.com, bvanassche@acm.org, linux-scsi@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, quic_asutoshd@quicinc.com, quic_cang@quicinc.com, quic_nitirawa@quicinc.com, quic_narepall@quicinc.com, quic_bhaskarv@quicinc.com, quic_richardp@quicinc.com, quic_nguyenb@quicinc.com, quic_ziqichen@quicinc.com, bmasney@redhat.com, krzysztof.kozlowski@linaro.org, linux-kernel@vger.kernel.org, Rob Herring , Manivannan Sadhasivam Subject: [PATCH v6 1/5] dt-bindings: ufs: common: add OPP table Date: Thu, 12 Oct 2023 11:15:08 +0530 Message-Id: <20231012054512.10963-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231012054512.10963-1-manivannan.sadhasivam@linaro.org> References: <20231012054512.10963-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 11 Oct 2023 22:45:54 -0700 (PDT) From: Krzysztof Kozlowski Except scaling UFS and bus clocks, it's necessary to scale also the voltages of regulators or power domain performance state levels. Adding Operating Performance Points table allows to adjust power domain performance state, depending on the UFS clock speed. OPPv2 deprecates previous property limited to clock scaling: freq-table-hz. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring Signed-off-by: Manivannan Sadhasivam --- .../devicetree/bindings/ufs/ufs-common.yaml | 35 +++++++++++++++++-- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/ufs/ufs-common.yaml b/Documentation/devicetree/bindings/ufs/ufs-common.yaml index bbaee4f5f7b2..985ea8f64de8 100644 --- a/Documentation/devicetree/bindings/ufs/ufs-common.yaml +++ b/Documentation/devicetree/bindings/ufs/ufs-common.yaml @@ -20,11 +20,25 @@ properties: items: - description: Minimum frequency for given clock in Hz - description: Maximum frequency for given clock in Hz + deprecated: true description: | + Preferred is operating-points-v2. + Array of operating frequencies in Hz stored in the same order - as the clocks property. If this property is not defined or a value in the - array is "0" then it is assumed that the frequency is set by the parent - clock or a fixed rate clock source. + as the clocks property. If either this property or operating-points-v2 is + not defined or a value in the array is "0" then it is assumed that the + frequency is set by the parent clock or a fixed rate clock source. + + operating-points-v2: + description: + Preferred over freq-table-hz. + If present, each OPP must contain array of frequencies stored in the same + order for each clock. If clock frequency in the array is "0" then it is + assumed that the frequency is set by the parent clock or a fixed rate + clock source. + + opp-table: + type: object interrupts: maxItems: 1 @@ -75,8 +89,23 @@ properties: dependencies: freq-table-hz: [ clocks ] + operating-points-v2: [ clocks, clock-names ] required: - interrupts +allOf: + - if: + required: + - freq-table-hz + then: + properties: + operating-points-v2: false + - if: + required: + - operating-points-v2 + then: + properties: + freq-table-hz: false + additionalProperties: true -- 2.25.1