From patchwork Fri Aug 16 07:50:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 13765657 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 C4B4C7DA64; Fri, 16 Aug 2024 07:51:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723794680; cv=none; b=NOBtpkjKQXEofo+gq22ouuQp9KmPxl2rb6E2CawvrpkLJv8RhUQKKBwYHSH9495XTst05wgeJGwalaJVKn4RMYjojXu2htDbXuOK4tXZxb1Z6/JPvcGXHIIueZB/ruwJALDLuTJeocoJXOOafZRaJbbDT+8NOWdw1q/BByJ/xfA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723794680; c=relaxed/simple; bh=iV+M9xizwvmZx1O7iSf9l6DHKdHcEZAQiXWFY1PnmrY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XWoLWklBLzMpnBheyLJn5y2dbl4XnT9vMv32s9q8jd0nE7Pkpz7CZTl/jyVfypTOxUT2ntpRJYSwH/PZItKR0cbl84Dw+0mOeKuRAVq8WbReGZjy+rgNMZFrpdFKrYh/cmTJwcmkSoBrYRPocxhMX9W2gGX7Gss6R750X9CiNrg= 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=l4DkXusH; arc=none smtp.client-ip=209.85.128.46 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="l4DkXusH" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4281d812d3eso16935285e9.3; Fri, 16 Aug 2024 00:51:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723794677; x=1724399477; 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=wyOu5xh1aD+Hvn+LnU8RfXLmSimiRmcKh0k9fq9YE00=; b=l4DkXusHSX17Lyp9r9b7sVxeP0r+Qqx63XnQ3YglQyXyiw95TT17wiHh3t03gM7tbL DwiA56p0WphRqG/HkdPYbMZw/iIH8tKbhz4YVVtKz5w6WtzHvNCg9rXfiG5hmWuV94TA wL619iiOXIADDYTtxtQo1i9EXWyDDWqkgzOfAtF71oA4UaIo8CdNtIP0yZklOT35OIqs 9e2WSFtK7L6fiLYP8eA4I0urPF8Iv36Kex9EE3H5BqTRh8K5TTB9wd3yGc/FB5OsAV3w PQBSXAqVabkYNc5Fk5wONH5tCYWmZf0f6lXoOc4wTWIpgFSRY99v1ChtX4hKCGCf5jrE ER+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723794677; x=1724399477; 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=wyOu5xh1aD+Hvn+LnU8RfXLmSimiRmcKh0k9fq9YE00=; b=bgi/TQP3BvTdoM52Mre8Dx0LwOOa3Bungudzn/tGQR4JjNwaP9Hou4pWZkIbFzBsKh R0GGxJEWcCYR9XBcWPqiIpn7weBDY6IWPdgHaK9rMwyEKfin+cR3xh2ayP9H4+9malhr LieTxf5JINfNTvtA5Uygyh7Xw8JquLK5FVUEJkm3Iup7p7qAihPBV7Sno2oswiEmY6Uz Q/w8azG3C1ZFbBDAkll/+VyyyQIghB+YyHo+YZDVBHbwvKCMSOvL89LsPOs/lOWazEkZ YSG6SVnQx4BeABzKqaWq+HGv/A/afUVBdrIgVXXzG5GjXtu2vgWqi2UtA8L3ATC53Y45 81VQ== X-Forwarded-Encrypted: i=1; AJvYcCVMw+kz7VvNt10l99xNcskuPZPya3naBOsBpUrs7KJdVUEvkcNxEPS7qLuZZDgOvQeTJZGxH6sJtjdobcuw536ZhYNeMiVk/1s3gUa61JWHAkcKD9lz0aOmJnLJcLyz+UkbCj0NT5F66EwwRW/ZIzlAB0twbmmEXJ7Dputv6cnGYThGRPhwr7avzIyPJQ== X-Gm-Message-State: AOJu0YwtH3F+2XD4GJeAD2AdBJaqDlcdxH3tae2d92y4a55/aZ0xU50M 1nn3dWXo/oB8aoPEC2qJF6SrVeuruqm40Su4DAnPRjSkKlEE1bSdYssMIZVs X-Google-Smtp-Source: AGHT+IHywpP31x3vB3Q29gUAbKdQEV2oUwRHXp0YJ5LMoyXhgaFv5T2z+t1ZD3jER6jPEg2htLbhLA== X-Received: by 2002:a5d:69cc:0:b0:368:3782:c2b3 with SMTP id ffacd0b85a97d-3719464ddbfmr1430804f8f.29.1723794676676; Fri, 16 Aug 2024 00:51:16 -0700 (PDT) Received: from tablet.my.domain ([37.30.8.221]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3718985a6c4sm3026201f8f.52.2024.08.16.00.51.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Aug 2024 00:51:16 -0700 (PDT) From: Artur Weber Date: Fri, 16 Aug 2024 09:50:58 +0200 Subject: [PATCH RESEND v2 1/6] ASoC: dt-bindings: midas-audio: Declare required properties for GPIO jack det Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240816-midas-audio-tab3-v2-1-48ee7f2293b3@gmail.com> References: <20240816-midas-audio-tab3-v2-0-48ee7f2293b3@gmail.com> In-Reply-To: <20240816-midas-audio-tab3-v2-0-48ee7f2293b3@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=iV+M9xizwvmZx1O7iSf9l6DHKdHcEZAQiXWFY1PnmrY=; b=owEBbQKS/ZANAwAKAbO7+KEToFFoAcsmYgBmvwTmEGjYoH5a0h0jF9Zer/NMFym7Mqel3/LMQ CmbFgGA8K6JAjMEAAEKAB0WIQTmYwAOrB3szWrSiQ2zu/ihE6BRaAUCZr8E5gAKCRCzu/ihE6BR aKa3D/9D6JLWduoKlwrIuFmu2456p9viU5lFCbPcV+Nx1skh9KCVTHUG1/x8xKGd/Zmo6oJW6ev XFiez92qBEXk5+EgEXapAQLGEy1xhcCYBDUZ3jg3sCzEBhXHBcr0TZa5zy6nlIWYobX3RQjHQVA pSHpWyZMNZ5vYZPVVJ7mSnZvb8D0ruSOa+5+Ytpo1V9n0lukB3zqLP5BiAatnPh0drKNRqaHLAA GDEC4OpV3NkO6oYbsPvb8lUzaEtoKtN49VbRyBwUzQ7sSyKY/v3RhYniuMj7iwVgI3p+5DXy1bL r6/7RvcvbtUEe0uarpBtjFac1z3/FCenJxcQItjX+uQe0tru5xgUMBxPlk3LiRQZpN+VvwyUar+ cs8H9eniyOOgVCkc7gJju7fhKregPwV67MKxes5FPlJRKclNrh45wkK01nb2HWqAUQz7UGjj3UY SmIXhbsSFC1A1gFEcsKVHnVcpAd+UhgNlVStyQSQxxEciICxQjk+HxHj9Sg0KInMa5JeN4VzWf3 4lZa5yM5jWyr1In365tP3q54i89vcRgnzhLNorh3Ab8u6q3YB/HXLgpdyGnY49iFXLBc62LM7tA nSY7JItBJVDowVs1Q8bhxqeLq5NMXG1dTRmtfJAEuP8rzkwe8qFFHm5xn6TSZolFO0BQ2E6HtGD AOJEIGsdx1zGFsQ== 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 Fri Aug 16 07:50:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 13765658 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (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 B75FD7E563; Fri, 16 Aug 2024 07:51:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723794682; cv=none; b=WDw2FGMx77U/Nsnc+y7baAwvVn6JOWuaUUMWrPthUJcqSMekn4DxtE5ahJRqAmXTmJ2G8t0lkldzhmuNqqy57cBTCVHAMdUkb+oLuTcGq9iwlCF72sdQ3QJ+Kqu4FhRisaMWdi8vuECv6fbXqzSWrUgwPwUIgzXIHNEMZ3UFGOU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723794682; c=relaxed/simple; bh=Xe/TeA+AqUFagpOwh/MxUzaXugTMKRQK8JWn91rUokE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Gjfu2Dpxl6x2GLrB/1z63rnfi14acZFt/pQD8X39UCGjU5PdO4MVYPDIgQZBqmwA6kh+bG0Ye87on/ZMAwOXAhuZLeXJ/E2oySMF1yLcUVL3iKjB8LyLGp4tw/5ADf8m+wOoYjRdopQ7N/E5yvnLBtvt4DJZaHvFEdrcPjhbtDk= 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=DXhY/uyM; arc=none smtp.client-ip=209.85.128.52 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="DXhY/uyM" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-42803bbf842so17034725e9.1; Fri, 16 Aug 2024 00:51:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723794679; x=1724399479; 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=Nv52bY0EFnPEnlQPn67LspBrmp168OKPFuY1wn3c8Y0=; b=DXhY/uyMZrBsbx9P50esy9cKotkgT0GWOah52FSeyZZ3+wTPqwIIrMidx5y+7Yrvwu cyFRBL4J4j68jWqbL+Nw2vqX1tQa8By+Twi1Au6Fm9F6ZbdcAbeolnuZtQIMiVit5Tsm DR/yvi4NP71ARsFTnbgLK6gzp9eLPxm4Ll5iz74xEnAni0GV/ZL0kZEh966rITDAB6VQ 0DphFZBwTojNDZYH4qOwrbnw6AB90FqQmPpbjEXEPw15QHm7+bWsHcrRkWkl6YzDotlN YNVYkqjApl5OIX484xgO0Yca6akFNVjgwQWyhzSP2aUqGX7swLja2hC0SzlcoWSpmMbX p10w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723794679; x=1724399479; 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=Nv52bY0EFnPEnlQPn67LspBrmp168OKPFuY1wn3c8Y0=; b=nzRPANRy3AU6Ndb3pDvZL/3e5kIQ4utAwQN9XUGALUXWRkTHEx1EPktyTpDNdTTP16 skHT2IvkiPQvRLa/itm+2KKhaLtOQ/cUr9lVQRyTNw5IQ4E8o0La5TS0VmxtnYVSqe7t FpX2EqeidvZ01muZYbZiaW8Do9bMfbZU44gM98e8e+2jVIJz8YQiJ5CZ023/WSSkdPYP hu7HOyBuw2AIr8wn4iAytCcSdkZRkIDGBk3WMsOdd/FsiB9CS1OzBPUg8hUp4pa62+16 CmOaDZGWAS3BNVsE464BwHN8UqPpmxf5R7tdh2sha6mhPnjH6Un1oJ8dFTfx0iHqFosn S5wA== X-Forwarded-Encrypted: i=1; AJvYcCW9H7QQb62MIZ02tdEksarEvJ+G+Yxl6OMq8W+xvujyQaI27vmvYEFeIvVHvAWABEQHEdbdYrCrCW1A/N2C/4UMhLzDMLlVixrSm6zDWxjWaQ+HzSd9OlkD47R05TUL+N0vVfstYciej9GPY53/vo8VV/dJ4j4x5zBoAh1c2Y7G1OhKW3x9VbRLTNPgkQ== X-Gm-Message-State: AOJu0YwJSWjV0f8y+tFUe+zHiqn8AVS2F1yNcOCI4u/XRKaUgppB2bII vF+uTJIpmPoblNpECngsIL/RWqGVlYqz3TufkoUPxi01Z9g3FIHP X-Google-Smtp-Source: AGHT+IHxlk9O301eBiH5iSAuhU7SaBr9TuAH/N3Vlxr1jlIQybW8sbp8cOihJ627hwOLaKwZSo+w5A== X-Received: by 2002:a05:6000:e4e:b0:371:8750:41a1 with SMTP id ffacd0b85a97d-371946aafcdmr1562452f8f.54.1723794678778; Fri, 16 Aug 2024 00:51:18 -0700 (PDT) Received: from tablet.my.domain ([37.30.8.221]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3718985a6c4sm3026201f8f.52.2024.08.16.00.51.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Aug 2024 00:51:18 -0700 (PDT) From: Artur Weber Date: Fri, 16 Aug 2024 09:50:59 +0200 Subject: [PATCH RESEND v2 2/6] ASoC: dt-bindings: midas-audio: Add separate compatible for tab3 audio Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240816-midas-audio-tab3-v2-2-48ee7f2293b3@gmail.com> References: <20240816-midas-audio-tab3-v2-0-48ee7f2293b3@gmail.com> In-Reply-To: <20240816-midas-audio-tab3-v2-0-48ee7f2293b3@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=Xe/TeA+AqUFagpOwh/MxUzaXugTMKRQK8JWn91rUokE=; b=owEBbQKS/ZANAwAKAbO7+KEToFFoAcsmYgBmvwTnJNIkRw8GVodWAgJWPOfKBdCJAnZQbOuSc WfGPXlHnYGJAjMEAAEKAB0WIQTmYwAOrB3szWrSiQ2zu/ihE6BRaAUCZr8E5wAKCRCzu/ihE6BR aLmnEACfIN2oDUT6Oi9VkEB5Kjoa/UPsY0NUr48cjf8uDVVfdGKrGvduJbLTvbE7SqqjgHCndp5 xZcOWX9HsmwvQRkOp2nQoGfvH59v1MvtCjftmhrCUt8Xs3bI1+KvFZ05w/++tZIMHG85QTC1FLi qs+xxJFtGp4O1Fd1gLPVmdmkC6PhJwz6gOJdkKn1nxoDQeLfw85QVKB+zHlcnPFqF0aPjAIa+yw dSYhdC55kKQ9VrNiHbV4eUyZWxD8C/r1HDFX4g9R26VUzxaKB70cvneHEpEbjDQxwfPo+Rtyqj2 gwWqeI1K2cTDrH5bez9zQyFVsSjQ8tIPDKz8nqDEdk946SxHWbt4qot5SjDcZY+70gUPzkd3h1g 1yauOqyEAGdw8BDOeiK1kNVGijdIkzHNfikNKLPg8DRZ8Ov7734ikKy3LUZoqLjAgOIqvsoANaW 9fad+ip6W/WQszMmRxL3so2DVH1I+Kfc5bAMr57CBnDOjgcmh8dgungzubTqr8MZBd/PzKUobp4 luYNnpPPsdAiJmAf3op+ljhsHv43PnPwR+H2OxbN2MC/laSozX9oVQKz0tTYNL25Z89lSu/xaWM M+h1R7+e/om0YWWCYTi2A/CsKy4THIUyiqs/MAsW/n8LWGBDqTruS8O3zCZyHKHfOC+Psz8sWID hSm86kpN8v+m1QA== 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 Fri Aug 16 07:51:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 13765659 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 5D2A5136664; Fri, 16 Aug 2024 07:51:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723794684; cv=none; b=tO/T8JsZyyoCFqAGp9K8uWyPAWk7l4VksQ8vVUng15/dGS7wNs5pKcoI4yATCXHEdmJW5C8op+fvrzyBgerUxM5SIaGS09Ea5a5Zg0cU2zI5FQz3QnOCLa2b6Hu8Z6y/5crjz/qog2VT1qUFu5uaOiJc08vfSSLQvpYqz7/x1ug= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723794684; c=relaxed/simple; bh=+nFLsCufZiehL/eoxteKF41dGYjzTzQkmxtyml5HKb4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FGVEAU0SxLYTSf3SloktXJzcOh09NlhJlTbGQ7ntwL0NvQ5D/IMYeKjNuf3fao3S8vLaDpl+u4pzTxICZLsBT7j8YlzL9Fr3U5q++P0RcoV2lGD0+eqTw4VPaxW7ZhZsENEeiakKar1RzzJZ//fZP9/HjWgH4PkOh15R6NZhUiI= 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=mqX9TkQo; arc=none smtp.client-ip=209.85.128.44 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="mqX9TkQo" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-429ec9f2155so6166055e9.2; Fri, 16 Aug 2024 00:51:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723794680; x=1724399480; 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=pNY+wb1THjo+CnMw7VM5lVjKwdkOwb5ze/davWuQ93Q=; b=mqX9TkQo5uqLiCzc/AAi7ERNOOvoDennd3sRdBlQ0wH5SlC4YdbPT0HqnoLO8EgS+2 kOZ7ugNmGujaHIPPUj4J8WvJyTfHSwI/stTvjB9gqIui2qBEJh1aSWFBnwqH315gVsHz 2DyS3RGFFUcnDJcKHE1WfpV/xWg+vDl7eHqM1HUrDCfWONZizijiX1QitA9O7CS/A0A4 dQWS7uLhitHTP+0Y+qgAiTUQl4PIQ9ZcyJAQB/NjL3voa6j3wLZzZB0SAEjN7ZWdZUC9 3v+t90zKvpNc9avBQXuIwqGho806xiVjh3wjQYAvOpeuW2jAXHtcqHcZ9WNwjGWFUZVw EFUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723794680; x=1724399480; 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=pNY+wb1THjo+CnMw7VM5lVjKwdkOwb5ze/davWuQ93Q=; b=UhxpI7/Cg13xWaKq9wPDTAL4xot/6WHIDnhUE5z6zTfYDJBX0wWa9JKDqORN5ScrdM 0epvZ4RnQU4IWWwzIs0KIR2kg2PlvrBKK42GGxZB1o0rUGYVZA1jzAHneZAYPxA1Z/qM JdAYP2EvEOfXaiHAhhU+V3nnUGGJX8oJRb5aex1ouZFaO5oT3Z2fv2iVi/hwEUIzdVME Qz1ie0zpQlbEIHyxhcU36koKouA8E8VNSX445+gWxwc3ZRugddOR5U6Z5RzHRmVPs30z GDy2foYxjjljqNxFmeo9UUTaNyyFQ4M0Vne55Q9/PtpsRjUsYu22l8w27DEsZ6oOCMkv uiqA== X-Forwarded-Encrypted: i=1; AJvYcCXHy4naC9uoGj8Ecc4LaEg1LU2ELaNCMPp0AdJLeY0/R6Zl2mt61iXZIkIF/VqSpu3XzeWxMqrDY79KF61nki2FhrUqF+fiNXW5fQmk/LCPxcwxSk/V3LHzDV3zKtiHbRfFWcegD0O8dAUvaXhHfs78gN6yAMBqDTo4yofBQwogNsorcPNP3prK0CK3fg== X-Gm-Message-State: AOJu0YxVJ9SXg6KOco53X6S5a8vLI8cVOhdEnJYeP/0rLfW5rcY0P0IC IOx1v4tN/gKOJhH8o8dXZ3Lg8n0n1MBcQgY5ODnimq5vLeFPmY6j X-Google-Smtp-Source: AGHT+IHoMO3uR084/TiqjhUtxamfnpPtywMOr7j0FvJycWCXr+USVcWGJpeWl2Dc8mghKV2E22gUHA== X-Received: by 2002:a5d:634b:0:b0:367:f281:260e with SMTP id ffacd0b85a97d-3719431740dmr985335f8f.3.1723794680334; Fri, 16 Aug 2024 00:51:20 -0700 (PDT) Received: from tablet.my.domain ([37.30.8.221]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3718985a6c4sm3026201f8f.52.2024.08.16.00.51.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Aug 2024 00:51:20 -0700 (PDT) From: Artur Weber Date: Fri, 16 Aug 2024 09:51:00 +0200 Subject: [PATCH RESEND v2 3/6] ARM: dts: samsung: exynos4212-tab3: Fix headset mic, add jack detection Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240816-midas-audio-tab3-v2-3-48ee7f2293b3@gmail.com> References: <20240816-midas-audio-tab3-v2-0-48ee7f2293b3@gmail.com> In-Reply-To: <20240816-midas-audio-tab3-v2-0-48ee7f2293b3@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=+nFLsCufZiehL/eoxteKF41dGYjzTzQkmxtyml5HKb4=; b=owEBbQKS/ZANAwAKAbO7+KEToFFoAcsmYgBmvwTnD8mC1+GqmOFwbcqhYHG1kNpEk6YJMfvpd XNKhd2qpnWJAjMEAAEKAB0WIQTmYwAOrB3szWrSiQ2zu/ihE6BRaAUCZr8E5wAKCRCzu/ihE6BR aMq6EACX5TK44WyC4yotUx8Uk6fAbxLrKb3R3+UVLasScimI1hY0ykcN+GR5rdVLF3MVfpsug+3 QogmFc3/HFpZAkMa/OJlzaYqeSWzFlkJv4n/3o1yzPAuYNqy7f+uwFvZw9DTD6+psS0thYtca/N eSDHnPTgof6myPwVVVIkc5mzAgQRBiRewu6XES3WHo0YxBBM/HQ1VZPYTAFtTb76xzbLK0GQjK0 IdSvj581xNebmEN6sIEWMvWi4O6hWhlvadWbbXA0CfFlZbnpdFNV5P0OCi3TOsyfc7i4UHQYtUY qyY8DruZbh4eTzhOeHWRT75YAaQZYUfLWxVFSyXvFDVP3iUNzug2tAZn2iWbzaQlNyVdc6d3yqe ImdmCYARXk7Uo6NfolCttxIgfIQ4hXnOJJpXQbE4T2Z5sfbbth9i/3mr3u6zY8DS2Q07GUqka3/ YqOMLsHf2offj3l5ePAacI0WLMJv5fCIoIWF49CGceRlCHm52W7PCzEIijyzhzJEYXUOLguOxXX wwuDoByetpGFhKJjls8Lx8TSWifNvJJMzhWEEybwcPkqAc5tHXqc95a0/v+Twxk2e1+Zb0VOCbv JeJfgN+BflWJasx3WBDf0znA6PDdXFS6687+nmgqOQsIMue7Ml11mBmNssu77CAiZIIzCa43pMQ 2hxnr9dr6Bdt2KQ== 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 Fri Aug 16 07:51:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 13765660 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.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 C6E6313A26B; Fri, 16 Aug 2024 07:51:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723794685; cv=none; b=t2MarT+r0Nqi6RSECY9i++4KsqBLMgRsgFD2BwNuRSmRHsgZmm/RzUVf8rwx2LjBwbIxviPx0FFyk/4DEnVrprgc8C5ZxQwlBdvBfiJah/YbqFrmrfswZAqlrIcG041z5bmGnJF/z6VJAkW5izx3MVLOB1OgLW6AZmXVpjNGHwo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723794685; c=relaxed/simple; bh=8Gwq4xkMrX/EEDfhj3DuiQn/fL2hhjypD7XNTLT/JkA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=e7LWNpsNG8I6HAJaG3cfDLxa+k/Mx6kvbIqSSHsB7YchQAhvH97Hdj50iuZ069uYpGX5jcyTQ/Xc+A55Z5Kcu5OHQUVeJyviDOq90won2aQKOuUWQkdfL8fJZxrF31IVoJz+RkFAI/NjGVoSc2PIZFTOkYHsIZl8RS24INaWYFI= 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=BRJ9sB5W; arc=none smtp.client-ip=209.85.128.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="BRJ9sB5W" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-428085a3ad1so13104975e9.1; Fri, 16 Aug 2024 00:51:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723794682; x=1724399482; 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=60xK5Hc6/1+V6wZvBlbkRog8IQheNoyVjo2ziuG+8Yk=; b=BRJ9sB5W6+dTseeuQyjmZNFfDNvP3VvqvVaoiYQqEYz90lRHAthHzUryMNVcWxpuWj 0u0kZaI0HYCIPjle0XdPFE8hxygQQksVQBeU9TsegGb1Eed3Rjm2wrRRiUFa5fDOrpou rOOzLVcJI/mNErJN2wKchjRVF5IcHKDXmeTZ+menUcUw9VLjXH9loldyuVAtyuVdO92/ e/6rniHwm870L9er0dQ7l4nbcXbwPLyvzppNOQ2Tpjigkr3l00oezKqF+7gJ+IS9e/6Y o0NlXWi7W0/ZaX0I+/W5aL9+5fYiDvn/MEyZASct8bQ9B1Jg2vTtj0oVxbwx+b3W0b7+ k5Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723794682; x=1724399482; 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=60xK5Hc6/1+V6wZvBlbkRog8IQheNoyVjo2ziuG+8Yk=; b=msisJMxKB+UnjFbZEIL+5sQtG+SHImBqyMquakfs6SWW9xNbLnrs+/5FRSSyLb1+yT u3HF2TjShb1D+/Tt0sUSRB00yrOW6fGRchP06gJdw+HbAvxC8rQuYXD8ZavKhSHTx6BQ dB76oZExxMxJ91uLvegrQjLlStsPh/9rQo0aaOONfN0RlrfSFe3vc2f7aIx79LIWizhO jKa75YV12I6nYuBcrT4ESsd/4Tg7JQ9JoZOav7jZg8DCLG5K6Ubn7sK+P97pGgZMCfP7 OmFoLY1B5Sp6//R472F7vnadln0AatCC3jB85pSutqv8w+o3QBNqKf6SzJ/vypOVEw3R ftjQ== X-Forwarded-Encrypted: i=1; AJvYcCVLmaNnKykKI2dtupa4YlPK9b+ab9ZAbhh9xjR08u70KLIOAgscky2nYeD4mpCIpmlOeEx6NzsC+QUt+df/yOWvBed6WzVn+jJ4xDIZNw+Ue4pm3NGib9xevlP4+z70wpz38iHrcpUCD2/VYNF32NIEgeWFCDNu1Fl9Txn0PSiSsXCTgr3ElelFuZQjhg== X-Gm-Message-State: AOJu0YyKwGLrabHqPF7VAfFLcZgRwKeVE0qV8eVl09jAasuNz5OmkqPi gzmAgcgLZXnV39bSL4WlI9gnmO73Q2MDDmmPa6RpBRen8oD8igm2 X-Google-Smtp-Source: AGHT+IE5or+p8N3pv0ta/7lWZxGlQK4fBtEzl6g6QTBj5XXkc6qikzCLHFw0ocw/UwtRfnEg1OtnSw== X-Received: by 2002:adf:ed01:0:b0:368:68d3:32b3 with SMTP id ffacd0b85a97d-37194649a85mr1291305f8f.26.1723794681900; Fri, 16 Aug 2024 00:51:21 -0700 (PDT) Received: from tablet.my.domain ([37.30.8.221]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3718985a6c4sm3026201f8f.52.2024.08.16.00.51.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Aug 2024 00:51:21 -0700 (PDT) From: Artur Weber Date: Fri, 16 Aug 2024 09:51:01 +0200 Subject: [PATCH RESEND v2 4/6] ARM: dts: samsung: exynos4212-tab3: Add MCLK2 clock to WM1811 codec config Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240816-midas-audio-tab3-v2-4-48ee7f2293b3@gmail.com> References: <20240816-midas-audio-tab3-v2-0-48ee7f2293b3@gmail.com> In-Reply-To: <20240816-midas-audio-tab3-v2-0-48ee7f2293b3@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=8Gwq4xkMrX/EEDfhj3DuiQn/fL2hhjypD7XNTLT/JkA=; b=owEBbQKS/ZANAwAKAbO7+KEToFFoAcsmYgBmvwTnahzSs8X6AK2fEG8dRiS3h4Lutmxj7DmOl KArkb65MI6JAjMEAAEKAB0WIQTmYwAOrB3szWrSiQ2zu/ihE6BRaAUCZr8E5wAKCRCzu/ihE6BR aLlxD/0Q+hDUWhUZIsxgW67vCiSedZkUVg76OZnorZN+/MnaIwqE9v1OcjD6+Hl4drdGGeyFjra YKO8lnZMYF520dJmfvS2Zwj18coMllOY6hlP5qwBA+YFt21ybJfJ/xH/xrWuzUMp4zTE719AVag cR/HykwL+4b9AFDE0Y4lmIm06391QTAsuUQ8pNZNVNvjOnGih05NbP5b0XELX9hmbtqzZE2hMxb ygIxwyZV3JdzoIJHvgEmd3G6yssDmYoAzJyqYeg/bBQmYeZbyoqzqedLw8J3bG6OXXifoVvBmye J5jX+HV3y75JgYLzg6c1xOpgvYl8m0vU7bkOlt/7VNz/cgiceVaySXPMhTUh8rLjbT4tQQTgXxf 710sC0XrZ3zQmq0uLalEvuvMpLgPbaoUqSD52JFXN5nHRNVU34+VPzLXcQswxTDfPFWi4XuVDId zfYXmycB8JKu0sqU/rSxlXebvw9JuM+VHE+aq+XR222AmXT4Jlpf7nXHdSUbFpcHSNib2wM8YF+ T9L7XeJYS1NLTcY41Qrn++vENu1y0qKHcSMloPbfq4eEIaUqMw9TSzU53MZXZLqP0GLdzV5cF26 myIZwROHOZCz5ZbSS3WGV/Zm6DB5su4BZbT8aXLzUZVkWGdHLx3VEjwCJ/WhtdKdcf2rB1gTPcF o/r99NcGBUIEl1A== 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 Fri Aug 16 07:51:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 13765661 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.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 6B039139566; Fri, 16 Aug 2024 07:51:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723794687; cv=none; b=F5cLn4QUz2QuF+x/Rjj/NjMG8G7w2ZYNM2/ul/VNcqb2A+zMdp/LIXwq6uExvpyCRyAcB8z/BJF6YI+2TJUr4MK4YRRRc1LMM1wgxJzpeMRo5B9Fdaifns+kV4vLmDRi3bJRzQ1gnqHgtJFNQlk77WpiugDsYzT3mSiMNdrXGJM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723794687; c=relaxed/simple; bh=9n2dRgGAl4hw4l3oRLChRSV149jqa2jkry4HCt2pAsU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=b36uD9mP9AWq6Jhod95/mGEeprOf1GifpgSqUVQg+8vXF9ikpG+Qv8/XLLVO3NARNH9aJI0Susphc8esTpkJ6h4Y3+uoP3PAghbPXxvKnATQ0+hUmv4l7iyM3G7M6IcWz/SobGGyU9m4UdnijmrfUj7608z1wmhqJmWY72Ua3Qw= 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=PS3xQyGy; arc=none smtp.client-ip=209.85.128.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="PS3xQyGy" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-4281ca54fd3so12096615e9.2; Fri, 16 Aug 2024 00:51:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723794684; x=1724399484; 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=0IunwWJytaRslMINJvXl7msOQ8aykw8LsNbHsg4ezH8=; b=PS3xQyGyBQC2lZMWH6YfFM0Q/qzV4GPvtEWhvEj+WkX1kRM8pe/ZEM1QTITDzRiCYU BvVxFDf85PfjFEoEhqnBJ5bLI8VNmjg3bu/rFOyx3GFj7Sr+x6pOlpotInDDN7MyQskB altQAU9dFoirIuDK8MskIRl/S3e8ofyFj6Y+dBv348UGDZWnWY7/+DaJsvxZ8bkl6tOG R448afGuIYeVBl3w0R9ya1H9RuFt6vhEcRuyX7O3OfjuzKEgwFhzJVxSDnm7ar7KwW// X+b5lXKd0fkyQUnco0Toi63I8F1DAQKwWGwatcuNwnOv46jd3l2ZWJqxkXsgG8X4wyTP eyxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723794684; x=1724399484; 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=0IunwWJytaRslMINJvXl7msOQ8aykw8LsNbHsg4ezH8=; b=QGHufTrg2imI7J1wKfJ9iQPow7xuVfTuNyq46keyhfy/h5INK8F7PAaj6Zl+mzrftL AQt1bnzHi+Nva+q2m1d/StbwvCG0+McogFNrZRcBLLgorfva3Qnn08ABkw+kA86aNPBj 3dXEe/DCFQ3iWibQnt6SQvKl6HxDyOlADnLIWE7uH8aMyapWOKlYwm/qRavyC1+cNgOG Lwqke2m1FAO2Cy5YVYb6/ezs2eZRyWjlplxCFAti3NKZThy7kdrzNGoXYNm2l08IsxfR pKorOXXR49blrHncti9EV/JUhVStzTE4YBAIK0mZvY8+fEomT+3zA3sM/xEyhPRdWhuK n5VA== X-Forwarded-Encrypted: i=1; AJvYcCXODTII0lPypcbi1vN+iWCGyhORfJRDIspnrJ9OnOyLSQkfWRQhfyj9LavpEClRyhibsbfkgGT8oBPK4pOUaqDSbJYiEsUZcbZafNPgegxok/TIQHrtZbIJy131EvEj1lyEtO86p8odESARYXj4HQH9xp4zxr8SsTWFLHDNnqESmtNLSXk7nsr8Eh4GOw== X-Gm-Message-State: AOJu0YyJVtXq8ENk6aswC5/PiDZcPrilC5NTddkS02rZ8mcilZ0/j28Y MNXSHHCQyb545FmsFlF6oB2wuu76q/0SZLeeeiNkKu16q8LNHCN7 X-Google-Smtp-Source: AGHT+IFjJcBN8/J5T8cHGhkx4qB2p/SDnSyKTH/7y/grx4LnP0iZCz3tAB8h7joAk8VUOp5hIQY2WA== X-Received: by 2002:adf:ef4a:0:b0:368:334e:2d2a with SMTP id ffacd0b85a97d-37194328c2fmr1341141f8f.18.1723794683545; Fri, 16 Aug 2024 00:51:23 -0700 (PDT) Received: from tablet.my.domain ([37.30.8.221]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3718985a6c4sm3026201f8f.52.2024.08.16.00.51.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Aug 2024 00:51:23 -0700 (PDT) From: Artur Weber Date: Fri, 16 Aug 2024 09:51:02 +0200 Subject: [PATCH RESEND v2 5/6] ARM: dts: samsung: exynos4212-tab3: Drop interrupt from WM1811 codec Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240816-midas-audio-tab3-v2-5-48ee7f2293b3@gmail.com> References: <20240816-midas-audio-tab3-v2-0-48ee7f2293b3@gmail.com> In-Reply-To: <20240816-midas-audio-tab3-v2-0-48ee7f2293b3@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=9n2dRgGAl4hw4l3oRLChRSV149jqa2jkry4HCt2pAsU=; b=owEBbQKS/ZANAwAKAbO7+KEToFFoAcsmYgBmvwTnsIb3lMya1KfWhEvX91x8+K3ZlKkQ/VdTv KR2QObrgx2JAjMEAAEKAB0WIQTmYwAOrB3szWrSiQ2zu/ihE6BRaAUCZr8E5wAKCRCzu/ihE6BR aHd3EACKOh9GVcx0vKejDCZjgQua9HsLWSdDU1fGRJNTAWYUZboiNdAkclvcOqXdTMADaB6hdvx tWKctAQRPME21ATpB64rnJokrMyxvgIwVCf+8srbSwIwScyI7xMt8YsTk3mwm5WAVj1zUub+zUJ dtds9TolUntDTtFFTv2O/xTndHtUiQ5FYVzwiuGEQWhLfLeKvHQyZXdnx7gr7cbSUYh6sV4ze9l Quy4CQbTLLaA8FetQV2Y1HrTSVx2Jv37S/u7DHCT+CYpxEDd0+sNcCLPImy3SGfYxJyjUfDhhaj bIFVuN6xRRis75GtxQhH9ohpYM4htbX1eIBSUoh6KCT7sG/vIva0vTedMGxxq2qCYOo65gntCL1 FmUL2lKWRPMjRg4D9+pkChyzmfTF30DPtT2ibzIQN47hl0mJSXkHpQXbs4qeTkwABW+F714Rtvf aybIiBZpASKkiq/QXx8CMupVYUOmEJz81Yz3U+coLbio3p5YX6NpmvXdssjxvtOPpZxTWLV0NyW ZDCUJk8SeY3YRo1FZanxqnDJT45uVIySe/AHN6/msJCjF6W5UaEvCXxEr3EgVZLcwrkxyMVHCSg Lz2aCLcrs2EaCdr+KDU6bwW3y6TbTVsV9xTtDFRAoWHK2Vwof8unfShxbi2UOUfSrbBmR4l6EPl 2k9kG4oFeditjYQ== 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 Fri Aug 16 07:51:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 13765662 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 E59DE13CAA5; Fri, 16 Aug 2024 07:51:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723794688; cv=none; b=nvakIqL9aFQpYnm3kKIWpVYeaL8og0v7K1euiO8CsjQY4MtVCtiEsP+MoQirw6jPgFH/SVYFxnuymNF/nEYsBQXUAktaTKoWmfsgaulbLpcJxTL54nAwG/ZiBaZuqre/7QQiHLUTUTP4/TYeLY/5sEUI74AulkUOyV4cmMIZURM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723794688; c=relaxed/simple; bh=QbDGTrOuqa+9JhAPdZB7MbiB7g0LqwVmKKAqqQeXAR8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=oDS/c95E2SeIdIEqWMFf84P0PS5EwZe5A2TAUdIUjqWaz6/Bh+Kqcpxo7GsXpqaMM24p80lBTrUma54AdF1OcP0mhfHCRPxRe+iAzl3aCrXnHU90xuy1awIvpj5yC+gGWyHwkwrCYK0zTaPoW73FcXfvo/HSu/dhOll3QLbrV5k= 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=PMSdsoqS; arc=none smtp.client-ip=209.85.221.53 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="PMSdsoqS" Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-36dd8a35722so902379f8f.1; Fri, 16 Aug 2024 00:51:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723794685; x=1724399485; 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=ftpauJHvJu+xnhEvp7WCn3mWm6mJ6dwVq2EMLSHYt5k=; b=PMSdsoqS+GkoQv2eo3xQHb9OK9DWtO9wiQP7xhU/0FQU2RvOfAsFoABzMxJtk6xpT1 83pvkxAmbKI+gHezxfvNUcPrFMjsk9OSdy9tVwaDbv+wG5FKDL896GRTwT3qnMU3fUZy 2HsqseBwzYckWD1tjcQHCXKysvUaSjcfoO4ELICDku8Wc4EDkQcfYx6PPQI/T/gT0baG m4DizQaRfQo0Bs+/oTZcIx42aSxYbRvO4kL8Hmpt690w7xktcdJwYRkoGTS1Fq2tiwWN aW6KXhFTsT8c2KbF81Fchde15fj5eGhDBIGIwZQmqu06mxT7cLZ2TCVxOANgzmeSFZET UX4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723794685; x=1724399485; 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=ftpauJHvJu+xnhEvp7WCn3mWm6mJ6dwVq2EMLSHYt5k=; b=mcSI+6wJLT/u/ObGb9FrR3TPuZbQ66XBNRV3hk+5CiYp2Z+AI3SujsWOOYJlbAcuCt D4Y0fNMB1Xh6FSquCt6cRB8HGuZW8vFQve07dgiqm0P4VG9fFq7Rdnj0cu09gAgGT5FH EvjY64euz8if6/HsCD59ZFe62L/p2VSaDPBZY40VP3qjl6+p8EO6/cqKCwQyieWjsGsP 7UuinUZTW+xUew8AdNR6IqzblWis4lxN4Ix4f7wgWcWwb5gLrJfFgCxLcBePsBMJBg0v pFbR6H0lAPDuEy+//jQVDOHdmfqx7WlWcUTrxl9f1NwmLJs77yYICyW3GpJQYwtHLsMj MrTQ== X-Forwarded-Encrypted: i=1; AJvYcCXQrbqmEHicxgRZTlkb/NQ5W3mSWSRTt3TTBoW00qvsJG5PpUcHPH1yhWzzfuC0VHFxOXmiShBiJRnWADVrj92wMGLAf9YaSoyGv63PM+XPVQzMSLK4T5hBZhn/2QxfwLj5VIxVpPvOUw2S3uHmSSHir6hmnKgrpAX2UrmxtAG+W0gxgVSR5AXkGOJJyQ== X-Gm-Message-State: AOJu0Yyy3RlEt3qg0oD7Z6SJLBeNVA/FnXi9bwWM3zUVbUxezOjSVYIY i3ovLclNr2JcNhCcYXWR0Jq+TRcFCcqg0kFTfndOjE61hJUzHlbL X-Google-Smtp-Source: AGHT+IFcWSg7R6ZOrgOTbSp4WTq9l/KTHzuMWJwWrtjUMZDFfV6LDRMvpsDKBTTz+8GRTCWba44Jpg== X-Received: by 2002:adf:fa50:0:b0:367:9881:7d5e with SMTP id ffacd0b85a97d-3719431e648mr969068f8f.8.1723794685161; Fri, 16 Aug 2024 00:51:25 -0700 (PDT) Received: from tablet.my.domain ([37.30.8.221]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3718985a6c4sm3026201f8f.52.2024.08.16.00.51.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Aug 2024 00:51:24 -0700 (PDT) From: Artur Weber Date: Fri, 16 Aug 2024 09:51:03 +0200 Subject: [PATCH RESEND v2 6/6] ARM: dts: samsung: exynos4212-tab3: Drop dummy mic bias regulators Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240816-midas-audio-tab3-v2-6-48ee7f2293b3@gmail.com> References: <20240816-midas-audio-tab3-v2-0-48ee7f2293b3@gmail.com> In-Reply-To: <20240816-midas-audio-tab3-v2-0-48ee7f2293b3@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=QbDGTrOuqa+9JhAPdZB7MbiB7g0LqwVmKKAqqQeXAR8=; b=owEBbQKS/ZANAwAKAbO7+KEToFFoAcsmYgBmvwTnloZNW8WuZLkNUngAi1UB8gAHT75XHcj2c tku/+yxd1GJAjMEAAEKAB0WIQTmYwAOrB3szWrSiQ2zu/ihE6BRaAUCZr8E5wAKCRCzu/ihE6BR aEYfD/0X5RW1LxXFB1Mj5dXgnFZv0jcjZjmJMmmqXCSEU5pWFlL3B9cgA1TTpj/Uc8goGZE4niC oZXdJJWsLU8pmJ21p5ntE7KeN9cPCezRa2Pvh+Rwaimx1SYyZS4Pv7SVuYcyRq/u8daN7Cyay2y vbVqEzuwd7Vnjq7PjL7hVSRO2uqm55Nhxd2MW/HLVCDH7m6Kkxwcf+9bLuUPtlEgU4G2XNHmWlw 9A3yNFd8Al3As+WBAxkegsxgAzIWeec0J+QZ59lUHipaqx3mcwyINrWXCWqoMe+4XsCKmdqN39h IS2MyC/FDZF7cZq/s18BkOf7rb0CUuA9yfkkqhgiaajxpRftKSWoQgEnIc7SXQ5UfWd9Awni1iX zCoThh47d5DwlLuvqCn6hNin+x10y/ZxPmjl+hab10Hwm5ZyxupCGzgGTfcenFtsCoUVd3Rj7Q8 k6QEjCrzVPgTv+eIv0JqDnMOW8SU96UimCL5C4fnLHEEJ3y4VXY54szWAXWM/2fwvEH4n+WJ9Pz ae8fM3CQKDC+W1S/BrfrIDVON3AduYhpHtjdBGxt8bdYqr3HegtZfMGreIkpTjCogFX7NTtWt5l F66ewVkEvh4O5SU3KHMu4CzwXQ0ZBJMC6x/x832hBc8kJOsEPZeYL/YQ078cMPqFOuAvDiImaKd heg8dTSdgvuuS1Q== 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>;