Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1425565lqg; Sun, 3 Mar 2024 09:22:20 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUahQyl7JjHwUKWmk6qsXtHKvDAzuuNgnnNDwd2A38+wVBOnyShEWYkzF2dl7BBKB3vCozIXGaSCHFAeJJnMqTwEMcictTnSbbRtazmAg== X-Google-Smtp-Source: AGHT+IHIo3OF6xQrUY4J8Lq8pBFXipOkiQl9N2AgJZepFIzAwHSsAtdTTOpSfCh6+MwzaNde4M/o X-Received: by 2002:a05:6a20:958a:b0:1a1:4ded:c9d2 with SMTP id iu10-20020a056a20958a00b001a14dedc9d2mr2649369pzb.41.1709486540270; Sun, 03 Mar 2024 09:22:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709486540; cv=pass; d=google.com; s=arc-20160816; b=O9u+azxPpqoEQKk7BydCnVpFW0oCkSALVEDS4kSWTSagc1FZdhfOe/tHo6PPQLfi+y ijfI95QQl0A393s8Bd+OGJtWSfmiXkqeALdFspvQuicmdv7TtB5ybB9iuZut4BLdvCFs 2TbexjlitxK/iYPDnCKii0Ke0R2WNTGRsJtYvDhTIVcDcBWGyHAVeExPK03vE58dSIKH gYMj1bEIu50mfMvjo8S2cchd/u53E2GiVpT5cAdfNYLJEUyjdHlBRpsZd50I5M+HxFhf 3PmXp1MdMzieqztt5RzP/KbTPC0Y24CLdw0pUoprcFx5qgYc1npCWZ54jXAjI+Y7EUr8 j97g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=thread-index:thread-topic:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject :references:in-reply-to:message-id:cc:to:from:date:dkim-signature :dkim-filter; bh=X6z60N3ACA8IZvH3DAutfNtSvNMdf/cqZv1EWMeZFp8=; fh=DejOixvGxaWCqIvE/LTWV7FTa/4niRZ6d2rhR69D4EU=; b=TWYWiau6ZSpjgEfetbWkwB/2xec3nivXzRjxJuQF9NLiGMZ99H8c1efwBFEEV+MAqo JEUkV906kkdhvvjZBTer70PquaVJuA1evDM3s19h+uX0Yw/7eR8RfHm+0wHgBHkbMcA/ D6jdfbUaqbXY+BavAT+mweKlipnZy8k8QZtAXIgAASr8pyEGs7beYTJQ1daEf1ELFxh8 CorAseLWJ4vJ2vIilzLG6+1WH3t0qdWf4PlACcvcdovUTkuSckX9ChrmIClRmwZB+BaO pm8OCfvFXv3VeuNkFympPnfofhvlYTIcny+YL9KCDMzKUUZB5e+w4Q6U7SWQA6C7maKw 9pqA==; 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=LuZ6KfNs; arc=pass (i=1 spf=pass spfdomain=savoirfairelinux.com dkim=pass dkdomain=savoirfairelinux.com); spf=pass (google.com: domain of linux-kernel+bounces-89843-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89843-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id p6-20020a63fe06000000b005dc892988e1si6898184pgh.509.2024.03.03.09.22.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 09:22:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89843-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@savoirfairelinux.com header.s=DFC430D2-D198-11EC-948E-34200CB392D2 header.b=LuZ6KfNs; arc=pass (i=1 spf=pass spfdomain=savoirfairelinux.com dkim=pass dkdomain=savoirfairelinux.com); spf=pass (google.com: domain of linux-kernel+bounces-89843-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89843-linux.lists.archive=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 939C12821B1 for ; Sun, 3 Mar 2024 17:22:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9C2E876416; Sun, 3 Mar 2024 17:22:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=savoirfairelinux.com header.i=@savoirfairelinux.com header.b="LuZ6KfNs" 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 EB7087605C; Sun, 3 Mar 2024 17:22:00 +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=1709486523; cv=none; b=XcygHWcUi+raM/orxzVwoItn2asVZ/dtrECl3ITM7UQ+IkkgJy5BsbckpnfzI1SLZ4fASUq6bAS9dhd/o2a7W7S1Kesacf3aQS+YtOcEYqsE5ltox0N2zh11/5Ofh009k0I9Hy2X+IFacWFDFkUIQ7bg/jKSz9KfbL/1wR05WEY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709486523; c=relaxed/simple; bh=dXR448fFLUi3c8D39FTZdjizZb2q+kwA8oENxPj5zig=; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject: MIME-Version:Content-Type; b=sYw8fv2V+7ncPfiKmBOG1KpGNatK8Kal45cp3KXYWHkFKrrHL/vqAaBx32fQXdX8dXynDRWcE7SNp3qwkDe9qWB4NZU5HnbH6g4gf2Q74BHCbO/MhGXRs/0MXQ0cFx07iOZ4pMhNGK05ZEHPtDLckQgUaKaUlhqpIfDgZErbnoI= 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=LuZ6KfNs; 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 CF91C9C53A7; Sun, 3 Mar 2024 12:21:58 -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 8IGxb9hf7w43; Sun, 3 Mar 2024 12:21:57 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id C39B69C53A8; Sun, 3 Mar 2024 12:21:57 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.savoirfairelinux.com C39B69C53A8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=savoirfairelinux.com; s=DFC430D2-D198-11EC-948E-34200CB392D2; t=1709486517; bh=X6z60N3ACA8IZvH3DAutfNtSvNMdf/cqZv1EWMeZFp8=; h=Date:From:To:Message-ID:MIME-Version; b=LuZ6KfNsatHWX0Xw339nJ0GCdVDLBxwNICLWskMqZx8Z2FpywSvLXMaNexTuB3rVO 6bnwPHmfEzflBBg5csGvFZ4+IjpP4e3qewoX8VLFaMMqjZZXV6XDUAwdipnXBLSwv6 qlXvb09dwo2MC8m59K4NtIIlr8IzoSEc633xSZEE5E8AiXEvn+jFJ4n05ZmGcjWdkN ZJPju8Nrp+PsL5tI0jCXEoplmMVeDkQTNodtW7E5unYZ8BqbtMEk9SGCXhtI5tanBq DnHxWD/9kKjxjjEyaVViweDyL1+PoEzavhW49Cs7q7C8ScUkpamBAgYpvbIVyS1WUj iCrWTAeb/kz4w== 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 OLUM838hYjhr; Sun, 3 Mar 2024 12:21:57 -0500 (EST) Received: from mail.savoirfairelinux.com (mail.savoirfairelinux.com [192.168.48.237]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 984849C53A7; Sun, 3 Mar 2024 12:21:57 -0500 (EST) Date: Sun, 3 Mar 2024 12:21:57 -0500 (EST) From: Charles Perry To: Krzysztof Kozlowski , Rob Herring , yilun xu Cc: mdf , Allen VANDIVER , Brian CODY , hao wu , Tom Rix , krzysztof kozlowski+dt , Conor Dooley , Michal Simek , linux-fpga , devicetree , linux-kernel , linux-arm-kernel Message-ID: <1012793477.1508198.1709486517581.JavaMail.zimbra@savoirfairelinux.com> In-Reply-To: <4a9f0eef-590b-45df-92bc-b63ad9282e18@linaro.org> References: <20240221195058.1281973-1-charles.perry@savoirfairelinux.com> <20240221195058.1281973-3-charles.perry@savoirfairelinux.com> <4a9f0eef-590b-45df-92bc-b63ad9282e18@linaro.org> Subject: Re: [PATCH v4 2/3] dt-bindings: fpga: xlnx,fpga-selectmap: add DT schema 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: 7bit X-Mailer: Zimbra 8.8.15_GA_4581 (ZimbraWebClient - FF123 (Linux)/8.8.15_GA_4581) Thread-Topic: dt-bindings: fpga: xlnx,fpga-selectmap: add DT schema Thread-Index: HnW++BP3eG91lJsFnUADYrmozr5KCw== On Feb 27, 2024, at 3:10 AM, Krzysztof Kozlowski krzysztof.kozlowski@linaro.org wrote: > On 21/02/2024 20:50, Charles Perry wrote: >> Document the SelectMAP interface of Xilinx 7 series FPGA. >> >> Signed-off-by: Charles Perry >> --- >> .../bindings/fpga/xlnx,fpga-selectmap.yaml | 86 +++++++++++++++++++ >> 1 file changed, 86 insertions(+) >> create mode 100644 >> Documentation/devicetree/bindings/fpga/xlnx,fpga-selectmap.yaml >> >> diff --git a/Documentation/devicetree/bindings/fpga/xlnx,fpga-selectmap.yaml >> b/Documentation/devicetree/bindings/fpga/xlnx,fpga-selectmap.yaml >> new file mode 100644 >> index 0000000000000..08a5e92781657 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/fpga/xlnx,fpga-selectmap.yaml >> @@ -0,0 +1,86 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/fpga/xlnx,fpga-selectmap.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Xilinx SelectMAP FPGA interface >> + >> +maintainers: >> + - Charles Perry >> + >> +description: | >> + Xilinx 7 Series FPGAs support a method of loading the bitstream over a >> + parallel port named the SelectMAP interface in the documentation. Only >> + the x8 mode is supported where data is loaded at one byte per rising edge of >> + the clock, with the MSB of each byte presented to the D0 pin. >> + >> + Datasheets: >> + >> https://www.xilinx.com/support/documentation/user_guides/ug470_7Series_Config.pdf >> + >> +allOf: >> + - $ref: /schemas/memory-controllers/mc-peripheral-props.yaml# >> + >> +properties: >> + compatible: >> + enum: >> + - xlnx,fpga-xc7s-selectmap >> + - xlnx,fpga-xc7a-selectmap >> + - xlnx,fpga-xc7k-selectmap >> + - xlnx,fpga-xc7v-selectmap >> + >> + reg: >> + description: >> + At least 1 byte of memory mapped IO >> + maxItems: 1 >> + >> + prog_b-gpios: > > I commented on this and still see underscore. Nothing in commit msg > explains why this should have underscore. Changelog is also vague - > describes that you brought back underscores, instead of explaining why > you did it. > > So the same comments as usual: > > No underscores in names. > > Best regards, > Krzysztof Hello Krzysztof, Yes, I've gone full circle on that issue. Here's what I tried so far: 1) Reuse the same gpio names: Duplicates errors of the past, Krzysztof doesn't like it. 2) Different gpio names for new driver only: Makes the driver code overly complicated, Yilun doesn't like it. 3) Change gpio names for both drivers, deprecate the old names: Makes the DT binding and the driver code overly complicated, Rob doesn't like it. I think that while the driver code shouldn't be the driving force for the DT spec, it can be a good indication that the spec is unpractical to implement. In this case, there are two interfaces on a chip that uses the same GPIO protocol, it would only make sense that they use the same names, this discards solution #2. That leaves us with #1 or #3, which is to ask if the added complexity to the driver code and DT binding is worth it for a gain in naming convention. There might also be another solution that I haven't seen. Regards, Charles