From patchwork Mon May 20 20:03:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10952269 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 BD45314B6 for ; Mon, 20 May 2019 20:03:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A267228928 for ; Mon, 20 May 2019 20:03:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9454A2892C; Mon, 20 May 2019 20:03:31 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3CF1728928 for ; Mon, 20 May 2019 20:03:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725983AbfETUDa (ORCPT ); Mon, 20 May 2019 16:03:30 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:39408 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725601AbfETUDa (ORCPT ); Mon, 20 May 2019 16:03:30 -0400 Received: by mail-wm1-f65.google.com with SMTP id n25so561307wmk.4; Mon, 20 May 2019 13:03:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7xT9LsbSrOL4FALnwbx2ofAhC4bhcSjUh2MzuU+lqDs=; b=uwN5cQla9irCx0v4W2hkNijVJtfeA9waG/LHN1YD0qXyMNu6GkrZbBIb6DJORVeUny p4SwwAmj/s6Tj4HNjwS6mDcaXJG6tdz28eSMPFoF3WGcC79XmcN9yp1lNmjdMSEtvAym JO8MK4Dy+DaLnsA2jipx5mYqBYM5Qc17fIikbMCnZHOUtRIP35+QZlkEKw7t6TFsUnNg KPclioq3Lybqyw3QeeMhLRshNhTo3WWyH47bf6sxkT2Y2n7Qp3A2wY5FJFsm8W+eVv/7 xBkjhE1lg7ZGH+ff+DDuTdz5Kl3QEc/7Ca7ssZoKkcgyZ0zstqc98b7nUo0HOjglJ1H5 m0QQ== 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=7xT9LsbSrOL4FALnwbx2ofAhC4bhcSjUh2MzuU+lqDs=; b=L3yRVZz5atgmQYq/V6B9yRXlZnjjM0nGS2JvHvIZ9Xmmo6tP6s64DGBgcMFLTRN51Y ZnxSckeXe0882wGAKFTRRePerqbynpamTpE2OEIyYBp4uJ1Z8J2/lFAi49DQUGShXmU6 nGXBDaOSVSSKCR6FkCQVemE8J6n+AZYdUlAvs6on78MnXnU/dOCepw7svPZgkD49y30x 6EeMsgZrAdyR47rFgXghMeg2bv/EAjjwK7h7UTY1/G1EQN1q3hMUkWNsdeYowhuMhrns im9RtYY8O6n86o203ndfOslu+TE9p9xBU7jfLJxKxK1KhCeIbw19qK5+i7kNIke31Oe+ rdug== X-Gm-Message-State: APjAAAVHbyp47d/ldrxMRdF5BCaXs1fea9SEJ4/ysC0pO3Gjzw0G86eO ecmbR0PPWAX3/EuTbYf4/SY= X-Google-Smtp-Source: APXvYqyIBv3ZBYENvn1vZbkmjXYL3k1GAmMzrTiWl9qygnfnwTHVClk1T7WYtr5kFVF0lErt4XfxyQ== X-Received: by 2002:a1c:c016:: with SMTP id q22mr600345wmf.6.1558382608612; Mon, 20 May 2019 13:03:28 -0700 (PDT) Received: from blackbox.darklights.net (p200300F133EE71009C356FA1F0E19AF9.dip0.t-ipconnect.de. [2003:f1:33ee:7100:9c35:6fa1:f0e1:9af9]) by smtp.googlemail.com with ESMTPSA id t7sm23583379wrq.76.2019.05.20.13.03.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 May 2019 13:03:27 -0700 (PDT) From: Martin Blumenstingl To: narmstrong@baylibre.com, jbrunet@baylibre.com, linux-amlogic@lists.infradead.org Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Blumenstingl Subject: [PATCH 0/4] 32-bit Meson: audio clock support Date: Mon, 20 May 2019 22:03:15 +0200 Message-Id: <20190520200319.9265-1-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The audio clocks on the 32-bit Meson8, Meson8b and Meson8m2 are (probably) identical to the ones on GXBB, GXL and GXM. The first piece of evidence is that Amlogic's vendor kernel is using the same basic driver (just slightly modified) for the 32-bit SoCs [0] and 64-bit SoCs [1]. Then there's buildroot-openlinux-A113-201901 which ships kernel/aml-4.9/drivers/amlogic/clk/m8b/clk_misc.c. It contains the same registers and bits (just slightly different naming) than the mainline GXBB/GXL/GXM clock driver. There is no working mainline ALSA driver for this yet so I am not 100% sure that everything is correct. However, due to the evidence listed above I'm sure that the basics are correct so this is a good starting point. [0] https://github.com/endlessm/linux-meson/tree/d6e13c220931110fe676ede6da69fc61a7cb04b6/sound/soc/aml/m8 [1] https://github.com/khadas/linux/tree/1bd6972cd0093725c0b1dc87f6546648bbb22452/sound/soc/aml/m8 Martin Blumenstingl (4): dt-bindings: clock: meson8b: add the audio clocks clk: meson: meson8b: add the cts_amclk clocks clk: meson: meson8b: add the cts_mclk_i958 clocks clk: meson: meson8b: add the cts_i958 clock drivers/clk/meson/meson8b.c | 154 +++++++++++++++++++++++ drivers/clk/meson/meson8b.h | 8 +- include/dt-bindings/clock/meson8b-clkc.h | 3 + 3 files changed, 164 insertions(+), 1 deletion(-)