Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp945648pxb; Thu, 5 Nov 2020 18:18:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVcCAnoJzaGz2uRHU2MpVb+vEMvvL7cVwBy7xb9yRpaQxSKdNlodKvYzLPKCFj4imgNYjk X-Received: by 2002:aa7:da13:: with SMTP id r19mr5894731eds.386.1604629083458; Thu, 05 Nov 2020 18:18:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604629083; cv=none; d=google.com; s=arc-20160816; b=zE6r/Jtyf8SS5w02XqZenMw4AI03x/anJWMc40z02sjap8aqhYj8Ml3tRE2e5e24dg gGBkVb2dokezA7QwpVQCFYwMDKTAg1vna8XanwrW76RIb8NOHJRT6jaoVx4cTjNDFuqq xm7sGvbswTZExSUE1AMtYFz2EzqIth9nBH83L6rOm0Rsvzqrdh2YvXF7HK3FWSN6bJuo XAy2R96Y0fwpg6nl4RfIoJLajQgCOyLpSJ4FF6svyyoVRkACoRP+tCfW4gNlYAMDPds7 y5CiYtyNQSFf0fDu1G5FZy6hfVcbCHl1XmhQHWIX5qU3UenaEYo6GYqFLzDjLi/FfrPp NlKQ== 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=LVYOr4bpfsRjqfO8qadVQZDg0IaUQH4gxgOS2puQHkE2LxUJNSC7GgzX/O/chRSJ2e 2lySH431IVnvtxQXh1ULzgZGg2LTT9vzD7zLSv923Qlqk92UHVqT26l3c3hfwpKDgKvh yw8VuXSCREScP1yxbgZ0cbnqCxzcuil1GBIUz7DdCvfTcX5RLK9uvCxRdtYIHzkgsD6d jUC1LqMJb55NyzTf+rUxBjoE1wRg2Vwi/bSKyHzoSE28lsWpDBg573T+ttXcfCIxJ5j/ Benta4/eCIQ+rdtt6NLqsmrazVrRczFr18VvzSAS2oIltQRJEn8xkwnVnelfCWXJyvVE ThDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=nDHroDoe; 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 oa19si2375614ejb.280.2020.11.05.18.17.40; Thu, 05 Nov 2020 18:18:03 -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=nDHroDoe; 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 S1727363AbgKFCQP (ORCPT + 99 others); Thu, 5 Nov 2020 21:16:15 -0500 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:12513 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727008AbgKFCQK (ORCPT ); Thu, 5 Nov 2020 21:16:10 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Thu, 05 Nov 2020 18:16:12 -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, 6 Nov 2020 02:16:10 +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, 6 Nov 2020 02:16:09 +0000 From: Sowjanya Komatineni To: , , , CC: , , , Subject: [PATCH v1 3/4] arm64: tegra: Enable AHCI on Jetson TX2 Date: Thu, 5 Nov 2020 18:16:07 -0800 Message-ID: <1604628968-1501-4-git-send-email-skomatineni@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1604628968-1501-1-git-send-email-skomatineni@nvidia.com> References: <1604628968-1501-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=1604628972; bh=r3AVUbvt3RNfrllkiehC3fL0fC0040AbIRoa2VJA/gs=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:X-NVConfidentiality:MIME-Version:Content-Type; b=nDHroDoejbEUUp7P4sZcKrbV1s/Y+2GaJiSrVvpZU3h7y372aL6QtnWMh5GYyAYHc TeeZq8JB15LHD5X+8mJtTW4YjPoi4IkGY0qFfQHjTHRrEZSMpS5Q/aXWDNVibKKrbQ ZV7/nx4MFpYsfVduNO+z/kTjJjeU5XpecQQDAXK+pZw2UQvN1B8QuuupLMQziz9pBt IOaqhdMoN56/tHOJYBX3KQT/3ScGLPehM+8fI2c00mUbuOGJUA3DKqjjp/upuQibow 1wnMETaUuxQnUQCPm0Cc1FfWG5k57Fzj8/qGRvHt6optQrbsjsTWnuRRQTO3/oJFH+ OS6pQq2StCc+Q== 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