Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp561736lqg; Fri, 1 Mar 2024 13:36:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWiwGXdtzQ5ZD6bYUtu9zyTH65g0F5fpXjBsyQ+d8SaPWHGkyxBG6Yu2Wkfk9smSJeM6nQlG9J307/Dd86SUOnb0hJZwJ/KCw7Y/aF7lg== X-Google-Smtp-Source: AGHT+IGO2s9znbkYBuWMDi8JJK7Stk5QZBlJVJ+3YH45JF+zRAl9JI2p5JgHkks7qFeMb10NAp3b X-Received: by 2002:aa7:d48f:0:b0:567:2cd:a6b7 with SMTP id b15-20020aa7d48f000000b0056702cda6b7mr1165edr.42.1709329010710; Fri, 01 Mar 2024 13:36:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709329010; cv=pass; d=google.com; s=arc-20160816; b=rOW6EgzsgvwVnlm1QbR9VeWmn/Qm/O7VEKYa5uSYCUTQBKQg2QslGKSL2/6N6S+6Qq iSpeeSOppB3Z5JjC98wPMpmGz3WeqSv4cyQztvQbFQVq/FjIb2A+0hBgd7YTReJUQeHW t6Ul0NPcyMt6eFyImwz3h0BcD1wulxs+pNJSM17ND+eTUTmMksmuSuLj+YRSreobv7kS d5rxq2u+Zkfn5JotOheV8jK9iVXvhhAqcomtY+oE8AUuvnJ2arCOy8IEy/tQvzZTtHh0 l/zKCUiR3zjHWbiBAzImR+g8SMxej2iH+XbPU/CeZIgiKbNJ30QJCV9269iP3ONjpHts D3Qw== 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:message-id:subject:to:from:date:dkim-signature; bh=udI/LoRXFz2wuJBxj2JRcsiq+wZWRv8FaLUn8+DQ590=; fh=kdAYteUg62qyLgt7QBIB4TsZ3lM/q29ZrQVZPYqyFn0=; b=mJZT99PBNu6aNLgs0IUmLW6l2ACDyBKWY5Q4aHtlVYnwnKF+ba9EmQEQYPLnlN0lai XfhtH88pzv+r5PpiieVy09+ahC3Vdkoi8K+Afdx+a4k+xeBdHqUXP7z3Kaa0U2KNNkW3 gb6ZRWQPX/gZ3LHsboe47aaD7Mcs513UU8ACCSv/e7d5BygdoJ/OVwIgGckvqfv0vn0v aCSeqQqkdJrmVaciqnoORyCZjCMZ6hf4t/Xlp8y51+4fL0tUIUXPrvEDb1j4lDXgLWld sl1/bSIwgAL5/tKnvmvo76bpP61Y6wA9uo2L2GoRcJdhZPT5/WYWn6x8Ry51IfhWdSDn HpZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="LYLz/Zns"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-89155-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89155-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id q7-20020a056402518700b00566dcc01639si682982edd.8.2024.03.01.13.36.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 13:36:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89155-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=@kernel.org header.s=k20201202 header.b="LYLz/Zns"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-89155-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89155-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 771DC1F21EE4 for ; Fri, 1 Mar 2024 21:36:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7277059147; Fri, 1 Mar 2024 21:36:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LYLz/Zns" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 91D2958ACC; Fri, 1 Mar 2024 21:36:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709328975; cv=none; b=DUhuXVSbIkInrZIJHd8i1yZf8OyKF85uxGhjL7acscqdfIcaNXyd0iu9HuZVst6gjbA89XegWUfgq6EpEkGcNTZV1uTXWodd0i3tYvm6AGzJeKsxa4LOebpzUmNSb7l1f2shVmX1+GWtY5atwkp/bhv0+4IvosaZrR68E7SEjus= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709328975; c=relaxed/simple; bh=nNI1GFWV3VF+KBWjXYmR+1rViSk5YziUkARe0UzaTHE=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=h+r6yp4fHvHLlJL9/ItVyMBOIVY5JkiDalmmrWREyDr1RFKqEVuZhV3M6yQ1ak4ETX29pbv7zXgpwI+nW8LtgjE+HVY3g1FZVOcVfIg0JKZ4Odm6AZvXF2ZbIoDNH/Oe0ax5XgtS80BllFMV9cIBmRkNWymbSIUKcF6hmubqADo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LYLz/Zns; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8B04C43390; Fri, 1 Mar 2024 21:36:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709328975; bh=nNI1GFWV3VF+KBWjXYmR+1rViSk5YziUkARe0UzaTHE=; h=Date:From:To:Subject:References:In-Reply-To:From; b=LYLz/ZnsEinauRuxr4yV1WGVUfRs0tq+0Tot9DU/uKbQeZEb5lw4RA2Iq7/yIdUiP HjrK8XFtaLipJS4P/sVNBh66ZbrHvC28PgCrPyYNECKUsXSLfi5Qx9R6gPD0+4WrEm wKl9ye33lOMRO+aG0nBrEhWD/w0W5Id3KMsrQaLHWfdlBkl9ZlGqCsOc8sva+/IAgP 3s87FI+Omy163728oQT2rlDJp922OEJjzBzAeR6h52xiWMuOd8QtlKwoCqg6arKNul kfy4rLGXQ+QAB3qKDZNsV41rWFgr7QK4b2Q5Ercvxnlp4z6FWR7Dz9nK3iIl6nruJx UpBwUdRQtLyGg== Date: Fri, 1 Mar 2024 15:36:12 -0600 From: Rob Herring To: =?utf-8?Q?Ond=C5=99ej?= Jirman , 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: <20240301213612.GA3071318-robh@kernel.org> 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: On Tue, Feb 27, 2024 at 12:57:08AM +0100, Ondřej Jirman wrote: > 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 git grep 'jack' Documentation/devicetree/bindings/sound There's lots of things related to jack. I don't see type, but I didn't go looking for 'mic' or 'headphone' or 'headset' or ... > > /** > * 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 ? A comment with no other usage I can find doesn't make it documented. Rob