From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DCAF3C27C78 for ; Fri, 21 Jun 2024 22:06:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=m+2W83I6sJYh3BKp7qfc/lscZjxOIALOUDUmBh3Cg/Y=; b=Fmjmvomm/cVgrL1wtgLhRBcmmQ n42aXxVPqT/6yLD1yUi5Tab7Wb54txZy5Afbal06slfQobge32qePiZT3LV9hZKWLukbGcroLF3py i5GUAcdwKYRBifoNNglhUOlLNWv8Whrv46c/lOOYELPUXHGfcZxfG7XVLSXxI7xKoXjV5PrfjQ31M AhdpBcPqBWqIuW/TFG7FIDwASiSp8ydwGtf6PinYjkJz+nqs3iydgGlOT8KWfeaKr/2g+mAGIFrnu hEnYYNgkUCCu1cCc+Hs1K4RVaIGvYxeehqPAKHByeteE97aQEJtqkXnSeXwWC6YbOehFT9f8A8ZKG ovz2LUnw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sKmOV-0000000AhGl-16Uw; Fri, 21 Jun 2024 22:06:07 +0000 Received: from madrid.collaboradmins.com ([46.235.227.194]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sKmOR-0000000AhFN-1nLB; Fri, 21 Jun 2024 22:06:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1719007562; bh=MJaLeVkFyERVtHBT2g/r5XD6cXEUKTBZEHce/z3g82s=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=qBegDUoDurKTVdNcHFcw5VkH9LSZLcyHToC7OzpzJ3koi3sUHicl1vfsdHP0SVf0E syh3VRXPfN4A0/eJ8oMDyE3ohYJdgaT8GPAiVyBKOZgGk9kfixHejNbATa2QuGTASs YEMmusdDwUvYk1dw8guHwHllLMQL8hcOZSTXU5FslI2R886nYAvmCsyK1ATsnWqvMm 1QDf8w6ZWadHGgH1E1xT6qzI7x/u8ndVEMfCAu38T6e3k8JcPwk3GF6+me057Sl1SZ y4Y4g/CUjFLHtxGqmcvplVDkxwi4u3u9Cy3sbAxsGHCe3JCz6e1/mlfLZBr81zwQFF wUrPWW1gEJStQ== Received: from [100.115.223.179] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 04920378203F; Fri, 21 Jun 2024 22:06:00 +0000 (UTC) Message-ID: <55dbc2a8-4e4a-405a-a9ae-e62b18aaeb1d@collabora.com> Date: Sat, 22 Jun 2024 01:06:00 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/5] arm64: dts: rockchip: Fix mic-in-differential usage on rk3568-rock-3a To: Jonas Karlman Cc: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Chris Zhong , Zhang Qing , Chris Morgan , Furkan Kardame , Michael Riesch , kernel@collabora.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org References: <20240619-rk809-fixes-v1-0-fa93bc5313f4@collabora.com> <20240619-rk809-fixes-v1-3-fa93bc5313f4@collabora.com> <4015ded1-5ec4-4374-982e-9c7f23b43884@collabora.com> <1fce65a2-b752-4bab-84e5-314b60d682f0@collabora.com> From: Cristian Ciocaltea Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240621_150603_635772_F6AE9082 X-CRM114-Status: GOOD ( 23.96 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 6/21/24 9:58 AM, Jonas Karlman wrote: > Hi Cristian, > > On 2024-06-21 03:23, Cristian Ciocaltea wrote: >> On 6/19/24 3:56 PM, Cristian Ciocaltea wrote: >>> Hi Jonas, >>> >>> On 6/19/24 3:22 PM, Jonas Karlman wrote: >>>> Hi Cristian, >>>> >>>> On 2024-06-19 13:23, Cristian Ciocaltea wrote: >>>>> The 'mic-in-differential' DT property supported by the RK809/RK817 audio >>>>> codec driver is actually valid if prefixed with 'rockchip,': >>>>> >>>>> DTC_CHK arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dtb >>>>> rk3568-rock-3a.dtb: pmic@20: codec: 'mic-in-differential' does not match any of the regexes: 'pinctrl-[0-9]+' >>>>> from schema $id: http://devicetree.org/schemas/mfd/rockchip,rk809.yaml# >>>>> >>>>> Make use of the correct property name. >>>>> >>>>> Fixes: a84ffd2ef1ff ("arm64: dts: rockchip: Fix mic-in-differential usage on rock-3a") >>>>> Signed-off-by: Cristian Ciocaltea >>>>> --- >>>>> arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts | 2 +- >>>>> 1 file changed, 1 insertion(+), 1 deletion(-) >>>>> >>>>> diff --git a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts >>>>> index ebdedea15ad1..0b54dfe92d6e 100644 >>>>> --- a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts >>>>> +++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts >>>>> @@ -533,7 +533,7 @@ regulator-state-mem { >>>>> }; >>>>> >>>>> codec { >>>>> - mic-in-differential; >>>>> + rockchip,mic-in-differential; >>>> >>>> If I understand the schematics correctly, only one wire is connected so >>>> this board cannot really use differential signaling, and this should >>>> probably instead be dropped. >>> >>> Thanks for pointing this out, I will drop it in v2. >> >> I've also checked the schematics which indicate the PMIC RK809 CODEC >> receives both MIC1_INN and MIC1_INP signals; the former comes from the >> Jack input, while the latter is generated by the SLM42Q3AT MEMS Microphone. >> >> However, I'm not sure the Mic presence on the board is dependent on the >> HW revision - on REV V1.3 the "NC_" prefix under U24 component label >> suggests it is not connected. So maybe we should keep the property?! > > There is no such mic on the board, at least on the rev 1.3 that I have. > > This prop should be used to indicate that the attached microphone uses > differential signaling, e.g. should have its two output signals > connected to both INP(+) and INN(-). > > The SLM42Q3AT or the single wire from headphone jack indicate that a > single-ended microphone is/can be used/wired on this board. > > The current use of non-working mic-in-differential was wrong, adding > the rockchip,mic-in-differential would change behavior and wrongly > describe hw of this board. Thanks a lot for the clarifications! I dropped this in v2. Regards, Cristian