Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2087349pxb; Sun, 10 Jan 2021 23:53:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJxrh/xLaljT69PcE7ZTyd7wLoRf4rMTcUgIzUeBq+p2frefl4mp7pnaI7SG9ljzlOPwDce3 X-Received: by 2002:a05:6402:c95:: with SMTP id cm21mr13150711edb.294.1610351597967; Sun, 10 Jan 2021 23:53:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610351597; cv=none; d=google.com; s=arc-20160816; b=phW8XvcxHAjl6oglsupkxY7vzAj5PfcGcFjaB9liZC0TTZZi/SlCJY0PMzdo0VFH+c yjsx5reH0RwePoMP8k1dtAUr0slDlDzoUlbwYWI16BpnQT271NZFeo8wuswzx5lD1dPX 5oDLJ3jdoZVed5HkGQDmWus9Jcb4+EfPdT9/xSTjmi8y6AtR+S4fKHLzOT6hjck/tUKx hWllt8k8KDPFM9voIlnYw3HjCyXEVGJ1GGBKeyW+r8aGT2MPEAnUC0De1gy7ybFYk9f9 RM/rJaxDf6o79EqWhpwDM1I5XsPHinpjxe/Y2vGqutgry3R4jcRu8B+pkqrx/8Dgj0Qr /nig== 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=BGDWVUxq3R5Ei7wkTuf0D+YDHobHoz+0HWzVYY0jXXE=; b=BhksRk3xuVEEdgFJFjoQooSVQC2X7WO5TQjSX1Yke/xUPfJ/ISIPKhEvdUuztbcJXG FtPevjuhAvjY7eUkRZTq92ffynnN2vMsI/WxFYcey6N/Jjh72KMlBrMAM/uN9BI1rBMr qa/Y/RV+Uk5wlJlZN80NA4pK7rKpjX+XmMf2177uMxBNyZ7HHfE+oWlFLd0nUomBdMx/ kQ7QBNGE5VpjdarIyg2vVnoEXIk8diMYxsDaCvJXsRBMALRah1VYlKHiQb9kMzPD4OTd 1A6pGCjS7IImYbt7t6zUVqZxC99yr9YA1szTEWf9uRBnBOr9x2TVBFw/LNLfm+H+rA7f 3EYQ== 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 l15si6282688ejk.413.2021.01.10.23.52.54; Sun, 10 Jan 2021 23:53:17 -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 S1727674AbhAKHvV convert rfc822-to-8bit (ORCPT + 99 others); Mon, 11 Jan 2021 02:51:21 -0500 Received: from gloria.sntech.de ([185.11.138.130]:46496 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727652AbhAKHvV (ORCPT ); Mon, 11 Jan 2021 02:51:21 -0500 Received: from ip5f5aa64a.dynamic.kabel-deutschland.de ([95.90.166.74] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kyryE-0004Eb-3j; Mon, 11 Jan 2021 08:50:34 +0100 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Chen-Yu Tsai Cc: Johan Jonker , Chen-Yu Tsai , Rob Herring , "open list:ARM/Rockchip SoC..." , linux-kernel , linux-arm-kernel , devicetree Subject: Re: [PATCH 3/3] arm64: dts: rockchip: rk3328: Add Radxa ROCK Pi E Date: Mon, 11 Jan 2021 08:50:33 +0100 Message-ID: <2633022.BEx9A2HvPv@diego> In-Reply-To: References: <20210110035846.9155-1-wens@kernel.org> <2241380.NG923GbCHz@diego> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Montag, 11. Januar 2021, 04:27:47 CET schrieb Chen-Yu Tsai: > On Mon, Jan 11, 2021 at 4:06 AM Heiko St?bner wrote: > > > > Hi, > > > > Am Sonntag, 10. Januar 2021, 16:37:15 CET schrieb Chen-Yu Tsai: > > > > > + vcc_sd: sdmmc-regulator { > > > > > + compatible = "regulator-fixed"; > > > > > + gpio = <&gpio0 RK_PD6 GPIO_ACTIVE_LOW>; > > > > > + pinctrl-names = "default"; > > > > > + pinctrl-0 = <&sdmmc0m1_pin>; > > > > > > > > > + regulator-boot-on; > > > > > + regulator-name = "vcc_sd"; > > > > > > > > regulator-name above other regulator properties > > > > > > That is actually what I was used to, but some other rockchip dts files > > > have all the properties sorted alphabetically. So I stuck with what I > > > saw. > > > > I try to keep it alphabetical except for the exceptions :-D . > > > > regulator-name is such an exception. Similar to compatibles, the > > regulator-name is an entry needed to see if you're at the right node, > > so I really like it being the topmost regulator-foo property - just makes > > reading easier. > > > > (same for the compatible first, then regs, interrupts parts, as well > > as "status-last") > > > > But oftentimes, I just fix the ordering when applying - but seem to have > > missed this somewhere in those "other Rockchip dts files" ;-) . > > I was slightly confused. I looked again and yes regulator-name is always the > first regulator related property. What's off is that in some cases min/max > voltage comes before always-on/boot-on, and in others vice versa. > > For example in the Rock64 and ROC-RK3328-CC device trees, in the fixed > regulators, always-on/boot-on come before min/max voltage, while in the > PMIC the other order is used. That's likely undecidednes on my part ;-) There could be an argument for a "name, voltages, flags" sorting, but on the other hand just keeping it alphabetical with the naming on top creates less special cases. Heiko