Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp459484lqo; Fri, 10 May 2024 05:27:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW8s0DY/LYT7BZWgJwVRY83g6q4S6agKjpKchkUCgx4AU6031JVFsLiHiLi+WoBCkt6rxcUpTJevkRUP2sIq6ghFa+5eJEEYpAeo6agbA== X-Google-Smtp-Source: AGHT+IEHe5JJShRHMl7/aTtIFvNVeasUZDNpeLBfh0ZbAcGWQkhpx+Ope50NWgFiFL6tO6euGxTK X-Received: by 2002:a17:906:a203:b0:a59:a8a4:a59f with SMTP id a640c23a62f3a-a5a2d5d55e7mr154470866b.45.1715344071767; Fri, 10 May 2024 05:27:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715344071; cv=pass; d=google.com; s=arc-20160816; b=KU8huTF5DfOPVqOiRlY2q0Dgpv2MUqE5oQS3rBs6g5Ah6gZjoU9UoXZJL6ZVhl2IqS NR/yhrIkVZau6Tev1D1b9JPYdad7ak6/GyqE2IUofcxppwCjYAD9eUeCm+Vh2mbdJTb2 D1NF23axIPyS+nAvBN9tWS5zN6zOwjqw84nirkUG7KOt9NBJX2hObNh4/zHrUki1ckO1 wbCym7fRu24YMFo8X5fSS9GQmG4aa98NiBkMY/zGy5mxYZBBgbahKqWN/+bhKftj1NTY W1cuM+yI4RRoUCAXnm2AsAERQkbD0Xgzb6TusiRxB4l55a5AdNCJM74PnVbDl2Tr5XmI hDcw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=+mcIqLuJJPw3GiMJfbLNtSKUQP2lsFTPw8ADS4mj8Dg=; fh=9TzCLbxvG07QaNBFJtpLOlkga6O0w3p5evN5w1rWRLo=; b=pNf5T8M8UGu117zIk1B93mLKrjw2FpuXOyKh2MSPxhJsDc9pUX6ahNQyOF2e9S9VEW j+UKFRD15VO0Znj4g3RAL5F8/H9av8aJihNnTVWtHtDXjfq0ay9Uj/yLd2JXDf02rjal pQAdCrojBnX7lpsdYvNt6DHT0AKOqpEmej9VlFZNGhfgLEtVGRqRqgSLCw2nqR8GZz+F gCSYKJ9eKqb8HFzuQ0gJDu5CpVqpyk581cyMTqpGCjlzeIbiTP2e3Afce0nq9BkVUP0w TxlGINy2ouxYp/DQodF17M3eYVLtBlFPwXSs+Hh5DKrxQg4xPVJ5FKvJfA6ujSaViLAA xuCA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=qDiGUUcG; arc=pass (i=1 spf=pass spfdomain=fairphone.com dkim=pass dkdomain=fairphone.com dmarc=pass fromdomain=fairphone.com); spf=pass (google.com: domain of linux-kernel+bounces-175777-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175777-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17bffec9si175425566b.880.2024.05.10.05.27.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:27:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175777-linux.lists.archive=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=@fairphone.com header.s=fair header.b=qDiGUUcG; arc=pass (i=1 spf=pass spfdomain=fairphone.com dkim=pass dkdomain=fairphone.com dmarc=pass fromdomain=fairphone.com); spf=pass (google.com: domain of linux-kernel+bounces-175777-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175777-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com 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 00F381F2571A for ; Fri, 10 May 2024 12:27:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 31839170855; Fri, 10 May 2024 12:27:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="qDiGUUcG" 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 4E33412AAE9 for ; Fri, 10 May 2024 12:27:21 +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=1715344043; cv=none; b=nZD2bRKcNS7N0hR+739g63Sf4P8QUDywdTmWq1QCPrBeQmbAvBy9r3+YaqMi1YWcz76LlJLxcWACKXWmlZMkxSQEAKkiRnD7eiz8gEDX1hvhyhPt+aWNjDSVKs95Ij1yrh+rjnQ5VO1KsILKZNNmAvsvPJ6ZoqQuCybmpniXWk4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715344043; c=relaxed/simple; bh=fVRg0B+SoKGyQZjZGM35V3zycwmERzXO4crppui7oW0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dt/zJvFDrX7kSpo2G5J2FuIMAbyldm2CmK73wj9cROohPpnNOHRzR5ArATVS9HNfOu+IirbGLaAWFciwccE7R1iQXpMyVO7+QB4JqweMaZ3AX+4/HJ6A6GGOs0C7hEsj0SwbvHW2z491PZcjFeUYwVvS6l4T4qqrmInHZrPr+w8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com; spf=pass smtp.mailfrom=fairphone.com; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b=qDiGUUcG; arc=none smtp.client-ip=209.85.218.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a59c448b44aso509696566b.2 for ; Fri, 10 May 2024 05:27:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1715344040; x=1715948840; 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=+mcIqLuJJPw3GiMJfbLNtSKUQP2lsFTPw8ADS4mj8Dg=; b=qDiGUUcGQPj4ZkBovTn1ywv1ie8jJ/zs3nfLD9y9YMa1mbgHpXAs6QluP9ktsvPsFS MtARIyixoIgBs7OqyJPVf2sT6nY1d1GpPY26OCXfgE6OypaQBp8CN+Z7JhsqKiNY/+9d aS1vDujZTDQsSEiQZTcO0Z0WOb6lzNoxDMSJvy6MXnCmLuN9401DfRGxYo92BhWtSb21 PFvum/MrdSz9tWpoGGLUfX+HxWzNaNmurPZRZW3afngozUW7ZQ0SPZsoVjy0hDA7NhJa XIRDVdHlr/i/xalkBlloSfsumr07KiVGIO4WZGvEjpgV+3jlaIMm96QT+SbcQNdVeLGT UO1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715344040; x=1715948840; 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=+mcIqLuJJPw3GiMJfbLNtSKUQP2lsFTPw8ADS4mj8Dg=; b=GL1uFBxIY5qrziPb9Ir4D6ivwJVgZSwzuxgwfb02Bf2cBZBAIlqfwes1zxM8IgvSSg Rr6pEzq6ux6XAz7Fe1JN27e4ju1dZE+wGZRuGOJ2GfPCATsyzEbEhoydrVIifaswr/1v //H566vgG34EsXen+pwQ2me5ZVSvhz6xNHF5yZwxgPx4NBw22GEjzsrAJbVpQR/h4n8r ugWUsgrJJFMQ47R4iVguRNJAalBCeQwhN9pQsF1e0UT0CAf3YzR81zfYd8dUkIpj60Pa EpLid6E6WHbJdKRrSCk3sdB2mmQCFGQUiMR5v2CX15Iv82tflr4wWlOJqJuwWHOSDEvY ucUA== X-Forwarded-Encrypted: i=1; AJvYcCVKEcHwwQ+jGi6W/mcbq9xyn+bgxQwH+ANwhXg8sp8eQtv7V+xd55OVceGYsuhNySo8TPbYqNfGIg/VnpAu57PKRe+tX64FxxG3sXrJ X-Gm-Message-State: AOJu0Yzz6NRP+UBatOyOrseIL8FKtceogg2YYwnTViQdob4on+4sbz0H 6AueJW9uDd26gLzsu3eaK81odWI902B8U7UOIB2+pYSmMwCgkYHPz+jD7mJ44rA= X-Received: by 2002:a17:906:3c56:b0:a59:f380:1823 with SMTP id a640c23a62f3a-a5a2d66b493mr165210566b.49.1715344039844; Fri, 10 May 2024 05:27:19 -0700 (PDT) Received: from otso.luca.vpn.lucaweiss.eu (2a02-a210-20ba-5a00-9ceb-707b-2d57-26f7.cable.dynamic.v6.ziggo.nl. [2a02:a210:20ba:5a00:9ceb:707b:2d57:26f7]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a17b017b1sm178043366b.181.2024.05.10.05.27.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:27:19 -0700 (PDT) From: Luca Weiss Date: Fri, 10 May 2024 14:27:09 +0200 Subject: [PATCH DNM 2/2] arm64: dts: qcom: qcm6490-fairphone-fp5: Add DisplayPort sound support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240510-sc7280-apr-v1-2-e9eabda05f85@fairphone.com> References: <20240510-sc7280-apr-v1-0-e9eabda05f85@fairphone.com> In-Reply-To: <20240510-sc7280-apr-v1-0-e9eabda05f85@fairphone.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivasa Rao Mandadapu , Mohammad Rafi Shaik Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.13.0 Add the required nodes for sound playback via a connected external display (DisplayPort over USB-C). Signed-off-by: Luca Weiss --- Depends on a bunch of patches upstream doing bringup of Display (DSI), DisplayPort, GPU, and then finally audio could land. But we're blocked on DPU 1:1:1 topology for all of that unfortunately. And also machine driver for sound just exists a bit hackily. --- arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts b/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts index 05bbf1da5cb8..2bbbcaeff95e 100644 --- a/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts +++ b/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts @@ -14,6 +14,8 @@ #include #include #include +#include +#include #include "sc7280.dtsi" #include "pm7250b.dtsi" #include "pm7325.dtsi" @@ -774,6 +776,12 @@ &pon_resin { status = "okay"; }; +&q6afedai { + dai@104 { + reg = ; + }; +}; + &qup_spi13_cs { drive-strength = <6>; bias-disable; @@ -847,6 +855,34 @@ &sdhc_2 { status = "okay"; }; +&sound { + compatible = "fairphone,fp5-sndcard"; + model = "Fairphone 5"; + + mm1-dai-link { + link-name = "MultiMedia1"; + cpu { + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>; + }; + }; + + displayport-rx-dai-link { + link-name = "DisplayPort Playback"; + + cpu { + sound-dai = <&q6afedai DISPLAY_PORT_RX>; + }; + + platform { + sound-dai = <&q6routing>; + }; + + codec { + sound-dai = <&mdss_dp>; + }; + }; +}; + &spi13 { status = "okay"; -- 2.45.0