Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp4444264ybg; Mon, 8 Jun 2020 08:01:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzO1R3TlYTMhfbptWISx4Qd5/bMDMkBOrL3AZR5Ktx//PCjISchMl46ZmxeRp3vFhjnDUdX X-Received: by 2002:a17:906:509:: with SMTP id j9mr20306784eja.341.1591628514204; Mon, 08 Jun 2020 08:01:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591628514; cv=none; d=google.com; s=arc-20160816; b=Ys9IuIjvdN36dYdvO90PBEnbdR7825bOqhIXL48mrSmCCc8UYRY9/cfMIl71JiwOMX mX6xUhDTvnPrKATEGErELqU+i0gD5gHNTXjba/Cw43wU5jRphjg20GfE0zoxvEewp4is ziY1oZ5oyrdhF9JfJXYdNFLiiQmMGwDmme3QENRdDcCBoWWqOwrUx6wv2MTUJ6sSH/SD K74+yZQBK1dGK154JrE84r9H74s1l4sKChVPwFdp2JC4FFKxjl6Jye5fDTv80Wcq7zCc AabbJiKwRJIq41mVYwr1uGr3ywpyZ3DlgzjGZ2OKWfwH1nWS7ychIMZtm634BTE4akpN TxVw== 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:dkim-signature; bh=sakwAE9UDvgXpfLA/IMovHDdgj7kYeDNiG6uvdI8YnE=; b=mr9yM1wpVxsL76lkXdOc7YhmSIDu5VtZwqB+9iAOw3MZsAn2X8tF4nRQ5wcF6blyZ1 53f5sEzwzNp5zhuOwz38v2Fz9zR7BDBdby3py9nr0Tc/p4/j2hbxmaWXpp9BHA0OnALw Zs5uVfrn4PZOBaTFdIbwcuhzjpzZDWVjoVvdVq6OdF07v8S2TMHQXlUc24BO8tt+YlK7 Xz4bHFa0sNlMZsSFjVfBpxs/gt3p525gkb3DoziykD7XMD4aLQ2ENZQIRxU/zb1hdbF1 RkDiCOufPsrIsJ1yzwV7jyFgcucDOMal7OkGNQGdDoQDeuzMPiH673gCKtCTE04UL+Mu zIVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rbQi1FYi; 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 o19si6621092edr.148.2020.06.08.08.01.29; Mon, 08 Jun 2020 08:01:54 -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=rbQi1FYi; 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 S1730138AbgFHO7j (ORCPT + 99 others); Mon, 8 Jun 2020 10:59:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725965AbgFHO7j (ORCPT ); Mon, 8 Jun 2020 10:59:39 -0400 Received: from mail-oi1-x244.google.com (mail-oi1-x244.google.com [IPv6:2607:f8b0:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E70DEC08C5C2; Mon, 8 Jun 2020 07:59:38 -0700 (PDT) Received: by mail-oi1-x244.google.com with SMTP id s21so15538379oic.9; Mon, 08 Jun 2020 07:59:38 -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=sakwAE9UDvgXpfLA/IMovHDdgj7kYeDNiG6uvdI8YnE=; b=rbQi1FYi5A1FxRR3KxNata4g2VukcskcoNJv5Qe6GITqlJm9i5g/03+xRsa3AR0dBV sDzBrJISTgokP0089gBn849qmwZ7h0J8Fq1fwlLMRgzLpmpflfD13KBKimhz7LJxZbDg nC7y6sg6e2oetrDBTfx+8x9s51LwHIWDQbTEcPlErG6xqhUpfQe/UcyZVP5Be/oM/roe TrC76QRbzmJAA1DyxJ4J+FlIGYy/5DixXGS85dc0MLHjhT3crGx8paNRDme7fH5+k2+b 1QAWja5dHWRBWtfhbj0jLlH6fnk9FCJBNQ6bvbMPo0+VbEmBdVAuG9Sd2bQoMJRjjl4j vo/A== 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=sakwAE9UDvgXpfLA/IMovHDdgj7kYeDNiG6uvdI8YnE=; b=i0A5NwtCabgO8/E+h6X5dQYCiR3/kfTg98SFRy1O3QOPB97Bz196YuQYJ4wwlXjGlT lmKPhGH/BkRK2M6JiJNkWLFFsYlOT1ReB4/NHYLK8UhRKsSnxWxwm4oHtzbpNnn32pcJ ud9hY2sO5XYMEZuKIheqFJgXeqC0dfk7gvTvLAEI6vUjcRaqlSoatctpfkj7c/NWzWM9 6F2RnDTJBpOUchfxgZYMweIwa6dCqP+vaKuZtVrOYdwzbqXEzrFTscvBuLv1hPgrCXn+ EGsCrn/1xkFF3z5mpp2CgBOuGgS6OIWn6D6o7wVcfk6BUZ3aZITbkdMzFqvBhNuAlylj 3bVA== X-Gm-Message-State: AOAM530wTcipqlq53xpbmDdrTfi/UK3wJ9P3npqRL5qH8l+5Y1mM9Pa/ a+d712L+vfqNLiOva9mQUB3Ak9sBe9DLXKSxcOWWZXw8PH4duA== X-Received: by 2002:aca:ea44:: with SMTP id i65mr10535404oih.142.1591628378380; Mon, 08 Jun 2020 07:59:38 -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: "Lad, Prabhakar" Date: Mon, 8 Jun 2020 15:59:11 +0100 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: Geert Uytterhoeven 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 Geert, On Mon, Jun 8, 2020 at 3:47 PM Geert Uytterhoeven wrote: > > Hi Prabhakar, > > 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 > > > --- /dev/null > > +++ b/arch/arm64/boot/dts/renesas/hihope-common-rev2.dtsi > > Perhaps just hihope-rev2.dtsi, i.e. without the "common-"? > Yes makes sense. > > @@ -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. > > + > > + wlan_active_led { > > + label = "yellow:wlan"; > > + gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>; > > + linux,default-trigger = "phy0tx"; > > + default-state = "off"; > > + }; > > + }; > > + > > + wlan_en_reg: regulator-wlan_en { > > + compatible = "regulator-fixed"; > > + regulator-name = "wlan-en-regulator"; > > + regulator-min-microvolt = <1800000>; > > + regulator-max-microvolt = <1800000>; > > + startup-delay-us = <70000>; > > + > > + gpio = <&gpio_expander 1 GPIO_ACTIVE_HIGH>; > > + enable-active-high; > > + }; > > Same for the WLAN regulator, especially as it is referenced from > hihope-common.dtsi. > As the GPIO line differs between the two variants, you just need > to add the gpio property in the revision-specific file. > Agreed will move this to common. > > +}; > > + > > +&hscif0 { > > + bluetooth { > > + compatible = "ti,wl1837-st"; > > + enable-gpios = <&gpio_expander 2 GPIO_ACTIVE_HIGH>; > > + }; > > +}; > > As node is small, and the GPIO line differs from the two variants, > I think duplicating it in both revision-specific files is fine, though. > Agreed. Cheers, --Prabhakar > 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