Message ID | 20240131-mbly-clk-v4-3-bcd00510d6a0@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-46789-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp2006672dyb; Wed, 31 Jan 2024 08:29:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IHfPnYbOUB2Psc8a7bi8Rx7m5r6NvYqdPb284edV1ERxhWVB2m7eDJony0hdkuFahhk9ef/ X-Received: by 2002:ac2:42c5:0:b0:510:101e:d197 with SMTP id n5-20020ac242c5000000b00510101ed197mr1441395lfl.35.1706718592187; Wed, 31 Jan 2024 08:29:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706718592; cv=pass; d=google.com; s=arc-20160816; b=xkfXVgz7j57PPzL+g6dKnqu6u4R55OHyp7QNY7Xzr7a//TWqC4TZ0upZ4tRTKRwt8Y 6FF++surZqFntu3h2gGh5t6nlD2H1COEeV0kyYP0Sit1K7Ikrldb8GKFesK9X2w0T0ra LOMTYcBLy6dSePfy2bMlbgrJZFx5zw7Xq94puwezJxksWmFHIBmu2Htspv2PglWsLUOA AOD+92By05sV4WYzKvXkzJMbuLSkYXzAbk4NSrQMqdYT78WzEDn2ddQdL4EM2XBPwmS+ cWnOC11y+uIeNAtSxzapH2Oo/6b6NuTUsbOBmV+7UJa7PyMlFvVTnaP9QsS2Mb66fQ+1 an4A== 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=JoBxRERRxQnfVCRFPuO0IzoTk4hxvXSNWhezF3i4kIg=; b=LOVdnhetGC++eB7114f8ej9tTY5K/hgxeI6REdZNFUK2jpI5pffjrNQ94NF9VItsaf ntdwtb7p28iJp4VP0+RpTN/KamgXwRpkTHRE5BecaURZoyKDhpNNawqKQ7SeWWkvIhuz R1WsYWzaBb4mGBuc64Ht7nidx+cr6Xy0IFKbbeon4XgxJCbKmfhj0+4qitOCUl+Njn3x ksnXyIzgNXULt8kkSfw/P8FiopsZJLZzTWrjuYvyYlu5N66XtVEwt7T6OhFB8dir8ijR O9FfkCQ3X8hluWJ+phSOt9KTFAdaLRnLKdyUre7I2+rhpxRszwjiIQ7EbBnP1erqP2DV UKLA==; 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46789-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=1; AJvYcCWGZM6uoaCEW8KHQNS835etoYJY/3bmom6423+DsAUfUePO1JVcEhoGpGwnP09EUoxFb+3kF9IYDbxhGP4r1l+caRdFeg== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id s22-20020a170906355600b00a28e70f483dsi5690598eja.164.2024.01.31.08.29.51 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 08:29:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46789-ouuuleilei=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=@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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46789-ouuuleilei=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 536291F274C5 for <ouuuleilei@gmail.com>; Wed, 31 Jan 2024 16:28:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8644512F597; Wed, 31 Jan 2024 16:27:21 +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?= <theo.lebrun@bootlin.com> 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: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> 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 <gregory.clement@bootlin.com>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Thomas Bogendoerfer <tsbogend@alpha.franken.de>, Linus Walleij <linus.walleij@linaro.org>, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= <rafal@milecki.pl>, Philipp Zabel <p.zabel@pengutronix.de> Cc: Vladimir Kondratiev <vladimir.kondratiev@mobileye.com>, linux-mips@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni <thomas.petazzoni@bootlin.com>, Tawfik Bayouk <tawfik.bayouk@mobileye.com>, linux-gpio@vger.kernel.org, =?utf-8?q?Th=C3=A9o_Lebrun?= <theo.lebrun@bootlin.com> X-Mailer: b4 0.12.4 X-GND-Sasl: theo.lebrun@bootlin.com X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789624154734796584 X-GMAIL-MSGID: 1789624154734796584 |
Series |
Add support for Mobileye EyeQ5 system controller
|
|
Commit Message
Théo Lebrun
Jan. 31, 2024, 4:26 p.m. UTC
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 <theo.lebrun@bootlin.com>
---
Documentation/devicetree/bindings/pinctrl/pinctrl.yaml | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
Comments
On Wed, Jan 31, 2024 at 05:26:16PM +0100, Théo Lebrun wrote: > 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. You can drop this patch now. Rob
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