Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2192617lqa; Tue, 30 Apr 2024 10:25:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW4PPtN9/bwp6VflRpLmZ0MDj2DroR42lzizbfFMooAjC7iEtX8K8XjqUqp5Nu7xsiZkxfT3SinBQurBC2xT6CjkF9YlbQml7g8abMzmw== X-Google-Smtp-Source: AGHT+IH4OfmiIaJTxf74P1ioieYoYlff+t13sIBPSqzVMj4oumPMOp2NN5tlwBAX24MGZVa9AqsT X-Received: by 2002:a17:906:f28e:b0:a55:b2c0:61ef with SMTP id gu14-20020a170906f28e00b00a55b2c061efmr283279ejb.60.1714497941483; Tue, 30 Apr 2024 10:25:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714497941; cv=pass; d=google.com; s=arc-20160816; b=Gs5ORXqXxA3i+BlsAzhBsu39gqwsxwh7TQ4ehq6y6JcPhxHgvWGwIt+Pk8b/cPy8Pj hzM1faqpsMMEDbdBoASy6alBS2mXB2hON1ynsfWF7UkZdp1DQ5+fxADgs+sBOdPuJTxa 5bXx/4rKtr1UUZENxRFiu7YE20AfdmCSF02HRz6jREMLtCf0NFmgCcCWJfJnPlLMZCSN zGza1/oNjC4iojjJ7uYkpOFPQdLzOMfhiLC4UYtEOP3jGV++UwGWo43TkVSk4czROppo XAAewOiV/QpuXFMCcteFdnAK388vcrxiO5fZ5VUZM56zzGyman+TfVM6sgrYR2/DhSaJ 2X4g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=BYZghwHisW1WxKsaQROvOu8QevLa5QvYXW4O3QvDpmk=; fh=5GhnK8x1dfUslLuN6zFC0rWNEHzahSOfdyT77eZ530o=; b=AdQyiU+0k9vdeCC6rwAINuOiF7ktC9JuYNGLrhQmJpFtDHRgeGnsF46Yqxu/JJNKNd gqNisaz4zsY6UXKyTBGHX+Ol1NoOCTXBKtz+fxY1fD+rpv0/pNzmYOsBnLh+PDrVE4ot ZkFGbkNpbyvfYjPqpvZfooIK0Dc1rz+5dTG+uicc7PZLdNHtu0H98Hn18wlsLRDTSNAF hLBOYSKgOL6DYiQFS9e0BjV7EUVxzvkbiJnR7NtJI16u4M2UthB4Et7ru9B5vKN2ZU/2 1SCt0c9D570ebL51oTRDiqWSG2QOYbHNix635pvSigbKss2POR1+4z1M9Bs/b7x1VYpb 1OEA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZW2zi9aw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-164508-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164508-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id qq27-20020a17090720db00b00a525c39ac09si15983699ejb.962.2024.04.30.10.25.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 10:25:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164508-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZW2zi9aw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-164508-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164508-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 36E931F232DB for ; Tue, 30 Apr 2024 17:25:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C0F3B17F39A; Tue, 30 Apr 2024 17:25:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZW2zi9aw" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EACEE17BB20; Tue, 30 Apr 2024 17:25:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714497933; cv=none; b=Pgh+Jhz/X20HHpYciTwVDnruHW8xtm/6TqkiX/VVt0wA9fPYQtJwm08/z5rXfRYuvNDaKis8Q0vCsYLlCZ6kROXJIsqEl3sIEdf9xRWpXseA/hgfPsatx8xJaY9H8MuVwOotrkmW5gHUHTkmfEcuIyUqgt2pFUBp0YkFMj4axl0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714497933; c=relaxed/simple; bh=IX6Uu6LbP/xYgPUGwU4+kdor5cBr2FpREH4Pqv5Bpt8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=U/RkSZLhgvDmBs8eqBt5u4OYMXMr8Wbvl6cDQky6zKEpOLSLJfTlVvHjU441ZJj5HYCXaNNXhOwACWIHqniR1zpWdqeM+BC6KWRCP42OE5o3DrV96M2TcY/3qe+Q/ETI4hWLBOZsFjRRI9bEh6eUlcaxKPpguxrZQa+ZvtYBq2A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZW2zi9aw; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 304B4C2BBFC; Tue, 30 Apr 2024 17:25:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714497932; bh=IX6Uu6LbP/xYgPUGwU4+kdor5cBr2FpREH4Pqv5Bpt8=; h=From:To:Cc:Subject:Date:From; b=ZW2zi9aw/QFN/U+x4XF2jMEe6uLT0E4Fk03Ot4pNgUejZgr2BsmK5bbp+jD7dGeJ0 qwb4yKTp2sXK5FHSe5iMzhKyDQSAW9kP9Zu+rqUNW3FQPh080dT8abyYoYzWHhHa2E loBnWXU6yUmGXrpTWvYuY94JrGBoa6SIAwkFuxf86HQ1F8s+58rsmaLopt4j0VPGcH 2A/TVosB6SSIuDB+SYEYcz1c3xXDJla3Ne53yXtNpQDDS0RHJfhaDFBsPrzuwhEeW3 GMAFw9zn6LdZjjv6g/MNnUUEGr5de7tD4ypT7pGMHrI7eaVKv0FtMoqwZWWyvF6FKX 6q2uhnzckCxlw== From: "Rob Herring (Arm)" To: Lee Jones , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: mfd: aspeed: Drop 'oneOf' for pinctrl node Date: Tue, 30 Apr 2024 12:25:19 -0500 Message-ID: <20240430172520.535179-1-robh@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The use of 'oneOf' to include 1 of 3 possible child node schemas results in error messages containing the actual error message(s) for the correct SoC buried in the tons of error messages from the 2 schemas that don't apply. It also causes the pinctrl schema to be applied twice as it will be applied when the compatible matches. All that's really needed in the parent schema is to ensure one of the possible compatible strings is present in the pinctrl node so that its schema will be applied separately. Signed-off-by: Rob Herring (Arm) --- .../bindings/mfd/aspeed,ast2x00-scu.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml b/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml index 1689b986f441..86ee69c0f45b 100644 --- a/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml +++ b/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml @@ -47,10 +47,18 @@ patternProperties: type: object '^pinctrl(@[0-9a-f]+)?$': - oneOf: - - $ref: /schemas/pinctrl/aspeed,ast2400-pinctrl.yaml - - $ref: /schemas/pinctrl/aspeed,ast2500-pinctrl.yaml - - $ref: /schemas/pinctrl/aspeed,ast2600-pinctrl.yaml + type: object + additionalProperties: true + properties: + compatible: + contains: + enum: + - aspeed,ast2400-pinctrl + - aspeed,ast2500-pinctrl + - aspeed,ast2600-pinctrl + + required: + - compatible '^interrupt-controller@[0-9a-f]+$': description: See Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2xxx-scu-ic.txt -- 2.43.0