Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1495733lqh; Mon, 6 May 2024 09:15:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX5+XT3MFn0KN282nHxBaOloF+SmGQ5kZ4G4C2WPaM8ThP8UT/1YvqmSyziuCIQyQyxKiINClhaL3/86jQBpOK6WmJXhhrHKr/BfWoLuQ== X-Google-Smtp-Source: AGHT+IG5YOGeByFB19exOfzV78qkFxqoh+nG1vBiyTgwT8pETnBfN3GCB2QbQHaAgARFLBaR9IFB X-Received: by 2002:a17:903:2452:b0:1e4:17e4:3a49 with SMTP id l18-20020a170903245200b001e417e43a49mr12421189pls.12.1715012143769; Mon, 06 May 2024 09:15:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715012143; cv=pass; d=google.com; s=arc-20160816; b=jxURyRJ5fviFAQVJ7210OuZqS5NbdOs9c5SdmuJuCWoZuy9Ymchm4CUsKtC8ycZ7nr 7bPDsDsEalMTardm2yAMb8CJH24o/zXvPH+vf8g3y67/CxT+POaO6INDZ0pqfdAxOYrQ hQ/Fx+pQBmzXW04NmIrMQpdkozL4Z810LNp4ADpZS855StgQ0SgE2gIF0TUhTeNZtV5O po7LG9Xu1Z0fd8q+UZeiAWBo39/fK+81mn9Jd2DoPdXt48pWoOS4ueXiDHeguxxzGVWo 7KrC6IbVClXV4jdZ4dglORMXpFAa8UxCSEaU1n1JJy6FD59rZCyGmWUkAGqaOetGfHd5 Nu0g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=N/kMPXOW+9pj2iXbtfmhz5wAtX8HuIAcCJSd79oIR9Y=; fh=TkDvwewgxxjXX9iaDULxLb4ZmI31c0+MEHg9l0qoGuo=; b=r5tIzc6cCx4GYILFXCX4wURP2XabuiXkNdUftMt5XgtIsB4Y27osmxjzXa3fuNHquH dC+DQTuyZApV4KIxlnE/50OY2b939Jz8bYHvsdp9MiRfRZx/CucRquEOR7s3TpTVQ0wd WE6TiF6KwnqfBZel2979UkTZ2Y/DVk6qhmialMupcp5qno3E0StrWm9keJGeSCfxvy2f y4F629D/CzEMZCZI0GJkXoaFlOqh3P4D5BVsrwkb+WFmDNF0I6DS18H+bJq0z38APX2/ dOKMKfAFavhhuWVZt6b9ZpoYKwP156LyGuaU+GrDjqaRN4zZAPq8SAgST9MB1bxThzot RIWQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kwiboo.se header.s=fe-e1b5cab7be header.b=ul3ihFHV; arc=pass (i=1 spf=pass spfdomain=fe-bounces.kwiboo.se dkim=pass dkdomain=kwiboo.se dmarc=pass fromdomain=kwiboo.se); spf=pass (google.com: domain of linux-kernel+bounces-170132-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170132-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kwiboo.se Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l6-20020a170903244600b001e4779c8002si5391831pls.122.2024.05.06.09.15.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 09:15:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170132-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kwiboo.se header.s=fe-e1b5cab7be header.b=ul3ihFHV; arc=pass (i=1 spf=pass spfdomain=fe-bounces.kwiboo.se dkim=pass dkdomain=kwiboo.se dmarc=pass fromdomain=kwiboo.se); spf=pass (google.com: domain of linux-kernel+bounces-170132-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170132-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kwiboo.se 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CC7B1285D0A for ; Mon, 6 May 2024 16:14:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E779715623D; Mon, 6 May 2024 16:14:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kwiboo.se header.i=@kwiboo.se header.b="ul3ihFHV" Received: from smtp.forwardemail.net (smtp.forwardemail.net [149.28.215.223]) (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 2D737762D2 for ; Mon, 6 May 2024 16:14:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=149.28.215.223 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715012082; cv=none; b=WWfmeorUVdilC7SHTGAqmI08UraKMnGhXSHRdxGbcIyU9lB/6mSP8AFppV8UDZZ4JHqiu8kq76ddm8e70fAaqiSzb3wnh0q0Stfk1l/bDM0c3FCY9fg0cjG6p0JUcXzkrfrEXZ3mTv9XTuLEekkcrHJrAnpc5A+9XuQpVI4phhI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715012082; c=relaxed/simple; bh=rAQ7znbFu0VNsAK/JAArOiyCdUHS/gS3L/4dtOvRdW0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hS2ZkyX7jLHc5p3yaPmYA09OTnnbF+313BdkSTbXe5VOTMhXiNoa3F76hLtMckDJ1iau7z5jLkA1xVkwDVo25imiTa5dsxFbNh7vPQDG/4fqh/mDnOQKKBSKdD5ZtmHuW4o0PXEFySUWtbEO5OOx1PO5ZUuZcv37iyrby1ATUrg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kwiboo.se; spf=pass smtp.mailfrom=fe-bounces.kwiboo.se; dkim=pass (2048-bit key) header.d=kwiboo.se header.i=@kwiboo.se header.b=ul3ihFHV; arc=none smtp.client-ip=149.28.215.223 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fe-bounces.kwiboo.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: From: References: Cc: To: Subject: MIME-Version: Date: Message-ID; q=dns/txt; s=fe-e1b5cab7be; t=1715012056; bh=N/kMPXOW+9pj2iXbtfmhz5wAtX8HuIAcCJSd79oIR9Y=; b=ul3ihFHV4SbKwJnLGHOHuXodFg8JiSVR38YAEVKiCAj/Fuwcj3kTIRiqmfoviRFYbRwAJwRk2 FgugDDjnKi2J6AfLVfbnmt48aZpU+XgvoAxC7Wp+zrkffUe1XKbPocI6r2PcakkC6YMORSSDusv lZpyOnkDi306aDmUidqZiI6z9aDaVMTNbHyx9YEpVl/n3cfMvHSBKFLSMc2TrmIeVwN9xj9EEHZ KJWBm9+AyAv+z0duMXdynYov0kdpJ/RGXIqnK1NPZ3kvBv/kdvex87C9A+XC/fJJ14cEuyk0JsS t4bg2sMIwX9G6c4BSJK5RTpUurNa6rokI7siotj24tMQ== Message-ID: <76519e53-a226-497b-9db1-4f11ea83151a@kwiboo.se> Date: Mon, 6 May 2024 18:14:03 +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: Krzysztof Kozlowski , Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Heiko Stuebner , Rob Herring , Conor Dooley , Lee Jones , Chris Zhong , Zhang Qing References: <20240505134120.2828885-1-jonas@kwiboo.se> <20240505134120.2828885-3-jonas@kwiboo.se> <5c4a6d57-82e0-430b-a12e-59c331a32eab@linaro.org> Content-Language: en-US From: Jonas Karlman In-Reply-To: <5c4a6d57-82e0-430b-a12e-59c331a32eab@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Report-Abuse-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Complaints-To: abuse@forwardemail.net X-ForwardEmail-Version: 0.4.40 X-ForwardEmail-Sender: rfc822; jonas@kwiboo.se, smtp.forwardemail.net, 149.28.215.223 X-ForwardEmail-ID: 663901d049216dcdc6f4249f Hi Krzysztof, On 2024-05-06 12:47, Krzysztof Kozlowski wrote: > 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... This patch was a 1:1 copy from rockchip,rk817.yaml so I expected everything to already be correct, my bad. Guess rockchip,rk817.yaml also needs same fixes/changes as listed below. Will send a v2 with example fixed in a separate patch and try to fix your remarks on this patch in v2. > >> --- >> .../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. This just tries to follow the rockchip,rk817 binding, not fully sure about the reasoning behind this node in the the rk817 binding. RK809/RK817 are very similar and their schema files could possible be merged. > > >> + 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. Noticed that the example used in this schema file is for RK808 and not RK809 so will also add a patch that replaces/fixes the example in v2. Regards, Jonas > > Best regards, > Krzysztof >