Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp533504pxu; Thu, 26 Nov 2020 05:12:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJyXrmGL6h9m/kCsOT0mAWihwceW2P8cq3A9wG/Uaw8vBZzyyuTPW0G/WE8WtXt19sLcM0n+ X-Received: by 2002:a17:906:2602:: with SMTP id h2mr2581308ejc.358.1606396362141; Thu, 26 Nov 2020 05:12:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606396362; cv=none; d=google.com; s=arc-20160816; b=HEWsc/DWCpu7W1WzwPrsaO60ZQYylFQ92h62UlvIUccBhzhSvfuKDDfKL66F0pNdKX 8DetNR+/HlV7e5UOBwQPETSswnbHOOoFTKLHRVo5V7fVF73OLB0ho2Dt6QL6hOpVYhyj +Im90VpCou8j9MwumI4RrseUHmTEm84xe+cEXwU6ErHsFSMdmNVthk5hwohYEtMvPzv0 wLpHsULeGHy67iW5PDTHul0aKMLxnPWdLli89t/gjrsHrixn7eOtF0JiPsRcv5QDBvgv fO2EJKsq0zo/V8W1OR5xbqz/yJEP3OTQt9VpAtkaXrVwjG9zhG3HwvfMQ8U1P3dnOVC+ 2TNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=VKmIqZxCI8NVNA08P3qFAEJ1Jf8cRqufRdNCDIZ8fmI=; b=ocN/b7kM8Vs+huRRND6tTVuOyWIWs4Ltjl52uea9jCXjXi+ahwBG3hMKWjPJyB/kWN B3UyC1GStDTI4jy2KjWtfaWZINm32vudKEWqLpc8uR+gda0AIeFodse2UzjiGdTdpJFb ynAyIVK23j/ZugTcv34qxee1TzeUwFvnnPV4bFXZDxqDcRIh6pvKsPJQp9HZOf704kYq QbiJMYSUvVR9GUBXGo9ADLYchW3ohlUblG1Wfur4koh/yCByFJovvdky5QVfVgUlPTXK ukpzTGR4UD8Kyw0DLabfRqaN69+WYBQNV7tq05aCeI2adIEzCZiPh0aqQ8F79M//16IR 0khw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=SMFhwQdd; 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 6si3402484edv.501.2020.11.26.05.12.19; Thu, 26 Nov 2020 05:12:42 -0800 (PST) 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=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=SMFhwQdd; 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 S2390115AbgKZNK7 (ORCPT + 99 others); Thu, 26 Nov 2020 08:10:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389879AbgKZNK6 (ORCPT ); Thu, 26 Nov 2020 08:10:58 -0500 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AD67C0617A7 for ; Thu, 26 Nov 2020 05:10:57 -0800 (PST) Received: by mail-ej1-x642.google.com with SMTP id o9so2899418ejg.1 for ; Thu, 26 Nov 2020 05:10:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=VKmIqZxCI8NVNA08P3qFAEJ1Jf8cRqufRdNCDIZ8fmI=; b=SMFhwQdd/FUceNer8PQ4A+C0KcPg5v+hnaZYigmnjSV8yKrE2GzjQRueVFtM4TpbAu cmgbHAmic236ekNfRN2SUTghmEpHOsVLpdhH2Hf7H547+oqvX5AimGGKaFbUwWGzCbQo nZhET82cRJ7aqa0UPkZ2WFUs9pqcNJD9ykyIoOhGp1Bqx3SjPib/lQj7JOeF/XVqTXir FYxYbGKGgOO7yyapNz8hLdnTOzllOCz3My/wC3xKmDzkIux73aV9gLJ0l4tcwSSHhMQi aL9yUPuMLetaZi2JSrwTASrRCLdqyhPiHRAifNqqXUjimWUI6kgkiMIvIpW7FrVMUVwo nVYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=VKmIqZxCI8NVNA08P3qFAEJ1Jf8cRqufRdNCDIZ8fmI=; b=MamlwSGS2PWPpzWQoHwsMuMnlYWQuooDJac3lRXsKxp8elYXEfl4Xzan6501hh58V/ 3y9+HL951t9tr2tNnLDGSAzTjlbUdce43dmLrj6rX+jXcsN0zjCV00HTgL8Ta4Z3oApD e+YUTnEPykgXsxpiqBmIrF2K24FhBh49hDGbf9nYt4x3LFkLfveP56HsaDLaYabSf7JE eiARH75+CJbwsy4eh5Q0JFKClIHmJE7YiaDTWh/8dBLrmQATlsbgX0hzI5faBfUfQtG8 hkTQ/fk8qTL4upvpwFDtPJzUvw45Vgny0U6Q3uoWT6hCy27fT1uR1I+6jprA1k3H21eU 747w== X-Gm-Message-State: AOAM532rG8uLh80tKAmoJfM7Qcbsitmq8waA6FLgYLeXnZ4u2iXF7hSf 199D1Mm+DX0pJd+f8Xb5B4K3MQ== X-Received: by 2002:a17:906:a052:: with SMTP id bg18mr2616021ejb.550.1606396256167; Thu, 26 Nov 2020 05:10:56 -0800 (PST) Received: from [192.168.0.105] (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id f16sm3193187edc.44.2020.11.26.05.10.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Nov 2020 05:10:55 -0800 (PST) Subject: Re: [PATCH v2] ARM: zynq: Add Z-turn board V5 To: agriveaux@deutnet.info, michal.simek@xilinx.com, robh+dt@kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20201126070516.85882-1-agriveaux@deutnet.info> From: Michal Simek Message-ID: <88764538-1c7e-ca7f-e138-08090091ae3f@monstr.eu> Date: Thu, 26 Nov 2020 14:10:54 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <20201126070516.85882-1-agriveaux@deutnet.info> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26. 11. 20 8:05, agriveaux@deutnet.info wrote: > From: Alexandre GRIVEAUX > > Adding Z-turn board V5 to resolve the change between: > > "Z-TURNBOARD_schematic.pdf" schematics state version 1 to 4 has Atheros AR8035 > "Z-Turn_Board_sch_V15_20160303.pdf" schematics state version 5 has Micrel KSZ9031 > > Changes v1 -> v2: Instead of using new board, the v2 using a common devicetree > for z-turn boards (zynq-zturn-common.dtsi) and for each board a specific DT > > Signed-off-by: Alexandre GRIVEAUX > --- > arch/arm/boot/dts/Makefile | 1 + > arch/arm/boot/dts/zynq-zturn-common.dtsi | 112 +++++++++++++++++++++++ > arch/arm/boot/dts/zynq-zturn-v5.dts | 15 +++ > arch/arm/boot/dts/zynq-zturn.dts | 101 +------------------- > 4 files changed, 129 insertions(+), 100 deletions(-) > create mode 100644 arch/arm/boot/dts/zynq-zturn-common.dtsi > create mode 100644 arch/arm/boot/dts/zynq-zturn-v5.dts > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index ce66ffd5a1bb..3de85fe42f76 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -1302,6 +1302,7 @@ dtb-$(CONFIG_ARCH_ZYNQ) += \ > zynq-zc770-xm013.dtb \ > zynq-zed.dtb \ > zynq-zturn.dtb \ > + zynq-zturn-v5.dtb \ > zynq-zybo.dtb \ > zynq-zybo-z7.dtb > dtb-$(CONFIG_MACH_ARMADA_370) += \ > diff --git a/arch/arm/boot/dts/zynq-zturn-common.dtsi b/arch/arm/boot/dts/zynq-zturn-common.dtsi > new file mode 100644 > index 000000000000..84f3c85c5bab > --- /dev/null > +++ b/arch/arm/boot/dts/zynq-zturn-common.dtsi > @@ -0,0 +1,112 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Copyright (C) 2015 Andrea Merello > + * Copyright (C) 2017 Alexander Graf > + * > + * Based on zynq-zed.dts which is: > + * Copyright (C) 2011 - 2014 Xilinx > + * Copyright (C) 2012 National Instruments Corp. > + * > + */ > + > +/dts-v1/; > +/include/ "zynq-7000.dtsi" > + > +/ { > + compatible = "xlnx,zynq-7000"; > + > + aliases { > + ethernet0 = &gem0; > + serial0 = &uart1; > + serial1 = &uart0; > + mmc0 = &sdhci0; > + }; > + > + memory@0 { > + device_type = "memory"; > + reg = <0x0 0x40000000>; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + gpio-leds { > + compatible = "gpio-leds"; > + usr-led1 { > + label = "usr-led1"; > + gpios = <&gpio0 0x0 0x1>; > + default-state = "off"; > + }; > + > + usr-led2 { > + label = "usr-led2"; > + gpios = <&gpio0 0x9 0x1>; > + default-state = "off"; > + }; > + }; > + > + gpio-keys { > + compatible = "gpio-keys"; > + autorepeat; > + K1 { > + label = "K1"; > + gpios = <&gpio0 0x32 0x1>; > + linux,code = <0x66>; > + wakeup-source; > + autorepeat; > + }; > + }; > +}; > + > +&clkc { > + ps-clk-frequency = <33333333>; > +}; > + > +&gem0 { > + status = "okay"; > + phy-mode = "rgmii-id"; > + phy-handle = <ðernet_phy>; > + > + ethernet_phy: ethernet-phy@0 { > + }; > +}; > + > +&sdhci0 { > + status = "okay"; > +}; > + > +&uart0 { > + status = "okay"; > +}; > + > +&uart1 { > + status = "okay"; > +}; > + > +&usb0 { > + status = "okay"; > + dr_mode = "host"; > +}; > + > +&can0 { > + status = "okay"; > +}; > + > +&i2c0 { > + status = "okay"; > + clock-frequency = <400000>; > + > + stlm75@49 { > + status = "okay"; > + compatible = "lm75"; > + reg = <0x49>; > + }; > + > + accelerometer@53 { > + compatible = "adi,adxl345", "adxl345", "adi,adxl34x", "adxl34x"; > + reg = <0x53>; > + interrupt-parent = <&intc>; > + interrupts = <0x0 0x1e 0x4>; > + }; > +}; > diff --git a/arch/arm/boot/dts/zynq-zturn-v5.dts b/arch/arm/boot/dts/zynq-zturn-v5.dts > new file mode 100644 > index 000000000000..536632a09a25 > --- /dev/null > +++ b/arch/arm/boot/dts/zynq-zturn-v5.dts > @@ -0,0 +1,15 @@ > +// SPDX-License-Identifier: GPL-2.0 > + > +/dts-v1/; > +/include/ "zynq-zturn-common.dtsi" > + > +/ { > + model = "Zynq Z-Turn MYIR Board V5"; > + compatible = "myir,zynq-zturn-v5", "xlnx,zynq-7000"; > +}; > + > +&gem0 { > + ethernet_phy: ethernet-phy@0 { > + reg = <0x3>; > + }; > +}; > diff --git a/arch/arm/boot/dts/zynq-zturn.dts b/arch/arm/boot/dts/zynq-zturn.dts > index 5ec616ebca08..620b24a25e06 100644 > --- a/arch/arm/boot/dts/zynq-zturn.dts > +++ b/arch/arm/boot/dts/zynq-zturn.dts > @@ -1,114 +1,15 @@ > // SPDX-License-Identifier: GPL-2.0 > -/* > - * Copyright (C) 2015 Andrea Merello > - * Copyright (C) 2017 Alexander Graf > - * > - * Based on zynq-zed.dts which is: > - * Copyright (C) 2011 - 2014 Xilinx > - * Copyright (C) 2012 National Instruments Corp. > - * > - */ > > /dts-v1/; > -/include/ "zynq-7000.dtsi" > +/include/ "zynq-zturn-common.dtsi" > > / { > model = "Zynq Z-Turn MYIR Board"; > compatible = "myir,zynq-zturn", "xlnx,zynq-7000"; > - > - aliases { > - ethernet0 = &gem0; > - serial0 = &uart1; > - serial1 = &uart0; > - mmc0 = &sdhci0; > - }; > - > - memory@0 { > - device_type = "memory"; > - reg = <0x0 0x40000000>; > - }; > - > - chosen { > - stdout-path = "serial0:115200n8"; > - }; > - > - gpio-leds { > - compatible = "gpio-leds"; > - usr-led1 { > - label = "usr-led1"; > - gpios = <&gpio0 0x0 0x1>; > - default-state = "off"; > - }; > - > - usr-led2 { > - label = "usr-led2"; > - gpios = <&gpio0 0x9 0x1>; > - default-state = "off"; > - }; > - }; > - > - gpio-keys { > - compatible = "gpio-keys"; > - autorepeat; > - K1 { > - label = "K1"; > - gpios = <&gpio0 0x32 0x1>; > - linux,code = <0x66>; > - wakeup-source; > - autorepeat; > - }; > - }; > -}; > - > -&clkc { > - ps-clk-frequency = <33333333>; > }; > > &gem0 { > - status = "okay"; > - phy-mode = "rgmii-id"; > - phy-handle = <ðernet_phy>; > - > ethernet_phy: ethernet-phy@0 { > reg = <0x0>; > }; > }; > - > -&sdhci0 { > - status = "okay"; > -}; > - > -&uart0 { > - status = "okay"; > -}; > - > -&uart1 { > - status = "okay"; > -}; > - > -&usb0 { > - status = "okay"; > - dr_mode = "host"; > -}; > - > -&can0 { > - status = "okay"; > -}; > - > -&i2c0 { > - status = "okay"; > - clock-frequency = <400000>; > - > - stlm75@49 { > - status = "okay"; > - compatible = "lm75"; > - reg = <0x49>; > - }; > - > - accelerometer@53 { > - compatible = "adi,adxl345", "adxl345", "adi,adxl34x", "adxl34x"; > - reg = <0x53>; > - interrupt-parent = <&intc>; > - interrupts = <0x0 0x1e 0x4>; > - }; > -}; > Applied. Thanks, Michal -- Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91 w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel - Xilinx Microblaze Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs