Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2094286pxb; Mon, 11 Jan 2021 00:08:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJwscLU02E9QiFypXma7cS9gzg6SGnQB01nIHS86TZUAo8pwHVMevyq7BoSLlKWksk85rxAp X-Received: by 2002:a17:907:c01:: with SMTP id ga1mr9625486ejc.488.1610352494086; Mon, 11 Jan 2021 00:08:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610352494; cv=none; d=google.com; s=arc-20160816; b=qBD8ZQ37G6gqBTLFCMdSgoHr+qNTTQMFn7Ewi5NxhAo+kgUrLAAgRHorkk7PX9zW/U hWmYkkUiXvM0jQ//a0DYsTLoFhLCIaRgbSS07vHpSWZN7jd/EyoQ5JOll4YnKinWQPC2 X1Cgv/xy+vcwnZkum9aLm60KSndZ+qs7oxyLwvNSq1X0NK+7dUgFWyYKZV1xP5aRJES3 ssxu6Y4ZJXM951AbiVWL183q8NecPAskyiRsvhM9+6Nvh+mjsAuh79oFRG/wLpYx6/Le ZvaiiLX892oydgZnKpHkqOfOhlkdKtOZAUdTXAHm37d/re6GwxIBKNQCD/pBt6SkI81p ETeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Hv3z+g3mP1UP75HoAXc7+/UNPI4XtEqqW8UE/bCd/to=; b=TK+3e15lO8SVBHXmPjVGaTmfq4bB5C9Pjpo413vT2q5GUodnyaNT6mfjRSiZAfI/uM dGqb+60xXGxdhqI4Nn+q8uYF0w9da6v0iAvelUoD5hZMioUWvL9RvVgFCPYN9kgWPS6z IZ4P9VuybVmT/BKrJAS3DrFmSrT4Igp0/Q8tf7qaH2AG/2khtcNZrWbpLSOj0o5ZRxXr vh8KOeVNcrTW0H3Wv4T64PlE1c9ewvqdAAnRj6nFMuqb/FmTIpBGRXoZqan4n8OX/dn2 zokItoe1cMmVqUBCeMjX/tsvCdTiOhg1VD4RVAq29GNi0yJ0b6zzNvSExpwNyVpcBYJX 5sOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="mkTG3f/N"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u3si5963306edy.299.2021.01.11.00.07.49; Mon, 11 Jan 2021 00:08:14 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="mkTG3f/N"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727723AbhAKIFw (ORCPT + 99 others); Mon, 11 Jan 2021 03:05:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:33442 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725536AbhAKIFw (ORCPT ); Mon, 11 Jan 2021 03:05:52 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id AEB6A22AAD; Mon, 11 Jan 2021 08:05:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610352311; bh=02v3tzqN9AzUV/0Va6HZhKJjrBRDGhuHYnwmkekIVnQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=mkTG3f/NF0dxGlMO5dJ2Jk3U01ihAxH/IDXNRhPmf+4iO4s/H+NOZ6jomrunpHE96 LN9TKFPcYs0u+67CTArn0VsEQN68956SI/BAJ2XhNefnk1Wzq2eu+LjUJDGREARed/ B1SFuGyPz8JucdQkgdeYDfu+o/pIKEQxHRyn4fYY1cqvR9pw2UrZ2gTpYJ5MEgfhb3 Ju16J2nD7KI2KZWOwd3aOxjDxxbGN0Yawc3Nc430aN9O+3bI9OJBKfQBkSThTZzEl+ 4EtGHCIqSsy8ahSPqq6LlRRs1j9vSx9KdA9NSQoEreRTZfAO0yi6MR4aw4cniewj97 L+GL3UKnvMUDw== Received: by mail-lj1-f181.google.com with SMTP id n11so2503267lji.5; Mon, 11 Jan 2021 00:05:10 -0800 (PST) X-Gm-Message-State: AOAM530sy+cZHQgLqQdSse/FMbybflbbKqLubnpXy7+2DMuHAw3zDHZT zYJEyoaXGD60rk2L7tHzIBOwsuWocIT34VIfSCU= X-Received: by 2002:a2e:3503:: with SMTP id z3mr7297395ljz.74.1610352308850; Mon, 11 Jan 2021 00:05:08 -0800 (PST) MIME-Version: 1.0 References: <20210110035846.9155-1-wens@kernel.org> <2241380.NG923GbCHz@diego> <2633022.BEx9A2HvPv@diego> In-Reply-To: <2633022.BEx9A2HvPv@diego> From: Chen-Yu Tsai Date: Mon, 11 Jan 2021 16:04:56 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 3/3] arm64: dts: rockchip: rk3328: Add Radxa ROCK Pi E To: =?UTF-8?Q?Heiko_St=C3=BCbner?= Cc: Chen-Yu Tsai , Johan Jonker , Rob Herring , "open list:ARM/Rockchip SoC..." , linux-kernel , linux-arm-kernel , devicetree Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 11, 2021 at 3:50 PM Heiko St=C3=BCbner wrote: > > Am Montag, 11. Januar 2021, 04:27:47 CET schrieb Chen-Yu Tsai: > > On Mon, Jan 11, 2021 at 4:06 AM Heiko St=C3=BCbner wr= ote: > > > > > > Hi, > > > > > > Am Sonntag, 10. Januar 2021, 16:37:15 CET schrieb Chen-Yu Tsai: > > > > > > + vcc_sd: sdmmc-regulator { > > > > > > + compatible =3D "regulator-fixed"; > > > > > > + gpio =3D <&gpio0 RK_PD6 GPIO_ACTIVE_LOW>; > > > > > > + pinctrl-names =3D "default"; > > > > > > + pinctrl-0 =3D <&sdmmc0m1_pin>; > > > > > > > > > > > + regulator-boot-on; > > > > > > + regulator-name =3D "vcc_sd"; > > > > > > > > > > regulator-name above other regulator properties > > > > > > > > That is actually what I was used to, but some other rockchip dts fi= les > > > > 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 m= akes > > > 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 h= ave > > > missed this somewhere in those "other Rockchip dts files" ;-) . > > > > I was slightly confused. I looked again and yes regulator-name is alway= s 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. And min before max? :D