Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp920566lqb; Fri, 15 Mar 2024 09:54:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXptUNDpId/nSPrNeZMiFHhLhcT69RQ60clyEWlrzRvX8/D38pYL0ai58+9wHI6AJubZG0VSFrxj3QOBV0pgVyR2sK9ZopBUbu7wkpOwQ== X-Google-Smtp-Source: AGHT+IFRrwsDDG/1CuL2r7ywM+zcAajKCPF1r95xF1oA6d3o85+MjU/tkThlUfOakEmWLIsEjl9O X-Received: by 2002:a17:903:32cd:b0:1de:e3d5:cdde with SMTP id i13-20020a17090332cd00b001dee3d5cddemr4917996plr.5.1710521684235; Fri, 15 Mar 2024 09:54:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710521684; cv=pass; d=google.com; s=arc-20160816; b=UWcBJLbJf4kqOxRfFR36EDRL5od0GpPqDqghdrNy+GYpw+RVL7sXD9eWQa5ZnWdGfQ wnq22pUxD+uDbu4VF6del6U9inUHaW+QInaRH+JfxHhfptASJ6+Z4NJ1sknmcPh3k11f Yx+Qts0oKSyenjBjs/kjaaIwqE4pBP4ggTRPFh5fGSBMxl3B0KFjzSsb+SmK4rmyjhn/ rMdcJAK6eXutFGKPbig7SAVXQ01hVXso5kvFpt4ranWJ8OLDBegAUj+h5JCiICExwW/b 5t9HOMOe7xhx7wRG4X6H5PFDGEOQ79DyUjNqvK5NmeuyAvFMqunBmcJ58pyCjSQGdDk4 FkbA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=52kT8RCFGC7okKDqG5Bcwj1POjAaTduZrpTnpA9FpD0=; fh=Q1/0ebi5HcagcmI2ESORW4K5eYWRC8NyR+nQJ/AC/KI=; b=RLCqYddo5vXZPycOjhLMvvgOvCFsb2drq8symv/IcEDluvH74Xu36fVJ0SM+TBuPAl 4kq14gS/ZMVt+YOfjiDDVOw5Q9tysmugd19to5PH4MXl2OYYAFe5eamYZP1Nalu/mD7b ga2061flS+EZ7SqXXS8LGstHynj9RfI+Z1DqeoHeTwpaYy5GAPgnLGx9fjrCMfdBmOAl XAHxCmr07hiV6MVl/OXniveuLsHZ256uY193fDXhnStVTL+vFzKq61hN7+Ieugum3BTR sgDCZEm3MiTbcPIBoI+J2hIof8uiMW8L5EU7xEhFWmrSTqiO//5i/IW8IbQcpr+toAyt auwg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xGtmjUhV; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-104655-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104655-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id jj5-20020a170903048500b001ddd6ba810asi3659012plb.652.2024.03.15.09.54.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 09:54:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104655-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xGtmjUhV; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-104655-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104655-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id CE273B22F8F for ; Fri, 15 Mar 2024 16:54:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3CFE84F20E; Fri, 15 Mar 2024 16:53:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="xGtmjUhV" Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 058704AEF9 for ; Fri, 15 Mar 2024 16:53:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710521591; cv=none; b=SyXCdHvzsixsQBihKJBr6LQx3wbNzjIk8jLS7FtKQ9vTS6v+8FpxeZhDNV4XscwFytqvirBmdPY8kRZhSX7nUs9AGLsOzPVwYY6IDBtKJ24SKdpfvI111UZqJ47B5Q7RDhxiARJ7mFTS1hUeZi88Q7jHyXi4XQLmwdl+mriysHc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710521591; c=relaxed/simple; bh=J/mesTovEYtNSpXC1b7Hu6rWx3dBemBmXwuP4LpnTNA=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=abqJ/ZVGubA/V+u276/tTIsBnhncXrtLzG0Y+ihgxxGI1FB2aiujKlzPkT7xMC61SXaPHs4aekHtowUTLps15QJf5Kv5blVNLt9uElQDNl1rHQHvmLKVV1yC2WZLVL9uKXMfeUNUQczOMh38UO1DR/yGOIne9WyDiHRV83GGS8U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=xGtmjUhV; arc=none smtp.client-ip=209.85.167.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-512ed314881so1987667e87.2 for ; Fri, 15 Mar 2024 09:53:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710521587; x=1711126387; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=52kT8RCFGC7okKDqG5Bcwj1POjAaTduZrpTnpA9FpD0=; b=xGtmjUhVLcFIizD+FSyC4kCsz9O5thWI1Dk7kHFeizhjYqe6UfqwurcdyQkDx5OBzG Ur7ogOT0gWUa8aD5uQkc6EyLD1Krlii+c0vDE+BfEYazwhbfKcZnwTGVZOjFJgJM34Tz lngeVOA4OBjbNuGVN4s+NJaOCV7c57T06TQ0DiH/cAO7BzXgbHKtRqNJmQfpb9M+kx5s YdOGERXgtbm2Gga/lkCftJABMtiCKp6ck8S3yIxpCzvkhIPa4A/9LnSKcC80RkBfqiY8 QN+l0LBLkAEBHLOl2ekAh1ATiMX9bLTWLLlv0FnDg23U7O8/cY8qCLI/ar8MfR6nRVCZ XoEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710521587; x=1711126387; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=52kT8RCFGC7okKDqG5Bcwj1POjAaTduZrpTnpA9FpD0=; b=nkySiHockc6Hny5ap25zGDJPsq++CG44KTbkLqm1SV9DvY8UYxzAlt/KQq5tHzy5Lz UB37ioDKKt/ZLcCe42C/lyDELEF0mw6yGQj+B+A/b3ZvM+ydbcKN6dssjZt9pj/W6c3/ S9PIryhUGBYqfmXS6YmIfa+Wo7dcpKgrZZxl8OCrrfiJdz9hT7h+SVHt9P7aE4n/VP+A DuuN8pntrnfLUA8DjJDDXggNUNzirix/Ak8VvV6OMxHq3thVJzXkx0MSFrzbwNfKrfaJ 5V7JQe7Mk1AhPLdLh+57R3c/MYa6RxWT0g7AkBGzsivWnjeQ3Lqfi/R3ocg79OUzHprd uytw== X-Forwarded-Encrypted: i=1; AJvYcCX/jlKIC3yvHCdBcXRWy7yf1qgWsFWdwrJOfsvh4ly4NR9fXpsmeFAQuHrYda13RH2CCH8x3TlJmVLo7G9aOjpRPM8UDrQlcam+yPaU X-Gm-Message-State: AOJu0YzYJ5p/klX5W2XfJ8HFTp8ETHBdvz2SzwdeToIAdms4H1LBE2Fj bDS7zqd41K6M1h1Bc0WzXl/bYo08p9wfn7UbzRH90U5ttq3dliCOihGY1//Yn0g= X-Received: by 2002:a19:911e:0:b0:513:d24f:6455 with SMTP id t30-20020a19911e000000b00513d24f6455mr3304106lfd.29.1710521587073; Fri, 15 Mar 2024 09:53:07 -0700 (PDT) Received: from ?IPV6:2a01:e0a:982:cbb0:a633:992a:92cc:9c3? ([2a01:e0a:982:cbb0:a633:992a:92cc:9c3]) by smtp.gmail.com with ESMTPSA id l24-20020a05600c1d1800b00413e6a1935dsm6359144wms.36.2024.03.15.09.53.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Mar 2024 09:53:06 -0700 (PDT) Message-ID: <4bb2fa50-0944-456d-b51b-449a2bd9bb69@linaro.org> Date: Fri, 15 Mar 2024 17:53:05 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Neil Armstrong Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH 00/25] Introduce support of audio for Amlogic A1 SoC family Content-Language: en-US, fr To: Jan Dakinevich , Jerome Brunet , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Kevin Hilman , Martin Blumenstingl , Liam Girdwood , Mark Brown , Linus Walleij , Jaroslav Kysela , Takashi Iwai , linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, linux-gpio@vger.kernel.org Cc: kernel@salutedevices.com References: <20240314232201.2102178-1-jan.dakinevich@salutedevices.com> Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nI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PMyT25Od+RC1K+iOR0F54oUJvJeq7fUzbn/KdlhA8XPGzwGRy 4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro Developer Services In-Reply-To: <20240314232201.2102178-1-jan.dakinevich@salutedevices.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Jan! On 15/03/2024 00:21, Jan Dakinevich wrote: > This series includes the following: > > - new audio clock and reset controller data and adaptation for it of existing > code (patches 0001..0004); > > - adaptation of existing audio components for A1 Soc (patches 0005..0021); > > - handy cosmetics for dai-link naming (patches 0022..0023); > > - integration of audio devices into common trees (patch 0024); > > - audio support bring up on Amlogic ad402 reference board (patch 0025). This > patch is not actually checked on real hardware (because all ad402 that we had > were burned out). This patch is based on ad402's schematics and on experience > with our own hardware (which is very close to reference board); Thanks for your serie, it's nice you're working on upstreaming this feature. In my opinion it's fine to have a "big" initial serie if you're not sure if your changes are ok, but next time add the RFC tag so we know it's not a final changeset and you seek advices. Overall the code is clean and your patch order makes sense if they were meant to be applied by a single maintainer, but in this case it will be split into multiple subsystems so it's better to split them as Jerome explained to ease review and the maintainers process. Don't hesitate discussing with us in the #linux-amlogic IRC channel on Libera.Chat, the goal is to reduce the number of patch version and ease the review and maintainance process. Concerning the link-name property, I think it should be done afterwards since it's not necessary to support audio on A1, and I think it could be extended to other SoC boards (which would be a great feature). Neil > > Dmitry Rokosov (2): > ASoC: dt-bindings: meson: introduce link-name optional property > ASoC: meson: implement link-name optional property in meson card utils > > Jan Dakinevich (23): > clk: meson: a1: restrict an amount of 'hifi_pll' params > clk: meson: axg: move reset controller's code to separate module > dt-bindings: clock: meson: add A1 audio clock and reset controller > bindings > clk: meson: a1: add the audio clock controller driver > ASoC: meson: codec-glue: add support for capture stream > ASoC: meson: g12a-toacodec: fix "Lane Select" width > ASoC: meson: g12a-toacodec: rework the definition of bits > ASoC: dt-bindings: meson: g12a-toacodec: add support for A1 SoC family > ASoC: meson: g12a-toacodec: add support for A1 SoC family > ASoC: meson: t9015: prepare to adding new platforms > ASoC: dt-bindings: meson: t9015: add support for A1 SoC family > ASoC: meson: t9015: add support for A1 SoC family > ASoC: dt-bindings: meson: axg-pdm: document 'sysrate' property > ASoC: meson: axg-pdm: introduce 'sysrate' property > pinctrl/meson: fix typo in PDM's pin name > ASoC: dt-bindings: meson: meson-axg-audio-arb: claim support of A1 SoC > family > ASoC: dt-bindings: meson: axg-fifo: claim support of A1 SoC family > ASoC: dt-bindings: meson: axg-pdm: claim support of A1 SoC family > ASoC: dt-bindings: meson: axg-sound-card: claim support of A1 SoC > family > ASoC: dt-bindings: meson: axg-tdm-formatters: claim support of A1 SoC > family > ASoC: dt-bindings: meson: axg-tdm-iface: claim support of A1 SoC > family > arm64: dts: meson: a1: add audio devices > arm64: dts: ad402: enable audio > > .../bindings/clock/amlogic,a1-audio-clkc.yaml | 83 +++ > .../reset/amlogic,meson-axg-audio-arb.yaml | 10 +- > .../bindings/sound/amlogic,axg-fifo.yaml | 8 + > .../bindings/sound/amlogic,axg-pdm.yaml | 5 + > .../sound/amlogic,axg-sound-card.yaml | 12 +- > .../sound/amlogic,axg-tdm-formatters.yaml | 22 +- > .../bindings/sound/amlogic,axg-tdm-iface.yaml | 6 +- > .../bindings/sound/amlogic,g12a-toacodec.yaml | 1 + > .../bindings/sound/amlogic,gx-sound-card.yaml | 6 + > .../bindings/sound/amlogic,t9015.yaml | 4 +- > .../arm64/boot/dts/amlogic/meson-a1-ad402.dts | 126 ++++ > arch/arm64/boot/dts/amlogic/meson-a1.dtsi | 471 +++++++++++++++ > drivers/clk/meson/Kconfig | 18 + > drivers/clk/meson/Makefile | 2 + > drivers/clk/meson/a1-audio.c | 556 ++++++++++++++++++ > drivers/clk/meson/a1-audio.h | 58 ++ > drivers/clk/meson/a1-pll.c | 8 +- > drivers/clk/meson/axg-audio.c | 95 +-- > drivers/clk/meson/meson-audio-rstc.c | 109 ++++ > drivers/clk/meson/meson-audio-rstc.h | 12 + > drivers/pinctrl/meson/pinctrl-meson-a1.c | 6 +- > .../dt-bindings/clock/amlogic,a1-audio-clkc.h | 122 ++++ > .../reset/amlogic,meson-a1-audio-reset.h | 29 + > .../dt-bindings/sound/meson-g12a-toacodec.h | 5 + > sound/soc/meson/axg-pdm.c | 10 +- > sound/soc/meson/g12a-toacodec.c | 298 ++++++++-- > sound/soc/meson/meson-card-utils.c | 12 +- > sound/soc/meson/meson-codec-glue.c | 174 ++++-- > sound/soc/meson/meson-codec-glue.h | 23 + > sound/soc/meson/t9015.c | 326 +++++++++- > 30 files changed, 2394 insertions(+), 223 deletions(-) > create mode 100644 Documentation/devicetree/bindings/clock/amlogic,a1-audio-clkc.yaml > create mode 100644 drivers/clk/meson/a1-audio.c > create mode 100644 drivers/clk/meson/a1-audio.h > create mode 100644 drivers/clk/meson/meson-audio-rstc.c > create mode 100644 drivers/clk/meson/meson-audio-rstc.h > create mode 100644 include/dt-bindings/clock/amlogic,a1-audio-clkc.h > create mode 100644 include/dt-bindings/reset/amlogic,meson-a1-audio-reset.h >