From patchwork Wed Feb 7 08:56:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 197796 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp2094094dyb; Wed, 7 Feb 2024 00:57:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IGSZas6nbBIlH76kvFNHTv3aRNR8ePpQAYcqgErrajPRoCSvcPySsmks+LRS0w8MmpbQg/t X-Received: by 2002:a17:906:5588:b0:a38:46b0:bde2 with SMTP id y8-20020a170906558800b00a3846b0bde2mr2182776ejp.24.1707296270764; Wed, 07 Feb 2024 00:57:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707296270; cv=pass; d=google.com; s=arc-20160816; b=fAaYG6FFpFOTBrXn5pRhR3vsIWPgHmH82IaPnD/PeyHdX7FVmN/C8Q0aXBKQcAUnLv I8Sm+M5mn35Xxoe9i5pxcs9B6yCq3d4c0rDjoqiZAjdw7tIBbUwS6FgzcVqZ1VV9iB07 YmfCrN5GgTghfNYvkVauQeo6236hnRVQjPAaCBb6jufFUvXuMDSWkH1A8d0B8JGt1DM9 mC/f5My4kmKW5/biawTZX7FOC7N+CdOSs66CzBwbQxJy3kDWzL1UWybCJ8s3RjG//Y2l RlHSItJpQi92lLKAQ2KXlwotfoPfMoGyyfZBRuPDXG5d+1e71vjPG4IlwvChzzQz9lMc d3IQ== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=liXIACRKvjoHSHWwJp66EaeDBptoHrPZ41e1VyEQRh4=; fh=D6CTXlIj13z9p5ia46ruXUPdrdpB9pKxbxObzFjnZRk=; b=olJwJl5zXQJvJv/CjBbc59JqV9dIDa7Ax0lJ42hU3pqCoFDnWVDLsiss3kMnrmAAx0 ydbFdf2NpW+VWvodcF8NmITQUZbFU8mhvgNI6rmeC/v41G0aG3H6xvaLfxeHtDUxu4i3 EB6E7nnHH0V7U34w6A2FtzhEf/n7lSg7exWNgmIQZgZrSZbtoSVMwRpSR+MKpJN+JQlx 1JbD6k784Tc9cyTux0jimgkrAxIMjQEM6TjMZ+ivIyZhYMnd6E7M5p49TXxl9M3ikPNe KhgFUO8F9kkfcMM8PiOAQsJAr1Zbl9dlnqzQDaMiAz9N2Ysg5UFCzRUoJ4KmSFS1G2d6 7qew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EgIN1qOX; 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-56153-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56153-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCUejtHq5IoDaaRFdfgsDoDpVnaCeCh2PCHisJMPQrtUmNL/r//IxZcLjx7irzw8owqQQuYIgmkULD+pdeBq7OWFogwnxw== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z21-20020a17090655d500b00a382f1a9df2si694710ejp.151.2024.02.07.00.57.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 00:57:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56153-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EgIN1qOX; 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-56153-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56153-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6D0F81F24F51 for ; Wed, 7 Feb 2024 08:56:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 162DD20DCF; Wed, 7 Feb 2024 08:56:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="EgIN1qOX" Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.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 2A5D6208BE for ; Wed, 7 Feb 2024 08:56:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707296182; cv=none; b=HVEnWtfDWyNWPSmcd05cwokt0jHNq7yJA7PkPTSsPk5DQOUhDZCBC/vYx+eRTVkVarcz/1xBR99oGUm6er5toG64geR72ufdRcSDomJAG+H5mnR7V85XywoQYxLgoRkieS5SWHTJKSVsYBIm76GkYa9dYYzsdNK56QRL4YEYdDY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707296182; c=relaxed/simple; bh=rdI7GKfCdnOTmpOBilN9O3JEYPXprn3uJX3z0L0jrNA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=KF1pC6DycGNlGV6aLioOkgCMQcUu6rYnH72hAK0CxW9+ctOJXYdrhXaDASgfHxPgPgyKxSllzNikCOI9cIhCKsjNPr5zQ3NM28B1bTaykLrlRvyBcMLm97bnvF2n06m4ynsxAozT8IjC2vwhfcOCKJykWghyrQdbDZbiY00UJyk= 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=EgIN1qOX; arc=none smtp.client-ip=209.85.221.51 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-f51.google.com with SMTP id ffacd0b85a97d-33929364bdaso245603f8f.2 for ; Wed, 07 Feb 2024 00:56:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707296178; x=1707900978; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=liXIACRKvjoHSHWwJp66EaeDBptoHrPZ41e1VyEQRh4=; b=EgIN1qOXN0/7H2tP6fnNpYNv3aGk0+R148CPJ2udvrkRXCEW/om7hI6jr5MG1P4clT yoZgPsExfOZm/RydhIUbl/R1WVHgVI7xHvsQAZyU+r75FxBeoebkNc8YqUuz6DZEf04d y626juUUkgLu/MaZqV2Uuj/Q2JBLV/+kEKlE7wNyxAjurCAcg7RGgxZTFfMHF/keVRcG FNq6f9BrmdoYTv3TVCGbAnaWsEuIw5tLN3aJG2l/WdTiy6sIQPnNI3nmT1m6dJdNyD+k 18ZYMQ36Pvof3nB1xhZNk6fk0kuH6XNR4LMBrqpXyR6MFUNk0DRBuMJIIvoOuwNk8Z73 nNkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707296178; x=1707900978; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=liXIACRKvjoHSHWwJp66EaeDBptoHrPZ41e1VyEQRh4=; b=BOSu7u2hALwxqDLkwSP3LUx9gJGVU9Oja3C1w0BS0fIJT0kkp5IEsrT5syhr9ZG0YP oe/Esi0KkA0a7UcH1x8BWSvMi6/lVrXQTd6d8B374T1im7SPFRhXsbA32Gwit9atPO75 0n0v/Re23cIkiZ19oXzwg0hHHYG7NJtwJzHYUhIK2n7PZxpfw6Xnd+gbjMuDzrBC736e vwwFG8Ph9WmYHV5ynwykljQnE9ReMZmGRlXFTsc+W0G8enWCsVdrG45DLnP+NvtX0pgh MoOh76wQhEyz1VNutVG4hqVGzObYDzghNnGaTyBWIhskxtOa23tfdrI6M6xPRvmwHRJZ AduQ== X-Gm-Message-State: AOJu0YzYUBZ8kudrGV+u9rzo1otAYtLInzXdnIi3Jd24lzXRUryBeBc7 EIX0Ugux4g8OZOMpMsk3gxLcOLfUunkN8PYivK0GGK4em/OQ4poxr5Eodsj3LQ0= X-Received: by 2002:a5d:4450:0:b0:33b:3dcb:9564 with SMTP id x16-20020a5d4450000000b0033b3dcb9564mr3179404wrr.2.1707296178423; Wed, 07 Feb 2024 00:56:18 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVN2mmboPNrx4QSdEpEN0shWCb1v/FLThDbfLxSbrbu80KgzR3it+oW+lvniE39OxwScqTjuZc93thwx1od88Zt2LFp6h7UrQKjOJs3ETFF20ZZaHqi4j6X5YgWttGXHfRXocWSBLT3+1BmrXVPlRtMEPCKOrJ+wxbne7A3VqM6QCnvBpvWGbQxjdMEaKqcDixHVpsRnm9gx8LwaX2Qx8b9gej1xa7ObrZT8OWMzwGsWqjz4gdaqM5cqo6NroJPlFvNXrp94Ctp Received: from krzk-bin.. ([178.197.222.62]) by smtp.gmail.com with ESMTPSA id r8-20020a5d4e48000000b0033ae54cdd97sm940204wrt.100.2024.02.07.00.56.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 00:56:17 -0800 (PST) From: Krzysztof Kozlowski To: 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] arm64: dts: qcom: x1e80100-crd: add sound card Date: Wed, 7 Feb 2024 09:56:15 +0100 Message-Id: <20240207085615.27187-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 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: 1790229894167018982 X-GMAIL-MSGID: 1790229894167018982 Add sound card to X1E80100-CRD board and update DMIC supply. Full schematics are not available and the limited available parts suggest that DMIC0-1 use BIAS3 and DMIC2-3 use BIAS1. The DMIC supply is unknown except one remark for VREG_L1B that it is "used for DMIC if no WCD". Signed-off-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- No dependencies: everything was merged. --- arch/arm64/boot/dts/qcom/x1e80100-crd.dts | 94 ++++++++++++++++++++++- 1 file changed, 93 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-crd.dts b/arch/arm64/boot/dts/qcom/x1e80100-crd.dts index 12abc9287a75..72b787ce4b20 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-crd.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-crd.dts @@ -18,7 +18,7 @@ aliases { serial0 = &uart21; }; - audio-codec { + wcd938x: audio-codec { compatible = "qcom,wcd9385-codec"; pinctrl-names = "default"; @@ -48,6 +48,94 @@ chosen { stdout-path = "serial0:115200n8"; }; + sound { + compatible = "qcom,x1e80100-sndcard"; + model = "X1E80100-CRD"; + audio-routing = "WooferLeft IN", "WSA WSA_SPK1 OUT", + "TwitterLeft IN", "WSA WSA_SPK2 OUT", + "WooferRight IN", "WSA2 WSA_SPK2 OUT", + "TwitterRight IN", "WSA2 WSA_SPK2 OUT", + "IN1_HPHL", "HPHL_OUT", + "IN2_HPHR", "HPHR_OUT", + "AMIC2", "MIC BIAS2", + "VA DMIC0", "MIC BIAS3", + "VA DMIC1", "MIC BIAS3", + "VA DMIC2", "MIC BIAS1", + "VA DMIC3", "MIC BIAS1", + "VA DMIC0", "VA MIC BIAS3", + "VA DMIC1", "VA MIC BIAS3", + "VA DMIC2", "VA MIC BIAS1", + "VA DMIC3", "VA MIC BIAS1", + "TX SWR_INPUT1", "ADC2_OUTPUT"; + + wcd-playback-dai-link { + link-name = "WCD Playback"; + + cpu { + sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>; + }; + + codec { + sound-dai = <&wcd938x 0>, <&swr1 0>, <&lpass_rxmacro 0>; + }; + + platform { + sound-dai = <&q6apm>; + }; + }; + + wcd-capture-dai-link { + link-name = "WCD Capture"; + + cpu { + sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>; + }; + + codec { + sound-dai = <&wcd938x 1>, <&swr2 0>, <&lpass_txmacro 0>; + }; + + platform { + sound-dai = <&q6apm>; + }; + }; + + wsa-dai-link { + link-name = "WSA Playback"; + + cpu { + sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>; + }; + + codec { + sound-dai = <&left_woofer>, <&left_tweeter>, + <&swr0 0>, <&lpass_wsamacro 0>, + <&right_woofer>, <&right_tweeter>, + <&swr3 0>, <&lpass_wsa2macro 0>; + }; + + platform { + sound-dai = <&q6apm>; + }; + }; + + va-dai-link { + link-name = "VA Capture"; + + cpu { + sound-dai = <&q6apmbedai VA_CODEC_DMA_TX_0>; + }; + + codec { + sound-dai = <&lpass_vamacro 0>; + }; + + platform { + sound-dai = <&q6apm>; + }; + }; + }; + vph_pwr: vph-pwr-regulator { compatible = "regulator-fixed"; @@ -494,6 +582,10 @@ spkr_23_sd_n_active: spkr-23-sd-n-active-state { }; }; +&lpass_vamacro { + vdd-micb-supply = <&vreg_l1b_1p8>; +}; + &mdss { status = "okay"; };