Received: by 2002:a05:6520:3645:b029:c0:f950:43e0 with SMTP id l5csp161172lki; Tue, 16 Mar 2021 21:43:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvn4Lhb4a9DkVtYceEdSz4FZTwpQKS6ZaoHQUFs+ttOp0MRSL0HJ7Az5vtR0yd+A+iw2ZZ X-Received: by 2002:aa7:c907:: with SMTP id b7mr40628842edt.37.1615956219469; Tue, 16 Mar 2021 21:43:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615956219; cv=none; d=google.com; s=arc-20160816; b=fJLQfh2m9z/xB03ona4W8BR/fTRyevIYmDv9RAWlmlYYhaFEZlKTFH5oBWVd4t9wyi Rgr3CK/ZvlI3/wsjXpaaqw48YL0qpl+bwbCb3++6yi9WXa2UDeEaaN/EcVtfa05Z5McY iD+i7f5Ly7/VRU43Kzzq5rmXeY6YjBXExAbF7CwL8pBaphfBRqJJytK5ItLOB/usX1jH a1HvAcsN1hvCaXYqx536rqoFXFAHiOL3xtuFD6WYps7ePHuI8oIWZojsswGW6R8h80w4 Ux5uckywW3vIXxEK0q4PjoZCc2zP13zd05tbHGbat8R66oVJ5vN9RLHlyhR81mBvNmwx EdOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=RxzVzaQfgXYz8ydNKeFmWagcL6oo0NX1A8C+kfVFZQ8=; b=yIRbgXtgIJvXHK3NyV1XY2pLezsiYH9YmkOvHcliLDqwcbU/+V98DBcnGXH28kjHWh 4YqS9ADfM6bq72P/D5SCghuXftNrpfnKPxDo3VoYPfu4f+Nzd1CVAM5hZOrm7qXb8OrX +Rx4WlhMwD8qRj/ZeP5KWPxRuM/axBi4HzjKE7DwCUD1F4nTAlWo+nUDig3M8XGQrTp7 nE74Zns28zyi60/T03U1wlAXuap0D+TyfHDbL++t1Iq/5UgfbKH1z92X6cIzuIqrs8T4 kwnJww4v0+xcq97qznMFgEeO9KrS5lQV3xrTiHz0voWeZu2SOblDW7pVSEFQAkEYw3wV lXlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DseltBcr; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h25si16432533eje.653.2021.03.16.21.43.06; Tue, 16 Mar 2021 21:43:39 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DseltBcr; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229506AbhCQEji (ORCPT + 99 others); Wed, 17 Mar 2021 00:39:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbhCQEjH (ORCPT ); Wed, 17 Mar 2021 00:39:07 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5A10C06174A; Tue, 16 Mar 2021 21:39:06 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id 16so1503103ljc.11; Tue, 16 Mar 2021 21:39:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RxzVzaQfgXYz8ydNKeFmWagcL6oo0NX1A8C+kfVFZQ8=; b=DseltBcrTEORJTvKX7i8YctxoVG0MXqz2BT28bVNnuRX9NYat3Gy8T7o51GsDK7HNs HxOlvl0xfPJIQgP1F5WA0gijlc6MdSJcQgVjjVmCt8Q6Tu/ykVghG1Kxwy0VsyvVYnq8 I51VHmRaQwApankQRB9H9eH9sHt4yezvZYO7Uv/2K3kLh0Jb1v76YLKv27FmrKocMn5w /btsOtcofrj/6hZTZ8s6dVI56Kj+EY7G+ol/VBc4FpfPRKKckITNsXf1JdGFyv2CzoO/ 8RhvWXY6tuG+D4zcxf1cXOtTzf2f/oY1xMvEhYoGe7Ts5lQrYfJYCGJtUvp93fTM/TDm eKzw== 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; bh=RxzVzaQfgXYz8ydNKeFmWagcL6oo0NX1A8C+kfVFZQ8=; b=eWgWCMUvQjE298kqqEIOhKJfbBklhT5WFh+qWHaBnMHBOfHx4dzbTGuWgwMs9l2Yz0 El/uoCRVVXLVIfoCDr+bJ2c0qcjDuTAZzmm1FO2JKbqt+mrOmJhfVDx4D8kgyNXbh/07 57NP7CjUbhzKo8OdLW2j4d/Y9EKzkRNKCF81J5NAFdi+W6UyfXFolmLSdb0+vR52EVgw E/dfy6MiHkAeXVOPXLCapHG31swDcxQNfKNe8/8t6CRENht6C4jIdDJ66pLRWU91yUf5 lYA6bnsq4EF/5ISJVu6fI5jAHhVxJryh2cJAtZyr0+52FZ0KpHuL6x0wq3KQECjGAf+S lLqA== X-Gm-Message-State: AOAM532o9l3OAFqgEjwVPJJOUh/OKeN0j/yI7ynlP74SpYFF7KhHqcAu QXTi8hJWNzkvzarnjoQE6BZ6Q/FbuOfiH87H+XY= X-Received: by 2002:a2e:a54b:: with SMTP id e11mr1182129ljn.458.1615955945356; Tue, 16 Mar 2021 21:39:05 -0700 (PDT) MIME-Version: 1.0 References: <20210316150033.15987-1-cnsztl@gmail.com> <20210316193839.GA28184@duo.ucw.cz> In-Reply-To: <20210316193839.GA28184@duo.ucw.cz> From: Tianling Shen Date: Wed, 17 Mar 2021 12:38:53 +0800 Message-ID: Subject: Re: [PATCH v3 2/2] rockchip: rk3399: Add support for FriendlyARM NanoPi R4S To: Pavel Machek Cc: Geert Uytterhoeven , Rob Herring , Heiko Stuebner , Jagan Teki , Chen-Yu Tsai , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Johan Jonker , David Bauer , Jensen Huang , Marty Jones , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux ARM , "open list:ARM/Rockchip SoC..." , Linux Kernel Mailing List , Jacek Anaszewski Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Pavel, On 2021-03-17 03:38, Pavel Machek wrote: > > On Tue 2021-03-16 16:34:50, Geert Uytterhoeven wrote: > > Hi Tianling, > > > > CC Jacek, Pavel > > > > On Tue, Mar 16, 2021 at 4:00 PM Tianling Shen wrote: > > > On 2021-03-16 02:23 Geert Uytterhoeven wrote: > > > > 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") > > > > > > How about using `lan-led`, `sys-led` and `wan-led` here? > > > > Documentation/devicetree/bindings/leds/leds-gpio.yaml says "led-%u" > > is the preferred form, but that anything containing "led" as a substring > > is accepted. So I'd go for "led-lan" etc. > > > > BTW, you can validate your DTB against the leds-gpio DT bindings > > by running: > > > > make dtbs_check > > DT_SCHEMA_FILES=Documentation/devicetree/bindings/leds/leds-gpio.yaml > > > > Background info for CCed parties: > > > https://lore.kernel.org/linux-arm-kernel/20210316150033.15987-1-cnsztl@gmail.com/ > > I don't care much either way, lan-0 is okay as is lan-led. > > but... > > + label = "nanopi-r4s:green:lan"; > + label = "nanopi-r4s:red:sys"; > + label = "nanopi-r4s:green:wan"; > > > It would be good to have common labels, that means LED_FUNCTION_LAN, > LED_FUNCTION_WAN, and figuring out something better than "sys", > possibly LED_FUNCTION_FAULT? LED_FUNCTION_POWER for "sys" would be fine, I think. However, Documentation/leds/leds-class.rst says the form of naming is "devicename:color:function", and according to the given examples, as well as other dts(i), would it be okay to use `green:lan` etc. as the lable? > > Thanks, > Pavel > > -- > http://www.livejournal.com/~pavelmachek Thanks, Tianling.