From patchwork Fri Oct 14 10:21:45 2022
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Padmanabhan Rajanbabu
X-Patchwork-Id: 122
Return-Path:
Delivered-To: ouuuleilei@gmail.com
Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp121582wrs;
Fri, 14 Oct 2022 04:11:05 -0700 (PDT)
X-Google-Smtp-Source:
AMsMyM4BjbKezvpBOOtShpw1G3OZjnfkn1/OC73aK927e0mxIgM7/tEvzzSerojLfQRHGgNQw1wI
X-Received: by 2002:a17:907:8a23:b0:78d:b042:eece with SMTP id
sc35-20020a1709078a2300b0078db042eecemr3035474ejc.494.1665745864486;
Fri, 14 Oct 2022 04:11:04 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1665745864; cv=none;
d=google.com; s=arc-20160816;
b=A4ffSaFvgnNhNy3qmeVODADPeAZKZbbaK2sDOGNsWLYyzlv5YsHXxK5VKdZT7a/zhb
d0+VEKFiGq3mUQlAcbPZ2ALB6Uwslvl4KTMNA7KxPWpomlVRQNTGrhdMbEK95R9wA0nh
dKwThaqCiRxlsmoWKTuBZUUMxANTpptO2oGEa3yZ4s+yD14NFr78fFGDXOHqndCal70t
7PZhOtRP9quCRsXTOOAgtTaR7yh466KXQ3rvd4Z+vaFoccnMUgxDsmgbF7RK+b7vZgXD
SONqv7vRBaTzpFphxR/PrEltO9WJnsSSGKEzvfYc+1B5+rPs+kIn1BEIqpx2mfBPYnNo
ieOw==
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:message-id:date
:subject:cc:to:from:dkim-signature:dkim-filter;
bh=drQIuJSWxplbdrmSqi94xu4iCzrCrkKp7js1FjD7pio=;
b=JXRSggIGOsW6bwQkcpzimzJgK1RjwnVLp0zxQISczN7dO7LSFZaGihgWFjNyyZqNqE
IK3O64MWeQ2eJLR+4mNkfJq7W6nvgrBUBXW5/z02WtSJgdLY9+FzAF6VquJh7TjpVu61
gIftuBogsKvZdIOJgioCvPetbF9UpAA4shjLBBvoQKl76JXugEYab7BPqOvDTqNA3yMy
I4kkT+NY+ZKTPq0j6x5eDnX1DuPjAkj4GI4hIN/W7Sq84dw+z3D+IIXsjuYeDe3AY1Ma
MHBtMs/+yEY40xOzdIIRMc6awrwd/ulKUdr+wqdhcgsZGeQ/oEuKq/z9j4CdLOuK3SmW
zBSg==
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@samsung.com header.s=mail20170921
header.b="tq2I/IEh";
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
qw22-20020a1709066a1600b00787796077a0si1883124ejc.429.2022.10.14.04.10.37;
Fri, 14 Oct 2022 04:11:04 -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="tq2I/IEh";
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 S229739AbiJNLKE (ORCPT + 99 others);
Fri, 14 Oct 2022 07:10:04 -0400
Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34072 "EHLO
lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
with ESMTP id S229613AbiJNLKA (ORCPT
);
Fri, 14 Oct 2022 07:10:00 -0400
Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25])
by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D2EF248FE
for ;
Fri, 14 Oct 2022 04:09:55 -0700 (PDT)
Received: from epcas5p1.samsung.com (unknown [182.195.41.39])
by mailout2.samsung.com (KnoxPortal) with ESMTP id
20221014110953epoutp02cfbbd6083b28b559f7e437fb6cfb3849~d6vlEel971905819058epoutp02G
for ;
Fri, 14 Oct 2022 11:09:53 +0000 (GMT)
DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com
20221014110953epoutp02cfbbd6083b28b559f7e437fb6cfb3849~d6vlEel971905819058epoutp02G
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com;
s=mail20170921; t=1665745793;
bh=drQIuJSWxplbdrmSqi94xu4iCzrCrkKp7js1FjD7pio=;
h=From:To:Cc:Subject:Date:References:From;
b=tq2I/IEhnKRodIHvVU21HPJmi8wKOd7mzFMii7B7Fq0l00pszo4m70Z3yHMULMM7n
dsBKnNv8eAoWcTzFbzFGgh9XF5luRpmLHNCUmS7d2jkDuynT8MKvZep2mu8lADcVEk
Whd/a+8OGdvEq1w+RffvcRwwOvRiW9VoMHJTcA+Y=
Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by
epcas5p1.samsung.com (KnoxPortal) with ESMTP id
20221014110952epcas5p11a5258e1f88485433db3d40d6e13ca86~d6vka0eVV0967309673epcas5p1_;
Fri, 14 Oct 2022 11:09:52 +0000 (GMT)
Received: from epsmges5p1new.samsung.com (unknown [182.195.38.177]) by
epsnrtp4.localdomain (Postfix) with ESMTP id 4MpkDv0VCGz4x9Px;
Fri, 14 Oct
2022 11:09:51 +0000 (GMT)
Received: from epcas5p3.samsung.com ( [182.195.41.41]) by
epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id
AE.01.26992.E7349436; Fri, 14 Oct 2022 20:09:50 +0900 (KST)
Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by
epcas5p4.samsung.com (KnoxPortal) with ESMTPA id
20221014104843epcas5p47f6daaad2e67e0c9eedd68c2256c025b~d6dGHtdk61505115051epcas5p44;
Fri, 14 Oct 2022 10:48:43 +0000 (GMT)
Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by
epsmtrp1.samsung.com (KnoxPortal) with ESMTP id
20221014104843epsmtrp1f2e0545eff7515ee01a22945843d750c~d6dGFpebY3160431604epsmtrp1j;
Fri, 14 Oct 2022 10:48:43 +0000 (GMT)
X-AuditID: b6c32a49-319fb70000016970-ae-6349437e3d6b
Received: from epsmtip1.samsung.com ( [182.195.34.30]) by
epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id
03.2C.18644.B8E39436; Fri, 14 Oct 2022 19:48:43 +0900 (KST)
Received: from cheetah.sa.corp.samsungelectronics.net (unknown
[107.109.115.53]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id
20221014104840epsmtip1fcd4e8faf2d2e9cdcaf053d95ed04d5a~d6dD78-cs2737027370epsmtip1S;
Fri, 14 Oct 2022 10:48:40 +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 0/6] ASoC: samsung: fsd: audio support for FSD SoC
Date: Fri, 14 Oct 2022 15:51:45 +0530
Message-Id: <20221014102151.108539-1-p.rajanbabu@samsung.com>
X-Mailer: git-send-email 2.17.1
X-Brightmail-Tracker:
H4sIAAAAAAAAA+NgFupnk+LIzCtJLcpLzFFi42LZdlhTU7fO2TPZ4OgnS4sH87axWV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
/70V55vjFErnVi4X/HoxJn1V8H9hJ+71gVYfDHI37MjPCj/1/uTCCI1+Oem4rgO/b09XXLw8
1+ujy9uzSizFGYmGWsxFxYkA8X98b8wCAAA=
X-CMS-MailID: 20221014104843epcas5p47f6daaad2e67e0c9eedd68c2256c025b
X-Msg-Generator: CA
X-Sendblock-Type: REQ_APPROVE
CMS-TYPE: 105P
DLP-Filter: Pass
X-CFilter-Loop: Reflected
X-CMS-RootMailID: 20221014104843epcas5p47f6daaad2e67e0c9eedd68c2256c025b
References:
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=unavailable 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?1746661135739527962?=
X-GMAIL-MSGID: =?utf-8?q?1746661135739527962?=
The intention of this patch series is to enable audio support on FSD SoC.
The following features are added in samsung I2S interface:
1. Add TDM support on samsung I2S interface
2. Allow sound card to directly configure prescaler divider instead of
calculating it from frame clock
Also the sound card support for FSD SoC is added, which utilizes samsung
I2S interface as CPU DAI.
This patch is dependent on fsd-pinctrl fixes patch series [1]
[1]: https://lkml.org/lkml/2022/10/13/257
Padmanabhan Rajanbabu (6):
ASoC: samsung: i2s: TDM Support for CPU DAI driver
ASoC: samsung: i2s: configure PSR from sound card
dt-bindings: sound: Add sound card bindings for Tesla FSD
ASoC: samsung: fsd: Add FSD soundcard driver
arm64: dts: fsd: Add I2S DAI node for Tesla FSD
arm64: dts: fsd: Add sound card node for Tesla FSD
.../bindings/sound/tesla,fsd-card.yaml | 158 ++++++++
arch/arm64/boot/dts/tesla/fsd-evb.dts | 57 +++
arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi | 14 +
arch/arm64/boot/dts/tesla/fsd.dtsi | 41 ++
sound/soc/samsung/Kconfig | 12 +
sound/soc/samsung/Makefile | 2 +
sound/soc/samsung/fsd-card.c | 349 ++++++++++++++++++
sound/soc/samsung/i2s-regs.h | 17 +
sound/soc/samsung/i2s.c | 120 +++++-
sound/soc/samsung/i2s.h | 1 +
10 files changed, 766 insertions(+), 5 deletions(-)
create mode 100644 Documentation/devicetree/bindings/sound/tesla,fsd-card.yaml
create mode 100644 sound/soc/samsung/fsd-card.c