From patchwork Fri Aug 9 08:33:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 818135 Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.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 B50A4190070 for ; Fri, 9 Aug 2024 08:34:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723192455; cv=none; b=KIKyNDWH4cTiNZsxqJpqmtNAZ9yxXRrhslfg/EJAqbt1HP/EPOT3pIOqMq00fTG6AT9+tneZ62q+Aiu7tAn84Q91qB5nEnN2aZx1bLlbT/EYvTdgEuTYNESOk3ljC0+Qe8D33NwfO4ujepHWVRdztBxEZ6c0B55hh695M8gCWK4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723192455; c=relaxed/simple; bh=6QJ2T7K5t8dnL1cUxpMGwsGVpEL0ZBUMr9mtcKTcoUQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=g64kqY8xj8mDlGGiyUbD3PxZ44wRe1YusBhSduHRfDzP9Sf0RDaU9d5whF6bnoJPax8kKHRefKNhrVoA1yjfK81eO0fiIBeM5PDCw+sJIC/o9xAkLN15wQWjAUOBUhrJAc4QY7buGkF//IRw/6bqudCFHutpfXKYfZTxAhGC3LY= 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=lh0OlfWM; arc=none smtp.client-ip=209.85.208.41 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="lh0OlfWM" Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-5b5b67d0024so2059989a12.0 for ; Fri, 09 Aug 2024 01:34:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1723192452; x=1723797252; 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=bTOapbhsSh2iPDvdrkY7GqTcvxUdYMzOhi4gx0LwDTs=; b=lh0OlfWMaRTJ9W00ku7lw7gtX5ChYd9/mIU83hpxTFVIDOCm2MpgSMSdSlzN5iJOsO lJ5vNfQFbwIuk8o8AfDSThQEfXUOliiZlcv+UJaQ0REUjUeec3dVrQsgwnIHuZoVyq+8 ZarleEE2DXPU1jkM/8A4wvhZ9e/+ICa1aLLRibaSXjqSmOBPKAMX1z60FXP8aPWyBG0A tZgKyZK3QE0LTVyvYBu8fz25xEQLQfzMNmC1DVNWTLxGOL1pj94rVG3X90Mxd9srQCMM 4yGaPMVs7qXi0+LNJP9bisNszOHZMTQUuFuzgzuHLBCVd5P6vWWJ8waujJCVreNMYI4g 9zuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723192452; x=1723797252; 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=bTOapbhsSh2iPDvdrkY7GqTcvxUdYMzOhi4gx0LwDTs=; b=JyDxsh1S+SvUDCOi+CjlD9d2ujWGfG2hCEy3ZN5BiHv9h6R+kzRVKZ/3Eb5klChl9k 6gCMfiu6W/Gq++rcD3J0VOkP+Es/Q+V1afvW7axCI7bIWJFl9G+E4iLKh6iypGLgLtHj yEnXZkBB3G/0fzkb2z1un+ujCkbGP+fQoksayhmcdMXiiiVjU606JsOHtvNHXE10lGQ7 HW7fiDe0mnEwkt/z89GnB/sNPcnlek8sv2YVTAocu724KTTdfry4RlCm5+l1OkAe12y9 Ph28U8KgKGzGe+GzwUUKFuTYGEC1hHpKMU1IIyuLIrJ7FhjHaaz/DEfYMPbUJWgCo9eK teXQ== X-Forwarded-Encrypted: i=1; AJvYcCV48kas7HDbLmc/5wcjusCplfotswN9nK2o7dLc7+Zdj3oU6ZyRL/Pj6RQAVrpRYJglR0qXXSY5CBnir70iqguBCwB3DEYFPmuicXKNlg== X-Gm-Message-State: AOJu0YzjYX8dDTDpsXsFhFwtSkLSTgXavlVz+/Jktc0E4wIOMecvIND4 k2RhF28qPc1Q5ehpiJgjYxcZTeW6U+WK8OiwoywJTiUvJ9bclgPREjHxIW2cCZk= X-Google-Smtp-Source: AGHT+IFiDy9k54HEGxK1zO78LfIscSKahK5f+32thKpNVMqGdYYVC41qcymWbEmBTFDakPWayhpGMQ== X-Received: by 2002:a05:6402:34d6:b0:5a2:9683:2bb6 with SMTP id 4fb4d7f45d1cf-5bd0a50df2dmr535009a12.1.1723192451945; Fri, 09 Aug 2024 01:34:11 -0700 (PDT) Received: from [100.64.0.4] (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bbb2c41916sm1336288a12.41.2024.08.09.01.34.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Aug 2024 01:34:10 -0700 (PDT) From: Luca Weiss Date: Fri, 09 Aug 2024 10:33:57 +0200 Subject: [PATCH 1/3] ASoC: dt-bindings: qcom,sm8250: Add generic QCM6490 sound card Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240809-fp5-dp-sound-v1-1-d7ba2c24f6b9@fairphone.com> References: <20240809-fp5-dp-sound-v1-0-d7ba2c24f6b9@fairphone.com> In-Reply-To: <20240809-fp5-dp-sound-v1-0-d7ba2c24f6b9@fairphone.com> To: Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , Bjorn Andersson , Konrad Dybcio Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.14.1 Document the bindings for the Qualcomm QCM6490 sound card. Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/sound/qcom,sm8250.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml index c9076dcd44c1..0a31be6d917f 100644 --- a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml +++ b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml @@ -31,6 +31,7 @@ properties: - qcom,apq8096-sndcard - qcom,msm8916-qdsp6-sndcard - qcom,qcm6490-idp-sndcard + - qcom,qcm6490-sndcard - qcom,qcs6490-rb3gen2-sndcard - qcom,qrb5165-rb5-sndcard - qcom,sc7180-qdsp6-sndcard From patchwork Fri Aug 9 08:33:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 818627 Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.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 B80D81917C4 for ; Fri, 9 Aug 2024 08:34:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723192456; cv=none; b=Y5HhW634LvL8JUUQPp+GJo+IuXvqWN20NsYKp7zGirvB/GKGckldxIglwxKh7lWWL7FNn3ImLPe8s+DNhFIofVR3ORyhqPo3vrlmNlcUCV4gcrMgt0uPLMxmV5ge0swMlcl9jTpGXfbnYUr4pIKbnWiC9qNuoaIsubIZVACs2y0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723192456; c=relaxed/simple; bh=iQCCZNb15xA7YzIyMpV93MbfBBT7xhwt8+pmmQPh75s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QlNhXshJBRApzjLND0zTXhXn4o7MnG+IOYO2dPY7RdObraf4Ou/MRoN0O+wouO8L1h+qJ1U3SN6XcfdQGgf3VPQE5vX+8u7dFOEaEjVnqHTou1lCJ+dyxTQ5ErmWJQvz98GtAuuF8yJ/BTYqcFO2ycUujvu09mwDgWkat5blCV0= 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=DBvKK0It; arc=none smtp.client-ip=209.85.208.45 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="DBvKK0It" Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-5b3fff87e6bso2008091a12.0 for ; Fri, 09 Aug 2024 01:34:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1723192453; x=1723797253; 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=pM2zQn5p3FDpIYaXA2RbE1R8wZYvgZjYLsbkdX740GY=; b=DBvKK0ItIeQByCnvUTZlRhEHosMiiyEUGqiWz727zqIuuPr1ttB6QXF/mg0tWmMK2n duDvjou8rw+IEDQBZUGRZ4Ryq2bqy2Hr6iCI4zTwJASueJwfMv0ZXByqAgGamOm+Jt/k iZhXxwa/JTmBHDbc7Fvv1F72GU/H4w+KALmRAo4Y5KH+PFZB3B9cj8MnW8s4HZmRFesN z8wK1SIPagr0DMsZGKq7fff+HNVvmLezy/eJnzv2kZ0Y4Fixoh5lWbGrpHfE3aQranvI LFR7Ms4sZrRs2JddMPrVW5lFCOZtP1BSHrrInrkVKKY88NIT2uKKlfhQ9Z44gCOyggKy gUgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723192453; x=1723797253; 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=pM2zQn5p3FDpIYaXA2RbE1R8wZYvgZjYLsbkdX740GY=; b=s3+CV8tU+thOKZ0B2IAs+UaAV8gmSbqr268UwhI7sFE0k61sfRN31m8WP8vO67waYu 4sOFKXG3p1MXi2AluOh4b1eml8fiI5dMjBVOrJZJePaWXeaxqhxorFRUipwXRhQzJIlI sUWOuKpUI/eGYxeojXzNilYhjpT1ChdE+SDNR8aqSRZDnO7BoTpqxuI82xXw7EOTlDLt OQcLIThSZacO6OtY5msfzbaN0U/QMz9saVkVlgEvZ9e9ro1GnlG+cixLi5xyjssnfTiE 0pDNqAGPytk2UPWhqiXIdWjEwDr/Z/AMr4TQb74/jGs8MOn1afpupM9qLsrIa+fVruTQ /NrQ== X-Forwarded-Encrypted: i=1; AJvYcCWbN6CC26mZecoyeJl1Vfu2DnMw4zvodjSTBQmQepObfUmSu6yiCOVosSQxNF+DEiJa/xMGg6Bszoc7QNtM@vger.kernel.org X-Gm-Message-State: AOJu0Yw4RzlSOUWt5VTQOv4/IeyZopo1eeAxzC6cnaHFASgY4tdLwa76 Dyy6emON0dN/a0DTHw6Oid0efpcOCDc8FzpfR0HGXXtXQWWcIOadHZPI3Ls+ivc= X-Google-Smtp-Source: AGHT+IFCpnNxr3OIcmfuo39c+nNlT21/T85VjYH0R0lGnoZyeMzkVNE10LVLArSs5TAUEYYxuW88qw== X-Received: by 2002:a05:6402:3548:b0:5a3:b64:3b98 with SMTP id 4fb4d7f45d1cf-5bd0a5a5d44mr558924a12.19.1723192453020; Fri, 09 Aug 2024 01:34:13 -0700 (PDT) Received: from [100.64.0.4] (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bbb2c41916sm1336288a12.41.2024.08.09.01.34.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Aug 2024 01:34:12 -0700 (PDT) From: Luca Weiss Date: Fri, 09 Aug 2024 10:33:58 +0200 Subject: [PATCH 2/3] ASoC: qcom: sc8280xp: Add support for generic QCM6490 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240809-fp5-dp-sound-v1-2-d7ba2c24f6b9@fairphone.com> References: <20240809-fp5-dp-sound-v1-0-d7ba2c24f6b9@fairphone.com> In-Reply-To: <20240809-fp5-dp-sound-v1-0-d7ba2c24f6b9@fairphone.com> To: Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , Bjorn Andersson , Konrad Dybcio Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.14.1 Add compatibles for sound card on Qualcomm QCM6490 boards, e.g. Fairphone 5 smartphone. Signed-off-by: Luca Weiss --- sound/soc/qcom/sc8280xp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/qcom/sc8280xp.c b/sound/soc/qcom/sc8280xp.c index 922ecada1cd8..385e902944b3 100644 --- a/sound/soc/qcom/sc8280xp.c +++ b/sound/soc/qcom/sc8280xp.c @@ -185,6 +185,7 @@ static int sc8280xp_platform_probe(struct platform_device *pdev) static const struct of_device_id snd_sc8280xp_dt_match[] = { {.compatible = "qcom,qcm6490-idp-sndcard", "qcm6490"}, + {.compatible = "qcom,qcm6490-sndcard", "qcm6490"}, {.compatible = "qcom,qcs6490-rb3gen2-sndcard", "qcs6490"}, {.compatible = "qcom,sc8280xp-sndcard", "sc8280xp"}, {.compatible = "qcom,sm8450-sndcard", "sm8450"}, From patchwork Fri Aug 9 08:33:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 818134 Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.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 EF779191F63 for ; Fri, 9 Aug 2024 08:34:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723192457; cv=none; b=quf7oKDnNgLaaBxv4+luEPi5rmxkpCWViB5/4dx7HbbvBpIVlW764Rl6LwSO9BNTRHrj8+1s1D5uetwPegXTSz5R8eG/vHQ2goBNlfR0W4cPPBYU9+4g+kALzxr3lBWOsCPTolFohpSVILA6VPP5qgYR0cnXiDuqXKxLjDO4Qd4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723192457; c=relaxed/simple; bh=OI0BTlanZ3ouih1Oc8Ys+Q4/CwcrtvqnlxKkb99HXII=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Bso6pcLzzuqQtFBCmyf5aTzlMdEwlV6H9SiBcxd1sV5y7YOpjMCtKoSjoM9e/8ZPnPwGj+spuwu6pWEhf4fxI+WBRS4l6oKxFnxykai4pSu41lqEYN50d92dvxVDLi1F46M3yiK2yeSvUqQNALikA5Q9OJbI8M+k0hqeFxDfGDA= 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=NpluVjjP; arc=none smtp.client-ip=209.85.208.45 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="NpluVjjP" Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-5ba43b433beso2056175a12.1 for ; Fri, 09 Aug 2024 01:34:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1723192454; x=1723797254; 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=SY4fryrxNkvZgli9BRICsfInr4nHVNsC/F28oVigWAk=; b=NpluVjjPupcYcpoNGGUuKRsFEmM8tuxoI24HaNfPXgrQDoojRfokOtGTjCeGS898NX DsW5ZTsdPMU6aCEmOQ4KqyqDRnkLZYcbLPhElpnrYw33H4o85JxrnrBXH1G0UmrCTbkN 7bjbaXHKPQBaLQxpJNzFhZs1DOFsuNnvcwLWuSb4UDi6sTErXGzSX0/tF0CVXKlB9n2I EZpKCWFFqISSNZau/9ZRK96VEQfBjmq1MgQ4X0ys1oO5TPUbP2DSlMwCSB2ykgPR/iDc TkKgD6toxLAm9DDy3+hLYT2Pdu+8X2DtTrVM08LGogoBC4WU4jHpSQorHyxNIcOvS7Dq StXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723192454; x=1723797254; 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=SY4fryrxNkvZgli9BRICsfInr4nHVNsC/F28oVigWAk=; b=Frk1LvB+1Eg92dUZZ/TLC56E2efSZ+Rkqok+edzN+ihxNQam/97ROqsdRvKEgGyOqa li3tqDJJInJ6O3Fn8/ch3KemJVjkjw72z1PeePkURjUpLlLoP1d14NgKFNChqEGKWKNi f8es5sb+ER3yDrwQuMD64Fvf2TKJc1t2/jbf60vxlCBlOAe/60W+iXUJdJhcvOkDlnhM TsymivwAVXyZmOKZXVsAo/CPkN1PVn9IJjLmkgzuNR5d76fJb6g5Fcj4Kb0MmcAYBTZI MnnBueCMAbS2HFnx3B0ZbhW5K0UGE/NuNkznGqfH5Kd2EMEQy1f3n2Oso1yExPakIpB+ hzKw== X-Forwarded-Encrypted: i=1; AJvYcCV3u4/NVBphoJ7U8FxRO5jeVZai1Fzof1gmw63+TknTh6rjAOCWi1ww7w6BRVulZB4EWpSLlQJ1eaFgJEBtz/M6zhPcqQWhhIkoFNnPxQ== X-Gm-Message-State: AOJu0YyaD9aZm1OA8Tw4andiJBQUtO1YoWzkMIeEp5MNmyuyT7Sp+J3U r/gaOhLjovhKG1JT88fs0GLn0xsJ0WSvwFfp4MW4enQPhmZSe1Vl9/zD1gITYCg= X-Google-Smtp-Source: AGHT+IFR/fUi2PxofvVcuUfiPXGSTvHp8HjNo2okFizvskVBpDGatZfaIDw3fHAvXy9BNCnQOZOyKg== X-Received: by 2002:a05:6402:4309:b0:5a1:b42f:c93 with SMTP id 4fb4d7f45d1cf-5bd0a588be6mr680639a12.13.1723192454170; Fri, 09 Aug 2024 01:34:14 -0700 (PDT) Received: from [100.64.0.4] (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bbb2c41916sm1336288a12.41.2024.08.09.01.34.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Aug 2024 01:34:13 -0700 (PDT) From: Luca Weiss Date: Fri, 09 Aug 2024 10:33:59 +0200 Subject: [PATCH 3/3] arm64: dts: qcom: qcm6490-fairphone-fp5: Add DisplayPort sound support Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240809-fp5-dp-sound-v1-3-d7ba2c24f6b9@fairphone.com> References: <20240809-fp5-dp-sound-v1-0-d7ba2c24f6b9@fairphone.com> In-Reply-To: <20240809-fp5-dp-sound-v1-0-d7ba2c24f6b9@fairphone.com> To: Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , Bjorn Andersson , Konrad Dybcio Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.14.1 Add the required nodes for sound playback via a connected external display (DisplayPort over USB-C). In user space just the following route needs to be set (e.g. using ALSA UCM): amixer -c0 cset name='DISPLAY_PORT_RX Audio Mixer MultiMedia1' 1 Afterwards one can play audio on the MultiMedia1 sound device, e.g.: aplay -D plughw:0,0 test.wav Signed-off-by: Luca Weiss --- (from cover letter) Unfortunately DisplayPort enablement itself for Fairphone 5 is not upstream yet. This is blocked by DSI display bringup upstream which is blocked by DSC 1:1:1 not being supported upstream yet and just working with a hacky patch. Nevertheless, DisplayPort audio was validated working with no additional sound-related changes so once DisplayPort gets enabled, sound should also just work upstream. --- arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts b/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts index 8ab30c01712e..45d4512546fe 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" @@ -841,6 +843,12 @@ &pon_resin { status = "okay"; }; +&q6afedai { + dai@104 { + reg = ; + }; +}; + &qup_spi13_cs { drive-strength = <6>; bias-disable; @@ -914,6 +922,35 @@ &sdhc_2 { status = "okay"; }; +&sound { + compatible = "qcom,qcm6490-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";