Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1303152lqh; Mon, 6 May 2024 03:47:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXTAQ0+POVGAWxuXMsZ411won+UFeD0wQnivEDNN+WtPp+M+vjBvTFh/HhwtfRqqTLx7ONIF8e4BjoBxrxKMEV6DBKHrBC8ewOEzv+IPg== X-Google-Smtp-Source: AGHT+IENFAjjQfqIffgFO4ZetoCRh9cugDMc9ji3s9vttPUzYI5HvXtFu2OSiyINlDZbdGbTAJxR X-Received: by 2002:a17:906:cb88:b0:a59:ce1e:8541 with SMTP id mf8-20020a170906cb8800b00a59ce1e8541mr1415510ejb.37.1714992467991; Mon, 06 May 2024 03:47:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714992467; cv=pass; d=google.com; s=arc-20160816; b=oSxECtWt0t9nf5PPxyapNA7KcT/XmHWcLu2uHAP7x+klw9ZrCrbnsruV6et6vpdAl7 sssYX6vgAcIbHHMp3Wnk3/QBs90NNcs9iFDEkqS5odLi2Ps9W8qHUAM81BQoMpBfqxe2 AeHq5jQpc5nkQcF7znICwG0CUIt6XIfvZCEvAeYIee8ByrHCr9U29B1kZVfYqBX6/3gM a7/hRf7eN47AUsSCSpfoklnCj98yOa8iVzaztqTtlZXzA4qbtKfe1zTFheycDWFC6w22 3VJhUvf7jprpV30hi0KCoRd8HLu2m02ErCzc3G05i5//KEQJbWQi4cwNSyB0FqB/5cQD CF3g== 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=F4JMX3o86635aG32+mG9mxPC6jfYm0RO+Yn/FflTLFs=; fh=wdbLViEMu9SWybcY0hVpxQb8d+bgYetAT4nMMeKDd0c=; b=GB8eQCEieI6H8VnMezCVg0xQMWX1sP90VGqIEeC/AWkOIZLtg66pBmpFr5r3CjBk0D +fOjELsVjElFeXVi6sywdvS3nzjrg0V8s61jFzNTvGt1JBuRzF3iEiyCWYrvKnsyN7gt mEPHx2MujCFeK1ArWd/8oVr/QL3fLS97eXSEgjtgpLm1ITdDDSqCdfrAhBsSvPKA3Q4B gBnPYe2U8BcL7rlt8jRnFwGN7IIQelzaykmI/jeSbQVqc0+46UMAuVBKH5nomajCyj1I tneFU40LZrrCdPZ8f6r8mXrH6MkKCIIpOxNs4Hg0byqxbyAq6meq2EHrH2KAKTX6CfR/ Ekuw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kNp2yy9c; 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-169700-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169700-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id s23-20020a1709066c9700b00a599fc758b2si3422745ejr.435.2024.05.06.03.47.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 03:47:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169700-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kNp2yy9c; 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-169700-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169700-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8BECD1F21E19 for ; Mon, 6 May 2024 10:47:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 287B414262C; Mon, 6 May 2024 10:47:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="kNp2yy9c" Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (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 785372BAE3 for ; Mon, 6 May 2024 10:47:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714992460; cv=none; b=WvloK3InexmLgQKKRAvAqI60woAnBnN9eGlboIbGhRD1lvFFPqvb+qVvHQrPQca8DmcWDkE/avsxl4SQCh9+NnlkM0sYMzMQ3m8mo5En0h4ODy8dbgTrpeuHfvr7B+aKBLj8AR+HBAfv3YObuZeyjGHHKmR2gwkh5M7pM96bU/I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714992460; c=relaxed/simple; bh=miKDTiDqUonSxCr3BlIjLrQ8pqt+ajmD4CBVnCaH/VY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=HdFy8SiXfRdUVezt3Ga8grLbAILfA8xKC7CVveHRkK5rhR6uXZ2WKoggcWZoMUytIKf75EuF1TcSEuPCWh25yhuBvBrYEkjGSxKl1IMHlS5b+4cf4JNAizhbaYHVAvQWA48Uu6ffi+i0arDy00WlH3cWfh1OuLI/RdzkFg6dCQA= 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=kNp2yy9c; arc=none smtp.client-ip=209.85.218.42 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-ej1-f42.google.com with SMTP id a640c23a62f3a-a59cf8140d0so148594566b.3 for ; Mon, 06 May 2024 03:47:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714992457; x=1715597257; 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=F4JMX3o86635aG32+mG9mxPC6jfYm0RO+Yn/FflTLFs=; b=kNp2yy9cBcgJgsa6RNNI6R26DsRpGBiRvKpSvu4BXC8RhfdGV16CAxdoZ49RqwKBfj t+WKu9qlrEl/0Oc5LC0dQXXR2qcTw/Px/NXz+FPOWPQFikevCf4UojKNSAwzLuBrwoDg o/uf8jB3P5eLLrHqyYxCCp/puhcw4++GPjlhJgEF9AXGL7ZGlkvCb8wdH9Xn9g08BRQM 5sEAMUDw/9yTZHhtG0yCg+PrTv7mzc9ijeGMvdmKD/ezSJ3JT5qfkg6rf9r9JBzx1bKv F/6EH5xaVAtQnezat7HNkyenv1qTI+TFLqwpaFoN9TeACbl4HW27Encg2d9Z8pNFq0FA Lo7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714992457; x=1715597257; 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=F4JMX3o86635aG32+mG9mxPC6jfYm0RO+Yn/FflTLFs=; b=fZQ56TTvzXhL1eubebQ9E4hq3Uxhxepd5OtJpAxKA72cTGjWff0ayCEH/ub4y4gxSU 8CjBnCzQzoJwDCnfXHoytDyvlGmnYfeQZjRC9YPMVCbHVBC5RY+M2Hv0OI5/3GGkqgXt 1/6o/fr6Kh7Ow2HmJb+FBrfihSZPkYvB6aABIBPk9xQS50AA/6135D+5RerZ+zgJOR3f Uc/J+UYUVg7wuJqmf9bHzcX1DzNlb4zDyTo2CI/Fl8xhk1VQvimivvIGUfaeEsjiGQks hfuyY2YTBZFg80YrN3iUP4EgWrDk0LTRZJRoFENYoHIW9mwUzBbE6hqEGNHc+p4FXGb1 rRlQ== X-Forwarded-Encrypted: i=1; AJvYcCUAL9GkyEqmcjk7/Scrq9UC4PvPrnRDNYu4CVaUaCp4pWY2fww0NJyvKMAHju7dxqZUdNg0gwaaffZsldpvcHbUnbscGa6S9XLADT5D X-Gm-Message-State: AOJu0YwjQ+X9le9aGRe6mhlMyKct1dQ4WhvddeeIq4vcm8xkdnWHYQ7J snH8XLuHqopskl9Ajuiaq5MRp/ECKA+CIUDz4O7gowDQ4xGZ5dkvN2ts4MQbrTA= X-Received: by 2002:a50:c355:0:b0:572:2f0d:f4cb with SMTP id q21-20020a50c355000000b005722f0df4cbmr6378923edb.1.1714992456811; Mon, 06 May 2024 03:47:36 -0700 (PDT) Received: from [192.168.1.20] ([178.197.206.169]) by smtp.gmail.com with ESMTPSA id n10-20020a056402434a00b00572df643637sm3211499edc.62.2024.05.06.03.47.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 May 2024 03:47:36 -0700 (PDT) Message-ID: <5c4a6d57-82e0-430b-a12e-59c331a32eab@linaro.org> Date: Mon, 6 May 2024 12:47:34 +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 2/4] dt-bindings: mfd: rk809: Add audio codec properties To: Jonas Karlman , Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones , Chris Zhong , Zhang Qing Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org References: <20240505134120.2828885-1-jonas@kwiboo.se> <20240505134120.2828885-3-jonas@kwiboo.se> 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 TNeBx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VgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240505134120.2828885-3-jonas@kwiboo.se> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 05/05/2024 15:41, Jonas Karlman wrote: > Similar to RK817 the RK809 also integrates a complete audio system. > > Add audio codec properties to binding to reflect this. > > Signed-off-by: Jonas Karlman Except sending untested patches... > --- > .../bindings/mfd/rockchip,rk809.yaml | 34 ++++++++++++++++++- > 1 file changed, 33 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml b/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml > index c951056b8b4d..b78e1b090105 100644 > --- a/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml > +++ b/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml > @@ -12,7 +12,7 @@ maintainers: > > description: | > Rockchip RK809 series PMIC. This device consists of an i2c controlled MFD > - that includes regulators, an RTC, and power button. > + that includes regulators, an RTC, a power button and an audio codec. > > properties: > compatible: > @@ -93,6 +93,34 @@ properties: > unevaluatedProperties: false > unevaluatedProperties: false > > + clocks: > + description: > + The input clock for the audio codec. No, this allows anything. You must be here specific, see example-schema. maxItems: 1 Drop description, redundant. > + > + clock-names: > + description: > + The clock name for the codec clock. Drop description, redundant. > + items: > + - const: mclk > + > + '#sound-dai-cells': > + description: > + Needed for the interpretation of sound dais. Drop description, redundant. Do you see it anywhere for such properties? > + const: 0 Missing ref to dai-common in your allOf (again: take a look how other bindings are doing it). > + > + codec: > + description: | Do not need '|' unless you need to preserve formatting. > + The child node for the codec to hold additional properties. If no > + additional properties are required for the codec, this node can be > + omitted. That's useless description. Describe hardware, not syntax. This must say what this node represents. Anyway drop it. You do not have any resources there, so put properties in top level. > + type: object > + additionalProperties: false > + properties: > + rockchip,mic-in-differential: > + type: boolean > + description: > + Describes if the microphone uses differential mode. Your description copies property name. Do not describe the syntax "Description describes", but say what is it. > + > allOf: > - if: > properties: > @@ -284,5 +312,9 @@ examples: > }; > }; > }; > + > + rk809_codec: codec { > + rockchip,mic-in-differential; Missing all other properties. Make your example complete. Best regards, Krzysztof