Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2428639rwb; Mon, 15 Aug 2022 05:27:22 -0700 (PDT) X-Google-Smtp-Source: AA6agR4Fvi51Xn5pNvitf4MlWlL/tqK4efyR8SsSH/mMC/TIChsywd2jLYnjxNcNN2APjMwMTzZc X-Received: by 2002:a05:6402:248a:b0:440:9709:df09 with SMTP id q10-20020a056402248a00b004409709df09mr14309433eda.42.1660566442155; Mon, 15 Aug 2022 05:27:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660566442; cv=none; d=google.com; s=arc-20160816; b=NFKxgJzRmAU5yYRHncmGYcxYufKA7rnTnOIEKKQMXDgJ1xBWDIIl1skTOltheGjBrn FEtUB99FwRANnUwtNAA5u4YzqORo61K+jLJ2L0EL4s/VOEGqDMiLkAV/z6BQzVdhJdAv kMkdOFRsKldcp29E09L/Vr2H5lVAbGfd9oER58PyvlDhwOfmOwJ4p9M3Mqs5dty+6FSx aR/tS9xn7ZKZTfuyIduyk3+/O1iJ/d4DQnZ1fPHTnd+QTdF0aM8D+69DmgAQGCes0wpu J9XyNcryS0O3l2dB0wTKkDCsAH9NO8eFdIvu2cu4xOpeoWT6LTOIL5ANsVwKJHpDTvY3 qFfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=g7XrNlcZqGBBbkgHYUUvyffF5rMa4beIaArhgTdGRcI=; b=PqYYPGqiOKVTVL2eoQBzaNVVNJIqd+iV0MQ9BPXj+DFSdw1hILoYBM5SmRIlaI4DMj bu8HsVPfwppzgb3+QUvSLtAJTPpIya3qA92jXi3ig/ve+2arEhDAL5c7T9dlcmSM5TeJ 6Q614sABJaAfvTrgxckpYldU0gX3cFiRNG5oh3nNBqXm3wW6pP6++WfBmh4IxG+Ay66y J5tASQUBsJR/jQBtkRpAeM9IViiqRUyD6uuSu28KGLk2eUeDEBJ+vpUnhLSEa7gkKx0N tXfKCyVsVbAYjbm24+27r65dUxoOuXoZHsw18M7P/mTjzHuTku2r9ED5UQ05fYz5zgR5 Teng== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa24-20020a1709076d1800b007318692f59csi7723434ejc.935.2022.08.15.05.26.56; Mon, 15 Aug 2022 05:27:22 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232038AbiHOMPR (ORCPT + 99 others); Mon, 15 Aug 2022 08:15:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231468AbiHOMPP (ORCPT ); Mon, 15 Aug 2022 08:15:15 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8BF9D26130; Mon, 15 Aug 2022 05:15:13 -0700 (PDT) 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 20CCB12FC; Mon, 15 Aug 2022 05:15:14 -0700 (PDT) Received: from donnerap.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 81B913F66F; Mon, 15 Aug 2022 05:15:11 -0700 (PDT) Date: Mon, 15 Aug 2022 13:15:04 +0100 From: Andre Przywara To: Samuel Holland Cc: Chen-Yu Tsai , Jernej Skrabec , Arnd Bergmann , Hans de Goede , Icenowy Zheng , Krzysztof Kozlowski , Maxime Ripard , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, Krzysztof Kozlowski Subject: Re: [PATCH v2 01/10] dt-bindings: sram: sunxi-sram: Clean up the compatible lists Message-ID: <20220815131504.65f7b92f@donnerap.cambridge.arm.com> In-Reply-To: <20220815041248.53268-2-samuel@sholland.org> References: <20220815041248.53268-1-samuel@sholland.org> <20220815041248.53268-2-samuel@sholland.org> Organization: ARM X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; aarch64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 14 Aug 2022 23:12:38 -0500 Samuel Holland wrote: > Use enumerations where appropriate to combine "const" choices and > deduplicate fallback compatible strings. > > Suggested-by: Krzysztof Kozlowski > Signed-off-by: Samuel Holland Verified to be a pure transformation. Reviewed-by: Andre Przywara Cheers, Andre > --- > > Changes in v2: > - New patch to first clean up the binding > > .../allwinner,sun4i-a10-system-control.yaml | 81 +++++++------------ > 1 file changed, 31 insertions(+), 50 deletions(-) > > diff --git a/Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml b/Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml > index 1c426c211e36..5055c9081059 100644 > --- a/Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml > +++ b/Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml > @@ -24,32 +24,30 @@ properties: > > compatible: > oneOf: > - - const: allwinner,sun4i-a10-sram-controller > + - enum: > + - allwinner,sun4i-a10-sram-controller > + - allwinner,sun50i-a64-sram-controller > deprecated: true > - - const: allwinner,sun4i-a10-system-control > - - const: allwinner,sun5i-a13-system-control > + - enum: > + - allwinner,sun4i-a10-system-control > + - allwinner,sun5i-a13-system-control > + - allwinner,sun8i-a23-system-control > + - allwinner,sun8i-h3-system-control > + - allwinner,sun50i-a64-system-control > + - allwinner,sun50i-h5-system-control > + - allwinner,sun50i-h616-system-control > - items: > - - const: allwinner,sun7i-a20-system-control > + - enum: > + - allwinner,suniv-f1c100s-system-control > + - allwinner,sun7i-a20-system-control > + - allwinner,sun8i-r40-system-control > - const: allwinner,sun4i-a10-system-control > - - const: allwinner,sun8i-a23-system-control > - - const: allwinner,sun8i-h3-system-control > - items: > - const: allwinner,sun8i-v3s-system-control > - const: allwinner,sun8i-h3-system-control > - - items: > - - const: allwinner,sun8i-r40-system-control > - - const: allwinner,sun4i-a10-system-control > - - const: allwinner,sun50i-a64-sram-controller > - deprecated: true > - - const: allwinner,sun50i-a64-system-control > - - const: allwinner,sun50i-h5-system-control > - items: > - const: allwinner,sun50i-h6-system-control > - const: allwinner,sun50i-a64-system-control > - - items: > - - const: allwinner,suniv-f1c100s-system-control > - - const: allwinner,sun4i-a10-system-control > - - const: allwinner,sun50i-h616-system-control > > reg: > maxItems: 1 > @@ -76,43 +74,26 @@ patternProperties: > - const: allwinner,sun4i-a10-sram-d > - const: allwinner,sun50i-a64-sram-c > - items: > - - const: allwinner,sun5i-a13-sram-a3-a4 > - - const: allwinner,sun4i-a10-sram-a3-a4 > - - items: > - - const: allwinner,sun7i-a20-sram-a3-a4 > + - enum: > + - allwinner,sun5i-a13-sram-a3-a4 > + - allwinner,sun7i-a20-sram-a3-a4 > - const: allwinner,sun4i-a10-sram-a3-a4 > - items: > - - const: allwinner,sun5i-a13-sram-c1 > - - const: allwinner,sun4i-a10-sram-c1 > - - items: > - - const: allwinner,sun7i-a20-sram-c1 > - - const: allwinner,sun4i-a10-sram-c1 > - - items: > - - const: allwinner,sun8i-a23-sram-c1 > - - const: allwinner,sun4i-a10-sram-c1 > - - items: > - - const: allwinner,sun8i-h3-sram-c1 > + - enum: > + - allwinner,sun5i-a13-sram-c1 > + - allwinner,sun7i-a20-sram-c1 > + - allwinner,sun8i-a23-sram-c1 > + - allwinner,sun8i-h3-sram-c1 > + - allwinner,sun8i-r40-sram-c1 > + - allwinner,sun50i-a64-sram-c1 > + - allwinner,sun50i-h5-sram-c1 > + - allwinner,sun50i-h6-sram-c1 > - const: allwinner,sun4i-a10-sram-c1 > - items: > - - const: allwinner,sun8i-r40-sram-c1 > - - const: allwinner,sun4i-a10-sram-c1 > - - items: > - - const: allwinner,sun50i-a64-sram-c1 > - - const: allwinner,sun4i-a10-sram-c1 > - - items: > - - const: allwinner,sun50i-h5-sram-c1 > - - const: allwinner,sun4i-a10-sram-c1 > - - items: > - - const: allwinner,sun50i-h6-sram-c1 > - - const: allwinner,sun4i-a10-sram-c1 > - - items: > - - const: allwinner,sun5i-a13-sram-d > - - const: allwinner,sun4i-a10-sram-d > - - items: > - - const: allwinner,sun7i-a20-sram-d > - - const: allwinner,sun4i-a10-sram-d > - - items: > - - const: allwinner,suniv-f1c100s-sram-d > + - enum: > + - allwinner,suniv-f1c100s-sram-d > + - allwinner,sun5i-a13-sram-d > + - allwinner,sun7i-a20-sram-d > - const: allwinner,sun4i-a10-sram-d > - items: > - const: allwinner,sun50i-h6-sram-c