From patchwork Sat Oct 13 03:32:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 10639845 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3090E925 for ; Sat, 13 Oct 2018 03:32:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 17EB22B94A for ; Sat, 13 Oct 2018 03:32:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0B25A2B954; Sat, 13 Oct 2018 03:32:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 12E542B94A for ; Sat, 13 Oct 2018 03:32:53 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 699B52679A6; Sat, 13 Oct 2018 05:32:51 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id A92C026794F; Sat, 13 Oct 2018 05:32:48 +0200 (CEST) Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by alsa0.perex.cz (Postfix) with ESMTP id 986DA2678CA for ; Sat, 13 Oct 2018 05:32:45 +0200 (CEST) Received: by mail-pg1-f193.google.com with SMTP id 80-v6so6676986pgh.10 for ; Fri, 12 Oct 2018 20:32:45 -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=6khEM++bSJef1Bq9HwWNhSuTaWXAhVoEl7mqCDF+kxM=; b=aE7qFIS0b69cioeokHWvyWAm7EJ/xKo/z8qd1QrfmHx4U42TdawgwkhmbNLfSgrUm6 2Zyta1gjk7IcqW98GNsR2roHkcikiNiGgIMFKPN3NZVZFTgfqVSAweKRBL4boDVUlQlz FXEBTl2+89Ly7L9lUO/EfqG5u4jbr2V4QnPY8wu5yL/W+j5YYWcJSwmaoSB5QDE4LPvI FxCk9uwUdv9fehBZZyubbD/G+jx3ApeqsSDtpjRiL5Q7qIuzD06EqWFVqGKzY5/42D4f jbBZqsYSgz06T+DhQJoMp+2RI9pxPgcuJlvrJBKBKxiKJepUmZ9TaY4Fi0hQ7b4TBYkt KJ5A== 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=6khEM++bSJef1Bq9HwWNhSuTaWXAhVoEl7mqCDF+kxM=; b=rsiy9wzlXvM0+sNP/lIgamoxQ/NeOYY2u0lzt4AfOQvPdbG07oCRoUz9wSDRJXrFes FgNohoIXjBWMTVNBK5Ddx6gAh2qJm/9VqL329Up6Mqs4jRmI/xWDjwuSDWKBwd6wyF1L pBnetUwtr6dy+krtYi2sDLFjtMGK68BVIRBxKWMfPNcul78DxipH+TvvnG71VyfSCgHr kosfZGjqWaQutcCBK9Q9gPT5SEyS/8AdbWB82oEEHe5JN+FQPhDqGJJ+B8oT6N9/GNrc OlvRzRwwXABmSMnDJGaTWKjgxvkwIkZYkTfoo6KUeeOOeTVe+8nM4aZ2CWxohgKA7nOA w1Sg== X-Gm-Message-State: ABuFfognB04t6KdKZWzRA11NtZZFoSY5OYYmF8W3kKjvv7z60FhSb7L6 caY4Y2GEAPB7fRnvnBwUppQ= X-Google-Smtp-Source: ACcGV63FdcDu6xveml2v9j3mDmqCsxZw/j5gIJKV9yjewPEH/TrO/Xpf0oOPH6YI/e3u+Hwzvvei5Q== X-Received: by 2002:a65:664e:: with SMTP id z14-v6mr7677382pgv.347.1539401564131; Fri, 12 Oct 2018 20:32:44 -0700 (PDT) Received: from anarsoul-thinkpad.lan (216-71-193-140.dyn.novuscom.net. [216.71.193.140]) by smtp.gmail.com with ESMTPSA id u79-v6sm5565039pfi.104.2018.10.12.20.32.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Oct 2018 20:32:43 -0700 (PDT) From: Vasily Khoruzhick To: Liam Girdwood , Mark Brown , Rob Herring , Mark Rutland , Maxime Ripard , Jaroslav Kysela , Takashi Iwai , Marcus Cooper , Mylene JOSSERAND , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Date: Fri, 12 Oct 2018 20:32:20 -0700 Message-Id: <20181013033230.6506-1-anarsoul@gmail.com> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 Cc: Vasily Khoruzhick Subject: [alsa-devel] [PATCH 00/10] Add support for audiocodec in Allwinner A64 X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP This series adds Allwinner A64 audiocodec support into sun4i-i2s, sun8i-codec drivers, introduces new sun50i-codec-analog driver and enables sound on Pine64, SoPine boards and Pinebook. I2S for audiocodec in A64 is different from other 3 I2S modules but similar to one in A10, digital part of codec is compatible with A33 and analog controls part is completely different from other SoCs - it shares only few bits in few registers, so adding support for it into existing sun8i-codec-analog would mean duplicating all the widgets, controls and some routes and making it hard to read. Therefore it makes sense to introduce new driver. Marcus Cooper (1): ASoC: sun4i-i2s: Add compatibility with A64 codec I2S Vasily Khoruzhick (9): ASoC: sun8i-codec: Don't hardcode BCLK / LRCK ratio ASoC: sun8i-codec: add support for speaker amp GPIO ASoC: sun8i-codec-analog: split regmap code into separate driver ASoC: sunxi: Add bindings for A64 codec's analog path controls ASoC: sunxi: Add support for Allwinner A64 codec's analog path controls ASoC: sunxi: allow the sun8i-codec driver to be built on ARM64 arm64: dts: allwinner: a64: add nodes necessary for analog sound support arm64: dts: allwinner: a64: enable sound on Pine64 and SoPine arm64: dts: allwinner: a64: enable sound on Pinebook .../devicetree/bindings/sound/sun4i-i2s.txt | 2 + .../bindings/sound/sun50i-codec-analog.txt | 14 + .../boot/dts/allwinner/sun50i-a64-pine64.dts | 30 ++ .../dts/allwinner/sun50i-a64-pinebook.dts | 33 ++ .../allwinner/sun50i-a64-sopine-baseboard.dts | 30 ++ arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 58 +++ sound/soc/sunxi/Kconfig | 17 +- sound/soc/sunxi/Makefile | 2 + sound/soc/sunxi/sun4i-i2s.c | 21 + sound/soc/sunxi/sun50i-codec-analog.c | 451 ++++++++++++++++++ sound/soc/sunxi/sun8i-codec-analog.c | 79 +-- sound/soc/sunxi/sun8i-codec.c | 61 ++- sound/soc/sunxi/sunxi-adda-pr-regmap.c | 102 ++++ sound/soc/sunxi/sunxi-adda-pr-regmap.h | 7 + 14 files changed, 824 insertions(+), 83 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/sun50i-codec-analog.txt create mode 100644 sound/soc/sunxi/sun50i-codec-analog.c create mode 100644 sound/soc/sunxi/sunxi-adda-pr-regmap.c create mode 100644 sound/soc/sunxi/sunxi-adda-pr-regmap.h