Message ID | 20240207180142.79625-3-charles.perry@savoirfairelinux.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-56886-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp2413735dyb; Wed, 7 Feb 2024 10:12:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IEnRtJecJFptXzm4E/V/ttxlxCePNo0S0k6Rc4zpQTKINJW6+GSK6DodmHKX/dGIPxM3Egr X-Received: by 2002:a17:902:dac6:b0:1d7:450c:be68 with SMTP id q6-20020a170902dac600b001d7450cbe68mr6544160plx.66.1707329536250; Wed, 07 Feb 2024 10:12:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707329536; cv=pass; d=google.com; s=arc-20160816; b=03nqA9FKVhB9xHy/vqZbk+M+A12+ZA+08t+L87sa8Jol5a0jLxMzv9Xl94cMgeZK4j KsOoZTUYzB9xHK3GXgBi2xzgTOZYXXLOkRb/C+9/g6bdbctQ3VoPkTlysaFmXj5Z7+kj h20WauE4oBl5/ItvxbcDelQm9BFQUoGeyeH7LYHA6vNnlrRvSsYKYKPCW8i9SfGVdmjO 7iXeagUGG8qhtbL9bZFt6YlQ+QzPl2mK6JHvUCSipRVs0+9OKv9GQfalRUKRGLkKx9K9 KJ+WgUJ9d1ODLNsQ0rQDEkLxM1gAwBOeSECiQ/tfugIOc5GIVvunGjWbeYFKkY8nlN2t bfGA== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:dkim-filter; bh=pJXroaVZ9MbVDlYIkJN4kCmIjVMtbnSfFQM8MOR33Ic=; fh=1GkbNpIc2IyvkWdHS4SYvYDggE8C6//tHBlQ5Mq6aKA=; b=X1yBiYK7/DhZaH2Qp46El1jBuvBpJFYLP7j+La6k7s8Hd5jqfdjNFh+MjihRoAw4cH RtkzRY6rr7Jqy+subQ87ut8Bo+sE0a/0kPFU5iGjvUpo/U7fx18m61Yq1JIXsxg4EiqH n/Zmcb5otlB0M9SAXkbUwTlGxooQpR2GBwVkaDdOYtk0idaeO2ops/qe+xNCO0N0gInQ z1Ac2lbzTam/xdFZjGrl+T8tdCR9PcqSOCExacJGWHyj8wSkBR+IAJnUARyfbbqdh8fw YIyT6o5jNEE/aO6j5oEIvHgfCuz1yerE5p5t5DtjjldZXGDCSqVD9qx2rXnI6g5IW2W5 BzyA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@savoirfairelinux.com header.s=DFC430D2-D198-11EC-948E-34200CB392D2 header.b=rmP6HGES; arc=pass (i=1 spf=pass spfdomain=savoirfairelinux.com dkim=pass dkdomain=savoirfairelinux.com); spf=pass (google.com: domain of linux-kernel+bounces-56886-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56886-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCVGDx6TWuXihIK14g6lGbruxPLoQ9PNiZRQSnrer9/UN9iufgZyho8ffS1roe4NUOY+retY3QQ0ck7SYvOqg7v9F3R4Yg== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y17-20020a170902e19100b001d909321c08si1960070pla.596.2024.02.07.10.12.16 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 10:12:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56886-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@savoirfairelinux.com header.s=DFC430D2-D198-11EC-948E-34200CB392D2 header.b=rmP6HGES; arc=pass (i=1 spf=pass spfdomain=savoirfairelinux.com dkim=pass dkdomain=savoirfairelinux.com); spf=pass (google.com: domain of linux-kernel+bounces-56886-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56886-ouuuleilei=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E7B3428244C for <ouuuleilei@gmail.com>; Wed, 7 Feb 2024 18:12:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0EEB71272A0; Wed, 7 Feb 2024 18:02:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=savoirfairelinux.com header.i=@savoirfairelinux.com header.b="rmP6HGES" Received: from mail.savoirfairelinux.com (mail.savoirfairelinux.com [208.88.110.44]) (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 96B9585943; Wed, 7 Feb 2024 18:02:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=208.88.110.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707328957; cv=none; b=lK0/VpcE1+cwr5piDFj5bSdFITxUfwUOkhWobZM+wOEe4LcAeWT9yil+Ymmv0XZZhAm9ye+6yXIjuiBBNgqFQSYhVhrD5Kb9/7pSu+V5/+s1qySdoLw+xGQlb/N43JTaMBYxnVZbshX3vGbXlXBByhTBSXnjFT039hOTBJSBjmY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707328957; c=relaxed/simple; bh=mRFzsib6y4l8IWxZx9WcZMfnSgpvgAJ1pdNPENvGXJY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ltzTiXlD9Z6wM7aYWpSJ6B2zLr39MDRt4tkqjo+U9Q+h+70l2Kimk9TeaDPDoGyaK5+Um+NoKbrRVn9uHJpdf3oZ2+hU+8/lYj/v7dC55EP3cDVBsuHbnZiUxJJIIjiysdmV/v0jZBURohlPEt0h6An6F37M3a9vz7bDSFMgJ9M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=savoirfairelinux.com; spf=pass smtp.mailfrom=savoirfairelinux.com; dkim=pass (2048-bit key) header.d=savoirfairelinux.com header.i=@savoirfairelinux.com header.b=rmP6HGES; arc=none smtp.client-ip=208.88.110.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=savoirfairelinux.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=savoirfairelinux.com Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 75CB09C48A0; Wed, 7 Feb 2024 13:02:29 -0500 (EST) Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavis, port 10032) with ESMTP id Q0gpBNSmz0O5; Wed, 7 Feb 2024 13:02:28 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id C4E259C46C5; Wed, 7 Feb 2024 13:02:28 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.savoirfairelinux.com C4E259C46C5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=savoirfairelinux.com; s=DFC430D2-D198-11EC-948E-34200CB392D2; t=1707328948; bh=pJXroaVZ9MbVDlYIkJN4kCmIjVMtbnSfFQM8MOR33Ic=; h=From:To:Date:Message-ID:MIME-Version; b=rmP6HGES0lprspwL1IqqwOfdk0ricykjtrzCLjBIopGi8lKJUnwkyICjsSG1Uf3gE LGyNoGRuST3U3DaCzYOi2BIcGWRO3fh0wli9e8/h1xfkdAftGMVZoF2vJt5XclpVUo CXi70ExD5/1piWlp+yxSp0d6GX8v/O8Q5w1VB2qT0FRxGtteTNKZVh3KtVSxy5pwED p7aSNCJsjBCoJqoFWX5EX/5y32JkfscHRHflAz/RQtZjOT2vATFklchrKDT7UEwTD0 N9zQR+mxzHJqoehulkKUuuX7CGBaobAkbSGdKiU6rR6GM/sU1J8IGecTgEGEFB9jwC uc+gYrXB0an+g== X-Virus-Scanned: amavis at mail.savoirfairelinux.com Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavis, port 10026) with ESMTP id g491560bh9fL; Wed, 7 Feb 2024 13:02:28 -0500 (EST) Received: from pcperry.mtl.sfl (unknown [192.168.51.254]) by mail.savoirfairelinux.com (Postfix) with ESMTPSA id 9C7039C43D6; Wed, 7 Feb 2024 13:02:28 -0500 (EST) From: Charles Perry <charles.perry@savoirfairelinux.com> To: mdf@kernel.org Cc: avandiver@markem-imaje.com, bcody@markem-imaje.com, Charles Perry <charles.perry@savoirfairelinux.com>, Wu Hao <hao.wu@intel.com>, Xu Yilun <yilun.xu@intel.com>, Tom Rix <trix@redhat.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Michal Simek <michal.simek@amd.com>, kishore Manne <nava.kishore.manne@amd.com>, linux-fpga@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 2/5] dt-bindings: fpga: xlnx,fpga-slave-serial: rename gpios Date: Wed, 7 Feb 2024 13:01:25 -0500 Message-ID: <20240207180142.79625-3-charles.perry@savoirfairelinux.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240207180142.79625-1-charles.perry@savoirfairelinux.com> References: <20240207180142.79625-1-charles.perry@savoirfairelinux.com> 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-Transfer-Encoding: quoted-printable X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790264776010573229 X-GMAIL-MSGID: 1790264776010573229 |
Series |
fpga: xilinx-selectmap: add new driver
|
|
Commit Message
Charles Perry
Feb. 7, 2024, 6:01 p.m. UTC
By convention, gpio consumer names should not contain underscores
(prog_b here) and shouldn't contain active low suffixes (-b here).
Signed-off-by: Charles Perry <charles.perry@savoirfairelinux.com>
---
.../bindings/fpga/xlnx,fpga-slave-serial.yaml | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
Comments
On 07/02/2024 19:01, Charles Perry wrote: > By convention, gpio consumer names should not contain underscores > (prog_b here) and shouldn't contain active low suffixes (-b here). > > Signed-off-by: Charles Perry <charles.perry@savoirfairelinux.com> > --- > .../bindings/fpga/xlnx,fpga-slave-serial.yaml | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/Documentation/devicetree/bindings/fpga/xlnx,fpga-slave-serial.yaml b/Documentation/devicetree/bindings/fpga/xlnx,fpga-slave-serial.yaml > index 614d86ad825f3..650a4d8792b64 100644 > --- a/Documentation/devicetree/bindings/fpga/xlnx,fpga-slave-serial.yaml > +++ b/Documentation/devicetree/bindings/fpga/xlnx,fpga-slave-serial.yaml > @@ -36,7 +36,7 @@ properties: > reg: > maxItems: 1 > > - prog_b-gpios: > + prog-gpios: Please deprecate old property and add allOf excluding the usage of both. Driver still parses old property, so we should have it documented. https://lore.kernel.org/all/20230118163208.GA117919-robh@kernel.org/ Best regards, Krzysztof
On Feb 11, 2024, at 10:39 AM, Krzysztof Kozlowski krzysztof.kozlowski@linaro.org wrote: > On 07/02/2024 19:01, Charles Perry wrote: >> By convention, gpio consumer names should not contain underscores >> (prog_b here) and shouldn't contain active low suffixes (-b here). >> >> Signed-off-by: Charles Perry <charles.perry@savoirfairelinux.com> >> --- >> .../bindings/fpga/xlnx,fpga-slave-serial.yaml | 12 ++++++------ >> 1 file changed, 6 insertions(+), 6 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/fpga/xlnx,fpga-slave-serial.yaml >> b/Documentation/devicetree/bindings/fpga/xlnx,fpga-slave-serial.yaml >> index 614d86ad825f3..650a4d8792b64 100644 >> --- a/Documentation/devicetree/bindings/fpga/xlnx,fpga-slave-serial.yaml >> +++ b/Documentation/devicetree/bindings/fpga/xlnx,fpga-slave-serial.yaml >> @@ -36,7 +36,7 @@ properties: >> reg: >> maxItems: 1 >> >> - prog_b-gpios: >> + prog-gpios: > > Please deprecate old property and add allOf excluding the usage of both. > Driver still parses old property, so we should have it documented. > > https://lore.kernel.org/all/20230118163208.GA117919-robh@kernel.org/ > > Best regards, > Krzysztof Ok. Thank you for the example. Regards, Charles
On Wed, Feb 07, 2024 at 01:01:25PM -0500, Charles Perry wrote: > By convention, gpio consumer names should not contain underscores > (prog_b here) and shouldn't contain active low suffixes (-b here). Yes, that is the preference, but we are stuck with supporting the old name. It is not worth it to carry both in the binding and kernel. Rob
On Feb 15, 2024, at 8:32 AM, Rob Herring robh@kernel.org wrote: > On Wed, Feb 07, 2024 at 01:01:25PM -0500, Charles Perry wrote: >> By convention, gpio consumer names should not contain underscores >> (prog_b here) and shouldn't contain active low suffixes (-b here). > > Yes, that is the preference, but we are stuck with supporting the old > name. It is not worth it to carry both in the binding and kernel. > > Rob Ok, I'll go back to "prog_b", "init-b" and drop patch 2 and 3 for v4. Regards, Charles
diff --git a/Documentation/devicetree/bindings/fpga/xlnx,fpga-slave-serial.yaml b/Documentation/devicetree/bindings/fpga/xlnx,fpga-slave-serial.yaml index 614d86ad825f3..650a4d8792b64 100644 --- a/Documentation/devicetree/bindings/fpga/xlnx,fpga-slave-serial.yaml +++ b/Documentation/devicetree/bindings/fpga/xlnx,fpga-slave-serial.yaml @@ -36,7 +36,7 @@ properties: reg: maxItems: 1 - prog_b-gpios: + prog-gpios: description: config pin (referred to as PROGRAM_B in the manual) maxItems: 1 @@ -46,7 +46,7 @@ properties: config status pin (referred to as DONE in the manual) maxItems: 1 - init-b-gpios: + init-gpios: description: initialization status and configuration error pin (referred to as INIT_B in the manual) @@ -55,9 +55,9 @@ properties: required: - compatible - reg - - prog_b-gpios + - prog-gpios - done-gpios - - init-b-gpios + - init-gpios additionalProperties: false @@ -72,8 +72,8 @@ examples: spi-max-frequency = <60000000>; spi-cpha; reg = <0>; - prog_b-gpios = <&gpio0 29 GPIO_ACTIVE_LOW>; - init-b-gpios = <&gpio0 28 GPIO_ACTIVE_LOW>; + prog-gpios = <&gpio0 29 GPIO_ACTIVE_LOW>; + init-gpios = <&gpio0 28 GPIO_ACTIVE_LOW>; done-gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; }; };