Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3559356pxj; Tue, 11 May 2021 07:11:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwm63bvHd/Qht9Ef8397YGeU1OE0C91NUjTigeB6Dk64UMsxml33TTxp0Y3wLWhbew6A2aH X-Received: by 2002:a1c:e38a:: with SMTP id a132mr32710162wmh.135.1620742300514; Tue, 11 May 2021 07:11:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620742300; cv=none; d=google.com; s=arc-20160816; b=Btw/2mR0YqdODtghuMKRafCbml/eGeADpUPigJiYqZDesqdHFszrqwIArP0/5sJIO2 gfYvwCfBRdjxrd5bdZfuhaAmF9iJiP3YrMWkSpaqiTygMefu05lB9s04AwI3cpy0etYs QDcL3JLEvoel6QxjGn2tj/k02IVsV8EbMFwTu0W1ZneEaXJFTX5tKQ0jgv8yKy2ZJ2fI fO4jMdJZhwLfvVZIOoD0g6GI/hcy7Ly9Mr7s5G71+yWEjsDlhUvQzgP9wXWOcI7G8LE6 +3dS/QSaCFtxYPh4NcX3PJQaBRTsycFz4iadnvxHGtb8rbpB5WGikSaA2FDiP9/OMNno uaGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=287NgZ9dB9VeRMgMPQ3APD6rQh2ApxUCbmjuez6pg6U=; b=mB2e3ooW8Jxz5Gyo1pcmZoAtQujIRZzt0lUEwVyGDjUOZmDhA3IpBhrKcsd4EYV/Tw DIL2N8pAtADMvGPLfdW4aywswTI3FuWJeMxPyTuB82kgiXnSPAUOKzKX75TZJnaKIhsn aQjj4uCoMzO2OpKKl5BFNiO4zjnW4irG1h6Y4S5yukCZrOHx7rDPVYLa9p44cz3fMoXv jZAd/bwZ64efmdHH3WphxTrYqAqpxoFytgNzolBSZqztxX/WDyCsq6iNu6XjbCtRjOeo v99XjugrXDsts0QiRe8nz/dibMMMKs5xhLdZosdV/0D9Wd7KcSpVJFEb7+AlX/VTbm/b LYPg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ds10si21377602ejc.415.2021.05.11.07.11.15; Tue, 11 May 2021 07:11:40 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231756AbhEKOKi (ORCPT + 99 others); Tue, 11 May 2021 10:10:38 -0400 Received: from hostingweb31-40.netsons.net ([89.40.174.40]:48278 "EHLO hostingweb31-40.netsons.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231663AbhEKOKg (ORCPT ); Tue, 11 May 2021 10:10:36 -0400 Received: from [77.244.183.192] (port=61918 helo=[192.168.178.41]) by hostingweb31.netsons.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1lgT4h-0009Q7-5U; Tue, 11 May 2021 16:09:27 +0200 Subject: Re: [PATCH] dt-bindings: More removals of type references on common properties To: Rob Herring 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 References: <20210510204524.617390-1-robh@kernel.org> From: Luca Ceresoli Message-ID: <2b09c4ed-758d-6eed-8fc1-39653d10e844@lucaceresoli.net> Date: Tue, 11 May 2021 16:09:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: it-IT Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hostingweb31.netsons.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lucaceresoli.net X-Get-Message-Sender-Via: hostingweb31.netsons.net: authenticated_id: luca@lucaceresoli.net X-Authenticated-Sender: hostingweb31.netsons.net: luca@lucaceresoli.net X-Source: X-Source-Args: X-Source-Dir: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Luca