Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp1987555pxb; Sun, 10 Jan 2021 19:31:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzETTeiKNXKTnu1a7IommOug94Yg/EKLYXEOvOHdpoGmEVe6gPSlfyMPeHfqcIG6XuIOkBI X-Received: by 2002:a50:bac4:: with SMTP id x62mr12468783ede.59.1610335895877; Sun, 10 Jan 2021 19:31:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610335895; cv=none; d=google.com; s=arc-20160816; b=ksYR14n8DT3XMzZfWZ3qiqZnuFo4uLE4jB08Ute4qbZ6eRINPv1qFSRXemtbqkNA8a /CgcfheslggRCak3sqllAjk49xAvHVMWH+KtYwk+59+F1NYHLJSeylGU0nVRxCQh/jxE c0pOXdCFI7DkTLuT9DqWvRquYmuwiXx/FtZvjpnEgXg5eUsjbCKamI9AVtj2jBmkTRHL msFQn3mLY6VehAv0WfjlCrAFbBeuBeqzHeQJLwAoM3SEVVU64/7GblUH1ateuHvCxmW8 hdPBhc5GUW/iMAOeopxWG95HOzrDQQljySko49HQNax7Yc9Bh4j40v0j7cQcn8YfNIMZ CwNA== 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=dgvoJYH06W8t5GigwnW7znLmb32VsqXx1k1Zp9Ym9cY=; b=hSHpWzld3OFXbhH+KdSM1nTSTw7Sq5pJJ2GODQb9rputkvuOSQkWMLGd4EYyJG+m/7 fcVg9iP1PJxt9bluaL62DPLPMXs+zZ7vT4HtFKmEOC/tLq9pHpEnArRikQ1O1m7afCtx fPqnflqK0W0PZ2/oub9dLwJKlV34mobJGBYK230aCnaNaRq59s+pTqrG6SVNcqKlhvDU MRLDSjlOKpiT90uPzNLmKVHoWHw/EAgLJF91vWshDp7JR+wFQ5W2gQ5hGl80oSXqVMFs rGLIas41tnBiAAJqfnooijaE75r7gie5uCEfw8Zw27o9E+WQMDSqXXAYiANmDp+2JSiK Dg1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="vC+/XqIJ"; 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 c22si5806405ejx.290.2021.01.10.19.31.00; Sun, 10 Jan 2021 19:31:35 -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="vC+/XqIJ"; 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 S1726229AbhAKD2j (ORCPT + 99 others); Sun, 10 Jan 2021 22:28:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:57208 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725824AbhAKD2i (ORCPT ); Sun, 10 Jan 2021 22:28:38 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id BD28722582; Mon, 11 Jan 2021 03:27:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610335678; bh=+IJTwQXfUOjC47u3kJJ5xfioClx6iqnW8AtMz/ilyYI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=vC+/XqIJpviNUrUgBE6aZgLlbGuNmDDdRdyzRc44p99jaV1ErK3vfllXWOtzCBDSA gkz/SzSSw1zMvtuuuhIkivIpjAoBMmCy5AoehqhOzMpg4lzeikQZ7hY8F/oSuEAdQS Tq9R/mdDBaX7eOEhMeBImcaTZOYkzcjspOGbnkigWAWiZyIZZHOfxIHOCJ7+LZmQ4W 3qO0ZNnelSM+wBh0t5bvQzJxmnYFwdjJqmxPt5S2XLbQcjs/ZhwDBzaIFQ4Ac2CuIF fQbMk/nS76bG1xh5E4NVU4QcdwEV0NhPxhb7xnbxmrn6YX+HQiQZbfRmqo+zgYlOBJ HvlMq+OrUxF4Q== Received: by mail-lj1-f178.google.com with SMTP id p13so1968487ljg.2; Sun, 10 Jan 2021 19:27:57 -0800 (PST) X-Gm-Message-State: AOAM533gSekiURIPgERGBdp46y7C+VrI3UHhf2G56nYtj/hTgQuMaMzl ZGqiteSwqci2BB8s3VSAcf9Drqf4T1vq+jRtPR8= X-Received: by 2002:a2e:89d7:: with SMTP id c23mr6270072ljk.282.1610335676076; Sun, 10 Jan 2021 19:27:56 -0800 (PST) MIME-Version: 1.0 References: <20210110035846.9155-1-wens@kernel.org> <381648f9-d650-dddf-59e6-ef32d1e1bb43@gmail.com> <2241380.NG923GbCHz@diego> In-Reply-To: <2241380.NG923GbCHz@diego> From: Chen-Yu Tsai Date: Mon, 11 Jan 2021 11:27:47 +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: Johan Jonker , Chen-Yu Tsai , 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 4:06 AM Heiko St=C3=BCbner wrote: > > 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 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 th= e 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. ChenYu