Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3407964ybt; Tue, 23 Jun 2020 01:17:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQJ1zKe9P88I/s0/qeCLob9C357K2c95HU6LFSJdzo4WuxdaqHZwFJ49JpXAZBYaYtCM2k X-Received: by 2002:a17:906:1513:: with SMTP id b19mr18967995ejd.1.1592900253844; Tue, 23 Jun 2020 01:17:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592900253; cv=none; d=google.com; s=arc-20160816; b=yfw41sGcP4e0OQ0GZoNW1wd9hW2aywYueLNrOVjQX84kcDQlPQ46uOfiiZLx5ydO1r /1+ZiOTNs69BXPKG6+hmMGNFzwd0nYDwNLu2vYPK1OTurCHs2GPZwhql0KoxLOd0c3+P P3o1rxSRIezW51vk13T1Kf1Zr6qz0Ywlc2z86rxhiE2uk5KNbJvlKFbtvwBzYZ6XfRP1 3VnkJTjYVQXfu5ykE6GGc0wQIE/kYTEcBFjnG2GEHcdCACkL29rARZe3PC52swpreOHW bVYrrPdUy4X1ijp3MaTHbI3vdI9N4Vw5IeC6L/QQvLSLYfpgzh5C6lT/ss+HjXuOI5PZ Zsqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=3wMeLPH35thiLGgx624oYmqf+jOSoZ6JS2Lw9OFClkk=; b=rJdJCZu8gFy68DzoEgjh88km2j113lpO0Vth5TUs08vNlQRotMCIgnY9Ot/sGD8gIi DQ/bTVGkKnMb5hQk1nvPMp4nNB5CXMWkg25tM2X+i4uEuPV1bcaXEqurcHtE7Cf8XjiA P0k4asCCCdYBOjCD8of80LW//Fe59r9WVrAObT4wYQEup/iiui32isrRzKww4mMgigdC EYPJwmpjGfP6YqO7X57fqtF0kO1dBykuklwRrI9DH9MoDmTcb3ib+ANG20O62HzoEBeH iOscR+RDsPUVO7tQhhZaWBzRJ8wzfDDgODBtvZFHYdDo91VbDSC+v3BG1+D3nWpffKAl BZGg== 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 t24si3891168ejr.733.2020.06.23.01.17.09; Tue, 23 Jun 2020 01:17:33 -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 S1731716AbgFWIOh (ORCPT + 99 others); Tue, 23 Jun 2020 04:14:37 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:39611 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731543AbgFWIOg (ORCPT ); Tue, 23 Jun 2020 04:14:36 -0400 Received: by mail-ot1-f65.google.com with SMTP id 18so1054484otv.6; Tue, 23 Jun 2020 01:14:34 -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; bh=3wMeLPH35thiLGgx624oYmqf+jOSoZ6JS2Lw9OFClkk=; b=Z4tFwqU5/AyhOKAoij1edIt4RrVRJZeA+Tuy9JTpPxh+3Gov7yELrvIlQxxW/PHFZN N5seybRsXV2IVuYj2fmmFIcW6XnnLwT/VbIRnMUiGOVOJprhNBXdBl/1q06yw464KAO7 gVmIBXMVJWibG7aferITau6ANF/Rn+cLa4meDAHhVb++qsSYz860qbbQyKGLLbm2lbFj pFIYc3MkMMb7O9zh6z+14UubrC+pKJB1cXYn2ETsry3liOAPGvTrvq+3qHfnUo13ikSF mmqKLK4OMO89Q4gs6ce2fc+TEi7heCTruILOZgqJUeLpCi7cSZvNg0XsToC8uwmXfbMu L+5A== X-Gm-Message-State: AOAM5318f8OVytLqgwPV4ylc94kWPbbkR0wY2bJV3POmd8iqpdIuIGW2 LQpLl1nTPnIRuYVmgjl3S0bOfkB5hG50QUTEqkA= X-Received: by 2002:a9d:c29:: with SMTP id 38mr16317291otr.107.1592900074339; Tue, 23 Jun 2020 01:14:34 -0700 (PDT) MIME-Version: 1.0 References: <1591555267-21822-1-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> <1591555267-21822-3-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: From: Geert Uytterhoeven Date: Tue, 23 Jun 2020 10:14:23 +0200 Message-ID: Subject: Re: [PATCH 03/11] arm64: dts: renesas: hihope-common: Separate out Rev.2.0 specific into hihope-common-rev2.dtsi file To: "Lad, Prabhakar" Cc: Lad Prabhakar , Magnus Damm , Rob Herring , Linux-Renesas , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Prabhakar, On Tue, Jun 23, 2020 at 9:51 AM Lad, Prabhakar wrote: > On Mon, Jun 8, 2020 at 3:59 PM Lad, Prabhakar > wrote: > > On Mon, Jun 8, 2020 at 3:47 PM Geert Uytterhoeven wrote: > > > On Sun, Jun 7, 2020 at 8:41 PM Lad Prabhakar > > > wrote: > > > > Separate out Rev.2.0 specific hardware changes into > > > > hihope-common-rev2.dtsi file so that hihope-common.dtsi can be used > > > > by all the variants for RZ/G2M[N] boards. > > > > > > > > Signed-off-by: Lad Prabhakar > > > > Reviewed-by: Marian-Cristian Rotariu > > > > @@ -0,0 +1,101 @@ > > > > +// SPDX-License-Identifier: GPL-2.0 > > > > +/* > > > > + * Device Tree Source for the HiHope RZ/G2[MN] main board Rev.2.0 common > > > > + * parts > > > > + * > > > > + * Copyright (C) 2020 Renesas Electronics Corp. > > > > + */ > > > > + > > > > +#include > > > > + > > > > +/ { > > > > + leds { > > > > + compatible = "gpio-leds"; > > > > + > > > > + bt_active_led { > > > > + label = "blue:bt"; > > > > + gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>; > > > > + linux,default-trigger = "hci0-power"; > > > > + default-state = "off"; > > > > + }; > > > > + > > > > + led0 { > > > > + gpios = <&gpio6 11 GPIO_ACTIVE_HIGH>; > > > > + }; > > > > + > > > > + led1 { > > > > + gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>; > > > > + }; > > > > + > > > > + led2 { > > > > + gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>; > > > > + }; > > > > + > > > > + led3 { > > > > + gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; > > > > + }; > > > > > > led1, led2, and led3 are present on both, so I'd keep them in > > > hihope-common.dtsi. > > > > > The leds defined in hihope-common-rev4.dtsi are as per the label names > > on the schematics/board so that it's easier to identify the LED's by > > name. > > > I was waiting on the above to be confirmed. I can confirm the naming of the LEDs on the rev4 board. However, following the same reasoning, the rev2 LEDs should be renamed led2201, led2202, led2203, and led2402 ;-) Does anyone rely on the names? If not, it may make sense to use the rev4 names for both, in the common file? Not even considering the switches... Seems they forgot to rename switches SW220[123] when renaming LED220[123]. Worse, on rev2, you have SW220_2_/LED220_1_ sharing a GPIO, and SW220_1_/LED220_2_ sharing another one. And on rev4, GP6_11/GP_LED/TSW_0_ is driving LED_4_ and SW220_2_? Conclusion: I don't care how you name them ;-) 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