From: nobuhiro.iwamatsu@cybertrust.co.jp (Nobuhiro Iwamatsu)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] arm: dts: zynq: Extract common Digilent Zybo board support
Date: Wed, 28 Feb 2018 10:49:37 +0900 [thread overview]
Message-ID: <20180228104937.7444403d@debmouse> (raw)
In-Reply-To: <e681d34a-3884-4586-9ac6-ce9852a78a05@xilinx.com>
Hi, Michal.
Thanks for your review.
On Tue, 27 Feb 2018 13:54:40 +0100
Michal Simek <michal.simek@xilinx.com> wrote:
> On 26.2.2018 01:59, Nobuhiro Iwamatsu wrote:
> > The Digilent Zybo and Zybo Z7 boards are very similar.
> > To avoid duplication, this extract common board parts into own dtsi
> > file.
> >
> > Signed-off-by: Nobuhiro Iwamatsu
> > <nobuhiro.iwamatsu@cybertrust.co.jp> ---
> > arch/arm/boot/dts/zynq-zybo-common.dtsi | 58
> > +++++++++++++++++++++++++++++++++
> > arch/arm/boot/dts/zynq-zybo-z7.dts | 45
> > ++----------------------- arch/arm/boot/dts/zynq-zybo.dts |
> > 43 +----------------------- 3 files changed, 61 insertions(+), 85
> > deletions(-) create mode 100644
> > arch/arm/boot/dts/zynq-zybo-common.dtsi
> >
> > diff --git a/arch/arm/boot/dts/zynq-zybo-common.dtsi
> > b/arch/arm/boot/dts/zynq-zybo-common.dtsi new file mode 100644
> > index 000000000000..9c9a92d59cc7
> > --- /dev/null
> > +++ b/arch/arm/boot/dts/zynq-zybo-common.dtsi
> > @@ -0,0 +1,58 @@
> > +/*
> > + * Copyright (C) 2011 - 2014 Xilinx
> > + * Copyright (C) 2012 National Instruments Corp.
> > + *
> > + * This software is licensed under the terms of the GNU General
> > Public
> > + * License version 2, as published by the Free Software
> > Foundation, and
> > + * may be copied, distributed, and modified under those terms.
> > + *
> > + * This program is distributed in the hope that it will be useful,
> > + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> > + * GNU General Public License for more details.
> > + */
> > +/dts-v1/;
> > +#include "zynq-7000.dtsi"
> > +
> > +/ {
> > + aliases {
> > + ethernet0 = &gem0;
> > + serial0 = &uart1;
> > + };
> > +
> > + memory at 0 {
> > + device_type = "memory";
> > + reg = <0x0 0x20000000>;
> > + };
> > +
> > + usb_phy0: phy0 {
> > + #phy-cells = <0>;
> > + compatible = "usb-nop-xceiv";
> > + reset-gpios = <&gpio0 46 1>;
> > + };
> > +};
> > +
> > +&gem0 {
> > + status = "okay";
> > + phy-mode = "rgmii-id";
> > + phy-handle = <ðernet_phy>;
> > +
> > + ethernet_phy: ethernet-phy at 0 {
> > + reg = <0>;
> > + device_type = "ethernet-phy";
> > + };
> > +};
> > +
> > +&sdhci0 {
> > + status = "okay";
> > +};
> > +
> > +&uart1 {
> > + status = "okay";
> > +};
> > +
> > +&usb0 {
> > + status = "okay";
> > + dr_mode = "host";
> > + usb-phy = <&usb_phy0>;
> > +};
> > diff --git a/arch/arm/boot/dts/zynq-zybo-z7.dts
> > b/arch/arm/boot/dts/zynq-zybo-z7.dts index
> > 97e487913f8f..bd94147792cd 100644 ---
> > a/arch/arm/boot/dts/zynq-zybo-z7.dts +++
> > b/arch/arm/boot/dts/zynq-zybo-z7.dts @@ -7,59 +7,18 @@
> > * SPDX-License-Identifier: GPL-2.0+
> > */
> > /dts-v1/;
> > -#include "zynq-7000.dtsi"
> > +#include "zynq-zybo-common.dtsi"
> >
> > / {
> > - model = "Zynq ZYBO Z7 Development Board";
> > + model = "Zynq Zybo Z7 Development Board";
> > compatible = "digilent,zynq-zybo-z7", "xlnx,zynq-7000";
> >
> > - aliases {
> > - ethernet0 = &gem0;
> > - serial0 = &uart1;
> > - };
> > -
> > - memory {
> > - device_type = "memory";
> > - reg = <0x0 0x20000000>;
> > - };
> > -
> > chosen {
> > bootargs = "";
> > stdout-path = "serial0:115200n8";
> > };
> > -
> > - usb_phy0: phy0 {
> > - #phy-cells = <0>;
> > - compatible = "usb-nop-xceiv";
> > - reset-gpios = <&gpio0 46 1>;
> > - };
> > };
> >
> > &clkc {
> > ps-clk-frequency = <33333333>;
> > };
> > -
> > -&gem0 {
> > - status = "okay";
> > - phy-mode = "rgmii-id";
> > - phy-handle = <ðernet_phy>;
> > -
> > - ethernet_phy: ethernet-phy at 0 {
> > - reg = <0>;
> > - device_type = "ethernet-phy";
> > - };
> > -};
> > -
> > -&sdhci0 {
> > - status = "okay";
> > -};
> > -
> > -&uart1 {
> > - status = "okay";
> > -};
> > -
> > -&usb0 {
> > - status = "okay";
> > - dr_mode = "host";
> > - usb-phy = <&usb_phy0>;
> > -};
> > diff --git a/arch/arm/boot/dts/zynq-zybo.dts
> > b/arch/arm/boot/dts/zynq-zybo.dts index e40cafc5ee5b..920294f41aff
> > 100644 --- a/arch/arm/boot/dts/zynq-zybo.dts
> > +++ b/arch/arm/boot/dts/zynq-zybo.dts
> > @@ -12,59 +12,18 @@
> > * GNU General Public License for more details.
> > */
> > /dts-v1/;
> > -#include "zynq-7000.dtsi"
> > +#include "zynq-zybo-common.dtsi"
> >
> > / {
> > model = "Zynq ZYBO Development Board";
> > compatible = "digilent,zynq-zybo", "xlnx,zynq-7000";
> >
> > - aliases {
> > - ethernet0 = &gem0;
> > - serial0 = &uart1;
> > - };
> > -
> > - memory at 0 {
> > - device_type = "memory";
> > - reg = <0x0 0x20000000>;
> > - };
> > -
> > chosen {
> > bootargs = "";
> > stdout-path = "serial0:115200n8";
> > };
> > -
> > - usb_phy0: phy0 {
> > - #phy-cells = <0>;
> > - compatible = "usb-nop-xceiv";
> > - reset-gpios = <&gpio0 46 1>;
> > - };
> > };
> >
> > &clkc {
> > ps-clk-frequency = <50000000>;
> > };
> > -
> > -&gem0 {
> > - status = "okay";
> > - phy-mode = "rgmii-id";
> > - phy-handle = <ðernet_phy>;
> > -
> > - ethernet_phy: ethernet-phy at 0 {
> > - reg = <0>;
> > - device_type = "ethernet-phy";
> > - };
> > -};
> > -
> > -&sdhci0 {
> > - status = "okay";
> > -};
> > -
> > -&uart1 {
> > - status = "okay";
> > -};
> > -
> > -&usb0 {
> > - status = "okay";
> > - dr_mode = "host";
> > - usb-phy = <&usb_phy0>;
> > -};
> >
>
> TBH: I wouldn't bother with this. It is not huge duplication anyway.
> If that file is huge that not a problem with it but it is pretty small
> that's why I can't see a reason for it.
>
OK. I withdraw this patch.
> M
>
>
Best regards,
Nobuhiro
next prev parent reply other threads:[~2018-02-28 1:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-26 0:59 [PATCH 1/2] arm: dts: zynq: Add Digilent Zybo Z7 board Nobuhiro Iwamatsu
2018-02-26 0:59 ` [PATCH 2/2] arm: dts: zynq: Extract common Digilent Zybo board support Nobuhiro Iwamatsu
2018-02-27 12:54 ` Michal Simek
2018-02-28 1:49 ` Nobuhiro Iwamatsu [this message]
2018-02-27 13:02 ` [PATCH 1/2] arm: dts: zynq: Add Digilent Zybo Z7 board Michal Simek
2018-02-28 1:52 ` Nobuhiro Iwamatsu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180228104937.7444403d@debmouse \
--to=nobuhiro.iwamatsu@cybertrust.co.jp \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).