Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp903428pxb; Fri, 28 Jan 2022 12:46:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJxgpXF1eD9IzBb/MhyRxobA0jOwlBq2qnZeM4pEMCvwWKaOjD3bHK64u0hLJSLy1m/abIY4 X-Received: by 2002:a17:907:7f1f:: with SMTP id qf31mr8278833ejc.84.1643402789151; Fri, 28 Jan 2022 12:46:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643402789; cv=none; d=google.com; s=arc-20160816; b=iYlvUhR4jrW/XjjyGdgnLfPlEJUdehSNDKkk+j5St97la+n9QshS3gjVnrEgNASY6E dGQ/VknI67dyvUrrioGXWsee3swZDuuemHgerJ6r0aSizrOUp3GzPsa2pEE4z8xZoYDT Mm5MihtVfZMGnrAFU4BABf+WXuDRmfGCryEgFt+cPsTKOX2GkHlRGV47GmYFCKWiPfIC buO2NbL3jGX57UfOkpF88r3JxKv8PxaaPMU7G9GW/tWC3LYHoh71wawWIYdYSn/DfcR7 YCsM6LgtKlraWEhrLnAhxAJmLxTAZUS4Ajr+DoPSkpEwQKhy4SYPcCA+C7DiJ9dVg/ws KlFg== 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=7h2TqwoqXaEMfjPzv9SF6ZGc4nNnV1XaxjSg49pOxCw=; b=DWewMsb1Q+PfTF5EXgP0on/eigsILdtb18icJmqz+htIthL6jDRNbwSrAkpo3jq0IR mpdLFdektyUQ2eAJSJ2rrAJ6VMZPbnY4Kb04MRDJRiTlNHhuaKYkC8AAmYtaJWqKPKcY GPjcMIF8xXYx1hHT7XxkTcjosLLE4cxiVduqyqEaP26U+aQ3nAekC68VwiBGtT9EQGe0 m/dAw55HlaZXChmtZtrlfzoMAhzaM+piQBjtpUniBQVkGczvz+6zm1GRBQl3FsdboGba sTCM5omOmWiqPLkdenVWV3X5rtOI5+pO+tRHNuXR7CI5qUIFllLipeJhRnprmlyttwAZ dNdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=DPUvXSj4; 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 eb8si2743494edb.481.2022.01.28.12.46.04; Fri, 28 Jan 2022 12:46:29 -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=DPUvXSj4; 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 S1343947AbiA0XIm (ORCPT + 99 others); Thu, 27 Jan 2022 18:08:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245691AbiA0XIb (ORCPT ); Thu, 27 Jan 2022 18:08:31 -0500 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC6DEC06173B for ; Thu, 27 Jan 2022 15:08:30 -0800 (PST) Received: by mail-pj1-x102d.google.com with SMTP id r59so4757942pjg.4 for ; Thu, 27 Jan 2022 15:08:30 -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=7h2TqwoqXaEMfjPzv9SF6ZGc4nNnV1XaxjSg49pOxCw=; b=DPUvXSj4gGoUi2PZpwiU9r2MGTNKqUgmF4dU8QpNs/blxOChn/Dp4X5P6uc34QaFaV DOvAxI8yXqbH/50nNHY73T7e0MH2ScJuvKPL2U+RdqfwtNhtdml4RTg/ip02fDK4yYwO +/wg5JzxvX29Bfht/wS7TUy2EGdWPpsb4iBTk= 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=7h2TqwoqXaEMfjPzv9SF6ZGc4nNnV1XaxjSg49pOxCw=; b=OTp0qQVba7JvJUOmcSjZ9hza+WwNaZydGNFxjAaadAQQ1p9EPHu0j1a9FDlk1OhOPr JIbApgWTjsS+feHG6IXcchw1z3K2aF5nF2cCN+5LfkMeG43EtrUWDtEQA4CO3JmnY47J /17j8xeyjnY+3ohooTRnyLACNaJeXnkxF6EYJeEc1qnIPHGuxGJ3IIqZubguKDHA+Ykb HLDf5ATG5228U9nsAzfYdvRueZvkBBirrKIvVtPT+ajxemk5YfKS58f7/TR9OJNSziHL 5PVc+jz1s4faUaPbXAVd3pKeHfUag1o8CGICMU+Wt5Namsg9sILt/vTHM6gR7lA2rHx/ VVPg== X-Gm-Message-State: AOAM531Em20TX4qz0Y0VAhe6El6kMl9P9g9kIgUrZ2UO4ibbWxuMrmw9 WXfoh+Vyq0jgil4E38siEHJ+SQ== X-Received: by 2002:a17:90b:33c6:: with SMTP id lk6mr6586908pjb.213.1643324910342; Thu, 27 Jan 2022 15:08:30 -0800 (PST) Received: from localhost ([2620:15c:202:201:723d:38a9:9e7f:3435]) by smtp.gmail.com with UTF8SMTPSA id h6sm6933258pfc.35.2022.01.27.15.08.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 27 Jan 2022 15:08:29 -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 03/15] dt-bindings: devfreq: rk3399_dmc: Fix Hz units Date: Thu, 27 Jan 2022 15:07:14 -0800 Message-Id: <20220127150615.v2.3.I9341269171c114d0e04e41d48037fd32816e2d8c@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 The driver and all downstream device trees [1] are using Hz units, but the document claims MHz. DRAM frequency for these systems can't possibly exceed 2^32-1 Hz, so the choice of unit doesn't really matter than much. Rather than add unnecessary risk in getting the units wrong, let's just go with the unofficial convention and make the docs match reality. A sub-1MHz frequency is extremely unlikely, so include a minimum in the schema, to help catch anybody who might have believed this was MHz. [1] And notably, also those trying to upstream them: https://lore.kernel.org/lkml/20210308233858.24741-3-daniel.lezcano@linaro.org/ Signed-off-by: Brian Norris --- (no changes since v1) .../bindings/devfreq/rk3399_dmc.yaml | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Documentation/devicetree/bindings/devfreq/rk3399_dmc.yaml b/Documentation/devicetree/bindings/devfreq/rk3399_dmc.yaml index fd62a8cd62d5..8bb778df92ae 100644 --- a/Documentation/devicetree/bindings/devfreq/rk3399_dmc.yaml +++ b/Documentation/devicetree/bindings/devfreq/rk3399_dmc.yaml @@ -116,11 +116,11 @@ properties: rockchip,ddr3_odt_dis_freq: $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 1000000 # In case anyone thought this was MHz. description: When the DRAM type is DDR3, this parameter defines the ODT disable - frequency in MHz (Mega Hz). When the DDR frequency is less then - ddr3_odt_dis_freq, the ODT on the DRAM side and controller side are both - disabled. + frequency in Hz. When the DDR frequency is less then ddr3_odt_dis_freq, + the ODT on the DRAM side and controller side are both disabled. rockchip,ddr3_drv: deprecated: true @@ -160,11 +160,11 @@ properties: rockchip,lpddr3_odt_dis_freq: $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 1000000 # In case anyone thought this was MHz. description: When the DRAM type is LPDDR3, this parameter defines then ODT disable - frequency in MHz (Mega Hz). When DDR frequency is less then - ddr3_odt_dis_freq, the ODT on the DRAM side and controller side are both - disabled. + frequency in Hz. When DDR frequency is less then ddr3_odt_dis_freq, the + ODT on the DRAM side and controller side are both disabled. rockchip,lpddr3_drv: deprecated: true @@ -204,11 +204,11 @@ properties: rockchip,lpddr4_odt_dis_freq: $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 1000000 # In case anyone thought this was MHz. description: When the DRAM type is LPDDR4, this parameter defines the ODT disable - frequency in MHz (Mega Hz). When the DDR frequency is less then - ddr3_odt_dis_freq, the ODT on the DRAM side and controller side are both - disabled. + frequency in Hz. When the DDR frequency is less then ddr3_odt_dis_freq, + the ODT on the DRAM side and controller side are both disabled. rockchip,lpddr4_drv: deprecated: true @@ -287,7 +287,7 @@ examples: rockchip,sr_mc_gate_idle = <0x3>; rockchip,srpd_lite_idle = <0x4>; rockchip,standby_idle = <0x2000>; - rockchip,ddr3_odt_dis_freq = <333>; - rockchip,lpddr3_odt_dis_freq = <333>; - rockchip,lpddr4_odt_dis_freq = <333>; + rockchip,ddr3_odt_dis_freq = <333000000>; + rockchip,lpddr3_odt_dis_freq = <333000000>; + rockchip,lpddr4_odt_dis_freq = <333000000>; }; -- 2.35.0.rc0.227.g00780c9af4-goog