Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3602102pxf; Mon, 15 Mar 2021 13:31:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCc2z67UZcqJLsq9ssHIOzOkDj/BOzAa3pJNn8lgtpOz/EwRa+qAQ6aQPM56GCKo21urMW X-Received: by 2002:a17:906:c9c2:: with SMTP id hk2mr25906927ejb.244.1615840304911; Mon, 15 Mar 2021 13:31:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615840304; cv=none; d=google.com; s=arc-20160816; b=uM1/itLUGCGVazH23d1LOhbJpa5cSIytG3s03Gjq+RPUrCaWfVQwKs341BlnbSPXpE FMDMPIkhD1iQKc3ho5CVEU1b5MRA8mrisrXitA3qzruYMjexuhENlcG+nM7+RkD25rQ0 NEPtGaHN4WuJDp1g2JFOAIsfGwAq7lc768RC1E6SLuhekiB45jPwadRXotWMp/FfUuEQ kew/ErKVR6EmcNvNg/hVDJ+8P93I2uVxwi45DtTBrLMJ1chkF2ABYNGjmvwa4HtO4GtV jfYH9EB7w3qZeAEjkcxugaUNqKkKC/KMncwvkrRteO6Igm3fwQ4L8Uwj2NhO4CbLTbrv tAog== 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; bh=kewIb4eBwe2bf8xWh/xGbm/IeXpJKkLdTcZzCnQupRM=; b=wGY7RIXcTD9CxMx+kSEagcuujj6AvO6A+uvXmT4YyE0cgUpxnCujSs8gBhDsOLDSUZ QbfXAFpagWzCaY/O7n7m8o4LGn4e63xwW5Xd6AlMUH00MJfEE+zk1Y58kojSFEEn8uqQ 2R5YeYfRsCCKeAzynHTyws8F0PL+GHKx9cpYc8X4Zl6FkxSYL1aj9ceq0+655QNqS71H oCN9CB7RrIf1NH7AqKdEut1p6crQ7lACIYpE1glzru63KnKUjk/B9VJLFE2s0j53gI4u zCA09JZSjpASgpBjpjpR+RkeWt881fy2Lb0DLzKeYOhuXcA1iNiHlUk4f/WTEMKS+Sh0 KorQ== 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 ss21si11820008ejb.338.2021.03.15.13.31.22; Mon, 15 Mar 2021 13:31:44 -0700 (PDT) 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 S231129AbhCOSOR convert rfc822-to-8bit (ORCPT + 99 others); Mon, 15 Mar 2021 14:14:17 -0400 Received: from mail-vk1-f180.google.com ([209.85.221.180]:35797 "EHLO mail-vk1-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231225AbhCOSNy (ORCPT ); Mon, 15 Mar 2021 14:13:54 -0400 Received: by mail-vk1-f180.google.com with SMTP id k27so3034337vki.2; Mon, 15 Mar 2021 11:13:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=5ttnIf4YpTk5H8GW6m3wchGnU61LNhA8jE6rda8jNi0=; b=DYq+kIPwNsa9eKlgRfMuHJBf8/TyQ1FsvEVt6A8n6Ont4dG8VzXTTvwKcKdtmicF5E AfN8nRcG8ZXizXAeuKuRYGBPNn2HE8zZjdk9SAKFXBaLOxPbx6PAY6Gp7dN6cAMznR6e w0UyQvvefTMaa2h1wysoWzRSJboIaeD0JlQxGH8BVKde9SihlKZth024Iu3G12EHqSqV OM6Q4VSZxPc43UkxheyC+j7dH+lUkmG7w2ZN2kRm0ub2HrXYuIEGufmAZXabL1LJxe7S LJKrjYe4YkGP2G7djrYrySHzD55QoClPPAUd3uQ0w8LJn74Wuz561FmmqG9XIPlvLhHR RNzw== X-Gm-Message-State: AOAM531jWBzthl7cCgSNwAu1i2dCPrqUYj80dfZE7x5OCz8/GYlKD5al PvKVRCkQHUQqCFhoGIrnFrlIdXAoagPd6bevsSkCfplWofE= X-Received: by 2002:ac5:cbee:: with SMTP id i14mr5887786vkn.1.1615832033240; Mon, 15 Mar 2021 11:13:53 -0700 (PDT) MIME-Version: 1.0 References: <20210313032515.12590-1-cnsztl@gmail.com> <67b314e7-92b9-8025-1a41-9b7da6ff2249@arm.com> <17376355.sWSEgdgrri@diego> In-Reply-To: <17376355.sWSEgdgrri@diego> From: Geert Uytterhoeven Date: Mon, 15 Mar 2021 19:13:41 +0100 Message-ID: Subject: Re: [PATCH v3 2/2] rockchip: rk3399: Add support for FriendlyARM NanoPi R4S To: =?UTF-8?Q?Heiko_St=C3=BCbner?= Cc: Robin Murphy , CN_SZTL , Rob Herring , Jagan Teki , Chen-Yu Tsai , David Bauer , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Johan Jonker , Michael Trimarchi , Marty Jones , Jensen Huang , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux ARM , "open list:ARM/Rockchip SoC..." , Linux Kernel Mailing List , kernel test robot Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Heiko, On Mon, Mar 15, 2021 at 5:52 PM Heiko Stübner wrote: > Am Montag, 15. März 2021, 17:38:37 CET schrieb Geert Uytterhoeven: > > On Mon, Mar 15, 2021 at 5:32 PM Robin Murphy wrote: > > > On 2021-03-13 13:22, CN_SZTL wrote: > > > > Robin Murphy 于2021年3月13日周六 下午7:55写道: > > > >> > > > >> On 2021-03-13 03:25, Tianling Shen wrote: > > > >>> + gpio-leds { > > > >>> + compatible = "gpio-leds"; > > > >>> + pinctrl-0 = <&lan_led_pin>, <&sys_led_pin>, <&wan_led_pin>; > > > >>> + pinctrl-names = "default"; > > > >>> + > > > >>> + lan_led: led-0 { > > > >>> + gpios = <&gpio1 RK_PA1 GPIO_ACTIVE_HIGH>; > > > >>> + label = "nanopi-r4s:green:lan"; > > > >>> + }; > > > >>> + > > > >>> + sys_led: led-1 { > > > >>> + gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>; > > > >>> + label = "nanopi-r4s:red:sys"; > > > >>> + default-state = "on"; > > > >>> + }; > > > >>> + > > > >>> + wan_led: led-2 { > > > >>> + gpios = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>; > > > >>> + label = "nanopi-r4s:green:wan"; > > > >>> + }; > > > > > > Nit: (apologies for overlooking it before) there isn't an obvious > > > definitive order for the LEDs, but the order here is certainly not > > > consistent with anything. The most logical would probably be sys, wan, > > > > Looks like alphabetical sort order to me ;-) > > yep ... led-0, led-1, led-2 looks pretty sorted ;-) Actually I had "lan, sys, wan" in mind ;-) > Generally I'd prefer sorting by node-names ... especially as the phandle > is sort of optional for most things - and they sometimes come and go > in dt-files. The node names are sorted, too, as you've just pointed out... Personally, I'm not so fond of the -%u node names, and prefer -. With the former, it's way too easy to have a silent override in your .dts(i) stack. Cfr. commit 45f5d5a9e34d3fe4 ("arm64: dts: renesas: r8a77995: draak: Fix backlight regulator name") Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds