Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2855600ybb; Fri, 27 Mar 2020 13:22:53 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtp1LnHbcgj9uHcCCKcIab9GkAh+QARm54sAxx2GfXeYsefw6fI1h/J1T6+YBJIp0lL5K5o X-Received: by 2002:aca:e08a:: with SMTP id x132mr484201oig.93.1585340573666; Fri, 27 Mar 2020 13:22:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585340573; cv=none; d=google.com; s=arc-20160816; b=uC11aXgRpU3Js5Fi2EkH3vqIumxytbO6Z40wElojE5PwokNTN9fF0CBye9B6sI6gby kzGgaP7zhEExHrCR1UBgNiub/wVHYJrZBwQqsN5Y0BD2FuIMrDHkgQnkYgTMoCeyQDD8 MGLChRFH8nJwslzlb+e3du3WIta/IJanRqzmZyLtvOUp2wntWjCQlC1DNr0h+Y+nK2NT LB3+lDoRxVxokmzYJkzKVJvLxDSgeNTa4qBax0VNo4jUtSP3rntSMuhAow2mECUUI+4b dqfK4NnX9RiTflHDjvM57YvCaZhGQ8awxKUEFS9j+LW4Ka2ojy2vP0L/Whjw1Bk9JWz/ nMRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=AZXQNfXtAv9wR77p++8ud/QfvUrxQATLXzMUwJghAls=; b=i1WfIvo1NzMWY4wzb3aNM3Iqsswp4w3QDnc6ZimTT5V9TaEZoAw6fFkwYOVmOqivdk WCAdUuCasklNmYBCs9j6XbeU24qtYJ1H/io9jcAvUowBNQOnCkRFfyguka2qRVzpOPLb 2cO+whcYMxHyoXLREiusczjLTw3Gxnbtv2w3smiq2RE1EwaUF9T5+m+yI9yrdzHPcStr siUoM+7lrENs9HgxKezSCVWxNT4G9w9PZ7YJuxI+xLFtaIAMu4IFfwvCsNXb7fYmsZQP ee8XPL3t8k1gLEOe4zPHL2n2K06k/b/hlzMf2/FSTDr4Ny+rPPa7WKUxGGqp4jLUiN1l 5AZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h145si2879055oib.210.2020.03.27.13.22.39; Fri, 27 Mar 2020 13:22:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727611AbgC0UWO (ORCPT + 99 others); Fri, 27 Mar 2020 16:22:14 -0400 Received: from asavdk4.altibox.net ([109.247.116.15]:38568 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726710AbgC0UWN (ORCPT ); Fri, 27 Mar 2020 16:22:13 -0400 Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk4.altibox.net (Postfix) with ESMTPS id 14C2B804E5; Fri, 27 Mar 2020 21:22:01 +0100 (CET) Date: Fri, 27 Mar 2020 21:21:59 +0100 From: Sam Ravnborg To: Rob Herring Cc: devicetree@vger.kernel.org, Neil Armstrong , linux-iio@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Masahiro Yamada , Guillaume La Roque , Peter Meerwald-Stadler , Lee Jones , linux-clk@vger.kernel.org, Kevin Hilman , Daniel Lezcano , Bartosz Golaszewski , Zhang Rui , Brian Masney , Michael Hennerich , linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, Mauro Carvalho Chehab , linux-gpio@vger.kernel.org, Mark Brown , linux-amlogic@lists.infradead.org, Thomas Gleixner , Bjorn Andersson , linux-arm-kernel@lists.infradead.org, Stephen Boyd , netdev@vger.kernel.org, Liam Girdwood , Hartmut Knaack , linux-media@vger.kernel.org, "David S. Miller" , Jonathan Cameron Subject: Re: [PATCH 1/4] dt-bindings: iio/accel: Drop duplicate adi, adxl345/6 from trivial-devices.yaml Message-ID: <20200327202159.GA12749@ravnborg.org> References: <20200325220542.19189-1-robh@kernel.org> <20200325220542.19189-2-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200325220542.19189-2-robh@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=XpTUx2N9 c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=gAnH3GRIAAAA:8 a=VwQbUJbxAAAA:8 a=DN42nk9sAAAA:8 a=e5mUnYsNAAAA:8 a=KWDWuRJ9IF3UujpQpV0A:9 a=CjuIK1q_8ugA:10 a=oVHKYsEdi7-vN-J5QA_j:22 a=AjGcO6oz07-iQ99wixmX:22 a=ee1JA_unvF1TMR62yWF-:22 a=Vxmtnl_E_bksehYqCbjh:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob. On Wed, Mar 25, 2020 at 04:05:38PM -0600, Rob Herring wrote: > The 'adi,adxl345' definition is a duplicate as there's a full binding in: > Documentation/devicetree/bindings/iio/accel/adi,adxl345.yaml > > The trivial-devices binding doesn't capture that 'adi,adxl346' has a > fallback compatible 'adi,adxl345', so let's add it to adi,adxl345.yaml. > > Cc: Michael Hennerich > Cc: Jonathan Cameron > Cc: Hartmut Knaack > Cc: Lars-Peter Clausen > Cc: Peter Meerwald-Stadler > Cc: linux-iio@vger.kernel.org > Signed-off-by: Rob Herring > --- > .../devicetree/bindings/iio/accel/adi,adxl345.yaml | 10 +++++++--- > Documentation/devicetree/bindings/trivial-devices.yaml | 4 ---- > 2 files changed, 7 insertions(+), 7 deletions(-) > > diff --git a/Documentation/devicetree/bindings/iio/accel/adi,adxl345.yaml b/Documentation/devicetree/bindings/iio/accel/adi,adxl345.yaml > index c602b6fe1c0c..d124eba1ce54 100644 > --- a/Documentation/devicetree/bindings/iio/accel/adi,adxl345.yaml > +++ b/Documentation/devicetree/bindings/iio/accel/adi,adxl345.yaml > @@ -17,9 +17,13 @@ description: | > > properties: > compatible: > - enum: > - - adi,adxl345 > - - adi,adxl375 > + oneOf: > + - items: > + - const: adi,adxl346 > + - const: adi,adxl345 > + - enum: > + - adi,adxl345 > + - adi,adxl375 I assume it is my schema understanding that is poor. But I cannot parse the above. The mix of items, enum and const confuses me. I guess that if I am confused then others may end in the same situation. Can we improve readability here or amybe add a comment? Sam > > reg: > maxItems: 1 > diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml > index 978de7d37c66..51d1f6e43c02 100644 > --- a/Documentation/devicetree/bindings/trivial-devices.yaml > +++ b/Documentation/devicetree/bindings/trivial-devices.yaml > @@ -42,10 +42,6 @@ properties: > - adi,adt7476 > # +/-1C TDM Extended Temp Range I.C > - adi,adt7490 > - # Three-Axis Digital Accelerometer > - - adi,adxl345 > - # Three-Axis Digital Accelerometer (backward-compatibility value "adi,adxl345" must be listed too) > - - adi,adxl346 > # AMS iAQ-Core VOC Sensor > - ams,iaq-core > # i2c serial eeprom (24cxx) > -- > 2.20.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel