From patchwork Wed Jun 9 11:45:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 12310019 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 78F7BC48BDF for ; Wed, 9 Jun 2021 12:28:20 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4ADBC613B9 for ; Wed, 9 Jun 2021 12:28:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4ADBC613B9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8Mk0YWpgNwJ8cnSDxlr8HbSpDkaHpBmc/taMrCh2GVs=; b=T1T1E/EsIqVDvB OduEiEX8BCmwVf2++iW/VpYLoiTEAJM1eiHD4Q9FKB499ph9ee+db4LW69vDt0bcYSWVdbGA2untt 6BqEL/sdSmj6KS1dUHT/ouLVZ/9pU7wgU9+ISh22tAQa8Wz/DohNwdBNX6g5FEdzOcdnTfLyS+sZc ukq4i+EQx9uxceYsGZLBgFCWPawSdQifFjOftg+nuZ9awG1TaFhY6Mn0zqViBzrL+Vtn4u6jgPURG oADIARnhwDL/f82Y+39rO+8ZcBL08n3dhgUDl5myh4G+suKIpXGeSt/LEyOLmJaTH0SYsMsiPINbq gK96meVSmBOVonn5TC+A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqxHJ-00DfVC-9I; Wed, 09 Jun 2021 12:25:49 +0000 Received: from mail-wr1-f50.google.com ([209.85.221.50]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqwfy-00DQdi-8I for linux-arm-kernel@lists.infradead.org; Wed, 09 Jun 2021 11:47:15 +0000 Received: by mail-wr1-f50.google.com with SMTP id a20so25193944wrc.0 for ; Wed, 09 Jun 2021 04:47:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=E1EohIqdC72FM7oJ+0Bb3pu1J7HtZfQcXJxneapHVDs=; b=jMK7SSL544Pz9+ssHsN6XkEi2VnlQzCqygce0If2ZnI8wOPgTi1HJHDFbB50FTazsw Thr370vDNGAPJmXNJaEWdioAge/6fadRTmKKzaVHcbdK1lC9KpQo6J/lFCtcQjtT6iBd WTJo6cw61gU3QzuTD+WB/sO5MZM8FAVUOjOV3UoVkkS5KOconBmonM0ImyJogh7DM3OX qGWsFSJ8Bg9Qm/zph6Uf54cTiD33HrywmWh9LyYPTMso7Eojbdajj5FLM2cRvZd9i2Rf zwEgPcPhSnhCBtxU15H1kP80tuzGnNRVPb2uSG+9JtmT7Bs3zpAOFZEO9IDJpqvBFF+k B3WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=E1EohIqdC72FM7oJ+0Bb3pu1J7HtZfQcXJxneapHVDs=; b=QB2vvELFHuSjTGbdDEIuKjVEu4B5lNkQg/OtdyE6fnEyZKgfBPTm7obBXXe4Maj5VU /+fuf/So468aNfZLT1tU0nqhBffBQrWa945HMRPelaI/LXC9Z8OhUn/BGEqV2yKEx8TU o0Xvz6orFOQiG8aIn5rV0CPBk487Kjcos2GMck24sQKCCZIdesjyFNbMNZ2/IddO8SMN uWNlQESPeuPSKbPEwf9qmXg0Q+AcNw6w9LOokWXJiq64f6cVcaQLjtdV6Ydhsr+shonO qm6GU3XWCWSrHIRuoBPujuguSJwS8NjIvSgL4muDK+droyaC1lppKhROPPCsvl0M+894 Rhiw== X-Gm-Message-State: AOAM5307q5qE/XMYzYHPtTiZAMB6owiWzg7XLP3OzJXoW7y4iGFKtWKm eatWQYF3QiPV/l+SOn0XD0xdNQ== X-Google-Smtp-Source: ABdhPJxDbSSDrwL+y/nTPpabJWwtAyckk6kbuvqrbQvjOn28JPbrANIQ2yieRxF9SCJf84YUyz1Wlw== X-Received: by 2002:adf:d1cd:: with SMTP id b13mr8628554wrd.317.1623239172430; Wed, 09 Jun 2021 04:46:12 -0700 (PDT) Received: from localhost ([2a02:768:2307:40d6::45a]) by smtp.gmail.com with ESMTPSA id t1sm23025810wrx.28.2021.06.09.04.46.11 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 09 Jun 2021 04:46:12 -0700 (PDT) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com, Viresh Kumar Cc: Krzysztof Kozlowski , Michael Walle , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 30/31] arm64: zynqmp: Add support for zcu102-rev1.1 board Date: Wed, 9 Jun 2021 13:45:06 +0200 Message-Id: X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210609_044714_335045_1A825846 X-CRM114-Status: GOOD ( 16.18 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org zcu102 rev1.1 compare to rev1.0 is using by default different DDR memory which requires different configuration. The reason for adding this file to Linux kernel is that U-Boot fdtfile variable is composed based on board revision (in eeprom) and dtb file should exist in standard distibutions for passing it to Linux kernel. Signed-off-by: Michal Simek --- Documentation/devicetree/bindings/arm/xilinx.yaml | 1 + arch/arm64/boot/dts/xilinx/Makefile | 1 + .../boot/dts/xilinx/zynqmp-zcu102-rev1.1.dts | 15 +++++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 arch/arm64/boot/dts/xilinx/zynqmp-zcu102-rev1.1.dts diff --git a/Documentation/devicetree/bindings/arm/xilinx.yaml b/Documentation/devicetree/bindings/arm/xilinx.yaml index f52c7e8ce654..a0b1ae6e3e71 100644 --- a/Documentation/devicetree/bindings/arm/xilinx.yaml +++ b/Documentation/devicetree/bindings/arm/xilinx.yaml @@ -87,6 +87,7 @@ properties: - xlnx,zynqmp-zcu102-revA - xlnx,zynqmp-zcu102-revB - xlnx,zynqmp-zcu102-rev1.0 + - xlnx,zynqmp-zcu102-rev1.1 - const: xlnx,zynqmp-zcu102 - const: xlnx,zynqmp diff --git a/arch/arm64/boot/dts/xilinx/Makefile b/arch/arm64/boot/dts/xilinx/Makefile index 11fb4fd3ebd4..083ed52337fd 100644 --- a/arch/arm64/boot/dts/xilinx/Makefile +++ b/arch/arm64/boot/dts/xilinx/Makefile @@ -12,6 +12,7 @@ dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-zcu100-revC.dtb dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-zcu102-revA.dtb dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-zcu102-revB.dtb dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-zcu102-rev1.0.dtb +dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-zcu102-rev1.1.dtb dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-zcu104-revA.dtb dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-zcu104-revC.dtb dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-zcu106-revA.dtb diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-rev1.1.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-rev1.1.dts new file mode 100644 index 000000000000..b6798394fcf4 --- /dev/null +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-rev1.1.dts @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * dts file for Xilinx ZynqMP ZCU102 Rev1.1 + * + * (C) Copyright 2016 - 2020, Xilinx, Inc. + * + * Michal Simek + */ + +#include "zynqmp-zcu102-rev1.0.dts" + +/ { + model = "ZynqMP ZCU102 Rev1.1"; + compatible = "xlnx,zynqmp-zcu102-rev1.1", "xlnx,zynqmp-zcu102", "xlnx,zynqmp"; +};