From patchwork Wed Nov 22 22:44:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 13465518 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5B568C61D97 for ; Wed, 22 Nov 2023 22:44:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=6T4q8oImLUCwivBWOmIt57or+YpDVKpfwRjgpWpvXWc=; b=vU2OOc5Iay6Vhg 8v7rJmSlEeuzEh2PibUO19btHphsW85wi2StUKU9q5biOs0FHNlOPJWf3eObHXsSfspBYiDFwarGK 9EHc+Injdz477bIF9scJ6OErZLorhelqDAS30NHd2RVbGsBa5u6Yd4sJ7Er3srdpm9wqyHkko7/X/ b8KxVWGWLzap/YL8c2vFSw51F5CuLWfDaoxcEMrjf7sV7ySg158zTu2v621Q1+UnKmDDhyqdhkf2s E5N2Z8kVplSXuWSA1sT8d3vYXPBoeutYitNBTIp0j/2QEOmCAyNQg2iV0mxc+wUJrZaYTpDCcsN4V yrJOBBzgnaB0EtkP2aRA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r5vx6-003EBa-1n; Wed, 22 Nov 2023 22:44:12 +0000 Received: from mail-il1-f169.google.com ([209.85.166.169]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r5vx3-003EA8-2U for linux-arm-kernel@lists.infradead.org; Wed, 22 Nov 2023 22:44:10 +0000 Received: by mail-il1-f169.google.com with SMTP id e9e14a558f8ab-35b00cdc9b7so999325ab.3 for ; Wed, 22 Nov 2023 14:44:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700693049; x=1701297849; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DiTed5vR1rJNl1vKggefixTkkrQwZelbJ3TG1M33LMM=; b=b9fr6PQMdejQ3rLbJ2dn3n2xtbo1M/LgOdaJEpP4RfcrOKcdAt2H4BN8dN6DYU95lW o2Rq3MkZCwz3Z9RfQ4L47TzGbxUJDdIx/gx6l5DiHoM1oyYtupk+RkwzN76BPzoUV2IN 7JDMRDqev3Ty9uVxqIZ/J8VEiWuYdiBRYddZk9ZXEEQclSEBtElcXY0NB2cg1jD1eFOr oAuI76fgN0yJKvbYDcwyM5njwzBxpcBOtIAmEMyEeKA3X+rx1LYSBELxrj6TV4tr9xpj xcbgwWf2Pz5C+QoDOIVpPlAvcI4kQ3jFzmapk3UorLDv3PXK4MOtO0rgqWqfgQr8CeuT cHsQ== X-Gm-Message-State: AOJu0Yzr/r0Gp4Dauo2LiSdjLd+bRnoVobIWwrPEwe+6ptplRsKbDJ7W Wn1qCINp3p3LCLm2KL1EyHVvFPUvCw== X-Google-Smtp-Source: AGHT+IF5nkW6uFAF3era+SxmqvM7V7nmOcX8+bkqmnlNp1CtvAeePvj2MNCRGnB7//674xk291yueQ== X-Received: by 2002:a05:6e02:1be4:b0:35b:3849:6f2e with SMTP id y4-20020a056e021be400b0035b38496f2emr4451116ilv.8.1700693048622; Wed, 22 Nov 2023 14:44:08 -0800 (PST) Received: from herring.priv ([64.188.179.252]) by smtp.gmail.com with ESMTPSA id y11-20020a92090b000000b0035b0b56e0e1sm176061ilg.53.2023.11.22.14.44.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 14:44:08 -0800 (PST) Received: (nullmailer pid 2808951 invoked by uid 1000); Wed, 22 Nov 2023 22:44:06 -0000 From: Rob Herring To: Philipp Zabel , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: reset: imx-src: Simplify compatible schema and drop unneeded quotes Date: Wed, 22 Nov 2023 15:44:04 -0700 Message-ID: <20231122224404.2808838-1-robh@kernel.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231122_144409_812695_E3C01943 X-CRM114-Status: UNSURE ( 9.73 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The compatible schema can be simplified to a single enum for all the cases with "fsl,imx51-src" fallback compatible. In addition, the compatible strings are redundantly quoted. Drop unneeded quotes over simple string values to fix a soon to be enabled yamllint warning: [error] string value is redundantly quoted with any quotes (quoted-strings) Signed-off-by: Rob Herring Reviewed-by: Krzysztof Kozlowski --- .../bindings/reset/fsl,imx-src.yaml | 31 ++++++------------- 1 file changed, 10 insertions(+), 21 deletions(-) diff --git a/Documentation/devicetree/bindings/reset/fsl,imx-src.yaml b/Documentation/devicetree/bindings/reset/fsl,imx-src.yaml index b11ac533f914..f5ec1d54aa51 100644 --- a/Documentation/devicetree/bindings/reset/fsl,imx-src.yaml +++ b/Documentation/devicetree/bindings/reset/fsl,imx-src.yaml @@ -28,28 +28,17 @@ description: | properties: compatible: oneOf: - - const: "fsl,imx51-src" + - const: fsl,imx51-src - items: - - const: "fsl,imx50-src" - - const: "fsl,imx51-src" - - items: - - const: "fsl,imx53-src" - - const: "fsl,imx51-src" - - items: - - const: "fsl,imx6q-src" - - const: "fsl,imx51-src" - - items: - - const: "fsl,imx6sx-src" - - const: "fsl,imx51-src" - - items: - - const: "fsl,imx6sl-src" - - const: "fsl,imx51-src" - - items: - - const: "fsl,imx6ul-src" - - const: "fsl,imx51-src" - - items: - - const: "fsl,imx6sll-src" - - const: "fsl,imx51-src" + - enum: + - fsl,imx50-src + - fsl,imx53-src + - fsl,imx6q-src + - fsl,imx6sx-src + - fsl,imx6sl-src + - fsl,imx6ul-src + - fsl,imx6sll-src + - const: fsl,imx51-src reg: maxItems: 1