From patchwork Sat Feb 24 13:54:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Ond=C5=99ej_Jirman?= X-Patchwork-Id: 205889 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1157141dyb; Sat, 24 Feb 2024 05:57:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVKJ8a70+MBXz3Z5tdqTSIoGbrtA1Fk88KHB4j+Bem+2txXSrPddc9luqsc/ghrwgX8uQFIipbHliTnkIpSIE3WHLwCFw== X-Google-Smtp-Source: AGHT+IHiMdjZqsYxxLEi8uxRg0vNSKngX2Ndmq/Vkz9v+FSLE45+bUaMyG63Vde2rCopTC5dYYBk X-Received: by 2002:a05:6358:16d4:b0:179:22c:4a4d with SMTP id r20-20020a05635816d400b00179022c4a4dmr3534078rwl.22.1708783067075; Sat, 24 Feb 2024 05:57:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708783067; cv=pass; d=google.com; s=arc-20160816; b=h5c9iSOFLPV27WZnIevZ8p45Xt6NMtRLybRYuLashi7EQF+6cu76at2P3qkv1Re1v4 jHKcviOr+gZGjNWPVzspL3KR15bXzpRuBSV2G+iqgAPzE0dh/OGcyFAg1awCXd4ZKOvh ekTj1m+ZTV6I/BJv2hR5nVCLug7SaPVwisQ3++1NAb5H9xEVNNw5oQx14Pn+YNAuIcNT LAhw64/gEnQIEZGAfIA9DQmvYPejqCCnlE1ut5cNMDKvryJrSIp3ZdBbXq4REE7+XfHy UtkseBobB82zG/f3QQbvGkxO4D0ulEj3b07tXcSpA5eafDoogMLMwOLUVBhkUcUssna8 LwbA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=VMM3kr0XFuu4JkBUoBGLzM8sz7y9oqJcf7OMoDjJSlc=; fh=BtptTc38Fo4YUTAEjUDBJT4+tGt26BbgQPuKT5WgtPM=; b=O6IAYr/AepHcEkaXrh9kp9uTy692GTseSVPfGvjK5l7aEnuChHx+fm3vgiPBerr9j6 NGrEuuuDNfmC2lO+3lXSKZWezgDzuiwPwP8LmCzhLRTElEYTQ2cAaPVnaxQikFEcGHoi 7rXVVUn4dG+TPpLoYSPZ/mi1rHt0LMPkpsTOdD2ErDGEJkrPwzxD9gYnZPUIPMOHOC8C w6evYRkSni8rEoR71A1Kb8mDnCS/Fu38B1H2Og4O5iRRwUFLfkSuCxYV40S9Xiwi4ZPy c55DvtPzfqo+v0hpi+1T5gp/jyTlptdRRfwgD4G2PqWU05sUja0ZpVv7LJExnUkBeQiY 5N3A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xff.cz header.s=mail header.b="tn8/8t7m"; 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-79693-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79693-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=xff.cz Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id w186-20020a6262c3000000b006e466aa6862si932277pfb.122.2024.02.24.05.57.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 05:57:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79693-ouuuleilei=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="tn8/8t7m"; 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-79693-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79693-ouuuleilei=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 3221BB20A71 for ; Sat, 24 Feb 2024 13:57:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 281E14D9EC; Sat, 24 Feb 2024 13:55:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xff.cz header.i=@xff.cz header.b="tn8/8t7m" 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 9C26B29438; Sat, 24 Feb 2024 13:55:10 +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=1708782912; cv=none; b=NpsWXJcTXdq0fBERvwgcoxUoYCNqmf5RfAt9dktHYoMUpuiWPqZ8SAP0BssqhclVPRmiwUVmL/4R20I/XhyAKkt37QwLuJ98uvP6fSEoQynBuZ/PxQTPEyvQmsCsPyglzm9JmGa6VHPibvX4DrDuY0EQGewouaGk1Ae3Xlpdpjk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708782912; c=relaxed/simple; bh=worLZTo9a3xOqnG2MGSIZHpGnCKBAdHSzTO+24Aiyj8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VH4OMuQ6WNQq2Zv0OuTQ+U0iZ3UsPSdLden5+BAOH6CaFTMHSfxSjo5JP2S7MPP9oTrpgaptlZVh62ZxqkYlH3Igy769FhxPG5ZdbcJ+7i4xx1pGW8TKgKX53KclO4iJD1V6FXxSuEaene13FLstNfnEUK7ewqsvnPC27tjIJEk= 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=tn8/8t7m; 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=1708782908; bh=worLZTo9a3xOqnG2MGSIZHpGnCKBAdHSzTO+24Aiyj8=; h=From:To:Cc:Subject:Date:References:From; b=tn8/8t7mgo1t0W+dgEr3h18KJxNXgTwIDGoRwGL0K1ToGMr+JXPkjDgWyZH3WlDaQ ++ktmgqP+wztmcEKw37RGrWx2mGWU7p/XBN+Mxm9xwgW40Rqm6pGiFojY+B0rFK4gF nuR/lqe88VaCCdfVDJ87ucvKDna7KxuCUsKoaukg= From: =?utf-8?q?Ond=C5=99ej_Jirman?= To: linux-kernel@vger.kernel.org, Liam Girdwood , Rob Herring , Conor Dooley , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: Ondrej Jirman , 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: [RESEND PATCH v2 1/5] dt-bindings: sound: Add jack-type property to sun8i-a33-codec Date: Sat, 24 Feb 2024 14:54:54 +0100 Message-ID: <20240224135501.3822390-2-megi@xff.cz> In-Reply-To: <20240224135501.3822390-1-megi@xff.cz> References: <20240224135501.3822390-1-megi@xff.cz> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791788913242495728 X-GMAIL-MSGID: 1791788913242495728 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: + enum: + - headset + - headphone + description: + Type of jack connector connected to the codec. This can be either + a 3-pin headphone connector or 4-pin headset connector. If not + specified, jack detection is disabled. + required: - "#sound-dai-cells" - compatible