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: 983415 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="aE7qFIS0"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 42X9JH10vFz9s89 for ; Sat, 13 Oct 2018 14:32:47 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726095AbeJMLIM (ORCPT ); Sat, 13 Oct 2018 07:08:12 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:39548 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725970AbeJMLIM (ORCPT ); Sat, 13 Oct 2018 07:08:12 -0400 Received: by mail-pg1-f195.google.com with SMTP id r9-v6so6691116pgv.6 for ; Fri, 12 Oct 2018 20:32:44 -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=oILrgWvUo1nc2WNEfkl4YBj9uA7wROhQQY1jFullaA9ozY0Yag/fkwC93p1ji9Nb3k cwXz+zjvk6eEhRWMYxiePmNW0tfcvSZORzQGVTLyqyPPfZH9wthAx2+LRyrlGCCOj6x5 6peH+h3fNG7v6VEL1Qyeb8PPUWPRYSjPZuJFMcGU+KI/TeZnG2JZi3X2jC9aWYkksijk rVe/FnwSszKV9jR1AKha3Xibhhxoi21cwBg1RQyE5qJgVfP9ioxvjBHViSz4rOf+dfKM SmV7vTgMLkkSyGVuBQd7AX3EKdxJJylqOTT/7Lk8l/dKJUeP8Xa0iZlPI/3swJQfcObt 8zmA== X-Gm-Message-State: ABuFfogsYBkikZ1DyXu29ACJVCeyo5UO1BvRRh4xs00gM/KcIYCmtc66 DNMKQfvat98lkuI2UM8mbQQ= 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 Cc: Vasily Khoruzhick Subject: [PATCH 00/10] Add support for audiocodec in Allwinner A64 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 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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