From patchwork Wed Jan 24 16:45:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 191676 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp1131318dyi; Wed, 24 Jan 2024 09:13:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IFub7+Bqs+1YLVOwRGO47b5KDuVjfZe6hIhAhib3O46478fgxfr7hCQlGoyKsng6LWHll4Z X-Received: by 2002:a05:6a20:dd82:b0:19c:6293:e967 with SMTP id kw2-20020a056a20dd8200b0019c6293e967mr1035038pzb.115.1706116402260; Wed, 24 Jan 2024 09:13:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706116402; cv=pass; d=google.com; s=arc-20160816; b=g+BXIea/z9Pr4RFGq+tkASTPKTKOGPxExznGSlYE9xREb25SbfxpVYY0sKhLwiPB6F saevLbce4mWfRZdiq9LfYvgkVxQoOuZoH5yHcuok/v2g9/fJxClw3qZ8uUwTjbMWfaQo F7iwSkQRsJgkVgdVm+sFkOIN+N8N4ClgZbS5/vwC77EJT5YBNQCG/HfS5f6IHbdsajR8 cuqvdgGkuB4DQgrVMbSCPmJKAVEfwU+SGfaftg7byBRLmgOhfJ+g+1Y5Z71WF30z+kgU Lfw3DAmdIPZ7VVrdsosqmWq2f4c3zKMozb3FmW3j/VJnvmkJbZkWwrKlidM3FdvS1u6U Zf8A== 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=oPfitwNDeh5IgnqcpIOPgmDXuTM9ZGL9gpaSrx5A5EI=; fh=v1lwT2l/jVFCCowwT16E18rgIv0CDQo4TohtFL5maCY=; b=rjWc/+lwZWBs5rY0xz0rt0DjR35jhtVoziWpntdTsuJ/iVsDlVzIhH8gfDqmSE1n13 xYfYzLKbMLCorR9qfCCoO2+oQhLn2rmtSzP+LbYRewzVn3QEkOM0KoRGHpEh055nLGBq AHgMfJtJUKeGX9WImAe36+vFGIqaCMnF14PYBPCHCum/5YsM+Z81xaqYF/dq8qJlGMO3 NS/zqWcdEDSL1JHV0OjEr3eGDgZ3vu/ElIht5qfp6gkYbSfdzBaH7Chgm2wwLzewVWOF rs1i6noU4ct4sBWcBFZw5M9Y1kl1JN+dpPrw/heli0w5IAC43zYlA6sNICBREX3EO1Ei l+dQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q0bT4Blz; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-37351-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37351-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id kp19-20020a056a00465300b006d99ed4ae9fsi14300074pfb.8.2024.01.24.09.13.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 09:13:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37351-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=@linaro.org header.s=google header.b=Q0bT4Blz; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-37351-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37351-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id BFA6EB233FF for ; Wed, 24 Jan 2024 16:46:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 783A87FBB5; Wed, 24 Jan 2024 16:45:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Q0bT4Blz" Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.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 CF1407E57D for ; Wed, 24 Jan 2024 16:45:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706114714; cv=none; b=I+QHxFtLW3y++dsoHVkRf8Cz4J/FI/h33SCH1YFt7b2c/1xI+EaUKk0P/8Qi2X9eD6W0dFXajx6IiYwo9goiLnWr3iY06cKiM6EqgBNCh9inBdpHsIyA0FjtCEb+HHp143y6OOHXT6/L3evkkus6n2gIAqLYMZ0VWO2n9nWiXCw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706114714; c=relaxed/simple; bh=QoOGnO9l48+0iK2zIq/3QM25tfKdYuavsbe3FmMLGCo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=S9v0xEqEgEz2PHmZjSGQ9BW5kCtBnLHcqdrN7tOjmnZpx43InMrqjgnYnw0Y0rEUKSBqnK9PGHzjQ5tDm+iU8Bx/CTRN4+GCOolPm0CB+lU3cPvcdVHG1dtRtKETHCEV6PYNi6Ma2+Ak/jlJ6sjKRqmBKg6jzZ9wDO4M1V7masY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Q0bT4Blz; arc=none smtp.client-ip=209.85.221.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-3394b892691so732035f8f.1 for ; Wed, 24 Jan 2024 08:45:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706114711; x=1706719511; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=oPfitwNDeh5IgnqcpIOPgmDXuTM9ZGL9gpaSrx5A5EI=; b=Q0bT4Blzca3gzvOquclKRUMXcovCgJ3rbjkEdaC6IiCS6146aCpprC7vxsqn6BmZwp 0Inw3gzFJ0DL+/unlqNpbrYrt1yUiLymcTmL15WXsDXlVdf+MhnTKquCTdzGykTPMn1q TNP0hpsims2RBYMT0+Ge3TFVCfaoWnNe0jUsPVVvAJJ6afMTX6NentK5MgWyNeH9jaVs rjdOLUOkHKnavccCdJgpRKIGXGIeplV7KnXE7uJnFVslag5prIst/BiLUAor4xjrBbXw JrvmJBckWF9NLrJqu+pWTC91RW23g4vDy5+oxp1Ksxp9y1I5B86bZjF9qHhKVI8fPTtS 2/Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706114711; x=1706719511; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oPfitwNDeh5IgnqcpIOPgmDXuTM9ZGL9gpaSrx5A5EI=; b=jzF01Zw/9EOsyOOZBKed0nRAFJZx62ROV1BTyEzuvHr1qN1nTOU4o1pxq8FhB8B6L2 VQ5Qnj0S6U9cgaAgqs9yrz2tOwCdDNf9Zk6KBPs4CaqSMBGYXYAhBUvI+Pdg5jL6wxBp cOyETSE8dlzQy1/WhVVP3Ir2OAsO7xPtVmiCjHsfmhDNrI6NtW+88d7nDAuc5eawgMGu 0judjF5ZQq8lbqmje04VpgHtrY/jlmsrVzJaiIwGdZkVe7WB8PmmpOZm8UoDTuGB46vn oWK3pMy4rr+rLyOdcYSPodhIpo+fD2Xd3Tu37jgdAtUCU4zDXzpovwi/TYrlqdfWbeDs F9hw== X-Gm-Message-State: AOJu0YyYyj6nnvzM8S6qTZVD3v/BhKRnyG1JX+6pmGYH3/tzWmBxFFsq TWXV+gkBa58qxlrPh/cAFs+suFOMAp2NCseZ111L+sAFOJRGi7nVEObgokD6pgs= X-Received: by 2002:a5d:4703:0:b0:338:5dfa:5080 with SMTP id y3-20020a5d4703000000b003385dfa5080mr595282wrq.24.1706114711106; Wed, 24 Jan 2024 08:45:11 -0800 (PST) Received: from krzk-bin.. ([178.197.215.66]) by smtp.gmail.com with ESMTPSA id v9-20020a5d5909000000b0033936c34713sm8137883wrd.78.2024.01.24.08.45.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 08:45:10 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 3/4] arm64: dts: qcom: sm8550-qrd: add correct analogue microphones Date: Wed, 24 Jan 2024 17:45:04 +0100 Message-Id: <20240124164505.293202-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240124164505.293202-1-krzysztof.kozlowski@linaro.org> References: <20240124164505.293202-1-krzysztof.kozlowski@linaro.org> 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: 1788992712604676499 X-GMAIL-MSGID: 1788992712604676499 Add proper audio routes for onboard analogue microphones AMIC[1345] - MIC biases and route from TX macro codec to WCD9385 audio codec. This finally brings AMIC1, AMIC3, AMIC4 and AMIC5 onboard microphones to work. AMIC2 (headphones) should be fine well, however it didn't work during tests, probably because of incomplete USB switch. Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sm8550-qrd.dts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8550-qrd.dts b/arch/arm64/boot/dts/qcom/sm8550-qrd.dts index 76e9ca954093..79ec673f9f7c 100644 --- a/arch/arm64/boot/dts/qcom/sm8550-qrd.dts +++ b/arch/arm64/boot/dts/qcom/sm8550-qrd.dts @@ -123,14 +123,21 @@ sound { "SpkrRight IN", "WSA_SPK2 OUT", "IN1_HPHL", "HPHL_OUT", "IN2_HPHR", "HPHR_OUT", + "AMIC1", "MIC BIAS1", "AMIC2", "MIC BIAS2", + "AMIC3", "MIC BIAS3", + "AMIC4", "MIC BIAS3", + "AMIC5", "MIC BIAS4", "VA DMIC0", "MIC BIAS1", "VA DMIC1", "MIC BIAS1", "VA DMIC2", "MIC BIAS3", "TX DMIC0", "MIC BIAS1", "TX DMIC1", "MIC BIAS2", "TX DMIC2", "MIC BIAS3", - "TX SWR_ADC1", "ADC2_OUTPUT"; + "TX SWR_INPUT0", "ADC1_OUTPUT", + "TX SWR_INPUT1", "ADC2_OUTPUT", + "TX SWR_INPUT0", "ADC3_OUTPUT", + "TX SWR_INPUT1", "ADC4_OUTPUT"; wcd-playback-dai-link { link-name = "WCD Playback";