From patchwork Wed Dec 2 14:06:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 11946193 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 686BEC64E7C for ; Wed, 2 Dec 2020 14:08:49 +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 0724421741 for ; Wed, 2 Dec 2020 14:08:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0724421741 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=aGh2qBinaNz5BHh2ffkfeLnC+2czw/J8nXBwv2ZHOtw=; b=ClgMwSch5UHQft7dYiuz2lEKK Y0yMfPTlBnlDF9eHmciPPUMP1mKURnkiMrEXlxA2QfwBWSv59NJreUs/ug37Ct2qXx0ASTsy9UIt6 ks4V4fOTEFp9C/db39BpztXq4J6ZNV/pnTqlmKji6AOk+blLKuZYV0f6tTjnvqTC89349CdVfbi94 7BCAHH5okLXByFeeeVhs1JOoVThNT4gVYpZ6mn0y/tbBkNH0CJTsInvE/WEbP+XqlvXTxsu/NhN2n qbBWHchgp7b8c5DoSqHyZWT8cYCi+T7qbeCOjiVVfYcOmGDf47grhsIKQQ0luOhcTWi1rwpdOfVZd op+UQN5Nw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkSmg-0007Tl-Ll; Wed, 02 Dec 2020 14:07:06 +0000 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkSm7-0007FI-Ry for linux-arm-kernel@lists.infradead.org; Wed, 02 Dec 2020 14:06:33 +0000 Received: by mail-ed1-x52f.google.com with SMTP id b73so345838edf.13 for ; Wed, 02 Dec 2020 06:06:31 -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=5kGGPno4KI9ROcXeIw+hoBmYc900cxDg8Hcle1V5lUQ=; b=DLzggIsXic3gDWS3B+/O+k8OsLTtT9P/uXNnfO/n8/qHXlLRDdJCcl8/78SEjGnjyH 1H58uCj8sXNHjbOpjvLO7+/jNeiXcKIOaUmtT1BiICyj2WJIx/K9+Hr8X9S8wTm8dN5v sN6iMxYGh6lLyYWniWdYnpPGBtNAXNK66CadVK5at96VnIQETGaqkW01wWd6/iOtUpFI rBpF5Tbjr1SYqFCmxSIsdp50P4uYfLsZxnMb30eDZ82pomTimp3BFsL8Cos0dw4gxlPY 2Mxl5naqChNtQ8vOWEiVv0Jw1jSxhVX7ZTCbXnFuOX0OHPBduxmj6u/opvISqNOneR/X /1wA== 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=5kGGPno4KI9ROcXeIw+hoBmYc900cxDg8Hcle1V5lUQ=; b=JWrQ+z3Rm2kQN40ZZ6SKAteSABE0tsh9IwHPSnDCUekIcLDrvRsW3gBIN5BIp55cKV rbDZuzAxWle9UzGU2Ms4dr8uZtiGJfLqrRk4bvSrHiz2NDy3Oavxde0YelAzyFvuFm5f eO1ttcHC2YKPeTvFhmwYFQHO/rDH60yZrxeJugpvhMaB49wgT9IZQsMnjN6E3kOVKPow NHsHovehiyCLeL8x1yFNB2NhNv+GUmuvNeCQ0jsAv+wFyP5h1SGuuKIkHZqWTyCdvMyI coMnxamtAF3eKEcI3pgevw3xDiDzSZ0yWlCBY3VIGWpMjomJ+XV3RsR0ETUcGtE6KAxN jLNg== X-Gm-Message-State: AOAM532uF2qSlk8q75s+GMEXMsxG1xc8RX3tIxslSa7pn4x/qmyEuN3s 9XhjwpjP87yqm/pAHsyRNAK8vaMMHpnC/NPZ X-Google-Smtp-Source: ABdhPJw0CUnH2U4CKTf8DG2npagiJTq9FOyhn3VMwLcXFOcpgbuPdND55lyr+JwYBN1bQjEG4QvVlg== X-Received: by 2002:a50:bec4:: with SMTP id e4mr39574edk.65.1606917990789; Wed, 02 Dec 2020 06:06:30 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id da9sm26813edb.13.2020.12.02.06.06.29 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 Dec 2020 06:06:30 -0800 (PST) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com Subject: [PATCH 08/12] arm64: dts: zynqmp: Wire arasan nand controller Date: Wed, 2 Dec 2020 15:06:07 +0100 Message-Id: <96d84568afbbe97e3520b71d8e3e1da7ef10dc66.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_090632_019436_408DBC1B X-CRM114-Status: GOOD ( 13.03 ) 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 arasan controller with clocks. Disable it by default. Every board can enable it with specifying others properties. Signed-off-by: Michal Simek --- arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi | 4 ++++ arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi index c94c3bb67edc..7af57619436d 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi +++ b/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi @@ -116,6 +116,10 @@ &lpd_dma_chan8 { clocks = <&zynqmp_clk ADMA_REF>, <&zynqmp_clk LPD_LSBUS>; }; +&nand0 { + clocks = <&zynqmp_clk NAND_REF>, <&zynqmp_clk LPD_LSBUS>; +}; + &gem0 { clocks = <&zynqmp_clk LPD_LSBUS>, <&zynqmp_clk GEM0_REF>, <&zynqmp_clk GEM0_TX>, <&zynqmp_clk GEM0_RX>, diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi index 8e9b54b5e70c..fa7ea7f56299 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi +++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi @@ -461,6 +461,18 @@ mc: memory-controller@fd070000 { interrupts = <0 112 4>; }; + nand0: nand-controller@ff100000 { + compatible = "xlnx,zynqmp-nand-controller", "arasan,nfc-v3p10"; + status = "disabled"; + reg = <0x0 0xff100000 0x0 0x1000>; + clock-names = "controller", "bus"; + interrupt-parent = <&gic>; + interrupts = <0 14 4>; + #address-cells = <1>; + #size-cells = <0>; + power-domains = <&zynqmp_firmware PD_NAND>; + }; + gem0: ethernet@ff0b0000 { compatible = "cdns,zynqmp-gem", "cdns,gem"; status = "disabled";