From patchwork Tue Oct 25 12:41:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Frattaroli X-Patchwork-Id: 10734 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp982898wru; Tue, 25 Oct 2022 05:45:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4zbOCkCcnDbjf9B52KUwnjV2dITqVPg+5m3SBxxjslNoiBoKEZbQCj8ofn61U2qTpAW00u X-Received: by 2002:a17:907:980e:b0:78d:b6d5:661e with SMTP id ji14-20020a170907980e00b0078db6d5661emr32420680ejc.46.1666701903399; Tue, 25 Oct 2022 05:45:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666701903; cv=none; d=google.com; s=arc-20160816; b=WmY/IJQSSL6X+7KCgt7Ptt0AbMxJXMBe2wAcOeu/9aHSfSaPJzX18BkWt2tLPvveo+ LNmImzyjWgE8vqkG+vXLs7a8aZGG51oleSr2ATUfkNjTKRs/A2DrOBpcjm4fxkJMNIct SaaNwZA8ZoLStYMp6aWwehUDmY5jLOooquPnN09qCgJRK6PTABAmTiFuI2zCl81gELgD 2ol9SRSwosiyuUbilKGXB+iOz4mct01Z/1kbouGpozrHfNZQ2COv7KSrdlR+XU1QRHS8 CM9nZfB/WI5zihR9UXqCTfZmDcU7gPKiYwCtgl3Rkapa7fZUw+xhboYsk+wA9A4Ws6DC o4FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KZM0T9VAIhDH8MlN6WTNKMHChs2UsyWeC4jS+W4xqgE=; b=FpVX/gabj9GGAE/Efj0bEA1bTKVCo2H/wB9BjrZ5VtGalVFQD17SKVrd+br1LUVGa+ qlbt0xgcN9Axc0/6euGOY+r6QZ7mr9t4FNbKspseWfO/hlckyio0eszNQswg/OPzwwOw BVziTkByoe1lCudtApwYx9KwMM9B4tuDdwChcpXCk6BZ8W3kimBQGsZwgC451IdF7LkR T3bJpE8jppQpNhlv9Tm4vcXMXws++3R+D/XJHJTbfch216NRb9jnPkOnxYZ71b6Py/KI LHAqrSy8KZ76O2RB8pOpcX8YiAHm2odwVg5bU2ChMksLbyxarUZw+3zjdl9FsNcHWVL/ 1jsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="KKMGuE4/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ht22-20020a170907609600b00783ac0b4d32si3096591ejc.941.2022.10.25.05.44.39; Tue, 25 Oct 2022 05:45:03 -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=@gmail.com header.s=20210112 header.b="KKMGuE4/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232135AbiJYMmR (ORCPT + 99 others); Tue, 25 Oct 2022 08:42:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230008AbiJYMmF (ORCPT ); Tue, 25 Oct 2022 08:42:05 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C61B518BE26 for ; Tue, 25 Oct 2022 05:42:04 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id bp11so20074960wrb.9 for ; Tue, 25 Oct 2022 05:42:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KZM0T9VAIhDH8MlN6WTNKMHChs2UsyWeC4jS+W4xqgE=; b=KKMGuE4/SZ26vZUsXFESU9bVBmQJ/U9oz2QjLdmDj6petr7Z0fUlZubuhdLhvEHci5 NKRFIbeUyziptVGfh3p/uVfPCIQyrHUuKO5Qlc2RR/bNaUvRQHI6pnNX9R4FEBl6PjYD 6mWRvQQIfpy7O/C5VnXdugs6rY/7p+VQPqmphCuqAVwJpcPGG5PqRqrPO5Zhh1yeaNJy 9wnklj2raQkZPW+/B0fbHfSxoPtdzucnF3Fn58vb2YsvsXViLeErmNpBsxvYCy25J9Ur glBOkXDAOSNthoVwGPXzCa5jRxghjJ4x7toQbOtgT1kjjHVrzNMFVACINvHPlyhT1NOJ JevQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KZM0T9VAIhDH8MlN6WTNKMHChs2UsyWeC4jS+W4xqgE=; b=Ep1/vpeBinjC3Wd5sNB2cVsw7CMSLczNyL3KftZ5qEc+CysB8SLuanmB3mpHs22Ibc bTrAfG5wmBN5dx+ZfjmujgcbpvIzDvbwnjRjwmrPqXu+0C6ano0El7Al2FB9iEz19IjR tEJlnYbXeSGsHbV7sX0yRiSVDi6ory/6XD3ze8AX/1CJeKJGRWtqbziqf4s9v9DZScWr MgmJJx2ubWLkOV6ZvdbDNPbvIefAm9D65sGQ5Q3neiIQFGOHWrHntHelub07NNSYZcxt ObY5MqZIDI5FHK8ay/daH280ryYtKGTThCyTzqW9lGYDaKa17Q+tpwtorY28+L6OLEjx L/og== X-Gm-Message-State: ACrzQf09xc+Dfet7tmunRyf4N/OvhExoU7dr/6TfGx5lSQPcPklZPtHi r23TaJzoER1jZW0eSURdCAE= X-Received: by 2002:a1c:ed0b:0:b0:3c1:d16e:a827 with SMTP id l11-20020a1ced0b000000b003c1d16ea827mr25702572wmh.127.1666701723192; Tue, 25 Oct 2022 05:42:03 -0700 (PDT) Received: from localhost.localdomain (84-72-105-84.dclient.hispeed.ch. [84.72.105.84]) by smtp.gmail.com with ESMTPSA id ay19-20020a05600c1e1300b003a1980d55c4sm11250664wmb.47.2022.10.25.05.42.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Oct 2022 05:42:02 -0700 (PDT) From: Nicolas Frattaroli To: Nicolas Frattaroli , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Heiko Stuebner Cc: linux-rockchip@lists.infradead.org, alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] ASoC: rockchip: i2s_tdm: Add support for RK3588 Date: Tue, 25 Oct 2022 14:41:32 +0200 Message-Id: <20221025124132.399729-5-frattaroli.nicolas@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221025124132.399729-1-frattaroli.nicolas@gmail.com> References: <20221025124132.399729-1-frattaroli.nicolas@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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?1747663615180113308?= X-GMAIL-MSGID: =?utf-8?q?1747663615180113308?= This adds support for the RK3588 SoC to the I2S/TDM driver. Signed-off-by: Nicolas Frattaroli --- sound/soc/rockchip/rockchip_i2s_tdm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/rockchip/rockchip_i2s_tdm.c b/sound/soc/rockchip/rockchip_i2s_tdm.c index 917f17107891..08b90ec5cc80 100644 --- a/sound/soc/rockchip/rockchip_i2s_tdm.c +++ b/sound/soc/rockchip/rockchip_i2s_tdm.c @@ -1318,6 +1318,7 @@ static const struct of_device_id rockchip_i2s_tdm_match[] = { { .compatible = "rockchip,rk1808-i2s-tdm", .data = &rk1808_i2s_soc_data }, { .compatible = "rockchip,rk3308-i2s-tdm", .data = &rk3308_i2s_soc_data }, { .compatible = "rockchip,rk3568-i2s-tdm", .data = &rk3568_i2s_soc_data }, + { .compatible = "rockchip,rk3588-i2s-tdm" }, { .compatible = "rockchip,rv1126-i2s-tdm", .data = &rv1126_i2s_soc_data }, {}, }; @@ -1556,7 +1557,7 @@ static int rockchip_i2s_tdm_probe(struct platform_device *pdev) i2s_tdm->dev = &pdev->dev; of_id = of_match_device(rockchip_i2s_tdm_match, &pdev->dev); - if (!of_id || !of_id->data) + if (!of_id) return -EINVAL; spin_lock_init(&i2s_tdm->lock);