From patchwork Tue Oct 25 12:41:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Frattaroli X-Patchwork-Id: 13019155 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AF71BC04A95 for ; Tue, 25 Oct 2022 12:43:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=D/5PsAzNKadgHVW0iRZTkZWv4INNvTsiK+dXUuCDjME=; b=ACwgzNLvMt3pKl OpUfPyEgxbKWyAJcU3AgbSnSKi892lyZtvPfv9WMy0imKWZK1jA7EkBemLlGRSh8LYS8dm/d3Hfp9 Aq3es703Y4c2iFhs7f7R+shjmM93dovC9zw3cT4ZRQRx5aSKDODWng17ohB5UkYvnET0Qgn5cw4Ds RZhzU4ccKVrmYGCOIbU9z0uiNY+6tNfWNj/fv+d3pqKLD93sNOf8+RuQgLEVUsNA0URGJBEjlGPwF Q08OC1GMazkx3fpjIxWpoFJP4nIY20OvrFvj09iQEsOKYZ/zKWQKk7ZLB/BtiID0avOrCOEnnqbZ8 5WK5cs0ymx0wkKSHphZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1onJFm-005E1u-B8; Tue, 25 Oct 2022 12:41:58 +0000 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1onJFh-005DzV-V5; Tue, 25 Oct 2022 12:41:57 +0000 Received: by mail-wr1-x429.google.com with SMTP id bp11so20073451wrb.9; Tue, 25 Oct 2022 05:41:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=yH8jcG0t2JnpHFP328ErEiy3xOc8p7F+XJJ12TGrYJ4=; b=ADcgveVq42dClUSYh1OdhJor5VPmcRA6oevJkoIoUn3cs3uhGEVs3eTiNOnAQDUoJ3 jqZ/Cza0BIP9QGy8ZetmZ8xAoA7TYpkv0rRaIJ4iysx4ine4E4lEjxcHjGGMNC4p77Bs gVHSlRuSEYGign0vPFAYRcC/AVLOPVWpMUF8xX7GO4RkO1Af9UuWuD4yhAOTmBV3v1ml etxwfTQTQXCVmxYSy4oMnLxyZS/v40OOCw0y+anTWWnZ9czbBgVVn3RxflHj91yVsNYu JXRLAlTRPXOMxGb0Q8lAXZBI+SKVQ4xjDFNYj36MnwsrfDzCTVN5rEzyN1uoUxj/6PKv UREA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yH8jcG0t2JnpHFP328ErEiy3xOc8p7F+XJJ12TGrYJ4=; b=QbcQGZwKW3HtUk8NOU9O3CMMGW7Tk+eVQHeZTu2o4XHXBnJ0QFBVdo6lx8yvHUt4bH 5cjJXv4MP0sn7wGzduxCUxt3joOmVZfASH9/FHDAfbdZlacKSprS0uzX5Dz7W/6gUyg0 esqkgumAGJWD3A89Tm4/jh0Ts7QKFEb2KMjYndeOyFouq1bchRgGeSHbYskIfpPf/9gV RWQWrFFshDO6C96FiSbVMrMiCjTB3cwXKISUGrroDU32LPSYonO6xyC5wboihud81QoQ 2B9Blgfza/ArQdNT91h+CjrOC/ZznhKDZzTEz125Z6Zl7bRTzDOGWJ0v8Yr5nrmVhSK0 VMcA== X-Gm-Message-State: ACrzQf1jQ2O1k/6lkBJzreiTT6PeAilWHYPBtVev/c/RLmlPg2YybZdt fZ7zNAjdiXB4ESgpWFlrL3E= X-Google-Smtp-Source: AMsMyM79M+Qo60SRQPkng0nGNuvvyofmUH45lXPvafVewbcusEHRtb9umhJDmerFTJrt94xMZHytvQ== X-Received: by 2002:a5d:4ac8:0:b0:236:781a:8d2d with SMTP id y8-20020a5d4ac8000000b00236781a8d2dmr5463369wrs.715.1666701710247; Tue, 25 Oct 2022 05:41:50 -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.41.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Oct 2022 05:41:49 -0700 (PDT) From: Nicolas Frattaroli To: Cc: Nicolas Frattaroli , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Jaroslav Kysela , Takashi Iwai , linux-rockchip@lists.infradead.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/4] RK3588 Audio Support Date: Tue, 25 Oct 2022 14:41:28 +0200 Message-Id: <20221025124132.399729-1-frattaroli.nicolas@gmail.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221025_054154_033341_82719241 X-CRM114-Status: GOOD ( 12.67 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patchset refactors the Rockchip I2S/TDM driver in order to support the RK3588 SoC, and then adds the necessary compatible string to load the driver for it. Patch 1 rectifies a problem with the bindings where we were too strict about requiring the rockchip,grf property. Most features of this audio device don't need access to the GRF to function. Patch 2 modifies the driver to adjust its behaviour to what the changed bindings now allow, namely using most things without the GRF. Patch 3 and 4 are boring compatible string stuff that enables RK3588 support. No special data is needed to initialise the driver for this instance of the I2S/TDM IP. Nicolas Frattaroli (4): ASoC: dt-bindings: rockchip: i2s-tdm: Make grf property optional ASoC: rockchip: i2s_tdm: Make the grf property optional ASoC: dt-bindings: rockchip: i2s-tdm: Add RK3588 compatible ASoC: rockchip: i2s_tdm: Add support for RK3588 .../bindings/sound/rockchip,i2s-tdm.yaml | 2 +- sound/soc/rockchip/rockchip_i2s_tdm.c | 19 ++++++++++++++----- 2 files changed, 15 insertions(+), 6 deletions(-)