Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1087563ybv; Thu, 20 Feb 2020 12:58:21 -0800 (PST) X-Google-Smtp-Source: APXvYqwh+JvxguTFhWuJw5PohduPwKK/+VLyCPAUP+fmdliTJFIuJ9wtDhOuXGriwWI1b7WskT3z X-Received: by 2002:aca:4a0b:: with SMTP id x11mr3432655oia.37.1582232301028; Thu, 20 Feb 2020 12:58:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582232301; cv=none; d=google.com; s=arc-20160816; b=ve1bJlqBQ+KgtumGxnDMprqo7YedWsQZVoQV0ipTZacyz0tTzzeEcH9sQbONj3BlmJ g/HnjD3A1Il/pYYWziNxH0WBVjdRAiEdPLDj7++fBuH9mdOt1X3uT0RaGH27NQJnm/DU oj1+yQra8kdrFxyB80KtJlfX/mBE5qEbZRmzrDBpf+QtGZqMDAvkxNx9f4jEhSm6cyy7 22B5sfefIX2zIM1HaMxP5zoa6WNEd2Z+IogTiLn6W7vhBt6sM8VpZ1bGEG45p3fcKmuU +hqN5+GOQxK7ku1BCaamcIPsAzAFNwBkzfX2ZJz19MuCy71OyI1w84Ppo782B9yLwm3F z2bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=FXjFzy08xMuJRMEmwBB0yy8RCFRKvyZHt3R4Qv4p1O8=; b=I5wEWuiYOymBxJgbpCTag7lxT90OsKf2jx0JN53NqxAwSVjd+HtAJTVml3pVwv6I+B r72ll6GMMhwN8Ddb+g1OGAo42JicZ5eN5uCN4oUkVIHQ0f6r8tdIFX1UbJidHx9Ulp1n 6mUbMX+Ih1UZj7burwTE/K0+cIOyBFSMxaIbbnKJN9YPEJyVFFmDlL3ky68IpgC/oTtG X6OUIAaUjGAx9seeu+x7RODMhk9ZfCDxHGRiHzGRZ6kpo8RiQ2cRwazlYzB1LwLJQP1u A7ogPrmhn0WM4hwpxLpHPLgrxFturgIsgfCk69WEJD2pKQMGM1xwqxOh7hJuH4qjWzmM cJIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=F2UN2Hn7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i20si207444oie.119.2020.02.20.12.58.09; Thu, 20 Feb 2020 12:58:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=F2UN2Hn7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729352AbgBTU5V (ORCPT + 99 others); Thu, 20 Feb 2020 15:57:21 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:34413 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728967AbgBTU5T (ORCPT ); Thu, 20 Feb 2020 15:57:19 -0500 Received: by mail-wr1-f65.google.com with SMTP id n10so6219390wrm.1; Thu, 20 Feb 2020 12:57:18 -0800 (PST) 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=FXjFzy08xMuJRMEmwBB0yy8RCFRKvyZHt3R4Qv4p1O8=; b=F2UN2Hn7nmxIi+cFd7snrG33JIJjswMBS3DsHUuvSbqqi8E8OVJdnLegKa+tC6gccQ JKh/sbaLX1ZAeU+9UddHYLmfilbTGhARmYPRE7cSVKS26auV2A0KqWkdqV5tj9V0VYbQ UDfyG6axD3KDMa/QyksF8EUy0zlROK63PctIj5HC8i1eqmDJv5aOjZZ7fyero/KPUuDq wfOVVD/1bB99njYloSBusB4CVm9CWNj0SJE4q+N8v8QsGEqNz6UOdhXkNT/K4dzNfUVC PD45Jx76l0Ml6UrUYOnaGDtRs2MmDO+DvUYM9Bn9bxHJr7ped37CZg95RVU2w6NlmZlo d0eA== 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=FXjFzy08xMuJRMEmwBB0yy8RCFRKvyZHt3R4Qv4p1O8=; b=VSOxU9gDsAv/qMF3KWWnoNHevPEPLi5t1JednUkXuL+TZJuO1bnoCYc+fYBolUh469 tKUKV2a0a5yI6hF5ynFgDh/D3EHbiFZjwFJYafvoK7cqJ2F8KEEjZdWGqUqU178eLi9j CM3sa1fWkDEBith4VDGWexqDMWI3xcn5IOdUfAABqPt71nm9RluYKCpoQ28iVX0ztCVb t3HCjCk9tUQ+4dTGyHxNQg+Iyi5O2yb2Wc4SVlsTzmw8B3di50gxwtvt8IWl50won/CH uOD/vPU+5J3igpFQN/x7lQpZuE+qOJXsYFbLLng3/sRxD+OnPe8T0rDHFRjeB0YbyoiJ nLRw== X-Gm-Message-State: APjAAAUDVJOPVpbjZFmanJxQRVgyx1c5bJSqXJbENQQD+46xRGT+/4VU jMvdhlwEWXIobjPuIddxb5A= X-Received: by 2002:adf:f3d0:: with SMTP id g16mr45704445wrp.2.1582232237793; Thu, 20 Feb 2020 12:57:17 -0800 (PST) Received: from localhost.localdomain (p200300F1373A1900428D5CFFFEB99DB8.dip0.t-ipconnect.de. [2003:f1:373a:1900:428d:5cff:feb9:9db8]) by smtp.googlemail.com with ESMTPSA id a184sm695039wmf.29.2020.02.20.12.57.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Feb 2020 12:57:17 -0800 (PST) From: Martin Blumenstingl To: jbrunet@baylibre.com, broonie@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org Cc: lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Martin Blumenstingl Subject: [PATCH 0/3] ASoC: meson: aiu: add Meson8 SoC family support Date: Thu, 20 Feb 2020 21:57:08 +0100 Message-Id: <20200220205711.77953-1-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds support for the AIU audio controller found on the 32-bit Meson8 and Meson8b SoCs (both seem to use the same revision, but for safety reasons we add two compatible strings). The only known difference compared to the GX SoCs is the absence of the I2S divider in the AIU_CLK_CTRL_MORE register. Instead we have to use a less flexible divider. I2S testing was done on an Odroid-C1+ with a PCM5102A stereo DAC board connected (on the J7 header) like this: Odroid-C1+ | DAC ------------------ pin #1 GND | GND pin #3 5V | VIN pin #4 MCLK | SCK (optional, DAC can operate without this) pin #5 LRCK | LCK pin #5 SCK | BCK pin #5 DATA | DIN In 3-wire I2S the MCLK <-> SCK connection can be omitted. For my tests I used mclk-fs = <64> in this case. In 4-wire I2S the MCLK <-> SCK connection is required. For my tests I used mclk-fs = <256> in this case. Martin Blumenstingl (3): ASoC: meson: aiu: Document Meson8 and Meson8b support in the dt-bindings ASoC: meson: aiu: introduce a struct for platform specific information ASoC: meson: aiu: add support for the Meson8 and Meson8b SoC families .../bindings/sound/amlogic,aiu.yaml | 2 + sound/soc/meson/Kconfig | 2 +- sound/soc/meson/aiu-encoder-i2s.c | 92 ++++++++++++++----- sound/soc/meson/aiu.c | 28 +++++- sound/soc/meson/aiu.h | 6 ++ 5 files changed, 104 insertions(+), 26 deletions(-) -- 2.25.1