From patchwork Fri Oct 14 10:21:50 2022
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Padmanabhan Rajanbabu
X-Patchwork-Id: 2650
Return-Path:
Delivered-To: ouuuleilei@gmail.com
Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp121985wrs;
Fri, 14 Oct 2022 04:11:57 -0700 (PDT)
X-Google-Smtp-Source:
AMsMyM6JXyYRDH+GzUDUjyyinmMMWUoxg8F0bcI2Up7rq5vomfQZV6bjVD3djrF/ByowuSju687f
X-Received: by 2002:a63:6b49:0:b0:46a:fcba:308f with SMTP id
g70-20020a636b49000000b0046afcba308fmr4199816pgc.8.1665745917284;
Fri, 14 Oct 2022 04:11:57 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1665745917; cv=none;
d=google.com; s=arc-20160816;
b=xNcr3tpVXTnN2uaTEWYbSuzvci4dvBL54CFE/2jzCj7Mh22wChu2dAVX2B6/w4TuDD
jEJRDdsyuOvxutuEVzdM+iN7ZOukxU320amqja5epMccUg+UuLa1o7U/2FDTd1VxkGr5
G5gOhO/NOIyuXtBcDfGs7W9PkH2BccjUjX9RiCw1aVJGQfUtc3eXpAz+B3JBDMqM1xqP
VIlZvR/LbfeImJhS7TOBtv6P898Ilopi3bhH4MjfXjc2zVwqd5yVM2CdtHF4JCUBcgsW
J3bPSrAb8VWbr0nRQej7NsuFMtN2jdlbIfecPL4/F1264fxtwz41eS3oiPZ6gZaBHems
v15w==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20160816;
h=list-id:precedence:references:dlp-filter:cms-type:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature:dkim-filter;
bh=Zbx76mlzHBJ+S/AAz4sVRGbKx8JIYIBvPvxtvlSsvBk=;
b=nRfj3S6J+/0u6ZTqtxuVtvM3rwvCV3KZnqKCwVOUFJ/EVqbOQLyPUpQqfVuF7noN/t
gpNNHnkYY3+nbKVFtmtHIqzcMiO+S1Usk6qqess6y0G01QmZwuD0oAIo6Y7Ab1A3bvdM
0u9OJ+9rN++X64Zunatr/LOmW+3X7nUT9hdrvgMFLR/IuHugwfDEe9M9DAPLe2OJT+4f
zaQewSB3CpSVqyY3niDp8qPv0n16rgfvI495eg7/vAxHPerlbYnS3YacHAKThk6wIiRF
ZtFA2itFW3ZqWzagQK7yX2xD1ZHfrkycaZXhjoKswfyuTIgJ1AXgQvvgl1CvF1mhHYw+
ZH3w==
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@samsung.com header.s=mail20170921
header.b=CqWW08GR;
spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org
designates 2620:137:e000::1:20 as permitted sender)
smtp.mailfrom=linux-kernel-owner@vger.kernel.org;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com
Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20])
by mx.google.com with ESMTP id
m27-20020a638c1b000000b0044adcee18b2si2439647pgd.277.2022.10.14.04.11.43;
Fri, 14 Oct 2022 04:11:57 -0700 (PDT)
Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org
designates 2620:137:e000::1:20 as permitted sender)
client-ip=2620:137:e000::1:20;
Authentication-Results: mx.google.com;
dkim=pass header.i=@samsung.com header.s=mail20170921
header.b=CqWW08GR;
spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org
designates 2620:137:e000::1:20 as permitted sender)
smtp.mailfrom=linux-kernel-owner@vger.kernel.org;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
id S229925AbiJNLK6 (ORCPT + 99 others);
Fri, 14 Oct 2022 07:10:58 -0400
Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39588 "EHLO
lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
with ESMTP id S229847AbiJNLKh (ORCPT
);
Fri, 14 Oct 2022 07:10:37 -0400
Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25])
by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA01BE6F53
for ;
Fri, 14 Oct 2022 04:10:32 -0700 (PDT)
Received: from epcas5p2.samsung.com (unknown [182.195.41.40])
by mailout2.samsung.com (KnoxPortal) with ESMTP id
20221014111031epoutp02d13f91a29b45f99505f0d3a440b7de34~d6wIOCt9Y1905819058epoutp02S
for ;
Fri, 14 Oct 2022 11:10:31 +0000 (GMT)
DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com
20221014111031epoutp02d13f91a29b45f99505f0d3a440b7de34~d6wIOCt9Y1905819058epoutp02S
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com;
s=mail20170921; t=1665745831;
bh=Zbx76mlzHBJ+S/AAz4sVRGbKx8JIYIBvPvxtvlSsvBk=;
h=From:To:Cc:Subject:Date:In-Reply-To:References:From;
b=CqWW08GRSZ+HMULqxhlPtB0aZheCBxHNsceS021v/pi6wIdAWSv0fzn+UH0ylYXeY
eTNfz68Xz/bjKT1zYonKMLmc1aNkoAU/FcjY1fmKnpKb3tH55GaG6T7X/S1HkXY4lV
b9TN9848kNy/6Nsz+N2Jrdlg3+JhSMjUd0di/3ss=
Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by
epcas5p1.samsung.com (KnoxPortal) with ESMTP id
20221014111030epcas5p13c3443954d01d1f884580c2a7b9071ff~d6wHXc6LT1571915719epcas5p1T;
Fri, 14 Oct 2022 11:10:30 +0000 (GMT)
Received: from epsmges5p3new.samsung.com (unknown [182.195.38.182]) by
epsnrtp4.localdomain (Postfix) with ESMTP id 4MpkFb02Npz4x9Pq;
Fri, 14 Oct
2022 11:10:27 +0000 (GMT)
Received: from epcas5p1.samsung.com ( [182.195.41.39]) by
epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id
98.4E.56352.2A349436; Fri, 14 Oct 2022 20:10:26 +0900 (KST)
Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by
epcas5p3.samsung.com (KnoxPortal) with ESMTPA id
20221014104911epcas5p394100ff6ed53be32c4d64c7e23e48833~d6dglrHlO0568205682epcas5p30;
Fri, 14 Oct 2022 10:49:11 +0000 (GMT)
Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by
epsmtrp2.samsung.com (KnoxPortal) with ESMTP id
20221014104911epsmtrp2b379d1c4e5d136384898960bb0364c24~d6dgkyXTs0248602486epsmtrp2I;
Fri, 14 Oct 2022 10:49:11 +0000 (GMT)
X-AuditID: b6c32a4b-383ff7000001dc20-53-634943a26bdf
Received: from epsmtip1.samsung.com ( [182.195.34.30]) by
epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id
FD.2C.18644.7AE39436; Fri, 14 Oct 2022 19:49:11 +0900 (KST)
Received: from cheetah.sa.corp.samsungelectronics.net (unknown
[107.109.115.53]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id
20221014104909epsmtip13267170eacab96b4dd5fca0afa5e559d~d6deZpfIO0142901429epsmtip1X;
Fri, 14 Oct 2022 10:49:09 +0000 (GMT)
From: Padmanabhan Rajanbabu
To: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, s.nawrocki@samsung.com,
perex@perex.cz, tiwai@suse.com, pankaj.dubey@samsung.com,
alim.akhtar@samsung.com, rcsekar@samsung.com,
aswani.reddy@samsung.com
Cc: alsa-devel@alsa-project.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org,
Padmanabhan Rajanbabu
Subject: [PATCH 5/6] arm64: dts: fsd: Add I2S DAI node for Tesla FSD
Date: Fri, 14 Oct 2022 15:51:50 +0530
Message-Id: <20221014102151.108539-6-p.rajanbabu@samsung.com>
X-Mailer: git-send-email 2.17.1
In-Reply-To: <20221014102151.108539-1-p.rajanbabu@samsung.com>
X-Brightmail-T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Rd8tmxedCJVLWrhJxpxbHlSkLWfax7l7WvvGvXbj//0PmoqxOs9eX
++W1TNsb8DOpyCp8wwXRyQs+cK21Wy+2a0vTYR1F/kPhxdrrS+qd3vDPv1ShV1amkLfpztmf
uQyPGuY93cRTI+2pJ/7j5oIv9mv/B/oqsRRnJBpqMRcVJwIAi4U8quQCAAA=
X-CMS-MailID: 20221014104911epcas5p394100ff6ed53be32c4d64c7e23e48833
X-Msg-Generator: CA
X-Sendblock-Type: REQ_APPROVE
CMS-TYPE: 105P
DLP-Filter: Pass
X-CFilter-Loop: Reflected
X-CMS-RootMailID: 20221014104911epcas5p394100ff6ed53be32c4d64c7e23e48833
References: <20221014102151.108539-1-p.rajanbabu@samsung.com>
X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,
DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,
SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
lindbergh.monkeyblade.net
Precedence: bulk
List-ID:
X-Mailing-List: linux-kernel@vger.kernel.org
X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?=
X-GMAIL-THRID: =?utf-8?q?1746661191064549712?=
X-GMAIL-MSGID: =?utf-8?q?1746661191064549712?=
Add device tree node for I2S0 and I2S1 CPU DAI instances for Tesla
FSD board
Signed-off-by: Padmanabhan Rajanbabu
---
arch/arm64/boot/dts/tesla/fsd-evb.dts | 8 +++++
arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi | 14 ++++++++
arch/arm64/boot/dts/tesla/fsd.dtsi | 38 ++++++++++++++++++++++
3 files changed, 60 insertions(+)
diff --git a/arch/arm64/boot/dts/tesla/fsd-evb.dts b/arch/arm64/boot/dts/tesla/fsd-evb.dts
index 1db6ddf03f01..c0a4509499ab 100644
--- a/arch/arm64/boot/dts/tesla/fsd-evb.dts
+++ b/arch/arm64/boot/dts/tesla/fsd-evb.dts
@@ -41,3 +41,11 @@
&ufs {
status = "okay";
};
+
+&tdm_0 {
+ status = "okay";
+};
+
+&tdm_1 {
+ status = "okay";
+};
diff --git a/arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi b/arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi
index e3852c946352..ff6f5d4b16dd 100644
--- a/arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi
+++ b/arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi
@@ -339,6 +339,20 @@
samsung,pin-pud = ;
samsung,pin-drv = ;
};
+
+ i2s0_bus: i2s0-bus {
+ samsung,pins = "gpd1-0", "gpd1-1", "gpd1-2", "gpd1-3", "gpd1-4";
+ samsung,pin-function = ;
+ samsung,pin-pud = ;
+ samsung,pin-drv = ;
+ };
+
+ i2s1_bus: i2s1-bus {
+ samsung,pins = "gpd2-0", "gpd2-1", "gpd2-2", "gpd2-3", "gpd2-4";
+ samsung,pin-function = ;
+ samsung,pin-pud = ;
+ samsung,pin-drv = ;
+ };
};
&pinctrl_pmu {
diff --git a/arch/arm64/boot/dts/tesla/fsd.dtsi b/arch/arm64/boot/dts/tesla/fsd.dtsi
index f35bc5a288c2..5decad45a1b6 100644
--- a/arch/arm64/boot/dts/tesla/fsd.dtsi
+++ b/arch/arm64/boot/dts/tesla/fsd.dtsi
@@ -32,6 +32,8 @@
spi0 = &spi_0;
spi1 = &spi_1;
spi2 = &spi_2;
+ tdm0 = &tdm_0;
+ tdm1 = &tdm_1;
};
cpus {
@@ -809,6 +811,42 @@
status = "disabled";
};
+ tdm_0: tdm@140e0000 {
+ compatible = "samsung,exynos7-i2s";
+ reg = <0x0 0x140E0000 0x0 0x100>;
+ interrupts = ;
+ dmas = <&pdma1 14>, <&pdma1 13>, <&pdma1 12>;
+ dma-names = "tx", "rx", "tx-sec";
+ #clock-cells = <1>;
+ #sound-dai-cells = <1>;
+ clocks = <&clock_peric PERIC_HCLK_TDM0>,
+ <&clock_peric PERIC_HCLK_TDM0>,
+ <&clock_peric PERIC_PCLK_TDM0>;
+ clock-names = "i2s_opclk0", "i2s_opclk1", "iis";
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2s0_bus>;
+ samsung,sec-dai-id = <0>;
+ status = "disabled";
+ };
+
+ tdm_1: tdm@140f0000 {
+ compatible = "samsung,exynos7-i2s";
+ reg = <0x0 0x140F0000 0x0 0x100>;
+ interrupts = ;
+ dmas = <&pdma1 17>, <&pdma1 16>, <&pdma1 15>;
+ dma-names = "tx", "rx", "tx-sec";
+ #clock-cells = <1>;
+ #sound-dai-cells = <1>;
+ clocks = <&clock_peric PERIC_HCLK_TDM1>,
+ <&clock_peric PERIC_HCLK_TDM1>,
+ <&clock_peric PERIC_PCLK_TDM1>;
+ clock-names = "i2s_opclk0", "i2s_opclk1", "iis";
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2s1_bus>;
+ samsung,sec-dai-id = <1>;
+ status = "disabled";
+ };
+
timer@10040000 {
compatible = "tesla,fsd-mct", "samsung,exynos4210-mct";
reg = <0x0 0x10040000 0x0 0x800>;