Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3572238pxj; Tue, 11 May 2021 07:25:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7r100XFOtduFYmBLBgu2aTWMl93ewB338an0PqbOHZq4oGNqcByb+/zMEZJyz6KWg2Eo0 X-Received: by 2002:a17:906:d28e:: with SMTP id ay14mr31802958ejb.33.1620743135989; Tue, 11 May 2021 07:25:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620743135; cv=none; d=google.com; s=arc-20160816; b=jG8ZmL9yPSPV4YKWuJtYjkOm6XX6wKNbHlx/Ylk7mqbIj6z9EzkJ5gnjeb67QdZ3wG Uq+Ch/w2Dig0sO2/FZN3ozwxC/OQ40C8Imc0Pvf12sxVARBB9lq7ycf2L+qazc1KPXuM rjBv7o2fJiqtlwAhxyDaayCtacMs1hhbwTnrraaER6qzcVT9NIJB5Eabfxhnj+TPRJR/ 75qy2U/I/hbxJTJsITiF9xJg4J8UeK/q3BHsZ6OpHbkZP/ZDc96iYU7+fxlNUW29iB2a NCq6eW8dPfDLNDCYFlmTTNqzozhhqPsMGLfLvygkP+LgxFoeraoQHjsMbnwLjWi1BdUJ vckQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=bcoeUJUCRGb/KY9A6wiWHwpZ63i6CapZO2DAropvsVQ=; b=Zm0vIK27j5ZaSia1E7QICoVE9R7HaIT/xzc5wfanznu4k5J9WwUrr5PuwC8et0l+R3 2ofrQ+4FmhSEGWjyAijKcBnqm9uzKmC5PSYXL+SOvkzV8taVrF7dtNqUKWaxcmO4hmV+ NvBzsTCoiD9hUU3O1z2AlU6VpGvakoyFiJXZA5Mnh0p+gzFIRdJx+JqEIr3qTuDFdajt LsJRW5OddoeOgux29aoew/55lPSuPfhDV1+iwD9hY6KHfQ4IEKmVosUjdP0Iu1lemJU1 NnzYPOY2zRoltF/m1kTvec3FLRIwl9Nt4zQYD5PL8QkyXLNXlKeqnHsiBC0Eg81iicEO B9aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JwaonazL; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bk20si16110922ejb.185.2021.05.11.07.25.11; Tue, 11 May 2021 07:25:35 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=JwaonazL; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231817AbhEKOZI (ORCPT + 99 others); Tue, 11 May 2021 10:25:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:60488 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231773AbhEKOZH (ORCPT ); Tue, 11 May 2021 10:25:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7BF676187E; Tue, 11 May 2021 14:24:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620743040; bh=K5dIHfa4f6iByDzBZIlrjQRjF6/bEjxWK1nUAqzRpew=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=JwaonazL7mHtxi37clzYyAaTtim9WYGe0jNdHlIfH66KDgGwD7QSLjEbrzvQMGgxj cDxVGdxsCSttt8JIk8CkX28GzepNyrYgvBI1JuvlFOJaMgtQqfDezEAUokTzNj9Di/ AXk99SIB1YVQuMhT8u6c+PflBGCBBVOhpYgwe9cQWyML9PY1iJv974grpxFQf2Zlfk aUGvNVSxIAiuPtI40JwsNp54vhkyiWFA7kZoGWTVhKJA8n9Wz1XL4k007CFv87+k2k ie6Ts3jvb6fuJ96vpOt+4eetlT3LXFNfFHwPDzEMeFWHkETQEygR474DDgvL+Oc1l/ 9cZVdIGiRgynA== Received: by mail-ed1-f53.google.com with SMTP id v5so12032451edc.8; Tue, 11 May 2021 07:24:00 -0700 (PDT) X-Gm-Message-State: AOAM5336IfGGHK4WvHXBJwJ1DkR9FDCNaG8F6ys88Kmm2uB8QC8lGEBv 7Kemzwb5+bFmJnTumAKG56ABR7gqI57cF0v2Aw== X-Received: by 2002:a50:c446:: with SMTP id w6mr33152086edf.62.1620743038881; Tue, 11 May 2021 07:23:58 -0700 (PDT) MIME-Version: 1.0 References: <20210510204524.617390-1-robh@kernel.org> <2b09c4ed-758d-6eed-8fc1-39653d10e844@lucaceresoli.net> In-Reply-To: <2b09c4ed-758d-6eed-8fc1-39653d10e844@lucaceresoli.net> From: Rob Herring Date: Tue, 11 May 2021 09:23:44 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] dt-bindings: More removals of type references on common properties To: Luca Ceresoli Cc: devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , Stephen Boyd , Olivier Moysan , Arnaud Pouliquen , Jonathan Cameron , Lars-Peter Clausen , Dmitry Torokhov , Bjorn Andersson , Georgi Djakov , "David S. Miller" , Jakub Kicinski , Sebastian Reichel , Orson Zhai , Baolin Wang , Chunyan Zhang , Liam Girdwood , Mark Brown , Fabrice Gasnier , Odelu Kukatla , Alex Elder , Shengjiu Wang , linux-clk , Linux-ALSA , "open list:IIO SUBSYSTEM AND DRIVERS" , linux-arm-kernel , Linux Input , "open list:THERMAL" , netdev Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 11, 2021 at 9:09 AM Luca Ceresoli wrote: > > Hi Rob, > > On 11/05/21 15:44, Rob Herring wrote: > > On Tue, May 11, 2021 at 2:20 AM Luca Ceresoli wrote: > >> > >> Hi, > >> > >> On 10/05/21 22:45, Rob Herring wrote: > >>> Users of common properties shouldn't have a type definition as the > >>> common schemas already have one. A few new ones slipped in and > >>> *-names was missed in the last clean-up pass. Drop all the unnecessary > >>> type references in the tree. > >>> > >>> A meta-schema update to catch these is pending. > >>> > >>> Cc: Luca Ceresoli > >>> Cc: Stephen Boyd > >>> Cc: Olivier Moysan > >>> Cc: Arnaud Pouliquen > >>> Cc: Jonathan Cameron > >>> Cc: Lars-Peter Clausen > >>> Cc: Dmitry Torokhov > >>> Cc: Bjorn Andersson > >>> Cc: Georgi Djakov > >>> Cc: "David S. Miller" > >>> Cc: Jakub Kicinski > >>> Cc: Sebastian Reichel > >>> Cc: Orson Zhai > >>> Cc: Baolin Wang > >>> Cc: Chunyan Zhang > >>> Cc: Liam Girdwood > >>> Cc: Mark Brown > >>> Cc: Fabrice Gasnier > >>> Cc: Odelu Kukatla > >>> Cc: Alex Elder > >>> Cc: Shengjiu Wang > >>> Cc: linux-clk@vger.kernel.org > >>> Cc: alsa-devel@alsa-project.org > >>> Cc: linux-iio@vger.kernel.org > >>> Cc: linux-arm-kernel@lists.infradead.org > >>> Cc: linux-input@vger.kernel.org > >>> Cc: linux-pm@vger.kernel.org > >>> Cc: netdev@vger.kernel.org > >>> Signed-off-by: Rob Herring > >>> --- > >>> Documentation/devicetree/bindings/clock/idt,versaclock5.yaml | 2 -- > >>> .../devicetree/bindings/iio/adc/st,stm32-dfsdm-adc.yaml | 1 - > >>> Documentation/devicetree/bindings/input/input.yaml | 1 - > >>> Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml | 1 - > >>> Documentation/devicetree/bindings/net/qcom,ipa.yaml | 1 - > >>> .../devicetree/bindings/power/supply/sc2731-charger.yaml | 2 +- > >>> Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml | 2 +- > >>> 7 files changed, 2 insertions(+), 8 deletions(-) > >>> > >>> diff --git a/Documentation/devicetree/bindings/clock/idt,versaclock5.yaml b/Documentation/devicetree/bindings/clock/idt,versaclock5.yaml > >>> index c268debe5b8d..28675b0b80f1 100644 > >>> --- a/Documentation/devicetree/bindings/clock/idt,versaclock5.yaml > >>> +++ b/Documentation/devicetree/bindings/clock/idt,versaclock5.yaml > >>> @@ -60,7 +60,6 @@ properties: > >>> maxItems: 2 > >>> > >>> idt,xtal-load-femtofarads: > >>> - $ref: /schemas/types.yaml#/definitions/uint32 > >>> minimum: 9000 > >>> maximum: 22760 > >>> description: Optional load capacitor for XTAL1 and XTAL2 > >>> @@ -84,7 +83,6 @@ patternProperties: > >>> enum: [ 1800000, 2500000, 3300000 ] > >>> idt,slew-percent: > >>> description: The Slew rate control for CMOS single-ended. > >>> - $ref: /schemas/types.yaml#/definitions/uint32 > >>> enum: [ 80, 85, 90, 100 ] > >> > >> Ok, but shouldn't "percent" be listed in > >> Documentation/devicetree/bindings/property-units.txt? > > > > It is in the schema already[1]. > > Sure, but having an incomplete file in the kernel is poorly useful, if > not misleading. What about any of these options: > > - add to property-units.txt the missing units > - delete property-units.txt from the kernel sources > - replace the entire content of property-units.txt with a link to the > schema file, stating it is the authoritative and complete source > > I would feel a lot better with any of these. I can prepare the patch too. Yes, we should remove it. I just hadn't gotten around to it. Note there is one reference to it in writing-bindings.rst. Rob