Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1219821pxb; Wed, 10 Feb 2021 03:12:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJz4f+wrVlrvowTUVL+eIoismna55ZJtyMsFY1lul3o/5rnitOrk0hMZdyrLguJhiefCaDDb X-Received: by 2002:a05:6402:3198:: with SMTP id di24mr2619248edb.340.1612955575242; Wed, 10 Feb 2021 03:12:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612955575; cv=none; d=google.com; s=arc-20160816; b=ykWzwbKcnoBVH/G1pt5AsJbMAzHP1bvooZaU0zYl8PAIZcsME1+nYwsGWBgmMHlHPu /+kovFN4JsE30rFtCiOhkyTBjWhLEikKwGWAAs3kJd+kS2UZLpvc3i4Jvvmsaw8UnB+j JGBFd994Msh4qDXfEe1wgibG6ysbYGyjyiqHnpDVljJTysl8QIU79ytT21g3CKH+68QB rvIKpLcrtp4cZwDjnYElFze0Wjrm3KjBl1llkPaAnj76fpBeZymugYQ7k+CfXzQrwEzr H032/bAMn4HuXtlhVCqGoc6CCqQbbQ+J+J46vIgSeH1mpprU60BykwTiZNJhZLooG5h3 j1Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:subject:from :references:cc:to; bh=IpM19Nsw/VOmbhq+d2dRzji/Vd3A/OT7WdIy4/cO3EU=; b=CZKpg39Droe2S5c89XtbaksGlSeP2TOUq0oqoSkN++cLr1aYX/gui6QmNWnBHRI2uA EyYbKkQ4KGw30xsOPxu9ALjTu/0eOdbMXsRldckGeBLinxotGYjvVEbdi+jeToGmqB2S exIV0TrXbszBDIFGB8M0jgYpQbcZz41NQNm/3oyLMCGsC+YWJ7I/O1aRG0kBPSu9CKiv 8JmeZI20SpF/W0U5NEZMYbSzYQ6jeaZDPRAL/Bb0ztPM3nitjmsGTR2VycXhaCzZ38A+ IIW3f1bV3QzSgsOuwGVcumU/Y2cYeJCdbAPtkz1azWfH1qiZ+fGj3GSqrJufzM3IaEH0 bB/g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d10si1100039edh.147.2021.02.10.03.12.31; Wed, 10 Feb 2021 03:12:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230219AbhBJLL3 (ORCPT + 99 others); Wed, 10 Feb 2021 06:11:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229937AbhBJLIi (ORCPT ); Wed, 10 Feb 2021 06:08:38 -0500 Received: from mail.marcansoft.com (marcansoft.com [IPv6:2a01:298:fe:f::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEEFEC06174A; Wed, 10 Feb 2021 03:07:56 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: marcan@marcan.st) by mail.marcansoft.com (Postfix) with ESMTPSA id 3B9FC41FA3; Wed, 10 Feb 2021 11:07:52 +0000 (UTC) To: Tony Lindgren Cc: Krzysztof Kozlowski , Arnd Bergmann , devicetree@vger.kernel.org, Marc Zyngier , linux-kernel@vger.kernel.org, soc@kernel.org, robh+dt@kernel.org, Olof Johansson , linux-arm-kernel@lists.infradead.org References: <20210204203951.52105-1-marcan@marcan.st> <20210204203951.52105-19-marcan@marcan.st> <20210208110441.25qc6yken4effd6c@kozik-lap> From: Hector Martin Subject: Re: [PATCH 18/18] arm64: apple: Add initial Mac Mini 2020 (M1) devicetree Message-ID: <4481998a-27f6-951e-bb4f-a9d2b95f211f@marcan.st> Date: Wed, 10 Feb 2021 20:07:49 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: es-ES Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/02/2021 19.19, Tony Lindgren wrote: > * Hector Martin 'marcan' [210208 12:05]: >> On 08/02/2021 20.04, Krzysztof Kozlowski wrote: > ... > >>>> + clk24: clk24 { >>> >>> Just "clock". Node names should be generic. >> >> Really? Almost every other device device tree uses unique clock node names. > > Yeah please just use generic node name "clock". FYI, we're still hurting > because of this for the TI clock node names years after because the drivers > got a chance to rely on the clock node name.. > > Using "clock" means your clock driver code won't get a chance to wrongly > use the node name and you avoid similar issues. That means it'll end up like this (so that we can have more than one fixed-clock): clocks { #address-cells = <1>; #size-cells = <0>; clk123: clock@0 { ... reg = <0> } clk456: clock@1 { ... reg = <1> } } Correct? Incidentally, there is just one example in the kernel tree of doing this right (in arch/arm/boot/dts/imx6qdl-tx6.dtsi). All the others that use non-mmio clocks called `clock`, including the various tegra devicetrees, violate the DT spec by not including a dummy reg property matching the unit-address. -- Hector Martin (marcan@marcan.st) Public Key: https://mrcn.st/pub