Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1615807rbb; Mon, 26 Feb 2024 15:57:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWJKpST0MotQ3pxR0z20iJfMUDq4wiBQUmwweqiDAvq74cf4XvW1tPX9yz4tK/tzTbkV6G5qpsd3qmUJOgeBmJoI3pMokJppWEq+bB5YA== X-Google-Smtp-Source: AGHT+IHr/BXwivcBsNU/nroXZv3GyRfWYBdwQ5BDoCbZlS01/X1MRtB/CUAdTRthaE0jGdQrefDm X-Received: by 2002:a05:6871:489:b0:220:1d8c:dd9c with SMTP id f9-20020a056871048900b002201d8cdd9cmr3284743oaj.14.1708991854394; Mon, 26 Feb 2024 15:57:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708991854; cv=pass; d=google.com; s=arc-20160816; b=1HowQTjOItTA3r9hua+Xoee7RD/nkShpVDg8jSauW1mtg2ryttPQws0wmFHXXFNNk4 vE18Ziq0TndZ1zHkWzFEMvRtvLHyZ3JIS8U0suqoQL4Ak4F4oQVDj6Ziw1jXJ+5dBI/P ctEORd4YKojqgZPVHCbZfzIm0QUjDIaWfPViJBntyNBlIj5r0qJHLCZN1SsNKMt1WPvm CCxNW3z3qawJRmdfNwBZxRmzQb/+S98rhDUGt9OWZoxJiUsxTMnyrRzEqB8fqLIFuYKU n6SY5SKT8eNhBg01RsSWutI+ez84mN3KaPnYUzLnGDHruge0uy/KeWiUwspwe+DVQROJ Dohw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=psQOBYCfvONAiupU28l5axQLBQC1ptCVeewR0Y1BcRM=; fh=xXb+mH0e2u78D67HyeQDoYqVxPvJjf0uSOeRRE7I0HI=; b=0/AB3oKzKCAOYWihkQX0UTDGttAMl/dVqWejqPvTJG6PxthiEyxeYPEJo/PQDPlSmc 2dife6kyIml2/YRUbVJoGa36/eRCG2gSUbBvKGh+t7ajp34GeuuHu19gb5iIdIT4uN2Q MVicgYZljhJZrTCrBHjaRcWnEnRUJYHj6Im+CIraEfW0XlB9OTMrf27tw4tSRyfOrlyN XAne1H/ATpKyNTn/zBiJltq8Ge+Uce/efMk3VUdxT8NgWQaQsOMGiAOPY8CiyCH1VRSa Dkv+LXkUYYC3j3Qst5WqsrmNOo+Iqqz1s9U3Lw8RUMcHYBSlOxzsmZymoUbUwosDMERU NRKg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xff.cz header.s=mail header.b=WXO1PBxy; arc=pass (i=1 spf=pass spfdomain=xff.cz dkim=pass dkdomain=xff.cz dmarc=pass fromdomain=xff.cz); spf=pass (google.com: domain of linux-kernel+bounces-82458-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82458-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=xff.cz Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id e34-20020a635022000000b005ceef3c53a1si4413988pgb.635.2024.02.26.15.57.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 15:57:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82458-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@xff.cz header.s=mail header.b=WXO1PBxy; arc=pass (i=1 spf=pass spfdomain=xff.cz dkim=pass dkdomain=xff.cz dmarc=pass fromdomain=xff.cz); spf=pass (google.com: domain of linux-kernel+bounces-82458-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82458-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=xff.cz 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 32835B21EC5 for ; Mon, 26 Feb 2024 23:57:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9FC01136642; Mon, 26 Feb 2024 23:57:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xff.cz header.i=@xff.cz header.b="WXO1PBxy" Received: from vps.xff.cz (vps.xff.cz [195.181.215.36]) (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 63EC4135419; Mon, 26 Feb 2024 23:57:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.181.215.36 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708991840; cv=none; b=gfPF03G1MYeF4p1jd5urz3OaNQwEnqeRRlZrF287Kct95g4A1jYWXFTZnabWCK9Sppvb4qDEROIV4QgDA6Q2OO9JxDZKn9yo9j7v04iUFLzdwXtuvgunMKTEhuuqM9ZNnvrNihOdnMIJKUEnjGrox8VjI6eS87XVhjk3K2+Av1Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708991840; c=relaxed/simple; bh=rZaLoAoJVtC2cJB1SpNOGGPxOC1/pGjN9BizSRFZma0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GYm6oEsyn3Oxwc3RqHtFd6nvl2LO2LKcHDTXBfEuIP5UXXt6WUIHQqsP9E5ZgIq+5irmKj2McnNXdzlD5lDNHyDBonHr1rO2nv80/Ysubkz9nWYdqIViS0E/2E1KhLvs8F2NM4xTediyXs29Q9MeqQIXDA/XQQGAaj1ecq75bAg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xff.cz; spf=pass smtp.mailfrom=xff.cz; dkim=pass (1024-bit key) header.d=xff.cz header.i=@xff.cz header.b=WXO1PBxy; arc=none smtp.client-ip=195.181.215.36 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xff.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xff.cz DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xff.cz; s=mail; t=1708991828; bh=rZaLoAoJVtC2cJB1SpNOGGPxOC1/pGjN9BizSRFZma0=; h=Date:From:To:Cc:Subject:X-My-GPG-KeyId:References:From; b=WXO1PBxyQno+RvrzTOKSG5iaPFGaFoBMY4jYlysNZb6djRltmh6ERSyY70L86T+a1 Ilb+f7g+ayjXlBNH3QzL7+QNJZpTmkThUABO8S/1mSAf6Xnk95uInS3xNMmZiJu328 vfO6JYvwF1GJyAPEhYPvBb5OFrVsnpo0a1Oj1UL8= Date: Tue, 27 Feb 2024 00:57:08 +0100 From: =?utf-8?Q?Ond=C5=99ej?= Jirman To: Rob Herring Cc: linux-kernel@vger.kernel.org, Liam Girdwood , Conor Dooley , Mark Brown , Jaroslav Kysela , Takashi Iwai , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Arnaud Ferraris , linux-sound@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: Re: [RESEND PATCH v2 1/5] dt-bindings: sound: Add jack-type property to sun8i-a33-codec Message-ID: Mail-Followup-To: =?utf-8?Q?Ond=C5=99ej?= Jirman , Rob Herring , linux-kernel@vger.kernel.org, Liam Girdwood , Conor Dooley , Mark Brown , Jaroslav Kysela , Takashi Iwai , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Arnaud Ferraris , linux-sound@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-sunxi@lists.linux.dev X-My-GPG-KeyId: EBFBDDE11FB918D44D1F56C1F9F0A873BE9777ED References: <20240224135501.3822390-1-megi@xff.cz> <20240224135501.3822390-2-megi@xff.cz> <20240226194727.GA1320480-robh@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240226194727.GA1320480-robh@kernel.org> On Mon, Feb 26, 2024 at 01:47:27PM -0600, Rob Herring wrote: > On Sat, Feb 24, 2024 at 02:54:54PM +0100, Ondřej Jirman wrote: > > From: Ondrej Jirman > > > > The codec driver needs to know what jack connector it is connected to > > on the board. Add proprty to describe the type of connector. > > > > Signed-off-by: Ondrej Jirman > > --- > > .../bindings/sound/allwinner,sun8i-a33-codec.yaml | 9 +++++++++ > > 1 file changed, 9 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/sound/allwinner,sun8i-a33-codec.yaml b/Documentation/devicetree/bindings/sound/allwinner,sun8i-a33-codec.yaml > > index 63eadc4200ac..399fc00ad3f4 100644 > > --- a/Documentation/devicetree/bindings/sound/allwinner,sun8i-a33-codec.yaml > > +++ b/Documentation/devicetree/bindings/sound/allwinner,sun8i-a33-codec.yaml > > @@ -44,6 +44,15 @@ properties: > > - const: bus > > - const: mod > > > > + jack-type: > > I'm all for a generic property name, but it needs to be documented > somewhere common. Perhaps dai-common.yaml. > > I'm sure there is some prior art here to consider as well. There's only a mention in the code. But there's no use of similar property on the codec nodes. https://elixir.bootlin.com/linux/latest/source/sound/soc/soc-component.c#L288 /** * snd_soc_component_get_jack_type * @component: COMPONENTs * * Returns the jack type of the component * This can either be the supported type or one read from * devicetree with the property: jack-type. */ This is part of a component, so maybe in sound/component-common.yaml ? Kind regards, o. > Rob