Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2422728pxb; Sun, 17 Apr 2022 22:37:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQ/gNG97kQGqEZupPN95ZzurqbzXXNuPUwSAwyruGLfx0Gq9Mx3Xv8X9PZKiiMGPAwpCHC X-Received: by 2002:a17:906:3ec7:b0:6d6:e52b:b with SMTP id d7-20020a1709063ec700b006d6e52b000bmr7727321ejj.521.1650260238376; Sun, 17 Apr 2022 22:37:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650260238; cv=none; d=google.com; s=arc-20160816; b=CM18PNOCkjnTFnKqvC3c6GOZVhz+N8mvpB8fjiCAWV/Y8oyJyf3DKm9KUWh0dSQhZT s+nHxEGBirJFRva5ilvm2jjYbgnfkfhOQJDL69gb26PP2nLL/PBGPNwb8X8BCGZs4uZ4 Ya1zJ3mpkDS9D5Ao7OVyMhqoK0asVsyNCQy26JInQAQN+H1y6075rnC5D1vBJKWScGSe Xd2MrIRIsjAagI3H/SS6pEV+YCrEFQoFHVQ7ydPlYpnfdmeuznUgau/um1TGg0MDo3hy nfii+NaQgaIg5MfPEtEGUzWt+vvsoTmWV9ssi3SIgnbC9k8IKm/4TEzgNVGeS1TXOAuP 2H9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=41ZjQStGLK+4SNrBnYd3OB4IpMuYHMC5q411j0tAsgY=; b=iqmVXC02giQBALUAbyKtsxKO576pIHtu7TmNI9rWDVYnKffYau7HmZ+/ohh+GzERfc lXKXgrtzqwfg15jmmJifUI6fCxZzIZnYD7lS3ND46UArGPnPf2Rv0Ja4oSHySt9GkfNd tSQo8tCUSqxnDttbzJdo4zXZrZ1Yak/wzFS5aHmpB4ZOwUp0xFlf60g4/mCSrq0jDeK7 uoWh4mIffR4YuzDKCXhE7Elegx1DWcwd7Kekg/5kPoHbP8JpZ3e0AuBKAu1WnZo7F198 T/vGEvk8nim/dyy2w6wYaG6kdSdyUVaTu2rMqmer3FM3F6oSeCcW7NeyuBluqmquIFmQ QGRQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d13-20020a170906304d00b006df76385c08si5399795ejd.168.2022.04.17.22.36.54; Sun, 17 Apr 2022 22:37:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235045AbiDQU7B (ORCPT + 99 others); Sun, 17 Apr 2022 16:59:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235063AbiDQU6U (ORCPT ); Sun, 17 Apr 2022 16:58:20 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AFB7DD3; Sun, 17 Apr 2022 13:55:41 -0700 (PDT) Received: from [185.156.123.69] (helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ngBvh-0003OQ-Bj; Sun, 17 Apr 2022 22:55:33 +0200 From: Heiko Stuebner To: Peter Geis , Krzysztof Kozlowski Cc: Dongjin Kim , devicetree , arm-mail-list , "open list:ARM/Rockchip SoC..." , Linux Kernel Mailing List Subject: Re: [PATCH 2/2] arm64: dts: rockchip: Add Hardkernel ODROID-M1 board Date: Sun, 17 Apr 2022 22:55:25 +0200 Message-ID: <12089439.O9o76ZdvQC@phil> In-Reply-To: References: <20220329094446.415219-1-tobetter@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_NONE, T_SCC_BODY_TEXT_LINE,T_SPF_HELO_TEMPERROR 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 Am Sonntag, 17. April 2022, 19:45:52 CEST schrieb Krzysztof Kozlowski: > On 16/04/2022 14:07, Peter Geis wrote: > > >>> + dc_12v: dc-12v { > >> > >> Generic node name, so "regulator" or "regulator-0" > > > > Unfortunately, this advice breaks the regulator-fixed driver, which it > > seems cannot cope with a bunch of nodes all named "regulator". > > What exactly cannot cope? You cannot have different device nodes with > the same name but this is not a limitation of regulator but devicetree spec. > > > Setting the regulators as regulator-0 -1 -2 leads to fun issues where > > the regulator numbering in the kernel doesn't match the node numbers. > > There are no "node numbers"... maybe you mean unit addresses? But there > are none here. > > > It also makes it more fun when additional regulators need to be added > > and everything gets shuffled around. > > Usually adding - in subsequent DTS files - means increasing the numbers > so if you have regulator-[012] then just use regulator-[345] in other > files. I see potential mess when you combine several DTSI files, each > defining regulators, so in such case "some-name-regulator" (or reversed) > is also popular approach. so going with dc_12v: dc-12v-regulator { }; i.e. doing a some-name-regulator would be an in-spec way to go? In this case I would definitely prefer this over doing a numbered thing. I.e. regulator-0 can create really hard to debug issues, when you have another accidential regulator-0 for a different regulator in there, which then would create some sort of merged node. Heiko > > > If naming these uniquely to avoid confusion and collisions is such an > > issue, why is it not caught by make W=1 dtbs_check? > > Patches are welcome. :) > > Best regards, > Krzysztof >