Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp4549558ybg; Mon, 8 Jun 2020 10:34:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9+YAXVUIX48BW+MzRUs98UzvVe/tBL0P+HWrVOXWDjuVD9ZImB+AeJAsVcnVidcRjMeQf X-Received: by 2002:aa7:c558:: with SMTP id s24mr22021809edr.237.1591637681094; Mon, 08 Jun 2020 10:34:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591637681; cv=none; d=google.com; s=arc-20160816; b=q5DQQzWZ/S7EoRnt5lkPTEff0GHAYzPxre59LuPz2lXO72oo1GSNDv15DKEyOs41r1 k+gwwl/OAIRVyLovM4VdbvJNgBPTrJxqjltHMd911GJwF2jBIu4CzgmKtq+v1km4w+LK lnBWPuOWCVGpcmx4BdgtziYjH2WrAmXJyDl6ulUMMACIWyZ8qgFZu9RTGpvSVr+VwFfq xeF/+2y1PcFu+BfrMmvYlOrG5xbAt2pnLN9xvU9awI1+2Tdw6I37c0z5vus+jhkBi71p EFnE21U1LVLKB1ScV1/MeKSi5zzBkuirhoOOdcNnFPfVu1AMRa177Chc3H6X5t9Dd3qT 8+Cg== 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=ZNiDF0QbRkAC5PAOtg/PZzyEBv0aXwpLIdiYmMTWuTc=; b=sMRSzRPFl9wfWeFtvxQIbSsaNmDjbOnH81i97k36P/KHrOV1XnJHGV6hTl5QR61R7C msxh6iZxP/AL7QbADf4+PJJKRybTtMhml59TWesn7hSjYJiSN81gEdYG73wXODcxBm3/ qMcu99zP/pmSCU+Ok0L8lE3k5yeHDnFuxOOvP6l1G/Pz6LEoPuyfmuYC0njlAz58sXei n9DW3+bm6lMSSwt1Lb5Eqk1a1wtiY1kPlW0egB5tr3VU0CXdokIIX8QSPx2j/+UFWH9R BFc932Y7hzfkWRflgkuRszbffKyytkzGIoY507ZJgqaZ3hOXeLp9WVJEwCX4KPn8+wqJ ylUg== 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 fy2si9486202ejb.11.2020.06.08.10.34.17; Mon, 08 Jun 2020 10:34:41 -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 S1730084AbgFHOrR (ORCPT + 99 others); Mon, 8 Jun 2020 10:47:17 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:39789 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729958AbgFHOrQ (ORCPT ); Mon, 8 Jun 2020 10:47:16 -0400 Received: by mail-ot1-f67.google.com with SMTP id g5so13825243otg.6; Mon, 08 Jun 2020 07:47:15 -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=ZNiDF0QbRkAC5PAOtg/PZzyEBv0aXwpLIdiYmMTWuTc=; b=b+hF0HVggEGlmJeLVLQUigCTohD01p4PxOaneGxkPxViDAr3uzMNjwRcEoOkSd1WRt UY5KU2J7WgcWTQqZCzFa20V2iUnspwT3vAlkcBIskKrJtszfAawtnSRJ1rq1A/S33x5B MRUkC3NDA1h4QV7ZPyw0lCouQL0AUrBpaagNOagaB/IipBw+e8HNOHIYnQW+B19Uiuvf ceIGbLU2cdjbFwo1puzAj4n4k6IwTJf1CLX3B8L6PgrPG8xI5aIuWstSzb0KrH4y4vQQ iAYhnMXcYnFA2Mc/E5AjdO+t6K/pefcT+fSVtgxkX9Z+7GG/Lrf31Erp3mp4TgeIGJ+W urww== X-Gm-Message-State: AOAM532emiWgISRNWtfzfyrWZ430nLUItyyvNBYtZNw/0ASwxKLX8+Zg TRAB3EyEUhdw8qznc4wY3yz59W17t7gUha8WnZ8CfQ== X-Received: by 2002:a9d:62c2:: with SMTP id z2mr17492225otk.145.1591627635517; Mon, 08 Jun 2020 07:47:15 -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: <1591555267-21822-3-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> From: Geert Uytterhoeven Date: Mon, 8 Jun 2020 16:47:03 +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: Magnus Damm , Rob Herring , Linux-Renesas , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List , Prabhakar 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 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-"? > @@ -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. > + > + 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. > +}; > + > +&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. 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