Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1400143pxb; Fri, 13 Nov 2020 11:38:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJzLr9SnhnDwM7+GjQY6TCo8iHXW4k6ITpclN+GHHXaRDWSaneqzJ1dCQaX7z9THGa05Y1xK X-Received: by 2002:a50:fa92:: with SMTP id w18mr4102840edr.44.1605296326660; Fri, 13 Nov 2020 11:38:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605296326; cv=none; d=google.com; s=arc-20160816; b=aJ/djBZZE/6BnYAqS+qRNb+bhT8q/itv7i/FowmqooCdvDvXYL//zE5MC1S7KVwYgq 5VAB5ixV6I3E1+QY3BoaoCSFgnkBPymE77GX706E2SdGcUv76xfR3viBncApNdkycKFt oOPQ96XpThMKOjaQZkir5lNGWT1DXoDFdVCT+SlRQstVGjwOGlm7T6gJGBAwCR6reuAj 7XEQJEP8UXPFNyHFk2RvEidIa0pPImdyRNISEceq/+rDIpZgpK+uiIMhnIGex+qe4PTS HA6vLrILhR24KPP33zX5VE1KmiDzx42L4ZL1V4dPtHs8phnauEqCFM+Vn6NJemyw4rNF vkxQ== 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=r3AVUbvt3RNfrllkiehC3fL0fC0040AbIRoa2VJA/gs=; b=APvPX3/204m3rAtTPskOgjaxCmE70pcuFXaBGNCWc0doZ4XPYYhpPmhp6TTS+LwGWC MAUHi7kfG5yC2/7sPkpRlqB2zWjrtQcOlQqFUDy1A5wB+kjMjJlkTLbIODUuTWPORhe5 Bg+sQ5q9QmKXvuoatFlVBs/AYbBaWQrrFlhrU7Q1WHZOPGYecsjA9GeUJUzkrjq6jjOE 6fg43TuB5IqLK/8hBZs7hPMRRz4LYAx43uVBqZzyc447/LvYzMLRID4WyaeTmryl8uuj /nbtdxoQ3zyIFk3e1WuhJMdwCcIRKGkZX9eXLn0LdlLwdyLRh1A/humuU6LHM3k77Wgg ZgAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=kzyHf7bx; 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 4si6860237edh.521.2020.11.13.11.38.24; Fri, 13 Nov 2020 11:38:46 -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=kzyHf7bx; 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 S1726361AbgKMThA (ORCPT + 99 others); Fri, 13 Nov 2020 14:37:00 -0500 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:15774 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726296AbgKMTg5 (ORCPT ); Fri, 13 Nov 2020 14:36:57 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Fri, 13 Nov 2020 11:36:50 -0800 Received: from HQMAIL105.nvidia.com (172.20.187.12) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 13 Nov 2020 19:36:56 +0000 Received: from skomatineni-linux.nvidia.com (10.124.1.5) by mail.nvidia.com (172.20.187.12) with Microsoft SMTP Server id 15.0.1473.3 via Frontend Transport; Fri, 13 Nov 2020 19:36:56 +0000 From: Sowjanya Komatineni To: , , , CC: , , , Subject: [PATCH v2 5/6] arm64: tegra: Enable AHCI on Jetson TX2 Date: Fri, 13 Nov 2020 11:36:57 -0800 Message-ID: <1605296218-2510-6-git-send-email-skomatineni@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1605296218-2510-1-git-send-email-skomatineni@nvidia.com> References: <1605296218-2510-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=1605296210; bh=r3AVUbvt3RNfrllkiehC3fL0fC0040AbIRoa2VJA/gs=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:X-NVConfidentiality:MIME-Version:Content-Type; b=kzyHf7bxobwlamACg3XCfhUu1nFu2sOV6b4VwoXYei/OyANj5hN/O8CTGOgdDdnKP sttIyMsX0FlqtAkTI/Q6X8ro2cIFJHc40cYu8/NEIDY2jy2pqE+TZVY/XQKUVt2QWB g3himx+mgAtli+zSdbx7amOIuzwufTid9UF/Y2px2fw6r+HJtTmi8n2K7gucSYxO9M H4lE4qugnbQXh+RiFzqwxRP3+/Rk5BKUuLPGPCtLfXGuKHU5FVOdO+pkfRblGDhxzC V7M+HCpjPPZ2EDiTH1coe+2O5rQwM35m+hGewEfzKQVPzXx2Lr7T9ECXedVYYZ2cOy FhQBOQM+bZY7g== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch enables AHCI on Jetson TX2. Signed-off-by: Sowjanya Komatineni --- arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts | 4 ++++ arch/arm64/boot/dts/nvidia/tegra186.dtsi | 28 ++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts b/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts index 381a84912..7e1723e 100644 --- a/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts +++ b/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts @@ -297,6 +297,10 @@ }; }; + sata@3507000 { + status = "okay"; + }; + gpio-keys { compatible = "gpio-keys"; diff --git a/arch/arm64/boot/dts/nvidia/tegra186.dtsi b/arch/arm64/boot/dts/nvidia/tegra186.dtsi index 0c46ab7..7f5c002 100644 --- a/arch/arm64/boot/dts/nvidia/tegra186.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra186.dtsi @@ -1501,6 +1501,34 @@ }; }; + sata@3507000 { + compatible = "nvidia,tegra186-ahci"; + reg = <0x0 0x03507000 0x0 0x00002000>, /* AHCI */ + <0x0 0x03500000 0x0 0x00007000>, /* SATA */ + <0x0 0x03A90000 0x0 0x00010000>; /* SATA AUX */ + interrupts = ; + + power-domains = <&bpmp TEGRA186_POWER_DOMAIN_SAX>; + interconnects = <&mc TEGRA186_MEMORY_CLIENT_SATAR &emc>, + <&mc TEGRA186_MEMORY_CLIENT_SATAW &emc>; + interconnect-names = "dma-mem", "write"; + iommus = <&smmu TEGRA186_SID_SATA>; + + clocks = <&bpmp TEGRA186_CLK_SATA>, + <&bpmp TEGRA186_CLK_SATA_OOB>; + clock-names = "sata", "sata-oob"; + assigned-clocks = <&bpmp TEGRA186_CLK_SATA>, + <&bpmp TEGRA186_CLK_SATA_OOB>; + assigned-clock-parents = <&bpmp TEGRA186_CLK_PLLP_OUT0>, + <&bpmp TEGRA186_CLK_PLLP>; + assigned-clock-rates = <102000000>, + <204000000>; + resets = <&bpmp TEGRA186_RESET_SATA>, + <&bpmp TEGRA186_RESET_SATACOLD>; + reset-names = "sata", "sata-cold"; + status = "disabled"; + }; + bpmp: bpmp { compatible = "nvidia,tegra186-bpmp"; interconnects = <&mc TEGRA186_MEMORY_CLIENT_BPMPR &emc>, -- 2.7.4