From patchwork Wed Dec 2 14:06:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 11946199 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=-18.2 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,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham 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 5E53CC64E7B for ; Wed, 2 Dec 2020 14:09:08 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 DF0BF21D7F for ; Wed, 2 Dec 2020 14:09:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DF0BF21D7F Authentication-Results: mail.kernel.org; dmarc=none (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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=4F1m4sgRNkHKsmsWbF9DTHGd6/mYU24OTJyhz0f13N4=; b=yDy7PfL/c/dE6cmYhkplpIP4P nN0bL+JyqmqBYxv884X7Kkrk1wJZjr8353J90MZLH1PDXf9gUENH3AJREykXCOabpvoHiTyE9RUSP FcxkxcsPX9mEfqN5NrcmzrHt5qqzguz5RHTaBNSCB51p0gKvlQuZhOgPwb0sBoq5woXxpvTfjCUdh GxD2RHQBtTd2/bx82ZEKWbUWyHQoMIpMgDceoEDif01HYc73/lUD1zvzkEyAYXnoj6xdkfU8ztFBb u7rHOxx8iKmtcZlWZJqNHM+7XjDP5xkc/cdXWopq9nLpFshI1lBA4YotgOiZRaeAt7UYliVYZWOaz etU0xVftA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkSmo-0007WA-CS; Wed, 02 Dec 2020 14:07:14 +0000 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkSmA-0007GC-R0 for linux-arm-kernel@lists.infradead.org; Wed, 02 Dec 2020 14:06:36 +0000 Received: by mail-ed1-x535.google.com with SMTP id v22so3991479edt.9 for ; Wed, 02 Dec 2020 06:06:33 -0800 (PST) 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=7BFCHrmzrOqkLjq4ZogRCirDfiv1ADrbWNpSxaRd9L8=; b=ms9iWFkReozQrKn/0bBAfxCaEEUVxvE8oH/ihmQ95Z8EM51FYNL2tezD9XUGDzN9g/ 0E+csaOzWjXrTA9d0BJVI3WXsPVdVJaRQMdDRAlH7+uDzHXuv0IpfGVs1uX9dw4h3PB3 KzNrmfM+rGoAGxSlQg8oJKJYPO98Lp2DL/HLhlh3yeoDqDOVRLUCE0UbBYaBUZ96d7OS K3GUzQgmPIuJBlwoEoHY13Xt3cQ9azn1cC1zAKJNxVnoV1nkb79hEaNX5iDb2rO/18Pd RTBovpmWuaevagI8FqjUgOFPPawQjpo1gV/9se8tNSnVG1Wqu+fqLHv31IoZNFOtgdoG KyEQ== 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=7BFCHrmzrOqkLjq4ZogRCirDfiv1ADrbWNpSxaRd9L8=; b=Mq6IpEOVpTinv1ZqHcq4BU4I+G6uWercFAwl3lSiT36AYzr6VvtzweFEz+0JLPxk19 DEaPsywDz83oj9yrowEitjzOHWZqnhrROOt/Aa5kO/yI2ve3vr0awNtxZBn1D0DQx28m wVTnAdwVRWctUPDBzl9B5zC3B/X4HrOSx9z46yzjbkgxokdz9eD3dPCg3c2Wezv9otzP 0VcMXMjNP3Cyv0Mu2v5yhTMR1mxeCQ7SOWLPnoaV1GXNaqOgABzbsWA8Fqf78ODR0O7t LX7fLG6J7Wbfo7z+TmP0bjxmkQOoX/DmGNnb7QKfQSh+Py103iYZaNapfawnR8uXHaKX BXZQ== X-Gm-Message-State: AOAM5323Hcwejh17fyn2DsgtbiGr1v67rr5KViCMnkzlDS1EW44BNw/R oCZgQo2yvWRedI6JMPfqsYN8NA== X-Google-Smtp-Source: ABdhPJwm4XCItwDaa1EUc8MFClCW8lSiRf6xeHowl7GdIA+tAYIyrrW6NhwdeIyqwlCWnUNadqShrw== X-Received: by 2002:a50:c19a:: with SMTP id m26mr53744edf.302.1606917992907; Wed, 02 Dec 2020 06:06:32 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id z19sm1282757ejj.101.2020.12.02.06.06.32 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 Dec 2020 06:06:32 -0800 (PST) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com Subject: [PATCH 09/12] arm64: dts: zynqmp: Wire zynqmp qspi controller Date: Wed, 2 Dec 2020 15:06:08 +0100 Message-Id: <13f970a9859ac0c15381e532f05371d939c138c6.1606917949.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201202_090634_962359_9407FFBB X-CRM114-Status: GOOD ( 13.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Rajan Vaja , Krzysztof Kozlowski , Rob Herring , Manish Narani , Laurent Pinchart , Kalyani Akula , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add missing ZynqMP qspi IP. It works in single mode only. Signed-off-by: Michal Simek --- arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi | 4 ++++ arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 14 ++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi index 7af57619436d..6a577e1383c1 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi +++ b/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi @@ -164,6 +164,10 @@ &pcie { clocks = <&zynqmp_clk PCIE_REF>; }; +&qspi { + clocks = <&zynqmp_clk QSPI_REF>, <&zynqmp_clk LPD_LSBUS>; +}; + &sata { clocks = <&zynqmp_clk SATA_REF>; }; diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi index fa7ea7f56299..4312d4594dba 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi +++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi @@ -607,6 +607,20 @@ pcie_intc: legacy-interrupt-controller { }; }; + qspi: spi@ff0f0000 { + compatible = "xlnx,zynqmp-qspi-1.0"; + status = "disabled"; + clock-names = "ref_clk", "pclk"; + interrupts = <0 15 4>; + interrupt-parent = <&gic>; + num-cs = <1>; + reg = <0x0 0xff0f0000 0x0 0x1000>, + <0x0 0xc0000000 0x0 0x8000000>; + #address-cells = <1>; + #size-cells = <0>; + power-domains = <&zynqmp_firmware PD_QSPI>; + }; + psgtr: phy@fd400000 { compatible = "xlnx,zynqmp-psgtr-v1.1"; status = "disabled";