Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2281805lqo; Mon, 20 May 2024 00:09:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV1tVyRPyutAWtkwuYNGZKvWCvcMp8niX/ebXkHdhvrX0oCNY3NUtHY6IUvfxqtZ12uTQtxkU78TdQElrBbFVTxHs3mz4v/yuE8T0oF6w== X-Google-Smtp-Source: AGHT+IHcLjJQC1kiI2VAXAPLq0YxldtLDcCvXtkVXj5JvhDek62QVjiK1Av9Sx1SsT2mOiYt8n17 X-Received: by 2002:a05:6122:3699:b0:4d8:797b:94df with SMTP id 71dfb90a1353d-4df88285592mr25315591e0c.2.1716188958982; Mon, 20 May 2024 00:09:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716188958; cv=pass; d=google.com; s=arc-20160816; b=YDJm9ZnJJ1desN3FQm2TqFZ4rJsYA2lLbF11p7v0FkzG6VetI/MHG7SVn2tehDRENW /GVs/141H3zwaPYIBNt2jUQ+AyJR3Mj+FQY1TVs55tK4CeezCewBSmDBJ9iK020fnIUj d6mGjAiJ4xx9KXH4ezs9rdY8+TqOXpnNwtuIwgflTqgmjq8WihUe00l9i7Rbijy9z1b2 reu+tFV8STioh8N4HG8FwoiiQKADHpLPgWmxkO18Ki5qiDPK/zQNlhJnUgH+B82kEmu3 uGzm/FrHCncdPRqpBhO4MqQ+HTD7x44p3/jyDdFnw2HRamdmoFM3jWDwmlfNCqk2zlT0 Fv/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=kiyrjpf20boahfYODaVgUoaaasy74zM8DfkCEcceeFU=; fh=Jg5DVUFM4Ucf2w9vRBMiwi1XJCPrsOtlA+lhAQvoKgo=; b=cyAkukznq40GS+D+YVHJs5v/RSl+S9y16DiUfWA41p2C8bUkqRHnu1ixoN2efu5ULD 8fQf2WrjHNs8l8o+M2KGMiRV68zJR6LxyCWXYLZoT0msBzCon0sXtL5FL+DAtbBoBC7o wYT70NCv4Sk79BOEhlgAEuPkLc2uvpzdDmFMdJ1nxQhwnpUuJLfwfCFFUyi7QZsjLVl9 SlY5Ec89fy9ne+jIunKrR+Bk7rk86ISy8u/BWS9EZVTeRg5/0BcvS2pP9BFVdBxmqhMd JsuWk3jRnug1CKcbplrTvZwMBczXQ5r9cRWdSLRngjHACkp+vtua5RkBzMWgTTEkAOeE pWYg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fpS9T45R; 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-183443-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183443-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-792bf277ac1si1000931185a.77.2024.05.20.00.09.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 00:09:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183443-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fpS9T45R; 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-183443-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183443-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A352F1C2090A for ; Mon, 20 May 2024 07:09:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 779CA1862F; Mon, 20 May 2024 07:09:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="fpS9T45R" Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (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 AFAA2179BF for ; Mon, 20 May 2024 07:09:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716188950; cv=none; b=JFAgrmVGvV1VnIielY9r3T6kNpPFdKiFd7r3gIYQrShgKEXbCuCxQmG6DuMl7AYqmJ2SeZniBFah3TMxU0Dij+OjArOIj5g5rtv8OZq3j9DxjdIpfz4owl/dyQiopkWKvFCjnyN2QlLJi6UQq64fQ87g5gXo4wUeZkFVRVXs3hY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716188950; c=relaxed/simple; bh=0xb9rGqPLMCZSoyt+zr1CoKXYGv7ul1gL18MO6t3qVY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=qIactd/ftADIwo4yIyI7qJHzlmlnIaYmkGRqymzY1Ru9BvIXdLIST6X9ldu8a8I7iX1COQqjwoe1pLJBSSUfYvLiZ8hO1Fp+cwFfIyxngG1nZpFGGMGyNF+MRRvp/dBfOFPcFocz0u3l0j1YG8UBT+DSH+lbqLYMWhws89fP6vI= 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=fpS9T45R; arc=none smtp.client-ip=209.85.167.51 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-f51.google.com with SMTP id 2adb3069b0e04-52388d9ca98so4776430e87.0 for ; Mon, 20 May 2024 00:09:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716188947; x=1716793747; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=kiyrjpf20boahfYODaVgUoaaasy74zM8DfkCEcceeFU=; b=fpS9T45RsGkFNwxXH6m8FARFrPAAULZ8H6gxTeU4E6/JzC3S6ljS07WextxEWJ5PNK 3dU523IDEhbDGV9mIhHE2tCy/HCWND2R2DdMmozKXsChac60DiEkSsDPWncejD6sUfms UJ9+KVktVUdPjDyNuWJAj4NwCCSiXkzdK7pNFdS0riowdlvxATlHzNjGMI44y9ZdudCg HY8hrTVD8yeQiS611q5cdP//pFCZruR4wEbaiaxXUrv7SnqyGSBVNzge0fT22iQUfbQC UmlRMI5y7g3A6rudpOT7ib9d+fcrg5H4u6CeVN6/Q+Iqom9ZKNRQPQNtkV2XOMceTlsP dlUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716188947; x=1716793747; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kiyrjpf20boahfYODaVgUoaaasy74zM8DfkCEcceeFU=; b=P8s7iDNZIIoH3rHt9siZmwylZpZ9XGXiIVzQhwCJW5gGCzGJof10B6bbDIWybo3K9L SbDFKzMTf09bmvMP7uEhw8pfDGpzRTSIfbxDeVfKBrZNGNBp6aQ+H9LMbEpP0BCMxEzV Phe/wXapXfs7n7JUyrqGJofeNEn3ciIBzLxMqPo0vqqCu5IM3MBca1l9TqZJUk1ZR5Cg lzwLY8VuVYi9zjgYyyEhkCwLPG2CZl9NQvVHQWouQua5XGunLtldc5wVl3MQ95IsDJU7 +TBfzec6srcLpSFvBtcbWvCsdL1yEoZqlhIFi45Bf6eF7WRJdnGhiYo/M7WZIfE3mRKe lI5A== X-Forwarded-Encrypted: i=1; AJvYcCUZ0QreU1UP17VK4ZMdK1mIlI+86cGJPkpmkmevNK1OB2WTPUQuznqvj3+jlZlDmrz5ig3vcaPda2aMYSXETs/87dqx9fZ8zPWfTz0n X-Gm-Message-State: AOJu0YybbMDMMbkH8vcMMyU0sCEpn+0ED9C9/0DDYMV62Ls9NdIWMJCQ h9PgXgMAhwKevOuPDMIAOgCEizY3bhWwyHxSpLvbFvAKpX/Hob/QxC7s9nNvvK4= X-Received: by 2002:a05:6512:4003:b0:522:221:d19d with SMTP id 2adb3069b0e04-5220fd7bfccmr26640844e87.15.1716188946600; Mon, 20 May 2024 00:09:06 -0700 (PDT) Received: from [192.168.1.20] ([178.197.206.169]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a1781d6bfsm1419329466b.31.2024.05.20.00.09.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 May 2024 00:09:06 -0700 (PDT) Message-ID: Date: Mon, 20 May 2024 09:09:04 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] ASoC: dt-bindings: mt6358: Convert to dtschema To: Kartik Agarwala , lgirdwood@gmail.com, broonie@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org References: <20240518081621.63386-1-agarwala.kartik@gmail.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3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0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240518081621.63386-1-agarwala.kartik@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 18/05/2024 10:16, Kartik Agarwala wrote: > Convert Mediatek MT6358 Audio Codec bindings from text to dtschema. > > Signed-off-by: Kartik Agarwala > --- > .../bindings/sound/mediatek,mt6358.yaml | 47 +++++++++++++++++++ > .../devicetree/bindings/sound/mt6358.txt | 26 ---------- > 2 files changed, 47 insertions(+), 26 deletions(-) > create mode 100644 Documentation/devicetree/bindings/sound/mediatek,mt6358.yaml > delete mode 100644 Documentation/devicetree/bindings/sound/mt6358.txt > > diff --git a/Documentation/devicetree/bindings/sound/mediatek,mt6358.yaml b/Documentation/devicetree/bindings/sound/mediatek,mt6358.yaml > new file mode 100644 > index 000000000..f57ef2aa5 > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/mediatek,mt6358.yaml > @@ -0,0 +1,47 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/sound/mediatek,mt6358.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Mediatek MT6358 Audio Codec > + > +maintainers: > + - Kartik Agarwala > + > +description: | Do not need '|' unless you need to preserve formatting. > + The communication between MT6358 and SoC is through Mediatek PMIC wrapper. > + For more detail, please visit Mediatek PMIC wrapper documentation. > + Must be a child node of PMIC wrapper. Did you update the PMIC wrapper binding with ref to this? > + > +properties: > + compatible: > + enum: > + - mediatek,mt6358-sound > + - mediatek,mt6366-sound You did not test the DTS. I think I raised the issue already: please make necessary fixes to the binding (with explanation) or to the DTS, when converting the binding. > + > + Avdd-supply: > + description: power source of AVDD > + > + mediatek,dmic-mode: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: | Do not need '|' unless you need to preserve formatting. > + Indicates how many data pins are used to transmit two channels of PDM > + signal. 0 means two wires, 1 means one wire. Default value is 0. > + enum: > + - 0 # one wire > + - 1 # two wires > + > +required: > + - compatible > + - Avdd-supply > + > +additionalProperties: false > + > +examples: > + - | > + mt6358_snd { Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification: https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation Definitely no underscores. Probably this is "codec" or "audio-codec". Best regards, Krzysztof