Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp459404lqo; Fri, 10 May 2024 05:27:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWKZLUrmFDdoTopH1jF5Eg6RAWaLbnNTiTN3r37ebDjh1+TYFXBwFmbygjUU4jwA9fMYQC+c0vR+fXDC72VzpukxDkqPkatJABVwq6/HA== X-Google-Smtp-Source: AGHT+IHKt8lhRyhlPMcjO9+2MwibkBucl4/7peVYFit1tRFP+K1LOLkUJw+G8mjzdzSkMjfRrexS X-Received: by 2002:a05:6214:2f13:b0:6a0:b3ec:9036 with SMTP id 6a1803df08f44-6a16819eca6mr33308676d6.28.1715344062563; Fri, 10 May 2024 05:27:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715344062; cv=pass; d=google.com; s=arc-20160816; b=ttiut+mPvKkOHwnC6CPst0f1Z4XsPMT2Ib/N6RxQkWSQgNh+FKir8kVEiIYhLcowBt sv++MqMHZYPVxGV08QQ6xty9KD/ltXZ5wmI8+dfYbpK3jmr/M7Ex6SrAm7g42CT3FIZx I1zEV7hLuGAzYZaqfvSHBL037SK4TeeXVkbhzHjjcg/MPH2ZSEw0ngooaU/F4dfU0Dv3 EVRvAvRNDyUNP4+EJOW8iXnM04T45je1lyx9RCITy0seM/iEq2yl5+zYdOV8Mlp85Jcv CiTkfPQSYdMPE1BltaaV+2B2eUfeG7sry5Pqk2URF2im2bAzw/Pp3VWDMYJq9sw3ezsH A64Q== 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=KBRk2f+1EQ0QzQMLpZj+en4CMV9rwE2n8DSDONNWf8o=; fh=vJYYmfnpR2y3ZiklUV0bDsALbbMntFRWY288CzSGjF8=; b=OfEbmsL2Ql8fs14GJr0Ral9n44CLVuMxI4RV7rFtv474g8ozxVGEmtxG901OJjBKoE IVfN6EP5s7iuLslFADUDw0r0YJXyJGNXuTn0ImffEUGxOILIn6HnnLij14+KNYWP5Eev Rv3HK8somMHwZsIBEXsDOhY+2akfMuuBra1ZcZeYP7Rvdck6T0vHlMSKyNLTHtYXvEUg wfN+jjxuN9b6NyckWCzN/HDhyNufYurtJUkmChj5YDZHesfHayyImoiGoLXXj6Z8ORmk MbS7h97bM34UeEBBy1nyefyNU0WBifsXVMKhOjqwcxoRJeQMaS3FhrJZgDno50FaZ729 VQvg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=5NHiFOW3; 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-175776-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175776-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f29a967si36530326d6.274.2024.05.10.05.27.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:27:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175776-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=5NHiFOW3; 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-175776-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175776-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3C6A61C20FB9 for ; Fri, 10 May 2024 12:27:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B470170833; Fri, 10 May 2024 12:27:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="5NHiFOW3" Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) (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 D39DD4DA1F for ; Fri, 10 May 2024 12:27:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715344042; cv=none; b=XlgLWxA8kKh/5VMoujI3+hdw/peT0lhU1GhJ3VBY/SD1YNvt7p4ZLXLr74TSU94ZyDIy9KeqwiBHhLUiVTSy58NCsKF6I5BQKolkF6TYlWtgOa5qRTgL429XZXhSn4G8cb2P+kCq/CwzbYR5vEyKZCbhyfNgPIV/khWYTsQQHJQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715344042; c=relaxed/simple; bh=YI/X1yQpHazLlMPIDEcyq57BX5ZwTRyw+vNUlPVa8tI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=erN6ZqVTT67LYM4PBceBO4NiMLBDdYE8dJQT9b1LlyrykVMzHBEiX0l0lG6x/3niw7iomifBAniBvHjGikFd/d3pgFM/ZgWBbIl6TOIfkARYmmZC0vunN7ZXsqEveOKTz0OwSeuk9XWewMZRGQxLDtJXxy18KrcFAn0BpZQBcPU= 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=5NHiFOW3; arc=none smtp.client-ip=209.85.208.177 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-lj1-f177.google.com with SMTP id 38308e7fff4ca-2db13ca0363so29541691fa.3 for ; Fri, 10 May 2024 05:27:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1715344039; x=1715948839; 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=KBRk2f+1EQ0QzQMLpZj+en4CMV9rwE2n8DSDONNWf8o=; b=5NHiFOW3ehqwJ6pxOuE5PgEiLXoTWoG9cFBLXYuJI0I3oCGVARBL5QfvHYTJ7iRzCn xNnRcSq+Kb7LTC4Ob7ZtcRKrS7Umxfwc0SoAur/zdSdjfaFmCgjuXnHO5q1PAkabSID9 zWtUXDBVPzcgGSlcFZiUOk9fAWZM1TGwoGEzYegb+SehRDMOj2fNt+153Nq/dxwp898S 6G25wXE1pi/4OlTmhUeu5HYA4Btnss9dwm+SZQILflfzCoUcPYISKWm2xWVex3xivrOO D/CiY1qplPR1O9ANiwITBdS0M1P8hlwg4vul+hbLTZ1oHrLtl8mK6m6P0IlOGkhapyVg l8CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715344039; x=1715948839; 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=KBRk2f+1EQ0QzQMLpZj+en4CMV9rwE2n8DSDONNWf8o=; b=Wv+JLzxZ0+Hx1XqLdY93Hlz/wtzxMD3QHmoRkXFzmOco4dLexpsY5o8hOFp+XBiu8d uI4zJAWu/bJB+M31xXReUmCHTj+AwufKINnTaK2RlkaA7bLfwdpeU69/RbEzdm14NHWJ PFZ5czkf7ITTc4CS7R9JxP9S2usVQQK++ENtlJmtZrqgF0ZTUmUyw0Pc9srbHaAlFDs1 4DZRWBbxHlfAHs7rfBZwcESvpyQt6P0pSRAcewVreI+bTRM5VP8KSMLmv07XW5QD6dfj iaJbSLOJzvDbh6a0IgysFnLgOykhji862/eg6f9bppTDarLm8H6OSWVc7sBoiByAm2cX iHtw== X-Forwarded-Encrypted: i=1; AJvYcCW8/8Iy/93UZ89HAs8ne4+hImD7pXqMPWVU8tctDw7X+TpfPcG0wSD56vr8ku/TrXJieCD+mfMmtlg47YCvoXO9GTsfdPX5uzHnjuph X-Gm-Message-State: AOJu0YxCyEEV7EwhfbbLd2m3a5n/yIIcSAhyXxeZiYKcbpyAccoU37Cz +eleEHug0N84YWxKCaiuhwC4Y/XxSsKE1kYiK+xseFasarhhvKiUph52csXF6a0= X-Received: by 2002:a2e:9e97:0:b0:2de:75de:5b0b with SMTP id 38308e7fff4ca-2e51fd45535mr19216561fa.18.1715344038892; Fri, 10 May 2024 05:27:18 -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.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:27:18 -0700 (PDT) From: Luca Weiss Date: Fri, 10 May 2024 14:27:08 +0200 Subject: [PATCH 1/2] arm64: dts: qcom: sc7280: Add APR nodes for sound 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-1-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 different services found on APR on some devices with SC7280 SoC. Additionally add an empty sound node in the root node as is seen on other SoC dtsi files so device dt's can easily use that. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 73 ++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi index fc9ec367e3a5..659212bb38c1 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -3762,6 +3763,75 @@ IPCC_MPROC_SIGNAL_GLINK_QMP label = "lpass"; qcom,remote-pid = <2>; + apr { + compatible = "qcom,apr-v2"; + qcom,glink-channels = "apr_audio_svc"; + qcom,domain = ; + #address-cells = <1>; + #size-cells = <0>; + + service@3 { + reg = ; + compatible = "qcom,q6core"; + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; + }; + + q6afe: service@4 { + compatible = "qcom,q6afe"; + reg = ; + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; + + q6afedai: dais { + compatible = "qcom,q6afe-dais"; + #address-cells = <1>; + #size-cells = <0>; + #sound-dai-cells = <1>; + }; + + q6afecc: clock-controller { + compatible = "qcom,q6afe-clocks"; + #clock-cells = <2>; + }; + }; + + q6asm: service@7 { + compatible = "qcom,q6asm"; + reg = ; + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; + + q6asmdai: dais { + compatible = "qcom,q6asm-dais"; + #address-cells = <1>; + #size-cells = <0>; + #sound-dai-cells = <1>; + iommus = <&apps_smmu 0x1801 0x0>; + + dai@0 { + reg = <0>; + }; + + dai@1 { + reg = <1>; + }; + + dai@2 { + reg = <2>; + }; + }; + }; + + q6adm: service@8 { + compatible = "qcom,q6adm"; + reg = ; + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; + + q6routing: routing { + compatible = "qcom,q6adm-routing"; + #sound-dai-cells = <0>; + }; + }; + }; + fastrpc { compatible = "qcom,fastrpc"; qcom,glink-channels = "fastrpcglink-apps-dsp"; @@ -5991,6 +6061,9 @@ cpufreq_hw: cpufreq@18591000 { }; }; + sound: sound { + }; + thermal_zones: thermal-zones { cpu0-thermal { polling-delay-passive = <250>; -- 2.45.0