Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6C024C64EC7 for ; Wed, 15 Feb 2023 21:03:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230322AbjBOVDN (ORCPT ); Wed, 15 Feb 2023 16:03:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230411AbjBOVCw (ORCPT ); Wed, 15 Feb 2023 16:02:52 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AB3934616E; Wed, 15 Feb 2023 13:01:05 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6140D4B3; Wed, 15 Feb 2023 12:51:47 -0800 (PST) Received: from slackpad.lan (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AC2623F881; Wed, 15 Feb 2023 12:51:02 -0800 (PST) Date: Wed, 15 Feb 2023 20:49:06 +0000 From: Andre Przywara To: Bastian Germann Cc: Wilken Gottwalt , Ohad Ben-Cohen , Bjorn Andersson , Baolin Wang , Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Samuel Holland , linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, devicetree@vger.kernel.org Subject: Re: [PATCH v2 4/5] dt-bindings: hwlock: sun6i: Add a64 compatible string Message-ID: <20230215204906.511699f4@slackpad.lan> In-Reply-To: <20230215203711.6293-5-bage@debian.org> References: <20230215203711.6293-1-bage@debian.org> <20230215203711.6293-5-bage@debian.org> Organization: Arm Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.31; x86_64-slackware-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 15 Feb 2023 21:37:09 +0100 Bastian Germann wrote: > Add an allwinner,sun50i-a64-hwspinlock compatible string to the device > tree binding. The A31 and A64 have compatible hwspinlocks. > > Signed-off-by: Bastian Germann > --- > .../bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml b/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml > index 6cdfe22deb3c..281c285282a1 100644 > --- a/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml > +++ b/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml > @@ -15,7 +15,9 @@ description: > > properties: > compatible: > - const: allwinner,sun6i-a31-hwspinlock > + items: > + - const: allwinner,sun6i-a31-hwspinlock > + - const: allwinner,sun50i-a64-hwspinlock So this would not allow the previous single compatible string, which I think we should preserve? You can check out other bindings (like allwinner,sun6i-a31-spi.yaml) to get an idea of how this could be written. Cheers, Andre > > reg: > maxItems: 1