Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp509765rdb; Tue, 19 Sep 2023 02:02:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGSEpI4StZjvNnuZ0+zFsNzfMLslFWr4U1zyjzmyM4Y2FvsMAaWjEclW0AvHTcIxwDE52a5 X-Received: by 2002:a17:90a:f992:b0:267:faba:705 with SMTP id cq18-20020a17090af99200b00267faba0705mr8839076pjb.10.1695114149022; Tue, 19 Sep 2023 02:02:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695114149; cv=none; d=google.com; s=arc-20160816; b=igAgsbq84m31SL601osj5T3r2uqcOkzXd8zd/9Ejxx20xEu4L/qkucqABuSWIrtQyA 3cz2INadBOnoop/oKscWPUPRKXtFNj7bqk95qYEB5JwG/vb6WVzQkvRBd+5MhGKXzRS1 amawAHa8Hbck5brSMbMfDdqNBVQhRod7UOYL6nDYAjdPegbbO4+YDRtAsfxTLuAxDzu2 JJu8GVeiSRh5H1NCK2JmcFhR5d1ZlzDBpvbd2xrI5dcAzEdRYudVBrvw/0sShN/H9fNE HrX6hY77sDP46m8nkrvnLmEAz4LpmqHS54NIKX4KtmiKA7p1d/33iN471T2y+VIJaKSc mkQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2C5R+GE5HgyhvfhUPI8z1iZSkyDg6yq7TqAIa8LK1bE=; fh=VZBo2p6RQCGSWb3BS+IzjJrJLZ6HUxBZ/a49vnxw2bQ=; b=ObrcnsUGcsYvWSBJMB+pNbIfewq7PJFOg7KY+edWMm4qz16jQS4nBhRahCycne6YA/ YRqgIvjSE1Z/z4LeWIUmuGz9OlLAS0nRv49BjZeAYE5KRGTsvOLeWp7a+51JJZKe+Q0g +LP7nslLlWzzX3z67jlXZTXsQmODez6584bEs5g3wcPECxXYOrrYrR2EfCLzt2vsGemF vzSeKLmKlom/6B0wq4XBHc192M4QJggajH8EtCDk7Fx9dM5Mr3Qa8UoBnKxmsSCSMvlQ xk8gnvUQClVqO6yJQzDAnmDRcBBypVIzOjEYT2D26SxVrRA4xuVIrW392vKt48/7FCLf 9mWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=ciPVGy8W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id b9-20020a633409000000b0057787e286c4si9729952pga.680.2023.09.19.02.02.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 02:02:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=ciPVGy8W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id ECDAE8077998; Tue, 19 Sep 2023 00:56:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230080AbjISH4m (ORCPT + 99 others); Tue, 19 Sep 2023 03:56:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjISH4k (ORCPT ); Tue, 19 Sep 2023 03:56:40 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20811100; Tue, 19 Sep 2023 00:56:35 -0700 (PDT) Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 4EC9E2CF; Tue, 19 Sep 2023 09:54:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1695110097; bh=s3DFbRHL5Uw5SFTtFMVJ56NX7qIx57dK2xMZGJgyHb8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ciPVGy8W/ShWTxFYQVWOTALkChnpfVn/JcxOEXrsHuCp+4QNKmpvxdIHjLNHwe6ud f64D86jTv9RRg/zNsQMy+oIjZmd/YVXjWPeZatjf0oJQm4Uytk2GkCAh76RL6gAUfV z9rgK1o9k2Ez2n1rjEnr8StRhnQthel00SwwKKb8= Date: Tue, 19 Sep 2023 10:56:46 +0300 From: Laurent Pinchart To: Michal Simek Cc: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com, Ashok Reddy Soma , Conor Dooley , Krzysztof Kozlowski , Manikanta Guntupalli , Parth Gajjar , Radhey Shyam Pandey , Rob Herring , Tanmay Shah , Vishal Sagar , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/6] arm64: xilinx: Do not use '_' in DT node names Message-ID: <20230919075646.GB27722@pendragon.ideasonboard.com> References: <5137958580c85a35cf6aadd1c33a2f6bcf81a9e5.1695040866.git.michal.simek@amd.com> <20230918145616.GA16823@pendragon.ideasonboard.com> <3a11c2e6-2086-4b06-9b8c-177cfba06034@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <3a11c2e6-2086-4b06-9b8c-177cfba06034@amd.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 19 Sep 2023 00:56:43 -0700 (PDT) On Tue, Sep 19, 2023 at 09:47:52AM +0200, Michal Simek wrote: > > > On 9/18/23 16:56, Laurent Pinchart wrote: > > Hi Michal, > > > > Thank you for the patch. > > > > On Mon, Sep 18, 2023 at 02:41:12PM +0200, Michal Simek wrote: > >> Character '_' not recommended in node name. Use '-' instead. > >> Pretty much run seds below for node names. > >> s/zynqmp_ipi/zynqmp-ipi/ > >> s/nvmem_firmware/nvmem-firmware/ > >> s/soc_revision/soc-revision/ > >> s/si5335_/si5335-/ > >> > >> Signed-off-by: Michal Simek > > > > The si5335 nodes may be better named after the clock name instead of the > > component type, but that's nitpicking. > > I don't know what's the guidance on this. fixed-clock.yaml is using generic > "clock" name. I have no problem to do it if this is recommended way to go. > > > >> --- > >> > >> arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts | 4 ++-- > >> arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 6 +++--- > >> 2 files changed, 5 insertions(+), 5 deletions(-) > >> > >> diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts > >> index d0091d3cb764..52f998c22538 100644 > >> --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts > >> +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts > >> @@ -123,13 +123,13 @@ ina226 { > >> io-channels = <&u35 0>, <&u35 1>, <&u35 2>, <&u35 3>; > >> }; > >> > >> - si5335_0: si5335_0 { /* clk0_usb - u23 */ > >> + si5335_0: si5335-0 { /* clk0_usb - u23 */ > >> compatible = "fixed-clock"; > >> #clock-cells = <0>; > >> clock-frequency = <26000000>; > >> }; > >> > >> - si5335_1: si5335_1 { /* clk1_dp - u23 */ > >> + si5335_1: si5335-1 { /* clk1_dp - u23 */ > >> compatible = "fixed-clock"; > >> #clock-cells = <0>; > >> clock-frequency = <27000000>; > >> diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi > >> index b61fc99cd911..e50e95cbe817 100644 > >> --- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi > >> +++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi > >> @@ -129,7 +129,7 @@ rproc_1_fw_image: memory@3ef00000 { > >> }; > >> }; > >> > >> - zynqmp_ipi: zynqmp_ipi { > >> + zynqmp_ipi: zynqmp-ipi { > >> bootph-all; > >> compatible = "xlnx,zynqmp-ipi-mailbox"; > >> interrupt-parent = <&gic>; > >> @@ -194,12 +194,12 @@ zynqmp_power: zynqmp-power { > >> mbox-names = "tx", "rx"; > >> }; > >> > >> - nvmem_firmware { > >> + nvmem-firmware { > >> compatible = "xlnx,zynqmp-nvmem-fw"; > >> #address-cells = <1>; > >> #size-cells = <1>; > >> > >> - soc_revision: soc_revision@0 { > >> + soc_revision: soc-revision@0 { > > > > Unless I'm mistaken, this will change the userspace API, as it changes > > the nvmem cell name. Is it an issue ? > > Based on > https://docs.kernel.org/driver-api/nvmem.html#userspace-binary-interface > > The only interface to user space is via nvmem file which has all of them > together. And reference to this node is the same if used inside kernel itself. > That's why I think there is no change in connection to user space API from nvmem > side. Of course entry is listed differently if you parse DT names. Ah my bad. It should be fine then, as long as nobody in the kernel calls nvmem_cell_get("soc_revision"), which I didn't find any occurrence of. -- Regards, Laurent Pinchart