From patchwork Thu Jul 25 10:40:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 13741731 Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 7546A198E69; Thu, 25 Jul 2024 10:40:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721904047; cv=none; b=b27tnyWrl3ZZsNbKiKsAwACFQRa6kXWYERUKwZrXba47bbK/fnuXuStGLhRwR2oKECivC+F+ZulmfcyStXXCTWkY4z/E/+vx86ASLHJlymb5tJFCYahevixxNltOegk9CyP+ijLIf7Yeug9W/ryKIUvLWpGMwD/RTrbmCNTw/pQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721904047; c=relaxed/simple; bh=KTkZsY91b0iIJMvb4V4gIHRHYTVzSRya4eCPvKugz6w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nLdY+AGGtxJzmSzdaHLU/jiYrfsHVe7j+rFsj80BEWlpoZ46wQ7TyxgpGoA3oYO9S5p5dKtEDXV1AUw16v3kEmwIbYwe+J3p6HpIxY5RkSWfelfNLbsSxtHzPdtS4VH6bI4lzzHeQC09rKoqzggbgT7pCkae+XdW+mimA9u6XaQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=KGCw4q1v; arc=none smtp.client-ip=209.85.218.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KGCw4q1v" Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a7aa086b077so36131066b.0; Thu, 25 Jul 2024 03:40:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721904044; x=1722508844; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=6dxd18IEPPCN0mdlU0anYLSOukmaQJ1jfiipuPAXFgc=; b=KGCw4q1vMn7CiOy2tC/lpe6SHhgMZahmk3vfbnbIqQPmAvP92O2dPzkFuGPfjlAbgd 1yNIN1KEI1ETNUTDtWUE3ExlCEkZKciG0Effa9ULrGditgM5ZS0g5myx8/mYTd0sVxs5 S6TssIJKtzcCh8AQe76jLNT7ZqzcgCwJ+6RTJeyKh3VPmzJaRL66tqo0H1daWSa1Tz3c Axov8PPNaU/airdTC8oTwQJx/4zttHS0h6t6BAsAA8t8fYEhcc7ZBiLNhXqhvKx65YTQ 36uu38M5Y5UElwjAC77gjBWsAdlRmd/gJY/P1sgcE7Ampn6V2dUnIBJkucGBDUWcOQg6 XjFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721904044; x=1722508844; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6dxd18IEPPCN0mdlU0anYLSOukmaQJ1jfiipuPAXFgc=; b=ZeK1vF+G7IhGgy0ESGqT8kla/lZw4RqLL20IEGM2zubhj1EpwZ4w9/+Mc9XY4WwA+Y q4ZCTmwM8PpIRZ15ElqPadnJ441VFOsqc5r+Gg9mn8YHaWX3HbBgqCQ0zfM5ucBa1Hok 7pDmXXHnB8YjFAUFXqR1kLlBrX7BFFbWgcuKQGiQRTLxMybt/VJPUFfNAHYFJ01fnm5Z fel7R3dNSIRIkpTA/Wsu0aMHbtqFqH93ehzQbK6HrwaGT2z6kIyjS0WsGJQdh/+6J2rG ZCjg14dBWdbpeMTnGklv7OWaEoqrfXq1L9mp7kPKHSVO4KNYyETW/m6P0WFu1pTgruF+ AbBg== X-Forwarded-Encrypted: i=1; AJvYcCWjhaRBoNkuyjPXeHQ0fyTcp7Dgr1fHeTK4e7PvmVIg7M3uTrltw2ockiMhtHordn4EBS21k6ZuIv7Joq1bZj7euMgojX68pqCM4bfmDztBDUk5AVDNQrRcm8S0RDkPDJTFq6sGfpQZj+jHfQP9faNdgc4e1ycicomq6CCybpO6yhJhqWybWsRur4C7mA== X-Gm-Message-State: AOJu0Yx3Oln0ietLwZLmsbXMQYiUkIO5eKJMH45Vh4ahknCaYeFcdKq4 u19h4TjMj7uK2ar3I6H/YhNbv3+L8r8YH593NJv4B2zVy2x0RNbjrnm6ug== X-Google-Smtp-Source: AGHT+IF/mZbfu+qwl21CGnof/UHOhOM/AoVBM2J5sHP5zzGk+ZLCeJEelKisWC/ixRmMZRuh2PLccA== X-Received: by 2002:a17:907:7296:b0:a77:db36:1ccf with SMTP id a640c23a62f3a-a7ac5049d22mr170757266b.42.1721904043764; Thu, 25 Jul 2024 03:40:43 -0700 (PDT) Received: from tablet.my.domain (83.25.114.69.ipv4.supernova.orange.pl. [83.25.114.69]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7acab23d56sm58342066b.38.2024.07.25.03.40.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jul 2024 03:40:43 -0700 (PDT) From: Artur Weber Date: Thu, 25 Jul 2024 12:40:35 +0200 Subject: [PATCH v2 1/6] ASoC: dt-bindings: midas-audio: Declare required properties for GPIO jack det Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240725-midas-audio-tab3-v2-1-dbc055c27879@gmail.com> References: <20240725-midas-audio-tab3-v2-0-dbc055c27879@gmail.com> In-Reply-To: <20240725-midas-audio-tab3-v2-0-dbc055c27879@gmail.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Artur Weber X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1806; i=aweber.kernel@gmail.com; h=from:subject:message-id; bh=KTkZsY91b0iIJMvb4V4gIHRHYTVzSRya4eCPvKugz6w=; b=owEBbQKS/ZANAwAKAbO7+KEToFFoAcsmYgBmoiunWLve7myaMeuIovS4h1pW8U8xbvx9acrN/ qVuhsjSsLKJAjMEAAEKAB0WIQTmYwAOrB3szWrSiQ2zu/ihE6BRaAUCZqIrpwAKCRCzu/ihE6BR aC6gD/4uXF/Wqdaq+E/UKPCSJtW5sD0MMI5hJO/AEi2YsUdRTkvMTiq+QlBZ8U0qIfFGmoMwgtV dkaMh/H9I2AM2+WaDGzsujfyw3z32V3RleZ5khHTmpvkY5PS3rRqSFGKOe97986MDlXSuP3gO9u lnc787HkF2gGZNm0ncYQKwB5hIUZrwf+0vvMKifZoPwwfG2DvJzNCiUEOx65QCmETCU9ErNsc69 WMyX3Y+K8HipJUl2gliPQBWKib7mDIJygI7vxeb/sTTzxbas+s60U4cnSYZDOsN/ie0MzDNIgx1 IU+wzT9+ylJDLAdbaaVTroKlTcA+dF4rT4FQMwWXRcBQvkCrgmE1PdqRmp9gpgx1Hs6CPE+agAB g+a0Om2tQggxrB2RaSoP+GpFM+xFYy6D/uyN1bpV4I8ksDkstOOvZPnRpDL9BOz76bFlY+HhsEp WK149c2UYZ5HFaA9wCCfSxG/esHCpsQVe/uAhCwD2Is6zNz13wW42WcOWz+5lecDTmJ83wnFC8E TZNDboutQGxmO3aBrkNwhaM3eC/wmBEgISMYRGtHPjsPpC7qQhDatmMyqDr37xW9bwaRP/04D5X jIjOF+Ym1msRJRZnDFAEniXwzGUSWHbwERZiAG0hmWoYsGK3go5YsT1SaVQPeOs4BruOuJl5uRd UhcmDdCN+asxSvw== X-Developer-Key: i=aweber.kernel@gmail.com; a=openpgp; fpr=E663000EAC1DECCD6AD2890DB3BBF8A113A05168 GPIO jack detection requires an IIO channel and the detection threshold to work. Explicitly declare the requirement in DT schema. Fixes: 0a590ecc672a ("ASoC: dt-bindings: samsung,midas-audio: Add GPIO-based headset jack detection") Signed-off-by: Artur Weber Reviewed-by: Rob Herring (Arm) --- Changes in v2: - Use anyOf instead of oneOf in headset-detect-gpios/headset-key-gpios if: statement --- .../bindings/sound/samsung,midas-audio.yaml | 29 +++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/samsung,midas-audio.yaml b/Documentation/devicetree/bindings/sound/samsung,midas-audio.yaml index 69ddfd4afdcd..5483421a6fd3 100644 --- a/Documentation/devicetree/bindings/sound/samsung,midas-audio.yaml +++ b/Documentation/devicetree/bindings/sound/samsung,midas-audio.yaml @@ -9,9 +9,6 @@ title: Samsung Midas audio complex with WM1811 codec maintainers: - Sylwester Nawrocki -allOf: - - $ref: sound-card-common.yaml# - properties: compatible: const: samsung,midas-audio @@ -102,6 +99,32 @@ required: - mic-bias-supply - submic-bias-supply +allOf: + - $ref: sound-card-common.yaml# + + - if: + anyOf: + - required: [ headset-detect-gpios ] + - required: [ headset-key-gpios ] + then: + required: + - io-channels + - io-channel-names + + - if: + required: + - headset-detect-gpios + then: + required: + - samsung,headset-4pole-threshold-microvolt + + - if: + required: + - headset-key-gpios + then: + required: + - samsung,headset-button-threshold-microvolt + unevaluatedProperties: false examples: From patchwork Thu Jul 25 10:40:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 13741732 Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (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 A74D51990CD; Thu, 25 Jul 2024 10:40:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721904048; cv=none; b=Hbjy1ru7WWZrj5ToadUIhhTq18mvYcDR3FUABqz7bJDrNGn+egbv//ejosvBFgOCf2NYTcgOzOXBncDhttqypzWYetO8bbgsKThR8cTCfxyL/gNgE546URor0wBnsKr+/MLs43+S5tk0ad5zwNSM1r6ph5RFoT8KabtHSXF9WDQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721904048; c=relaxed/simple; bh=/IfLGEvhoqbrXs/mPhWyyuqb+s7Bk3eCuOnYTVRjQvM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=t8ie35GIFtuCEF1Sc1toiXgZ3ozJL3zQ1UgLkFxcsd/gC4No3T/KKevfqbLTnrVkk3hHviCZSSIom9mP1BDqcaJiEYiWUm8pe6kEIZB+H770ZloTR7C2qIHBOzJkK4LAJ9pUQUqPSFXgWDcCfwHiQeswRdtdrT0cCvahN/k9Qf4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=IP5PgDgs; arc=none smtp.client-ip=209.85.208.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IP5PgDgs" Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-5a3458bf989so922118a12.0; Thu, 25 Jul 2024 03:40:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721904045; x=1722508845; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=/BT1ETjGdxc1ofYe6xfqubr4qkHhr85Rz6D2FNj+D4g=; b=IP5PgDgsAcJXAu9ViIrikJ+qXJGyxK66b8DKFHGeskW98TO6ok4GUxDFu6rfkz77F8 LqbfernDhpLxiTJHR0MhRwbII1DMn2IndELpw8N0Gre3JfGhSlimwxByu2bwkHaip3gC zo0qzZCDeqYHEKdBPsbj0ClbsYNA4fh/sDJ1Kr+HUqQFV1Gm7lagwBBwCO6tzFW78TT7 oDiUhD57JRoX97NNUZEazDx2bL7EF4QnzMk6qEIuAvQm5tsF18uXhDV94pO3SVd3dNQ7 CnFuzt7y5Ml8AKYo9/zAfpymH7RNI4PIQYvJnwoabSiNmK/tpGYi0qWEb2QrC2XE/mYO MeKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721904045; x=1722508845; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/BT1ETjGdxc1ofYe6xfqubr4qkHhr85Rz6D2FNj+D4g=; b=o1anXAeDKz8YrAfGIq4kjRt8H2JTH/Pq3NA8+WH06HuNmUmsWVn7K//6a2WN9OoUzk wTo0cfhhsLMtDxDEl9pycF51XH05asrEkFRokUujq0FxY+mTCkfLTVQGQRhOGVnvfS+9 7bd4JJQI9oX6EA7zTud+6k/vNvmWVOJNFYOFeafyM/dJsBo7+x2NuLwXr5+28UWaf8up wim8+ofw3Dl5QINlmi2RjfzayKG84mpgQ0/1zq89hw7/GGqOKQV/0T6O1gOfFjwxSQtM 4e91v3ZHqihxghsCIw3jHuOkhzNXNQuDvnqGlK7YalKiK9DgZQzllW4d7OIAV6ZUgl/L ZU2w== X-Forwarded-Encrypted: i=1; AJvYcCUYPg41QJAkCE5lZnr0JF35LnwPfUaymMchrlivFazYORZ3EpUVMo/obx81nzyM/eKz4GkG2eRzZu0yDtAqwDtBpYhs+5kjyqB5iWa45paNQ18jgJMIZN88+CVmoxudzZKjbtXFhKmWMR6e/NI63fqEdoSCF22ZBM9afdPbfhrgsI2d0C48K+4cH6LDXA== X-Gm-Message-State: AOJu0YyILy6ED0PuamO/o/SavQC7sAM+iCdjPR3jIiOTFfeC1Mu462+7 YJJkhy8yJ20etUmWVHfyx8Ill2QFpnnuBmHiy/XXsq2oIOrtGvYY X-Google-Smtp-Source: AGHT+IGV5STZLw87HTmp51t5/YRKLVMWBZVnchanMigxTA6+DYmh2GOpfpud+QG6bDPjnYECDGQPhw== X-Received: by 2002:a17:907:3fa4:b0:a7a:9144:e256 with SMTP id a640c23a62f3a-a7ac4d7bf13mr189732966b.6.1721904044993; Thu, 25 Jul 2024 03:40:44 -0700 (PDT) Received: from tablet.my.domain (83.25.114.69.ipv4.supernova.orange.pl. [83.25.114.69]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7acab23d56sm58342066b.38.2024.07.25.03.40.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jul 2024 03:40:44 -0700 (PDT) From: Artur Weber Date: Thu, 25 Jul 2024 12:40:36 +0200 Subject: [PATCH v2 2/6] ASoC: dt-bindings: midas-audio: Add separate compatible for tab3 audio Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240725-midas-audio-tab3-v2-2-dbc055c27879@gmail.com> References: <20240725-midas-audio-tab3-v2-0-dbc055c27879@gmail.com> In-Reply-To: <20240725-midas-audio-tab3-v2-0-dbc055c27879@gmail.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Artur Weber , Krzysztof Kozlowski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1905; i=aweber.kernel@gmail.com; h=from:subject:message-id; bh=/IfLGEvhoqbrXs/mPhWyyuqb+s7Bk3eCuOnYTVRjQvM=; b=owEBbQKS/ZANAwAKAbO7+KEToFFoAcsmYgBmoiuoO0ZE2wk3i+nYkt8Ex24aMWi3VFBpdFQCH A9vUABb0DeJAjMEAAEKAB0WIQTmYwAOrB3szWrSiQ2zu/ihE6BRaAUCZqIrqAAKCRCzu/ihE6BR aPM3D/9DuGk/DVvmkKZFs7V6thby1GbdhHaTN4tv22CBr/GctAXE5hXXS4sc9yxw7OIcIwgmTEB yKHS5JGvJ1ie3vKM2ATVt0J9RKyJLeoPc0lftseWw958rmbpKHbOa+Vec6bWIOOS31bQ244fTrj Xo4qY1Q2cuFJEzta6dILYzdcs66/jU3hafxGNWLfBkp6flE+BsSwgiPK8X/MJqPLvdRRmpRDxi5 j0gLZieogu48aRVKlxIRBXiHzSXCaCb68q/4iY0i9BVN+QimdKkJlUxjF2kRhlmr4eyzEYKucnb BvjIKjSr3Q+TeCV0bw+37EPiyrxGshzRLCKj/NQDa+dFVq2rwo574RcL2S/mZQidVVg3D8/U/P7 LImrSvFMCG+ZrKxAc+VyD+UJSjYAXEHGPK9Y3w2Sb8/R0ZetrtE+tck3ai2NP8WZVjNS13+DMPa qUI6bSu3Vo0EyrrjTVYykgvxXXVYq9N3T7c1eb81Ua/ziGamV4o7J3jvbyHsrYvmnqId8tL5o/5 77n0K9uvx9z/vGq2QoiMgYqJrKxRmtXeQ6KtqrFOGcltePtKnQcWOHvoP5yR8ZF0vcJnuILm7wF WPeRf5rDc0PUK67nj8l6PeC/wvsnGoPlxUbqH3wuKWp2t4FFBYq/UmriyehsjGcFmbG1+7zC9hV tdHhEHpieUYWpLw== X-Developer-Key: i=aweber.kernel@gmail.com; a=openpgp; fpr=E663000EAC1DECCD6AD2890DB3BBF8A113A05168 Unlike the Midas, the Galaxy Tab 3 8.0 does not have a main/sub mic bias regulator, but it does have a separate headset mic bias regulator. Add a new compatible for the Tab 3's audio and declare required regulators separately based on the provided compatible. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Artur Weber --- .../bindings/sound/samsung,midas-audio.yaml | 30 +++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/samsung,midas-audio.yaml b/Documentation/devicetree/bindings/sound/samsung,midas-audio.yaml index 5483421a6fd3..cb6105a6b216 100644 --- a/Documentation/devicetree/bindings/sound/samsung,midas-audio.yaml +++ b/Documentation/devicetree/bindings/sound/samsung,midas-audio.yaml @@ -11,7 +11,11 @@ maintainers: properties: compatible: - const: samsung,midas-audio + oneOf: + - const: samsung,midas-audio + - items: + - const: samsung,tab3-audio + - const: samsung,midas-audio cpu: type: object @@ -96,8 +100,6 @@ required: - cpu - codec - audio-routing - - mic-bias-supply - - submic-bias-supply allOf: - $ref: sound-card-common.yaml# @@ -125,6 +127,28 @@ allOf: required: - samsung,headset-button-threshold-microvolt + - if: + properties: + compatible: + const: samsung,midas-audio + + then: + required: + - mic-bias-supply + - submic-bias-supply + + - if: + properties: + compatible: + contains: + const: samsung,tab3-audio + + then: + required: + - headset-mic-bias-supply + - headset-detect-gpios + - headset-key-gpios + unevaluatedProperties: false examples: From patchwork Thu Jul 25 10:40:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 13741733 Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 520FE1991B4; Thu, 25 Jul 2024 10:40:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721904050; cv=none; b=FgbovF/ecOlnG4jk+mQAU8b2AdomaegcSREDloNv9UMVsBZNB0rIjebRrcIh9QC8HC2NJKmRsfkLDxD/QnqfEI/oIt34yVq2LCczSjPd5tgomwMQZ5GzvivZ++fYgFr3S8KMPv5TJKl3tpfu4SHjOXHpfbGOp/HVvftokeF5d7I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721904050; c=relaxed/simple; bh=GMcA/CSZ2AnnqzHK3pWs0min7yshm+f3JahQWfU+ihQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=P3qD/I9XPxCrAD9CJb+lDTrrKrimEaqxrNTzGEY/GMCDRX4CYGFwF9KW7TA0OPEJ4Wub2hy9Nt9L/myxtL/qDhVv2DMuweDDYbFwFacDO5vqGktJufCldOZquJCX2DvMBl7pJnXLRYrxa98rT5n0ETrY9TmVopTQRyRy0HPUjf4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Hc24KfH+; arc=none smtp.client-ip=209.85.218.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Hc24KfH+" Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a77ec5d3b0dso39608266b.0; Thu, 25 Jul 2024 03:40:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721904046; x=1722508846; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=6jgZAm73Hf/bhFqyp8PoWdCzqWnz2LzHMQrAjO6S6u8=; b=Hc24KfH+v0Xoj1Gnl9OipeVHrAycfeJHLF7paFZdfxdFVlD5rlLbAAC8sJilMnUAhH qTK2XvQdeZ0DR6O931G/OK+hS2OhtBBwTSR9PUYLhjzxw0C+Gcs9+foPuSf/IdB4/5UM OugCmxSoEpIYLzZjb6aZ/PRov3kGu7vQz8WRBsMj5cP7vt4KANTmnJsBYHENlqpETAet nLf/rXFYKIoGcmn5Gari6Z77n+XjCRxQN4jPtmbV9WmwjSpl1O9r/jWy1MK8QhiqzXNe bAWO80UKAi8hkUY0e3mKGg9F70smmoveDWZikzVSvXEGOnnpBRrcEiY5Usr7VN129Z39 Jabw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721904046; x=1722508846; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6jgZAm73Hf/bhFqyp8PoWdCzqWnz2LzHMQrAjO6S6u8=; b=qJUDuK57mEuZgV0Xls47tZMuQ7AdxQ9eND8rf/5S7cDOZCY3k3aA5rW8Pilu6cEymm AOSBiVhcej8C5mGIKGnstgX5Zx5Cd4bGx5lbGCJS2y3efzgDgPJ5rR5D9dc3BmoP3Fx6 Ty7Q1FMB8TxAGRXolFACQMI8+g02EqL7aQOmp99KTWBr2AUcmSv9Gw/eLAUo7H72L8BC Ng1Pmk5PTcTXrgzp/E3SAKR6LNyNKXa8ALO4a+3VKydvwCf/iKuu6a3+7162ELYC/HFZ msgdn+x1LEs79kOgtZy/41fjjk+TvS0dXn/NCfadP/pDRldoZPMWrCZ/BJawq03EnUOQ jWNQ== X-Forwarded-Encrypted: i=1; AJvYcCUtlAaESSgzqYsfUgHOUPLlpGJnJxXL+cZfDQ1ivoBc0xy8E3MNPPs/xwDm5+oN5lns6SHaMKJxjyM3okEav1leCdLJtFqGon43HbDjCO+fxJZxyc4E9zHXYbcd7KLBz6+bB8xJGqxVGb5uFdUEOm2JP7xB/q+6nsACVmZ31YhJKZsubCJhlKQzzligAw== X-Gm-Message-State: AOJu0Yx/i1UQJNXKQymkwueHbbsmq5FI+cUpRu68zsnZdVtyNNgMF0dh 7FJ6jyC35gvRsy5LKzH+UG/KJ4Q1PSSm8NdVCbJ/GzFe5Ni8bEqz X-Google-Smtp-Source: AGHT+IGovJSsZSFuA3Rq17j+OMkIEqicFAzp2LhAj97sWOxPvJ5mqgOjmYbaykRF1W4HiOM0VjAsiA== X-Received: by 2002:a17:907:318a:b0:a7a:a33e:47b5 with SMTP id a640c23a62f3a-a7acb9b7230mr120125566b.69.1721904046538; Thu, 25 Jul 2024 03:40:46 -0700 (PDT) Received: from tablet.my.domain (83.25.114.69.ipv4.supernova.orange.pl. [83.25.114.69]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7acab23d56sm58342066b.38.2024.07.25.03.40.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jul 2024 03:40:46 -0700 (PDT) From: Artur Weber Date: Thu, 25 Jul 2024 12:40:37 +0200 Subject: [PATCH v2 3/6] ARM: dts: samsung: exynos4212-tab3: Fix headset mic, add jack detection Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240725-midas-audio-tab3-v2-3-dbc055c27879@gmail.com> References: <20240725-midas-audio-tab3-v2-0-dbc055c27879@gmail.com> In-Reply-To: <20240725-midas-audio-tab3-v2-0-dbc055c27879@gmail.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Artur Weber X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1894; i=aweber.kernel@gmail.com; h=from:subject:message-id; bh=GMcA/CSZ2AnnqzHK3pWs0min7yshm+f3JahQWfU+ihQ=; b=owEBbQKS/ZANAwAKAbO7+KEToFFoAcsmYgBmoiuoa1y6zAZghDGX5n5/kjHDjOkdleE4d6VW9 MNmqhpGxGmJAjMEAAEKAB0WIQTmYwAOrB3szWrSiQ2zu/ihE6BRaAUCZqIrqAAKCRCzu/ihE6BR aOxRD/9hAoKjY6o689I2hWMx51UiaLiHANSV1D4QZtTyRJEgFD3qpVpxqD3AcUx/801XjwvsIXq 00/9B/gR3i3SiSwK+hduFutC2wb0bdxodLGGcMWIfnNzjGFTN/KCuSe+sZoe25Rh/cFvsWNLWX1 +gv4KezzrPiIDvI3R4AwXIHnwkZ+gpNxQQyMuJNP6wNjh8H1Hs9ew0778etASf2itDcj8eME2VQ jmHoDRs21JiN4YrihRB55REl8QlLqK3FqJ/LbtZmKFoW33QcUY7FPID08AGGV4Q+BIjmclQAw1E /S7tqFGiZ7gI3JGjEs3USUCZwzBtA8cRSMFq+H3pZU2W5IFagHV9q9nwWJCB9TDxIk9AKgNv8qx wBmMqnEgK+8I42k/KdjbIz0CU5QNzbVEb6szGD6UCKl0LzP6iKcVPMTUYVAI9q/itAEAaxwFNEj WC1fA7FWvqJJe5VJ2B1NHO+9kMS1LfwK1gAcXDjru8InSBWqEMuu8cyexm66GWpVrli3pVrwyfk 5L/MZv0FT+fH3/8PuR6I0HhDS9X7WiZFJczmCV4vEwbu7DvIO1ejuqx08dZ0AsJZJVnZJmWaWJe G4dtFJAU2IJtZrYf7cMQdjr05HeZYeGlASY9BDVgD5NHn7MkrJaiRNCtFM9/86aHJCKPBhu7njI CyMvpywuh5Iiw2Q== X-Developer-Key: i=aweber.kernel@gmail.com; a=openpgp; fpr=E663000EAC1DECCD6AD2890DB3BBF8A113A05168 Set up headset mic bias regulator and add the necessary properties to the samsung,midas-audio node to allow for headset jack detection. Signed-off-by: Artur Weber --- Changes in v2: - Move headset-mic-bias-supply property next to other headset properties --- arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi b/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi index 9bc05961577d..bbafd4ece5f7 100644 --- a/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi +++ b/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi @@ -300,12 +300,31 @@ submic_bias_reg: voltage-regulator-5 { regulator-max-microvolt = <2800000>; }; + earmic_bias_reg: voltage-regulator-6 { + compatible = "regulator-fixed"; + regulator-name = "EAR_MICBIAS_LDO_2.8V"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + gpio = <&gpm0 0 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + sound: sound { compatible = "samsung,midas-audio"; model = "TAB3"; mic-bias-supply = <&mic_bias_reg>; submic-bias-supply = <&submic_bias_reg>; + lineout-sel-gpios = <&gpj1 2 GPIO_ACTIVE_HIGH>; + + headset-mic-bias-supply = <&earmic_bias_reg>; + headset-detect-gpios = <&gpx0 4 GPIO_ACTIVE_LOW>; + headset-key-gpios = <&gpx3 6 GPIO_ACTIVE_LOW>; + samsung,headset-4pole-threshold-microvolt = <710 2000>; + samsung,headset-button-threshold-microvolt = <0 130 260>; + io-channel-names = "headset-detect"; + io-channels = <&adc 0>; + audio-routing = "HP", "HPOUT1L", "HP", "HPOUT1R", @@ -351,6 +370,11 @@ wlan_pwrseq: sdhci3-pwrseq { }; }; +&adc { + vdd-supply = <&ldo3_reg>; + status = "okay"; +}; + &bus_acp { devfreq = <&bus_dmc>; status = "okay"; From patchwork Thu Jul 25 10:40:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 13741734 Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (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 B11E3199223; Thu, 25 Jul 2024 10:40:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721904051; cv=none; b=AN8x6j7wWeJ29JmmuN6+Sj0up6Lkr3+G5kMbg/HzHVxVgfTXN66Gam2XlqxU1dcgmWLfjZT2c66F/o7nJlDfwqoz9K/DEp+XqWwzkJS8UI5cB3SObFNLJ6gHbjRrejdPBMzv6IwSnLsNbhSxeE/pRPKe7sZFbm/lm58R6joWNI0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721904051; c=relaxed/simple; bh=jHWT0Fa+xhOf6Fte2P6lvkJ4mgTfM/iqD1caxnjhtGk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KZWd+/Wyi2faX3O7uU2ihPkDvIwfEGX1w6RIfqnqNfeEWexpxcB/8OhFvYdhjyZRuObpQ0BY6na/g6bYmKaGhmLU7Hwi/HmWKHpWoRUakQwOt1niveKLvPw3zY8twrWmWaLWWAvtdfeOnNru4t9TZk5wiNg6B89zYGyFK09RTfI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=GIucNBFT; arc=none smtp.client-ip=209.85.218.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GIucNBFT" Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a7aa4bf4d1eso44286766b.0; Thu, 25 Jul 2024 03:40:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721904048; x=1722508848; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Hbfg5uXazW+nwwPtfcNespnqKTYu9/iLCCEpTXlI5LU=; b=GIucNBFTuyPeloBF4M4m6jjitP689irQvO3qzw/Unp5T8joFrQ58G53Xe074mcp1hg 6DaF/bXbH8Mt3uaT2EoCEkxwh8OBqipHk9Z+6Be/91asUbqUF2aRhvjyfkdkZFbUmhPe KLogKxd+Z0qxCAi8QVzOY42uylGw/sP772sLbHjFV2sqM49+DZe52vZQ4bLLcNs946ag mgueyzcjr3AhZ31qquBcfrcC1h+5DkzOH1dpJ2mmTNOkwfbs8LkO1zG9Bz7OZRPktZKP owcuTXAv5rWK4MOmNzQpyrL0GG1bAjB1EpX673qDkexFhalmqP9gULQzKkTqMvmSsXs1 wNHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721904048; x=1722508848; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Hbfg5uXazW+nwwPtfcNespnqKTYu9/iLCCEpTXlI5LU=; b=Qx/EChktTLClGmuPcYCYIB5e5LXz71xwUioblCMAH1az7RDUfWq0mqRaiSawnAn0P8 QkAJfJC//f971C5/PHJsB2h8cNbQD4C7LSEexSNFa8v4UzCKxRIXLXyxqyQVpnKNK3kx Ho9rnIjYmvspqs+6C4nbTogEF6X8I/mLwWEm7gIlsSwDgydz8pqhBEiPnpp1ACmXlPz4 5b+uaN4kxSjwW6fr35qHhVaD0taq33ggvTQK/k2hzxWdL6Lv/X36ZQqOWgRMAjRX2krF QbYcbxqjIZgtCoXTa6A4zhXdogABlbdxKQVXfVgdsSAqefJM2N1GnW0DHMvfE9G6AzxX PN0A== X-Forwarded-Encrypted: i=1; AJvYcCXOjZbQI6NjWjf07N6v8cXUUH3wxJXKywB9PyrAHxiQS//o4ew653JCtmnXc81ogfp7H1yTeYLKwzbFBdhKulP4YfV4sMuPonPiA0XBndtsBT3NJFlCIhRsYOxqj5NjUDtJkPDa88778+rSb3s8QinFXbso3Om//CYVMrt5VrU88jKIexu+mJXwD0SkLw== X-Gm-Message-State: AOJu0Ywo8sV2FiTKINKDWU1Ln8/ljKk0VGNsMlyE+tCdYkJ2WLOND4bi ZAAdwNAXUSPmUWTz7D7UElji6ukw3M89GVzepATu7JFY+KSx6VHbBNkvGw== X-Google-Smtp-Source: AGHT+IGnP6YKcnhjuaGkkjpm8excP6NxkP2lXBsisKbDvXzA+qzUyviZNMfKXDl7Qml3TfN17X3VQg== X-Received: by 2002:a17:907:3d9e:b0:a7a:a892:8e05 with SMTP id a640c23a62f3a-a7acb498255mr126320166b.33.1721904048162; Thu, 25 Jul 2024 03:40:48 -0700 (PDT) Received: from tablet.my.domain (83.25.114.69.ipv4.supernova.orange.pl. [83.25.114.69]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7acab23d56sm58342066b.38.2024.07.25.03.40.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jul 2024 03:40:47 -0700 (PDT) From: Artur Weber Date: Thu, 25 Jul 2024 12:40:38 +0200 Subject: [PATCH v2 4/6] ARM: dts: samsung: exynos4212-tab3: Add MCLK2 clock to WM1811 codec config Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240725-midas-audio-tab3-v2-4-dbc055c27879@gmail.com> References: <20240725-midas-audio-tab3-v2-0-dbc055c27879@gmail.com> In-Reply-To: <20240725-midas-audio-tab3-v2-0-dbc055c27879@gmail.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Artur Weber X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1158; i=aweber.kernel@gmail.com; h=from:subject:message-id; bh=jHWT0Fa+xhOf6Fte2P6lvkJ4mgTfM/iqD1caxnjhtGk=; b=owEBbQKS/ZANAwAKAbO7+KEToFFoAcsmYgBmoiuo/j+1OWobQ2BFtLgRwLTmCNNfv8vZtkvJq eWwbWcRkhWJAjMEAAEKAB0WIQTmYwAOrB3szWrSiQ2zu/ihE6BRaAUCZqIrqAAKCRCzu/ihE6BR aHJiEACOfWoLCfrTTHzQfVC3ppsNF4bl/G0huge1xId4KARL7Pl6fDS/9LsgEP2BZ/nRv+lCzpH TYb/bcPcAEsxLV0VfJBGf1Kh0Ql9Zy0k6qgOv4Ody+XdxV8JFL9EDw/cH3q/1Jo34oaFF2X4nm/ PfDvK//aK6sGVYvLc5Fan0tt2fhRFnfzvKt+4SGHoyQC7q1Mym30YSF2kfHNQa4og7jNQOl8OaA 3eR7To3EdzZvjOGOSJaIcUYdyOgsUXZAjOBuRHlP8SeHsnBynmpvqBTSkkBsgHxh17rgkZZaWe/ HL+Uyzuxi8M9XfMc6DnJYB9LMtFS0Bszhkpob0z8zaqrRssEV+Zl3kherkqk3V0uHkUU7Xf/XYX WdJv097bim0r5mKdon/UQLYvXnsIPukB/opj9ld6JX7vTLEuugtML/Vp+t19EUgC1dycBhJU2Gs Qo2J4oUXWx1/9i5VAkqJ0WYjFjjiA6403criZcbK68QEmwzv1WdCP0+HfSD4kTS67mwZm3YVulX +oH3g6i3EXv+owUSaHCjoPK3EwOor6gia4U13ZZC8FUqGj4XlQYlLYFQ2t6rbCvKY8RyJXoMJ+3 DjYJ/5T6umwtK9jnWtG8NidAjNDR84BKQkuC6YJ1+C1W5NiJkyY1/vhOOsV03b6fUY0SbW4AHK5 MWTK3+xkVk4sRhg== X-Developer-Key: i=aweber.kernel@gmail.com; a=openpgp; fpr=E663000EAC1DECCD6AD2890DB3BBF8A113A05168 In the schematics, the MCLK2 pin is shown as connected to CODEC_CLK32K, which is derived from the same 32KHZ_PMIC clock as Bluetooth/WiFi and GPS clocks. 32KHZ_PMIC is connected to the BTCLK pin, represented in mainline as S2MPS11_CLK_BT. Add the MCLK2 clock to the WM1811 codec clock property to properly describe the hardware. Signed-off-by: Artur Weber --- arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi b/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi index bbafd4ece5f7..5106bb752b7d 100644 --- a/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi +++ b/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi @@ -535,8 +535,9 @@ &i2c_4 { wm1811: audio-codec@1a { compatible = "wlf,wm1811"; reg = <0x1a>; - clocks = <&pmu_system_controller 0>; - clock-names = "MCLK1"; + clocks = <&pmu_system_controller 0>, + <&s5m8767_osc S2MPS11_CLK_BT>; + clock-names = "MCLK1", "MCLK2"; interrupt-controller; #interrupt-cells = <2>; interrupt-parent = <&gpx3>; From patchwork Thu Jul 25 10:40:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 13741735 Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (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 6A32619925A; Thu, 25 Jul 2024 10:40:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721904053; cv=none; b=Riyh0inLWWv7yJTyr0UoIqWsySbnJYTKUEs2sni3GjIPqIyJRJcZiMjjXr0u1ShPgcXDAgUlQFxgR7hg2zkE68pdP6PheZC+bSl9yD3sPNi7qFsGbqZumEv9ngOwH1AR70dS3F2Fp90p2aAbW8jOxt/wWx/z4QRkoIjgem3h9d0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721904053; c=relaxed/simple; bh=roUKo7CFEIQkN7A/oDyigzzuh8PFW77vS/znRSNpqcY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=opxPH+OcOI6VLJfVboTE8GQdcqdOctklS9IdTj8C/iJgiGR4ek3cQK79QFim6a7PQY8+AsT2lsAPWMtEkqdb6bfRFIXfN0DSr9Qh+R65dxnSStJgcG9oR2cQ6WHqy6zP9F2u+DhLWJTCgWjI3i2qjTFXvQbArZ6bbUArU70tH0A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=czzxg8O6; arc=none smtp.client-ip=209.85.218.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="czzxg8O6" Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a7a81bd549eso34566966b.3; Thu, 25 Jul 2024 03:40:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721904050; x=1722508850; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=SJECV00aSZJvcUel7cdkOHAoSvIhtNZxcjf7hQkKcCw=; b=czzxg8O6WlboPN0FkI928eErt9Dxd9XY8aVa72yny6Hzg9vOEbXaP0mYxBan7Q2W9P weYoX+L/GeOrw+CyOIFdhnDfLYNaabn01e0eRHheKGBjggV7BlgBROrtGNQEFvrkXcLB 8jvM0AC1N74yvHOFewUpUfG5t524DBzjCvotZMCfDKTslJYrow8ln+ePe4lFedwgYBR+ rw9kJNl3yLe1Ugln5KdMznGGmxbxby1g595yhSTSFjBYnFhkYTb4LcJ62SrI7pw5VqCe 7woz9ehpOaKXGhvc93b9kDMMikmDgggxPIfG2phkt0xUVbIGn08trRO8xLBt8uJUgt6K CyXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721904050; x=1722508850; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SJECV00aSZJvcUel7cdkOHAoSvIhtNZxcjf7hQkKcCw=; b=q0YIUxgGOpnnN3aGb1WZyze+RJ5eK4DmBeOYSkclCPBjS71dRVgqv5gv0Q2FcCj1TR SXGL624EU+t5IyQ17p9HU0spqMax6zFUICljK12UbzGlcx5EwPXv0fOqd056fqpf5K8+ gDVtiALmq+fXNjt9VjQBZUFAXPLv/jAVaBt1cFR7oISk2XeDNzLt3f0O8//cgXATqnZi eO6OJE2g+OqnVgmweds32Cyb6ADM9ma7vz2iY42U3JN4xFOpjjqLdWmnpZJJSrATekG0 eeGshS1la5f7Itlijya6E2uaxRn25dw5c109GUnsFpUvZlqGTY5mV6fepTIrQhhJApxq UYaQ== X-Forwarded-Encrypted: i=1; AJvYcCX4rLitF5NDFfWeswXG+Pp7sT98QqYaqBBjelOgToSFZUU3pFbXYiuFod1+V0jf1+XS1wkREjY9cSRlYUq0dUZgQHnUEO+uhUv5/NuKbfUSaw7a8TzsyooidyeJZIRwQAUU7MkOJkItjA6c0hywEFdODjJWqDlY2O0T6yCqEkNXxTNUaLKIQkVEy0duww== X-Gm-Message-State: AOJu0Yw8LRz7IxEJgDLcfcTMQUcQK583r7XS+4MIqZwpvlAUH5GTrGIn UGMVQWXR//vfE4l4dOpoFApEZiYrxn2Hzw5YBUHqrqsf2JmY0Hab X-Google-Smtp-Source: AGHT+IEikXKg04ARhssW/AiIZZ8R+Aawhsoiu6JlzbB2M604sKuPaZz7gj0BaIJjX9DPfSg/iy3gQg== X-Received: by 2002:a17:907:2da0:b0:a7a:b43e:86cf with SMTP id a640c23a62f3a-a7ac4f2ab39mr183502066b.27.1721904049824; Thu, 25 Jul 2024 03:40:49 -0700 (PDT) Received: from tablet.my.domain (83.25.114.69.ipv4.supernova.orange.pl. [83.25.114.69]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7acab23d56sm58342066b.38.2024.07.25.03.40.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jul 2024 03:40:49 -0700 (PDT) From: Artur Weber Date: Thu, 25 Jul 2024 12:40:39 +0200 Subject: [PATCH v2 5/6] ARM: dts: samsung: exynos4212-tab3: Drop interrupt from WM1811 codec Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240725-midas-audio-tab3-v2-5-dbc055c27879@gmail.com> References: <20240725-midas-audio-tab3-v2-0-dbc055c27879@gmail.com> In-Reply-To: <20240725-midas-audio-tab3-v2-0-dbc055c27879@gmail.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Artur Weber X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1008; i=aweber.kernel@gmail.com; h=from:subject:message-id; bh=roUKo7CFEIQkN7A/oDyigzzuh8PFW77vS/znRSNpqcY=; b=owEBbQKS/ZANAwAKAbO7+KEToFFoAcsmYgBmoiuoBrt7EUoGhEmOO8WCtfUWJBFniV6o+8yE6 vbj8W7rcDmJAjMEAAEKAB0WIQTmYwAOrB3szWrSiQ2zu/ihE6BRaAUCZqIrqAAKCRCzu/ihE6BR aBRfEACHwk02sNzZBwZL27qnehvZU1Yr3TFZM3stZBQtbXYCvaZOQcanMkSbrEXmhE2UqoewjjL mt7agvyDUS5t4vKOkBebEYId0cwbRjxAGyUedp3W6Gr20KcKj9aLu0RY4MhwTIWjGWB4hCS8fzG dqW6VI1UbjknCPN8Jewz23CvEzfPNCX1zn4nSbn8SVnlFJMSskcHz483SayDq1bMXewIwezVVOn 6TnIbQ3QHhvQO3sYLTzx9yq343Fw65KIID4TQ4v8DQ9wNpTE+f1paYrmtMdgAwl6iTMr3+mnyiF lGO0qyVuaxsfH+yk4jqDM0LeOJJmPd7NRVKuJeIDzDxe8EgznXNmSQmX5mMwTa11X9nctd6Sfvs hZFniRjJXTkGWFct22DAGwQs5D6imFAESRSzgCYLXZQlVnb/68OwBPeQpTLSjxD/FrMnyYjPcry T+Z3g8dqOIJ4VXkZs25RNUjioKEv/LlBasIbtzjH9LECs7s64uhuZTwISccP9jRSRpkCbiB5v6a OSSZ1eR+LjRVUznq/kFpAMG+3Di1ugIlj/1br8t8fNd1gDQN9PeS2B0mHKkXx/SSl1pVa8z82Xl Q+5b5Ia1IHl3AhxVLLMYr1v5dnxih6uwXbVkTCMk3mty2Ax8JKuk4TnPQvM3gIrntdLhraH/0h9 w6jy4bw3fPm9gew== X-Developer-Key: i=aweber.kernel@gmail.com; a=openpgp; fpr=E663000EAC1DECCD6AD2890DB3BBF8A113A05168 This was initially copied from the Midas DTSI, but there is no proof that the same interrupt is also used on the Tab 3. The pin listed as the interrupt here is GPIO_HDMI_CEC on the Midas, but for the Tab 3 it is the headset button GPIO - GPIO_EAR_SEND_END. Drop the interrupt, since there is no proof that it is used. Signed-off-by: Artur Weber --- arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi b/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi index 5106bb752b7d..70e3091062f9 100644 --- a/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi +++ b/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi @@ -540,8 +540,6 @@ wm1811: audio-codec@1a { clock-names = "MCLK1", "MCLK2"; interrupt-controller; #interrupt-cells = <2>; - interrupt-parent = <&gpx3>; - interrupts = <6 IRQ_TYPE_LEVEL_HIGH>; gpio-controller; #gpio-cells = <2>; From patchwork Thu Jul 25 10:40:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 13741736 Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 D21DE1993A3; Thu, 25 Jul 2024 10:40:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721904054; cv=none; b=DKaPEPyJsKLbUnDXNXG2BuCSvLLzEJwYhNTmQaHFPwGHC8+rBTyho0x4c2VmE45y7xLNNf72hsnQcZV4oUPbpI4X+cU3ocCPLoj8uqQLLEINO1GqdxBbvukruSAYZlDQwcfkhRQWoHWtYO7YFTmbBxj88loE5ali7rsKwMhalOk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721904054; c=relaxed/simple; bh=KWNNuFqNb/S25IX+uh0qv+bi86RJdKP7RJ0/PuyXSXs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=c/qvZt++mLYUtyR5qOU8MhlnZkkFPoAt8JW4CDDqsLGMyFT6TIvGuJ84nV1I7flIpsYfFg9ZcMOzGjrblmPZ8aiSrk7cBYUst8Saqk/nXN+6wPXzbCKZjUYuH29T07m/sb5nDX/1ibmtRbuUEDNVQNLMApKOCrbmJkoYZQ0aheo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=iex0OlHN; arc=none smtp.client-ip=209.85.218.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="iex0OlHN" Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a7a9cf7d3f3so43731166b.1; Thu, 25 Jul 2024 03:40:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721904051; x=1722508851; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=nf6VPiGgpzV4Bh7OdZ3UQlM8J+Hh+6fmABD4788z7Ds=; b=iex0OlHNXQ8RXvOIevwO5HZ94lCMKHyJGsEg82tlKecLYQUpEzuq7B9ZIZCGiQMnWo u4C9bLgZNt4A9dLm8BHzmHCpOI7MGoCUPTnzai16SYL8m22c2VWDxYm+pNSZwWeDax1W dJCu04Fuwf0hnhDLYJavqolpZ0c96qkF/dHNI4uDwLeqcgupZ0dG18pWK6Jjn2WNRPlt S1Gx8RinG3l52qOFcMdv2AqD/SLXvFBuaAqh+0MrGQcWrQAA6biIHtwg+ubFqK5WxmDK CcZXX3NOq3PHHAz6ffSZsnRG0vo0a4FUUuTjGZN9uyoSvwTZgd6wYrKf2W/Ryy9hVvZW 1hqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721904051; x=1722508851; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nf6VPiGgpzV4Bh7OdZ3UQlM8J+Hh+6fmABD4788z7Ds=; b=fEorfXwy+jlB2Y6YlybebygUPpvG2EIwgwsc2q7dlpNA0z+YahsDpho6Ow+kfgdwtj MOxQ2vF+XFMaytba857PR27WpL+vhGnFdTH0HefGdf7fUSUiMvdNyg7MuWo0FPrWViGj lmtWfuqxV9rL+jh9NsqeOE5T+pGjMkZXvLYXnKu5feGIB4ypXYXOeN2yyV2qgFomihhE 3ssHpbJOO2dnzvfk166Img6FZKiFRV/gwTFBNb+BsVxIUJcHShhjW8clM7+lbLdIeV91 gJG+KDaL2PoPRG66hITQystjsBWOvXuPr+6mPAPVR6MYr3x8aDqEPKasN/dEAOc/8jdj RzdA== X-Forwarded-Encrypted: i=1; AJvYcCW1yQSHihT5MRJS3neYSbuSwgAuRKiZIzdxVlNfjdONrWGMG7ZxdR7i38FrRT+kc0IiHCu109XHQ9I4B9RgmLDQrRj+p6jOkIhbaC/zAFOKpfcE91ra7jm573kY0dKWkZYEuCBdeBEJ7etkyqNOkCE7zLwHFSQhqpZ4WKHeUhFVCdHgV1G0SMDGFJ1upg== X-Gm-Message-State: AOJu0Yzjksd5z2kAKXbIKtbbzadUFnVQiIcm3zh9BjdF7eODZJtkNr// TsSoHoDnImPArluLyIArbL3MGtBkV+maaSxSOwfUyWIC+FS4EepK X-Google-Smtp-Source: AGHT+IHFHN1eSuVeoNBYHF2aEjmsl6zUvRBRtaleADXs7+Y8AS7m0pQ7TJ12ZESC7WgwBTmMXOPAkw== X-Received: by 2002:a17:906:7d7:b0:a77:e55a:9e87 with SMTP id a640c23a62f3a-a7ac503afd5mr124692966b.48.1721904051139; Thu, 25 Jul 2024 03:40:51 -0700 (PDT) Received: from tablet.my.domain (83.25.114.69.ipv4.supernova.orange.pl. [83.25.114.69]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7acab23d56sm58342066b.38.2024.07.25.03.40.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jul 2024 03:40:50 -0700 (PDT) From: Artur Weber Date: Thu, 25 Jul 2024 12:40:40 +0200 Subject: [PATCH v2 6/6] ARM: dts: samsung: exynos4212-tab3: Drop dummy mic bias regulators Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240725-midas-audio-tab3-v2-6-dbc055c27879@gmail.com> References: <20240725-midas-audio-tab3-v2-0-dbc055c27879@gmail.com> In-Reply-To: <20240725-midas-audio-tab3-v2-0-dbc055c27879@gmail.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Artur Weber X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1778; i=aweber.kernel@gmail.com; h=from:subject:message-id; bh=KWNNuFqNb/S25IX+uh0qv+bi86RJdKP7RJ0/PuyXSXs=; b=owEBbQKS/ZANAwAKAbO7+KEToFFoAcsmYgBmoiuo73T/jCYrP6aHYU23aYR987wIqfIeBMOOC hJQMnOR0w+JAjMEAAEKAB0WIQTmYwAOrB3szWrSiQ2zu/ihE6BRaAUCZqIrqAAKCRCzu/ihE6BR aK5rD/9YmUzevnGSNsQKWo7b6UYIap/vF5Ks+XvjbkRyABXZjCQqmDJNf4tZ1hk8z5HG2CJlAsp 4wqetvaNMjlckh1dvtY/5ow7vQ4t0l/FhPQomwabSjSQJ2zoHldeMcI5bpIr+B4yQUkpeh0QgeR f1R+ZvcV3OFkBcFz4UQQ7h18yvW7LATZfxfi2LhNQVx9tl9M3fV1smoaJs1mOijiuMxu5X4TVYs ulA3Hnuc4bNPzpKk/Kt0FrgG8+Cd8qL+Vb3mPK0E5I+zkMdTzj8YsknziktUnXA57w/pvfLEELY sxTIQj6o2SptMltnODm54rcL3pGE/vhFmczWypdGORSSd6wMFBULknd15yqWC1jsf6Mj10czEfk WTjGLe0F2cR4JRIsv9461y6ELZf4D++V8Gii7zggeGdYjp2Av2Mu95QZjwlyhDFoRylmR5HofuF sTGBN24AiXzxR711sm3AeBXaA3gQwmsMBMIUXXtN4u0FtBbiaupV7Cljsm6Iq+Br/duy5fzG02s 2gHszWlqzdzqV3rF5+hHLIr6kgNVS8TIu2OyKQ93sS4pzotT32zA8aQ8BTocD4QvbknTnjDYsUr V+1DVS5TxV7Yr44a4XW+ZU12UBnVWefTyhzc24V9SvPuGo+/zWmIMJEWwo+a7IhDwovRyHhAi6R 0Kn8Id6ffUiAvPw== X-Developer-Key: i=aweber.kernel@gmail.com; a=openpgp; fpr=E663000EAC1DECCD6AD2890DB3BBF8A113A05168 Add the samsung,tab3-audio compatible that makes mic bias regulators non-required, and drop the dummy main/sub mic bias regulators that don't exist in hardware. Signed-off-by: Artur Weber --- Changes in v2: - Rename earmic bias reg node to voltage-regulator-4 --- arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi b/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi index 70e3091062f9..553ddc3d42da 100644 --- a/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi +++ b/arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi @@ -286,21 +286,7 @@ display_3v3_supply: voltage-regulator-3 { enable-active-high; }; - mic_bias_reg: voltage-regulator-4 { - compatible = "regulator-fixed"; - regulator-name = "MICBIAS_LDO_2.8V"; - regulator-min-microvolt = <2800000>; - regulator-max-microvolt = <2800000>; - }; - - submic_bias_reg: voltage-regulator-5 { - compatible = "regulator-fixed"; - regulator-name = "SUB_MICBIAS_LDO_2.8V"; - regulator-min-microvolt = <2800000>; - regulator-max-microvolt = <2800000>; - }; - - earmic_bias_reg: voltage-regulator-6 { + earmic_bias_reg: voltage-regulator-4 { compatible = "regulator-fixed"; regulator-name = "EAR_MICBIAS_LDO_2.8V"; regulator-min-microvolt = <2800000>; @@ -310,10 +296,8 @@ earmic_bias_reg: voltage-regulator-6 { }; sound: sound { - compatible = "samsung,midas-audio"; + compatible = "samsung,tab3-audio", "samsung,midas-audio"; model = "TAB3"; - mic-bias-supply = <&mic_bias_reg>; - submic-bias-supply = <&submic_bias_reg>; lineout-sel-gpios = <&gpj1 2 GPIO_ACTIVE_HIGH>;