Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp933890pxb; Fri, 28 Jan 2022 13:33:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJz4Sx/lAYQ3MuXIiCxlv4DIrr8GaniuNtkcqqrXEDlAUMuEMoYyb0HUK74idzzZKjRsZl4I X-Received: by 2002:a17:902:eccb:: with SMTP id a11mr10677169plh.121.1643405638585; Fri, 28 Jan 2022 13:33:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643405638; cv=none; d=google.com; s=arc-20160816; b=Z+M76bchFXHpdOSwEmJ0K4q04FOqg1XY7QnC6RLthFqjnAb+t8wYq6gNOsl4q82bqi D8vxzKXaShJSdHgKypKWPXzAIB2tDh1hFZaVA2Azixwb3vS7fZeY2cWKburtCSqDhPcA XW7dV0XNPm/6AXD0evnIwxLR4fmG/7IgsvUhJWezUod/WtCfcx3hfNnNCceOWBJv9fUi BbU3dZ3ycpX+DwiWYBRdg6T2RhcwcCUY2pnzoY0sCY2wkgAgN+KIfQoteJ0nS2oNr3Mn /PlB5u85a/BaCPBnUQcK2y+ImB4zdM/FNDUcrdMAlqRWrm9xkH7VD7qIJtoMWu0DVIsG +26Q== 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=PIXY+sEGqfziH4n+3nglkYpU71hUD2jbkDapelJUYx4=; b=f52s7p+x0SiBJn5Y3Ymlguc7v1WMqWj2gG5OmwLZc6BaVm8IUpadbz2Fjp5Pryvw/J e2VRMQTFxQ2acHpHF2CwwxoHrRA9k2sVI0VCIsGxkTvrcJazvqbtxRC3ciWTO2w1YDFt 2cUflSkXtvOSXD2b+nEyjj8LAKryk+IoBjqDVXnjfl9RDh2W8I1qVfF9Sx6bei7T5AS7 NmovDcZIuEE2dyb1leIKgwifUgWefr86+7d/Jo7MKQpnPHSKv16nR1VSDvcXlLz3cdLJ QJqQ/EUM001x0gRuG3i8Mx3vr7Inzwn7IsXLnZiBUBGNLe4HuWDuCX+neNQA8ARPKiqV klvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=VHdpreI1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l3si3523887pjk.103.2022.01.28.13.33.12; Fri, 28 Jan 2022 13:33:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@chromium.org header.s=google header.b=VHdpreI1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344342AbiA0XIo (ORCPT + 99 others); Thu, 27 Jan 2022 18:08:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245300AbiA0XIe (ORCPT ); Thu, 27 Jan 2022 18:08:34 -0500 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 876DBC06173B for ; Thu, 27 Jan 2022 15:08:34 -0800 (PST) Received: by mail-pj1-x102c.google.com with SMTP id o64so4777529pjo.2 for ; Thu, 27 Jan 2022 15:08:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PIXY+sEGqfziH4n+3nglkYpU71hUD2jbkDapelJUYx4=; b=VHdpreI16umQb0mYgJNYwcpXLMOYb9t5rWTJ5lF4m9dkAlOLQJbt8IUssF2/vzGhhu P2J4/IhQS1aBIC7OrTZ1rtXRz+BfKAgWlbPsQXOeqn/lbT032Hn/Q9FuFAS2EqI91NEL qkeLOxEtvhwyVPeocb+jYET3MYH1WQ8LLra/E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PIXY+sEGqfziH4n+3nglkYpU71hUD2jbkDapelJUYx4=; b=4+iESeOg2gyp9nu1YCXtxDBHQNX+fWfJb+hOI5KS2HiVpwKRWBeAXVFc//XUjDoTRq huaJelvJeRjZDkhn/5MRlXA0j7Hp0gbyTguJQx37/NJMJaczJU1TdPN44m0B5SZYwf/0 7NgBs2LuQKIH/McfDEhni4zzzv+tc4n5du+FcxO3J7mLICcBRRGW+EtzN7JP6ZKe35XJ h/ItPIW05kq7pOgaLeF39oY2kOuKHafTkf4ZG94CS7YXw7/ir4BofRr88WO94m0U1xJS Zin1c+nmO5dkjzsQJOvEliMhQ9P9vKHAIcx7Ew/bWvzdGzCuwpp5bu+TctpnGsM/XVEv gAXw== X-Gm-Message-State: AOAM53072imIWrGTdk8svNjy8unLCItZGTktEx1tCz9xj4divYBSgIbq 6xC6j9jfE03CQAzNlPRsJS2E1Q== X-Received: by 2002:a17:90b:1983:: with SMTP id mv3mr6659930pjb.222.1643324914114; Thu, 27 Jan 2022 15:08:34 -0800 (PST) Received: from localhost ([2620:15c:202:201:723d:38a9:9e7f:3435]) by smtp.gmail.com with UTF8SMTPSA id h10sm4000716pfv.31.2022.01.27.15.08.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 27 Jan 2022 15:08:33 -0800 (PST) From: Brian Norris To: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Rob Herring Cc: linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Lin Huang , linux-arm-kernel@lists.infradead.org, Derek Basehore , devicetree@vger.kernel.org, linux-pm@vger.kernel.org, Heiko Stuebner , Brian Norris Subject: [PATCH v2 05/15] dt-bindings: devfreq: rk3399_dmc: Add more disable-freq properties Date: Thu, 27 Jan 2022 15:07:16 -0800 Message-Id: <20220127150615.v2.5.I382d4de737198ea52deb118c9bdc4d93d76e009e@changeid> X-Mailer: git-send-email 2.35.0.rc0.227.g00780c9af4-goog In-Reply-To: <20220127230727.3369358-1-briannorris@chromium.org> References: <20220127230727.3369358-1-briannorris@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DDR DVFS tuning has found that several power-saving features don't have good tradeoffs at higher frequencies -- at higher frequencies, we'll see glitches or other errors. Provide tuning controls so these can be disabled at higher OPPs, and left active only at the lower ones. Signed-off-by: Brian Norris --- Changes in v2: - hyphens, not underscores - *-hz units, and drop the types definition .../bindings/devfreq/rk3399_dmc.yaml | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/Documentation/devicetree/bindings/devfreq/rk3399_dmc.yaml b/Documentation/devicetree/bindings/devfreq/rk3399_dmc.yaml index 8786b7fa9b28..afa058c52c0b 100644 --- a/Documentation/devicetree/bindings/devfreq/rk3399_dmc.yaml +++ b/Documentation/devicetree/bindings/devfreq/rk3399_dmc.yaml @@ -299,6 +299,38 @@ properties: self-refresh mode. The controller, pi, PHY and DRAM clock will be gated if bus is idle for standby_idle nanoseconds. + rockchip,pd-idle-dis-freq-hz: + description: + Defines the power-down idle disable frequency in Hz. When the DDR + frequency is greater than pd-idle-dis-freq, power-down idle is disabled. + See also rockchip,pd-idle-ns. + + rockchip,sr-idle-dis-freq-hz: + description: + Defines the self-refresh idle disable frequency in Hz. When the DDR + frequency is greater than sr-idle-dis-freq, self-refresh idle is + disabled. See also rockchip,sr-idle-ns. + + rockchip,sr-mc-gate-idle-dis-freq-hz: + description: + Defines the self-refresh and memory-controller clock gating disable + frequency in Hz. When the DDR frequency is greater than + sr-mc-gate-idle-dis-freq, the clock will not be gated when idle. See also + rockchip,sr-mc-gate-idle-ns. + + rockchip,srpd-lite-idle-dis-freq-hz: + description: + Defines the self-refresh power down idle disable frequency in Hz. When + the DDR frequency is greater than srpd-lite-idle-dis-freq, memory will + not be placed into self-refresh power down mode when idle. See also + rockchip,srpd-lite-idle-ns. + + rockchip,standby-idle-dis-freq-hz: + description: + Defines the standby idle disable frequency in Hz. When the DDR frequency + is greater than standby-idle-dis-freq, standby idle is disabled. See also + rockchip,standby-idle-ns. + required: - compatible - devfreq-events @@ -330,4 +362,9 @@ examples: rockchip,ddr3_odt_dis_freq = <333000000>; rockchip,lpddr3_odt_dis_freq = <333000000>; rockchip,lpddr4_odt_dis_freq = <333000000>; + rockchip,pd-idle-dis-freq-hz = <1000000000>; + rockchip,sr-idle-dis-freq-hz = <1000000000>; + rockchip,sr-mc-gate-idle-dis-freq-hz = <1000000000>; + rockchip,srpd-lite-idle-dis-freq-hz = <0>; + rockchip,standby-idle-dis-freq-hz = <928000000>; }; -- 2.35.0.rc0.227.g00780c9af4-goog