From patchwork Mon Oct 26 18:52:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 11858335 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F31DCC4363A for ; Mon, 26 Oct 2020 18:54:49 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7FD2A2085B for ; Mon, 26 Oct 2020 18:54:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="hot0BSvl"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PgQ4zBHo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7FD2A2085B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject: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=DtnFXksLJgZvbQCl5RPVWvLNYDgypZlPWBzywhiZ2PE=; b=hot0BSvlUuGz4PeRA8i62kQTsM ZHbhj8w3CIN+KBLXvjxgtlev32FTUgJ1AOaYfmV/KlqpsM0csQpwBXI224KuWcy238BXC1pIyTUJO hfa/sLhvVBEWqzm0BelH3ZGVjIoK+KQ51CbvxyPxN3QFIB+c/mwTUg7C52kCZSN38sFEaiOFj2Q8p yOZxzyEGhu110NnolYHCn2+fqZJtQPw9keTodp+BV3erCFbkh5AWbR/NolbZS/7fSQyqOAI43NnbR zNbqU07sVdIH5qn1HFf1sjN+xYuGnhPCYzTRD45BYLmSOIgzy3HqySksn848nL4a0BTPfJfWPLu+m y458o2Hw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kX7bt-00070j-7s; Mon, 26 Oct 2020 18:52:49 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kX7bp-0006wn-KH for linux-arm-kernel@lists.infradead.org; Mon, 26 Oct 2020 18:52:46 +0000 Received: by mail-wr1-x443.google.com with SMTP id n6so13871970wrm.13 for ; Mon, 26 Oct 2020 11:52:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cQUhXvV9ngizC4642GzTTm7/Hlvt6fgB3K3UUaUSFT8=; b=PgQ4zBHoGONM0EuDC+MSQZsCD9loQzQ/78CLuJDg4QV+2Go3bxkFWh9IyXcuIHBroL rbIUa+IRjeisxRCJpYXzD8hUNyeJEy13yexO7FQG9+VKCziLjOxCJkYvV0uNeHvVnxMm ufM/sUnjs1kE9IZFM3gKlAzTESp7DfjYbofyZ7CBGQX0e3sjDSPbzIWVkqjQV4spTsuP 4PXu/623TZ+FKcLB03A+TsGN7W6bkZ3qVfpT/yuuchwgFM4TaFHY4C3dTdhz8qvAMuXF MNmtzUOWHuYANxu+HF6BtbLrSEdHDFZg/5Ck488Rnww18A7Y/CLeTc7fGEAr1wlAeSwx WUDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cQUhXvV9ngizC4642GzTTm7/Hlvt6fgB3K3UUaUSFT8=; b=fns2pQlXqHiixbYagN++Vj+zT+WWuTEiX/lSsjZgrSKeb5otOiD18xCs5eYUpT3+TT gb6L7CMmZue/w08pqCmLjmeyv/o/BRa5vLEVm7d5zeE1hCtdFeR4hw63Mq3pTNjWn4sF mKHqSTyoMaCoceZbc1eayVR0QEM8+PwQl/It+SoGLkG/5pOpdSUtTJ/KF7yR5ebNzsDd lIMz1PDW0tZEaGT/BiHnuZsoGwuDWg+b97Z0/VxF2ADgodBQ5PtqRsWIDT/6FVZW4elw Yi99j6zbsMip4Fa23cm7/0WVU5QGO+UwVufCZPMTnj0OVPGsSavzR9LP186Si39tjmyY xPsA== X-Gm-Message-State: AOAM531fuWrTVhX1vlXuVSzeaLVmK3LfIWDU2kC8IPMXhcblTonjBfYm dI8dgnhnJn1c/aQQnVu6toA= X-Google-Smtp-Source: ABdhPJywDncUnB846jl9ZKKaIOxZYjnQy76ipa3mbrDKAR3UpGtLZXtIwqM4R8XMtakeYjC0yhYG8A== X-Received: by 2002:adf:b787:: with SMTP id s7mr20509135wre.390.1603738362970; Mon, 26 Oct 2020 11:52:42 -0700 (PDT) Received: from localhost.localdomain (lputeaux-656-1-11-33.w82-127.abo.wanadoo.fr. [82.127.142.33]) by smtp.gmail.com with ESMTPSA id f7sm24885193wrx.64.2020.10.26.11.52.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Oct 2020 11:52:42 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Maxime Ripard , Chen-Yu Tsai , Rob Herring , Mark Brown , Liam Girdwood Subject: [PATCH v8 00/14] Add Allwinner H3/H5/H6/A64 HDMI audio Date: Mon, 26 Oct 2020 19:52:25 +0100 Message-Id: <20201026185239.379417-1-peron.clem@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201026_145245_750024_4A42CE2F X-CRM114-Status: GOOD ( 16.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Jernej Skrabec , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Takashi Iwai , Jaroslav Kysela , Marcus Cooper , linux-sunxi@googlegroups.com, =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, This is the same as v7 but rebased on next-20201026 and added a comment about slots and slot_width. A proper sound card will be introduced later. This was tested on H6 only. Regards, Clement Change since v7: - rebase on next-20201026 - comment about slots and slot_width Change since v6: - move set_channel_cfg() in first position - convert return value to decimal Change since v5: - Drop HDMI simple soundcard - Collect Chen-Yu Tsai tags - Configure channels from 9 to 15. - Remove DMA RX for H3/H5 - Fix Documentation for H3/H5 Change since v4: - add more comment on get_wss() and set_channel_cfg() patch - merge soundcard and DAI HDMI patches Change since v3: - add Samuel Holland patch to reconfigure FIFO_TX_REG when suspend is enabled - readd inversion to H6 LRCK sun50i_h6_i2s_set_soc_fmt() - Fix get_wss() for sun4i - Add a commit to fix checkpatch warning Change since v2: - rebase on next-20200918 - drop revert LRCK polarity patch - readd simple-audio-card,frame-inversion in dts - Add patch for changing set_chan_cfg params Change since v1: - rebase on next-20200828 - add revert LRCK polarity - remove all simple-audio-card,frame-inversion in dts - add Ondrej patches for Orange Pi board - Add arm64 defconfig patch Clément Péron (6): ASoC: sun4i-i2s: Change set_chan_cfg() params ASoC: sun4i-i2s: Change get_sr() and get_wss() to be more explicit ASoC: sun4i-i2s: Fix sun8i volatile regs ASoC: sun4i-i2s: fix coding-style for callback definition arm64: defconfig: Enable Allwinner i2s driver dt-bindings: sound: sun4i-i2s: Document H3 with missing RX channel possibility Jernej Skrabec (3): ASoC: sun4i-i2s: Add support for H6 I2S dt-bindings: ASoC: sun4i-i2s: Add H6 compatible arm64: dts: allwinner: h6: Add I2S1 node Marcus Cooper (4): ASoC: sun4i-i2s: Set sign extend sample ASoc: sun4i-i2s: Add 20 and 24 bit support arm64: dts: allwinner: a64: Add I2S2 node arm: dts: sunxi: h3/h5: Add I2S2 node Samuel Holland (1): ASoC: sun4i-i2s: Fix setting of FIFO modes .../sound/allwinner,sun4i-a10-i2s.yaml | 6 +- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 13 + arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 14 + arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 13 + arch/arm64/configs/defconfig | 1 + sound/soc/sunxi/sun4i-i2s.c | 385 +++++++++++++++--- 6 files changed, 376 insertions(+), 56 deletions(-)