Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1768181rdb; Wed, 31 Jan 2024 08:29:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IHaNmYPEud4S3lczMDTk22KdclAiEz505RTNM7vTFH8+vn6hM8abIPcbuYfju5+6RCLnJGQ X-Received: by 2002:a05:6402:6d6:b0:55f:8f59:8ef6 with SMTP id n22-20020a05640206d600b0055f8f598ef6mr1261328edy.5.1706718570859; Wed, 31 Jan 2024 08:29:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706718570; cv=pass; d=google.com; s=arc-20160816; b=c758K9e4lFo4z1ITpW646hiYqdbXs6RkQIdmULe6wm3/fSgg1QVObUp0DQCEagbJJM tEO4/8RnaYazIhohIbv68AoCUqCOBh5QPnRYxI5cZqNT9/V//fid4xoPTNrbMKNCmG1v dpF8BPCY4SdobUyZDg7VmmZaa+rwwsj1zg3AckLqxBZ0IkaYiDqWUvZTmsoy72izdyoN icJFJHClFt4Cz3WWrz8kJFpfxf/n5w1S9oRGxLulCsqu4U2yE10OC+FYaCR3gFUXfBhG /+4ffhdu0Z/svOer5/FICjcCJpSq5FtJ/CfIsoon0nHbPJmIpsB/wLCMQeOHqp+po5ZS VPCg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=7eiFG62+hOSXiOhbfv9iGOn+0mEfhbeiuUK+9YHU1ZU=; fh=ZqD2tPgjqivSVzeQdycYrhD2mObgCEOGoJ3B02C6c1c=; b=WOwev+iNORiUeL+jxdTjeC0IHl0/CkQDKFsKz5VkCUPnRlqLccdlfjJdRgOvjUhGDU M/JBoi+wGrT0sTl1/TrTtoGEWA60ypIh/ugXBdhiEqP7pSvGV25CnyvwaihFnpzclLDU hSTvquWWD2Q2mMVv3y+ceCIlp/CkO36qL15Ymvpq7MO200YXLIwN3S/VjAl4OQyhtIYz PNxZ1/mMjNokucN/ud9uVpFZPzSB7t5+rg78xB+U0Jn8CU2JlY7hgT/rtgfLyzDaqpQQ JCgc1L2klZJRF69AhPO4WoxI+IAq0fnjKU77NAr1PUvQnZ77Wim5y/pDVg1zARydP7z4 0oWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=IOPpK276; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-46789-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46789-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=1; AJvYcCWngLaQukbdXcx2rwWfoaSsD0n3AIh5YAmshD6SmQ1d53k5GPYF1pjkX2qVcjIPpgDt3Zi1OHtNA2tHyMV5SMK20QAwoL3lnClYpCbpKg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n16-20020a05640205d000b0055f43669358si1880337edx.594.2024.01.31.08.29.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 08:29:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46789-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=IOPpK276; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-46789-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46789-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 616FD1F2B4F3 for ; Wed, 31 Jan 2024 16:28:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2EE0412C556; Wed, 31 Jan 2024 16:27:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="IOPpK276" Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (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 32FD312AACA; Wed, 31 Jan 2024 16:27:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706718438; cv=none; b=jK5kchbl/IFk9svsSetfV09ScYycUqo27FjUtiqXHv+GcWSEQOOVqyGaelukt9ICo5uonFMYDwdebrBVD3LkleW/KT0v+VYIkyJ5TQn8ePiAQtRk6K4xWRMwm81O8QKUyceVMgBT2lJDKIIrOBR4lNbDVuW7oA1CTppEbVmx0d0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706718438; c=relaxed/simple; bh=Zk51Y46Yh6wBACGBamMWzs9UNn9LXA1oGZm2O1J384w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mMxHsfi9bLU6fzdoIg61nxkWkoiygBZDikIZmjsh0gCzEzW1g8WtjRV4p54+mODzhrvaXi/0ica8E1SseDF0jucmDrVG08pPo6isBylWd4wpvSPgDgbMkV0voSCsvHVC9SZyDIL5L4Pb0dvq8qvfj5b4OC7jOvDzD+DjakTnCnM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=IOPpK276; arc=none smtp.client-ip=217.70.183.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 9995940009; Wed, 31 Jan 2024 16:27:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1706718433; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7eiFG62+hOSXiOhbfv9iGOn+0mEfhbeiuUK+9YHU1ZU=; b=IOPpK276Vnr4e/P2oPnaLT2bMmWFOLMmhPVczm6uFvBlJQxaYvkkRxRO+f0QvGpGl154Yu 9pwyv3nRIqjSfIslVue5xKt4q6KiQXX0FnddvvwB5dD4hQvLiZdu1/NnK5wyZyaAOF77az P3k44VwKXKHK0jAJagi+APrR6VYZRAeHRX56MCi3zH2aeL1NBHbdwoYB57NWxY7JRaHzkq O0qHP/Zel30neBIYowQoxnpUyIxbuYYNhMzCI4tKks/8svjt6zC0cYQVB1L1dHe2S8Rqqv x5/GRqFmkAg4TBGXFR8StH2tpmwY9wQIUrB1YwwaKLVd+56e7eSvINAoYXNFCw== From: =?utf-8?q?Th=C3=A9o_Lebrun?= Date: Wed, 31 Jan 2024 17:26:16 +0100 Subject: [PATCH v4 03/18] dt-bindings: pinctrl: allow pin controller device without unit address Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240131-mbly-clk-v4-3-bcd00510d6a0@bootlin.com> References: <20240131-mbly-clk-v4-0-bcd00510d6a0@bootlin.com> In-Reply-To: <20240131-mbly-clk-v4-0-bcd00510d6a0@bootlin.com> To: Gregory CLEMENT , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Bogendoerfer , Linus Walleij , =?utf-8?q?Rafa=C5=82_Mi=C5=82ecki?= , Philipp Zabel Cc: Vladimir Kondratiev , linux-mips@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , Tawfik Bayouk , linux-gpio@vger.kernel.org, =?utf-8?q?Th=C3=A9o_Lebrun?= X-Mailer: b4 0.12.4 X-GND-Sasl: theo.lebrun@bootlin.com Allow a pin controller device to have no address, therefore no unit address. The previous $nodename was enforcing a unit address, but scripts/dtc/checks.c enforced that names with unit addresses have reg or ranges: Warning (unit_address_vs_reg): .../pinctrl@0: node has a unit name, but no reg or ranges property Fix pinctrl.yaml to adopt a (pinctrl|pinmux)(-[a-z]+)? node name when neither reg nor ranges are required. Use [a-z]+ to avoid conflicts with pinctrl-consumer.yaml. Signed-off-by: Théo Lebrun --- Documentation/devicetree/bindings/pinctrl/pinctrl.yaml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/pinctrl.yaml index d471563119a9..3d977b54e260 100644 --- a/Documentation/devicetree/bindings/pinctrl/pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/pinctrl.yaml @@ -26,9 +26,6 @@ description: | controller device. properties: - $nodename: - pattern: "^(pinctrl|pinmux)(@[0-9a-f]+)?$" - "#pinctrl-cells": description: > Number of pin control cells in addition to the index within the pin @@ -42,4 +39,19 @@ properties: This property can be set either globally for the pin controller or in child nodes for individual pin group control. +if: + anyOf: + - required: + - reg + - required: + - ranges +then: + properties: + $nodename: + pattern: "^(pinctrl|pinmux)(@[0-9a-f]+)?$" +else: + properties: + $nodename: + pattern: "^(pinctrl|pinmux)(-[a-z]+)?$" + additionalProperties: true -- 2.43.0