Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1545195pxu; Thu, 17 Dec 2020 12:32:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJxY8TG9A/yogeq0qeev1h8TP1TuNAmnkg1DcHmsqEJgXqdY2a5D3oEnebAWz1YK2RBn33X+ X-Received: by 2002:a05:6402:7d7:: with SMTP id u23mr1102542edy.325.1608237120976; Thu, 17 Dec 2020 12:32:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608237120; cv=none; d=google.com; s=arc-20160816; b=B+u4sbEfNSOM0xpsIeS54Z3r0AOCU83AT3VAt1mmls2uMbJH+qJdXCRZHSbgqrjKEm 3ULCCK99PfZ0HFZEqJ9sYGbeJHNEGmBtXFFuBmHkdJw9olpgErcVrbg6AIJVDLqyGXpi L0oDTk5AE27/MFVpoioYQQcJxzwalGMtbzw+dJGw1dVI1QgE/gJbsKkUREPYNY/q7X+c o2A2HD7Xsxc5TblRK69wYjYYEPKu9O21DgAtNvjR98lGa7BEUZe4cSpFOvO8/NVLk8E5 mx2PLYvYTCBbSe4rNampZMzQ6dqbq1zvROwn1GqUFPC1yNuEb9lfFjaSVgo2VKOa6inC 2RcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from; bh=dLZyD/aBfvEKW6lFi53KiLDsTnSc0dbBTCqhpZ4bRhM=; b=yrLt7mc4ZCBdSrvmau5QBg2h6QScyz0Axmllv9rX1n5WeKbXOpsBvQlipSlYK5fJQD 7YSp1RRCCyp7Mv6lzb2OR2R33VVOLeVy6HC5p+67lvFCvT6grKxa9Sz2wzjkhwVlOSTD 61FFeB/rZKqjXjh5kxsK7ewaoJvoCTbjfs2/+/f8Mjb662FL6zCcI+OJy0w2l5W+yJzW 8rsX2EHKts0rKnxiCK+QTkWw7hkTb/BbrSSQhfK9bgt0idmEOLZk5mhVmLgC8H3Zmv/d t2u8fY4uWUTb158hRk4+jJep144e5X8QHY1xaZIsT1sCnWkZS2R4rAtPFrj8ckPWM/4c vOyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=MnnGmQ1I; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gw26si3229530ejb.537.2020.12.17.12.31.38; Thu, 17 Dec 2020 12:32:00 -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=@nvidia.com header.s=n1 header.b=MnnGmQ1I; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731662AbgLQUaT (ORCPT + 99 others); Thu, 17 Dec 2020 15:30:19 -0500 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:8612 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731643AbgLQUaS (ORCPT ); Thu, 17 Dec 2020 15:30:18 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Thu, 17 Dec 2020 12:29:01 -0800 Received: from HQMAIL107.nvidia.com (172.20.187.13) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 17 Dec 2020 20:28:57 +0000 Received: from skomatineni-linux.nvidia.com (172.20.145.6) by mail.nvidia.com (172.20.187.13) with Microsoft SMTP Server id 15.0.1473.3 via Frontend Transport; Thu, 17 Dec 2020 20:28:56 +0000 From: Sowjanya Komatineni To: , , , , CC: , , , , , , , Subject: [PATCH v4 7/9] arm64: tegra: Enable QSPI on Jetson Nano Date: Thu, 17 Dec 2020 12:28:45 -0800 Message-ID: <1608236927-28701-8-git-send-email-skomatineni@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1608236927-28701-1-git-send-email-skomatineni@nvidia.com> References: <1608236927-28701-1-git-send-email-skomatineni@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1608236941; bh=dLZyD/aBfvEKW6lFi53KiLDsTnSc0dbBTCqhpZ4bRhM=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:X-NVConfidentiality:MIME-Version:Content-Type; b=MnnGmQ1IRJnR92GoLMv/00Gi+I1lyypBEqOWwwA9eRNWzZNx6ibj+EApBhkLRpVce GQHAyGh2chof4HalHhE0hm3NiaZ7O8ynigLva45LoMFjfPgR8Zso3cSFXaM50Ns2VY wduKg0o/H6NQG8ZswN9sCkrMAa6nYxDFZ6RLsoUfthVdn2rOSqZvgmJ9IChFjjHhjh sstw7SexM53chyxY1wbzuueecgbIz/BBxG7o7xgP0/DJ31hr6aAi/ofWaeEWSJy/Vj q8CCJhuGnhHqiiwpekxMx42ZwY6SsrJrXzR5NYQx/D8B6CBmNG2jSTu1uA5Mx6+zzY NK1l11iM6cEmg== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch enables QSPI on Jetson Nano. Signed-off-by: Sowjanya Komatineni --- arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts | 12 ++++++++++++ arch/arm64/boot/dts/nvidia/tegra210.dtsi | 5 +++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts b/arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts index 6a877de..a1b4603 100644 --- a/arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts +++ b/arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts @@ -638,6 +638,18 @@ }; }; + spi@70410000 { + status = "okay"; + + flash@0 { + compatible = "spi-nor"; + reg = <0>; + spi-max-frequency = <104000000>; + spi-tx-bus-width = <2>; + spi-rx-bus-width = <2>; + }; + }; + clk32k_in: clock@0 { compatible = "fixed-clock"; clock-frequency = <32768>; diff --git a/arch/arm64/boot/dts/nvidia/tegra210.dtsi b/arch/arm64/boot/dts/nvidia/tegra210.dtsi index 4fbf8c1..998fa81 100644 --- a/arch/arm64/boot/dts/nvidia/tegra210.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra210.dtsi @@ -1536,8 +1536,9 @@ interrupts = ; #address-cells = <1>; #size-cells = <0>; - clocks = <&tegra_car TEGRA210_CLK_QSPI>; - clock-names = "qspi"; + clocks = <&tegra_car TEGRA210_CLK_QSPI>, + <&tegra_car TEGRA210_CLK_QSPI_PM>; + clock-names = "qspi", "qspi_out"; resets = <&tegra_car 211>; reset-names = "qspi"; dmas = <&apbdma 5>, <&apbdma 5>; -- 2.7.4