Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3115094pxb; Fri, 4 Feb 2022 01:27:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2PUFZEEn0b/0Mup55WD4mbk+PAXtA3YXsx24GGGBr8I/oDMgnPL7uhT4P7T1mtU5DhvFF X-Received: by 2002:a17:906:4787:: with SMTP id cw7mr1743495ejc.504.1643966831722; Fri, 04 Feb 2022 01:27:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643966831; cv=none; d=google.com; s=arc-20160816; b=kdQ/YFWN7FJWURsjhHOvsrXiguzwpHXVfITx4MoxrX8XzYya6+6lqb3UAR8FZeRaZw 8a9rv1sEhpPSduFNQ3MhcAGI/CGiDuTquhMa1CEjMWCMEADXw0/VNVmDVi5kzXTRkre+ tNGCFG0ZhYoXoYQnee4dx1g5m/uJOIZbHreYzcuRG7X0Er/R6/2NVD2sMywdC+UmOJOF mP6mCDEx/Xisx+Fbg5dOmxQmiBQSaNkQmP4gVtAGMcx+CAJal5eW3XcTOjrLew9d/79p o22bdcBKTwMRf5aVt9vTCMmTpzb9qTJB5HSgYr1g9GASrW7RcCLrI3MaUnSHPmqWX3eM n+5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:organization:from:cc:to:subject :dkim-signature:dkim-filter; bh=s5bBJJKpwvQaFDJJwqoqljzz6YIugD/evOylhy/zgB0=; b=QCgGqBmPlIOZk4KDihlu1oVajIYtukJ6lof3T3FEWxhgsLQq9ls4J01LkC9mgF4Yaf IM966sdgPEClKBBiTS5Ime9QeOn6pUN950eMUKrXbSc+8oweewhU1QB+shkRiQefwNfb cY1ZKvIHGOojb2QU1gZ1tE9Pm/rhKNiwy0OpHlVl+LlIE3QQEams+HR5jOXLvNxqojff Vg+FbICTTuZC6YItN3+RoDPTSmCzOvdSuHHkSD9jVbYoloLOZUEsLKiZWPunaW3CETGA K0otaAV51ojC0Lovnio7V6sIB2IVNi2yRU6EzF5eTfhHUjwMPGmbK1W0CNoSHJbMLkVR bfTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=LNP9TDbD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dn2si1021207ejc.927.2022.02.04.01.26.46; Fri, 04 Feb 2022 01:27:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=LNP9TDbD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239125AbiBDBfm (ORCPT + 99 others); Thu, 3 Feb 2022 20:35:42 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:25153 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234520AbiBDBfl (ORCPT ); Thu, 3 Feb 2022 20:35:41 -0500 Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20220204013541epoutp03cbf91d22e9ba87a8dd40da84de7ebd11~QcWSmA6Bg0117801178epoutp03f for ; Fri, 4 Feb 2022 01:35:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20220204013541epoutp03cbf91d22e9ba87a8dd40da84de7ebd11~QcWSmA6Bg0117801178epoutp03f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1643938541; bh=s5bBJJKpwvQaFDJJwqoqljzz6YIugD/evOylhy/zgB0=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=LNP9TDbDggVQ79MXofRzsxeXLjnMiJlESAZG6WuUGAytK5U9wmgzjxJppRe1E/p1C gEgIcT+2gdi/DrFErG7yKH5laVw10QRCBqZglMjoWvyPZgpGmDHeEm7rL7OzW10knb yOLl57sejNm9MwcOdwT2LCJve0BpHYaR6t4Q2lFo= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20220204013540epcas1p3d62fe2de665a4b3945364ce186fb5158~QcWSFMaFy2224722247epcas1p3J; Fri, 4 Feb 2022 01:35:40 +0000 (GMT) Received: from epsmges1p5.samsung.com (unknown [182.195.38.237]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4JqdQX6Xbyz4x9QP; Fri, 4 Feb 2022 01:35:32 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p5.samsung.com (Symantec Messaging Gateway) with SMTP id 41.E1.28648.3E28CF16; Fri, 4 Feb 2022 10:35:31 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p1.samsung.com (KnoxPortal) with ESMTPA id 20220204013532epcas1p1bb7acbbf276dfc9ac3a955c242651979~QcWKZir6k1775217752epcas1p1P; Fri, 4 Feb 2022 01:35:32 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220204013532epsmtrp133d52c0c2ecce46487ca71e1a3ec6b26~QcWKYlu0v2264322643epsmtrp1x; Fri, 4 Feb 2022 01:35:32 +0000 (GMT) X-AuditID: b6c32a39-003ff70000006fe8-84-61fc82e34d9c Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id EF.F5.08738.4E28CF16; Fri, 4 Feb 2022 10:35:32 +0900 (KST) Received: from [10.113.221.102] (unknown [10.113.221.102]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220204013532epsmtip2e16bc88bf503f3247f61a38e43fac0d0~QcWKI4v3g0540205402epsmtip2A; Fri, 4 Feb 2022 01:35:32 +0000 (GMT) Subject: Re: [PATCH v2 03/15] dt-bindings: devfreq: rk3399_dmc: Fix Hz units To: Brian Norris , MyungJoo Ham , Kyungmin Park , 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 From: Chanwoo Choi Organization: Samsung Electronics Message-ID: Date: Fri, 4 Feb 2022 10:59:22 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Thunderbird/59.0 MIME-Version: 1.0 In-Reply-To: <20220127150615.v2.3.I9341269171c114d0e04e41d48037fd32816e2d8c@changeid> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrDJsWRmVeSWpSXmKPExsWy7bCmru7jpj+JBrsWWlts+vie1eLV5j1s FvOPnGO1+P/oNavFjw2nmC3ONr1ht9j0+BqrxeVdc9gsPvceYbT49OA/s8XtxhVsFq17j7A7 8HjMbrjI4rFpVSebx+Yl9R5/Z+1n8ejbsorRY/u1ecwenzfJBbBHZdtkpCampBYppOYl56dk 5qXbKnkHxzvHm5oZGOoaWlqYKynkJeam2iq5+AToumXmAB2qpFCWmFMKFApILC5W0rezKcov LUlVyMgvLrFVSi1IySkwLdArTswtLs1L18tLLbEyNDAwMgUqTMjOmLvvIGvBGfmK7Qv3sjQw 3pfoYuTkkBAwkdg58zpbFyMXh5DADkaJ5z/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8XtxhVsFq17j7A7 8HjMbrjI4rFpVSebx+Yl9R5/Z+1n8ejbsorRY/u1ecwenzfJBbBHcdmkpOZklqUW6dslcGXM 3XeQteCMfMX2hXtZGhjvS3QxcnJICJhI/D3fyA5iCwnsYJSY9i0eIi4pMe3iUeYuRg4gW1ji 8OHiLkYuoJK3jBL7tv9lBqkRFvCRaN2whBkkISKwlFHixI4WMIdZYAKTxIPVc6Cm3mOUmLBR GMRmE9CS2P/iBhuIzS+gKHH1x2NGEJtXwE5i3bkVYPUsAioSXybeZQWxRQXCJHYuecwEUSMo cXLmExYQm1MgVOLnrrVgcWYBdYk/8y4xQ9jiEreezIeKy0tsfzuHeQKj8Cwk7bOQtMxC0jIL ScsCRpZVjJKpBcW56bnFhgVGeanlesWJucWleel6yfm5mxjBMamltYNxz6oPeocYmTgYDzFK cDArifBmT/udKMSbklhZlVqUH19UmpNafIhRmoNFSZz3QtfJeCGB9MSS1OzU1ILUIpgsEwen VAMTq8jOWFl7xrk+P853anYu/JQ2p+vw3f+uK6ZynfB8+KlZNSTU6rNC5BU1j1sOq/Vm6e42 mHV3j4wCv5oJs091+qvTr16dEBacvni2TMYrzunK2tET2jU0sx/Y8H66zmH3fIV5YEHurtal GeLaqXzlt2awHlV+9mfS39N1P/UvBm2u/BPgI9u/fMvUR59VJghzp5jFxxx6oygn0HizwaxD bLvE3Z5qZuUCncb80KYfPgeWcMQW8y3rcPgtz7Qk3LGJLYEtPnZzzAkJrpp3KXIZJRv3+HW9 /fHL5GGUQL7g+tg1VTt5eRkCWUuEH/+p+l+QVxdVktY83/W/wJzLV18kfsxROld591aodM/S 1UosxRmJhlrMRcWJAIP24J44AwAA X-CMS-MailID: 20220204013532epcas1p1bb7acbbf276dfc9ac3a955c242651979 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220127230838epcas1p407910e790cf0d4d3cf1e8f8905553b93 References: <20220127230727.3369358-1-briannorris@chromium.org> <20220127150615.v2.3.I9341269171c114d0e04e41d48037fd32816e2d8c@changeid> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/28/22 8:07 AM, Brian Norris wrote: > 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://protect2.fireeye.com/v1/url?k=0a7de78e-55e6dec8-0a7c6cc1-0cc47a3003e8-4f0969a9fa7b496e&q=1&e=6129c5df-8bd2-4072-86ef-79b79b36ec89&u=https%3A%2F%2Flore.kernel.org%2Flkml%2F20210308233858.24741-3-daniel.lezcano%40linaro.org%2F > > 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>; > }; > Acked-by: Chanwoo Choi -- Best Regards, Chanwoo Choi Samsung Electronics