Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1128213pxu; Mon, 23 Nov 2020 12:21:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJzABzlXOnmlPOIeDMFfKWvSPj4yS8QdwG6gQpW0M+UAE12kbHDKrK3ag6A+jI88LXDlv+Rf X-Received: by 2002:aa7:d703:: with SMTP id t3mr835305edq.375.1606162871150; Mon, 23 Nov 2020 12:21:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606162871; cv=none; d=google.com; s=arc-20160816; b=QK+zQXuBnNxUI9b66JbmcIvOGjmfQFT/aIx9a7eyLEjtxM6ZgLJpJveIAXV9QVHASr DG9ez/RMGXiRC2xoFAiKQDtLgxGHlkt6xzC+D7J2Vyh0n3U6SC6QArqOZn72QcdhbUW+ Etii/XK9uO5W5VqdUdzzag3IzNHV07ccSh2RLyHCqthotYC3zTcJQn1BAfnLyD85yQYN Yq9MFs2MNAeA5SGOjr+qr0gy9d8SIBG+3FL+Z81A+g7rliwNGi48lQk8D7pW+MnMMY0i ZQHh6RJjDcGm17WzDuE7j5b4a0/X+gvC1vQUdU8/T12zfZ1Mg1ujA07PQJwfLknENDZJ ISnw== 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=qVTpNTARpxFPRZwBVNChWjl+Ht3cqycld42DMDClpBs=; b=hDHvep4X9gXQuDXsW2Et7Xcsw/LOwR2D7ohEldTQOILCrfx+8YpAxqd8iIgjwiuscY WIM6I/807IsyRgCq8E6uPPPDAk/mRg75rsSQB1XYwUcb9XOdb4fGLVlA3BPruneSQn+R yRmJgl+gy34J+iyewtHUfybMh7UKrAXe0J9b9hhY0Mp3wHT+XpwGM4k3ClvL+xvBBF8n ChLS/fX+OQrtlVinijziAw86kd1ZPMSzyvY07YrnJxMu8QCQFm6WyFJIc/0JBNgUNUsN UHyraatPt4kV+plvSorqcYqsV914kKyR8QtKQmIyc1IHgRaNA+uDdOFRyDukt4S/bNqK YW4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=I5X2+23L; 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 91si9535413edy.541.2020.11.23.12.20.47; Mon, 23 Nov 2020 12:21:11 -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=I5X2+23L; 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 S2387810AbgKWUR1 (ORCPT + 99 others); Mon, 23 Nov 2020 15:17:27 -0500 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:11577 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387571AbgKWURX (ORCPT ); Mon, 23 Nov 2020 15:17:23 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Mon, 23 Nov 2020 12:17:26 -0800 Received: from HQMAIL107.nvidia.com (172.20.187.13) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 23 Nov 2020 20:17:23 +0000 Received: from skomatineni-linux.nvidia.com (172.20.13.39) by mail.nvidia.com (172.20.187.13) with Microsoft SMTP Server id 15.0.1473.3 via Frontend Transport; Mon, 23 Nov 2020 20:17:22 +0000 From: Sowjanya Komatineni To: , , , CC: , , , , Subject: [PATCH v3 5/6] arm64: tegra: Enable AHCI on Jetson TX2 Date: Mon, 23 Nov 2020 12:17:24 -0800 Message-ID: <1606162645-22326-6-git-send-email-skomatineni@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1606162645-22326-1-git-send-email-skomatineni@nvidia.com> References: <1606162645-22326-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=1606162646; bh=qVTpNTARpxFPRZwBVNChWjl+Ht3cqycld42DMDClpBs=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:X-NVConfidentiality:MIME-Version:Content-Type; b=I5X2+23LuVOcHvu3ahfFCKT6NskdiMsc4LFNB0FYVOnasfSFqFoHsWQSIvTc7iUnH T7aecwbTeL99wqyTXiwXfu0HmjR8SOCVbg34IzF53mx+qZKwr7q3hX7oNZBuoVcR+j wjsHve3ETOPQzChOabFl97IvrPFomFkfQXwrNcj1jTtel/TGkvNq58z8tjxqlLLIIJ Ormuzk7BMg8WEeevkULSlui1RtsMkNN70Wla0C2ftSPELRG7SGcIvakcCGcNbk3enN josDE3TfTvt/wbtgqsgjkT/t32LY+5OK6YNDLVywLFXNnyENYepuxTf2zlVldwPyKL Tp4wCg45ADWRA== 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 c28d51c..6fd2e05 100644 --- a/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts +++ b/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts @@ -285,6 +285,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 98544d1..a303f45 100644 --- a/arch/arm64/boot/dts/nvidia/tegra186.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra186.dtsi @@ -1503,6 +1503,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