* [PATCH v3 1/5] soc: qcom: pd-mapper: Add support for Nord
2026-11-11 7:31 [PATCH v3 0/5] arm64: dts: qcom: Add audio support for Nord platform Shawn Guo
@ 2026-11-11 7:31 ` Shawn Guo
2026-11-27 12:28 ` Konrad Dybcio
2026-11-11 7:31 ` [PATCH v3 2/5] arm64: dts: qcom: nord: Add gpr node Shawn Guo
` (3 subsequent siblings)
4 siblings, 1 reply; 8+ messages in thread
From: Shawn Guo @ 2026-11-11 7:31 UTC (permalink / raw)
To: Bjorn Andersson
Cc: Konrad Dybcio, Abel Vesa, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Mohammad Rafi Shaik, Zhangfei Gao,
Bartosz Golaszewski, devicetree, linux-arm-msm, linux-kernel,
Abel Vesa, Bartosz Golaszewski, Shawn Guo
From: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
Add support for the Qualcomm Nord SoC to the protection domain mapper.
Besides the audio and root domains on ADSP, Nord has two more ADSPs,
each with its own root domain: msm/adsp1/root_pd (instance ID 123) and
msm/adsp2/root_pd (instance ID 124). Nord also has four CDSPs, but they
all share the same instance ID and root domain, so a single
msm/cdsp/root_pd entry covers them.
Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Shawn Guo <shengchao.guo@oss.qualcomm.com>
---
drivers/soc/qcom/qcom_pd_mapper.c | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/drivers/soc/qcom/qcom_pd_mapper.c b/drivers/soc/qcom/qcom_pd_mapper.c
index e38647f3d7fd..0e2b7f4607da 100644
--- a/drivers/soc/qcom/qcom_pd_mapper.c
+++ b/drivers/soc/qcom/qcom_pd_mapper.c
@@ -277,6 +277,18 @@ static const struct qcom_pdm_domain_data adsp_root_pd = {
.services = { NULL },
};
+static const struct qcom_pdm_domain_data adsp1_root_pd = {
+ .domain = "msm/adsp1/root_pd",
+ .instance_id = 123,
+ .services = { NULL },
+};
+
+static const struct qcom_pdm_domain_data adsp2_root_pd = {
+ .domain = "msm/adsp2/root_pd",
+ .instance_id = 124,
+ .services = { NULL },
+};
+
static const struct qcom_pdm_domain_data adsp_root_pd_pdr = {
.domain = "msm/adsp/root_pd",
.instance_id = 74,
@@ -414,6 +426,15 @@ static const struct qcom_pdm_domain_data *msm8998_domains[] = {
NULL,
};
+static const struct qcom_pdm_domain_data *nord_domains[] = {
+ &adsp_audio_pd,
+ &adsp_root_pd,
+ &adsp1_root_pd,
+ &adsp2_root_pd,
+ &cdsp_root_pd,
+ NULL,
+};
+
static const struct qcom_pdm_domain_data *qcm2290_domains[] = {
&adsp_audio_pd,
&adsp_root_pd,
@@ -641,6 +662,7 @@ static const struct of_device_id qcom_pdm_domains[] __maybe_unused = {
{ .compatible = "qcom,msm8974", .data = NULL, },
{ .compatible = "qcom,msm8996", .data = msm8996_domains, },
{ .compatible = "qcom,msm8998", .data = msm8998_domains, },
+ { .compatible = "qcom,nord", .data = nord_domains, },
{ .compatible = "qcom,qcm2290", .data = qcm2290_domains, },
{ .compatible = "qcom,qcm6490", .data = sc7280_domains, },
{ .compatible = "qcom,qcs404", .data = qcs404_domains, },
--
2.43.0
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH v3 1/5] soc: qcom: pd-mapper: Add support for Nord
2026-11-11 7:31 ` [PATCH v3 1/5] soc: qcom: pd-mapper: Add support for Nord Shawn Guo
@ 2026-11-27 12:28 ` Konrad Dybcio
0 siblings, 0 replies; 8+ messages in thread
From: Konrad Dybcio @ 2026-11-27 12:28 UTC (permalink / raw)
To: Shawn Guo, Bjorn Andersson
Cc: Konrad Dybcio, Abel Vesa, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Mohammad Rafi Shaik, Zhangfei Gao,
Bartosz Golaszewski, devicetree, linux-arm-msm, linux-kernel,
Abel Vesa, Bartosz Golaszewski
On 11/11/26 8:31 AM, Shawn Guo wrote:
> From: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
>
> Add support for the Qualcomm Nord SoC to the protection domain mapper.
>
> Besides the audio and root domains on ADSP, Nord has two more ADSPs,
> each with its own root domain: msm/adsp1/root_pd (instance ID 123) and
> msm/adsp2/root_pd (instance ID 124). Nord also has four CDSPs, but they
> all share the same instance ID and root domain, so a single
> msm/cdsp/root_pd entry covers them.
>
> Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
> Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
> Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
> Signed-off-by: Shawn Guo <shengchao.guo@oss.qualcomm.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v3 2/5] arm64: dts: qcom: nord: Add gpr node
2026-11-11 7:31 [PATCH v3 0/5] arm64: dts: qcom: Add audio support for Nord platform Shawn Guo
2026-11-11 7:31 ` [PATCH v3 1/5] soc: qcom: pd-mapper: Add support for Nord Shawn Guo
@ 2026-11-11 7:31 ` Shawn Guo
2026-11-11 7:31 ` [PATCH v3 3/5] arm64: dts: qcom: nord-embedded: Raise i2c18 pad drive strength Shawn Guo
` (2 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Shawn Guo @ 2026-11-11 7:31 UTC (permalink / raw)
To: Bjorn Andersson
Cc: Konrad Dybcio, Abel Vesa, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Mohammad Rafi Shaik, Zhangfei Gao,
Bartosz Golaszewski, devicetree, linux-arm-msm, linux-kernel,
Abel Vesa, Bartosz Golaszewski, Shawn Guo
From: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
Add the GPR (Generic Packet Router) node to the Nord SoC DTSI along
with the APM (Audio Process Manager) and PRM (Proxy Resource Manager)
audio services. These nodes are required by the Q6APM audio stack to
route audio packets between the application processor and the DSP.
Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Shawn Guo <shengchao.guo@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/nord.dtsi | 40 ++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/nord.dtsi b/arch/arm64/boot/dts/qcom/nord.dtsi
index 617e5312f4c4..c17a8a83e371 100644
--- a/arch/arm64/boot/dts/qcom/nord.dtsi
+++ b/arch/arm64/boot/dts/qcom/nord.dtsi
@@ -6,6 +6,7 @@
#include <dt-bindings/firmware/qcom,scm.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/mailbox/qcom-ipcc.h>
+#include <dt-bindings/soc/qcom,gpr.h>
#include "nord-ipcc.h"
@@ -1799,6 +1800,45 @@ compute-cb@6 {
dma-coherent;
};
};
+
+ gpr {
+ compatible = "qcom,gpr";
+ qcom,glink-channels = "adsp_apps";
+ qcom,domain = <GPR_DOMAIN_ID_ADSP>;
+ qcom,intents = <512 20>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ q6apm: service@1 {
+ compatible = "qcom,q6apm";
+ reg = <GPR_APM_MODULE_IID>;
+ #sound-dai-cells = <0>;
+ qcom,protection-domain = "avs/audio",
+ "msm/adsp/audio_pd";
+
+ q6apmbedai: bedais {
+ compatible = "qcom,q6apm-lpass-dais";
+ #sound-dai-cells = <1>;
+ };
+
+ q6apmdai: dais {
+ compatible = "qcom,q6apm-dais";
+ iommus = <&apps_smmu_0 0x09e1 0x0400>;
+ };
+ };
+
+ q6prm: service@2 {
+ compatible = "qcom,q6prm";
+ reg = <GPR_PRM_MODULE_IID>;
+ qcom,protection-domain = "avs/audio",
+ "msm/adsp/audio_pd";
+
+ q6prmcc: clock-controller {
+ compatible = "qcom,q6prm-lpass-clocks";
+ #clock-cells = <2>;
+ };
+ };
+ };
};
};
--
2.43.0
^ permalink raw reply [flat|nested] 8+ messages in thread* [PATCH v3 3/5] arm64: dts: qcom: nord-embedded: Raise i2c18 pad drive strength
2026-11-11 7:31 [PATCH v3 0/5] arm64: dts: qcom: Add audio support for Nord platform Shawn Guo
2026-11-11 7:31 ` [PATCH v3 1/5] soc: qcom: pd-mapper: Add support for Nord Shawn Guo
2026-11-11 7:31 ` [PATCH v3 2/5] arm64: dts: qcom: nord: Add gpr node Shawn Guo
@ 2026-11-11 7:31 ` Shawn Guo
2026-11-11 14:38 ` Abel Vesa
2026-11-11 7:31 ` [PATCH v3 4/5] arm64: dts: qcom: nord-ride-embedded: Add sound support Shawn Guo
2026-11-11 7:31 ` [PATCH v3 5/5] arm64: dts: qcom: nord-rrd: " Shawn Guo
4 siblings, 1 reply; 8+ messages in thread
From: Shawn Guo @ 2026-11-11 7:31 UTC (permalink / raw)
To: Bjorn Andersson
Cc: Konrad Dybcio, Abel Vesa, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Mohammad Rafi Shaik, Zhangfei Gao,
Bartosz Golaszewski, devicetree, linux-arm-msm, linux-kernel,
Shawn Guo, Bartosz Golaszewski
The i2c18 pins (gpio154/155) are configured for 2 mA. That is not
enough on nord-ride-embedded, where i2c18 is the audio control bus
carrying the TCA6408 expander, ADAU1979 ADC and PCM1681 DAC behind
TXS0102 level shifters. Transfers intermittently fail with arbitration
loss and unexpected start/stop conditions:
geni_i2c 890000.i2c: Bus arbitration lost, clock line undriveable
geni_i2c 890000.i2c: Bus proto err, noisy/unexpected start/stop
adau1977 0-0031: probe with driver adau1977 failed with error -11
reg-fixed-voltage regulator-5p0-dac: setup of GPIO (default) failed: -11
The failure became much more frequent with commit 8cb5c17be3a2
("i2c: qcom-geni: Restore the source-clock selection policy"), which
moves the i2c18 serial engine clock from 32 MHz to 19.2 MHz. That
commit only changes how often the marginal signalling shows up:
reverting it, or lowering the bus to 100 kHz, still leaves occasional
failures in a codec unbind/bind loop. With 4 mA the loop passes
reliably at either source clock rate.
nord-rrd uses the same level shifters and has not shown the failure
at 2 mA, but that appears to be margin rather than a guarantee. Since
this audio I2C arrangement is the reference design that customer
boards will likely follow, raise the default in the shared dtsi
instead of overriding it per board.
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Shawn Guo <shengchao.guo@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/nord-embedded.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/qcom/nord-embedded.dtsi b/arch/arm64/boot/dts/qcom/nord-embedded.dtsi
index 5a1520e436c6..003c5ba2771c 100644
--- a/arch/arm64/boot/dts/qcom/nord-embedded.dtsi
+++ b/arch/arm64/boot/dts/qcom/nord-embedded.dtsi
@@ -1255,7 +1255,7 @@ qup_i2c17_default: qup-i2c17-default-state {
qup_i2c18_default: qup-i2c18-default-state {
pins = "gpio154", "gpio155";
function = "qup2_se4";
- drive-strength = <2>;
+ drive-strength = <4>;
bias-pull-up;
};
--
2.43.0
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH v3 3/5] arm64: dts: qcom: nord-embedded: Raise i2c18 pad drive strength
2026-11-11 7:31 ` [PATCH v3 3/5] arm64: dts: qcom: nord-embedded: Raise i2c18 pad drive strength Shawn Guo
@ 2026-11-11 14:38 ` Abel Vesa
0 siblings, 0 replies; 8+ messages in thread
From: Abel Vesa @ 2026-11-11 14:38 UTC (permalink / raw)
To: Shawn Guo
Cc: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Mohammad Rafi Shaik,
Zhangfei Gao, Bartosz Golaszewski, devicetree, linux-arm-msm,
linux-kernel, Bartosz Golaszewski
On 26-11-11 15:31:19, Shawn Guo wrote:
> The i2c18 pins (gpio154/155) are configured for 2 mA. That is not
> enough on nord-ride-embedded, where i2c18 is the audio control bus
> carrying the TCA6408 expander, ADAU1979 ADC and PCM1681 DAC behind
> TXS0102 level shifters. Transfers intermittently fail with arbitration
> loss and unexpected start/stop conditions:
>
> geni_i2c 890000.i2c: Bus arbitration lost, clock line undriveable
> geni_i2c 890000.i2c: Bus proto err, noisy/unexpected start/stop
> adau1977 0-0031: probe with driver adau1977 failed with error -11
> reg-fixed-voltage regulator-5p0-dac: setup of GPIO (default) failed: -11
>
> The failure became much more frequent with commit 8cb5c17be3a2
> ("i2c: qcom-geni: Restore the source-clock selection policy"), which
> moves the i2c18 serial engine clock from 32 MHz to 19.2 MHz. That
> commit only changes how often the marginal signalling shows up:
> reverting it, or lowering the bus to 100 kHz, still leaves occasional
> failures in a codec unbind/bind loop. With 4 mA the loop passes
> reliably at either source clock rate.
>
> nord-rrd uses the same level shifters and has not shown the failure
> at 2 mA, but that appears to be margin rather than a guarantee. Since
> this audio I2C arrangement is the reference design that customer
> boards will likely follow, raise the default in the shared dtsi
> instead of overriding it per board.
>
> Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
> Signed-off-by: Shawn Guo <shengchao.guo@oss.qualcomm.com>
Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v3 4/5] arm64: dts: qcom: nord-ride-embedded: Add sound support
2026-11-11 7:31 [PATCH v3 0/5] arm64: dts: qcom: Add audio support for Nord platform Shawn Guo
` (2 preceding siblings ...)
2026-11-11 7:31 ` [PATCH v3 3/5] arm64: dts: qcom: nord-embedded: Raise i2c18 pad drive strength Shawn Guo
@ 2026-11-11 7:31 ` Shawn Guo
2026-11-11 7:31 ` [PATCH v3 5/5] arm64: dts: qcom: nord-rrd: " Shawn Guo
4 siblings, 0 replies; 8+ messages in thread
From: Shawn Guo @ 2026-11-11 7:31 UTC (permalink / raw)
To: Bjorn Andersson
Cc: Konrad Dybcio, Abel Vesa, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Mohammad Rafi Shaik, Zhangfei Gao,
Bartosz Golaszewski, devicetree, linux-arm-msm, linux-kernel,
Konrad Dybcio, Shawn Guo
From: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
Enable audio on the nord-ride-embedded board. Add a soundcard node using
the qcom,nord-sndcard compatible.
Add PCM1681/ADAU1979 codec nodes on I2C18, with the PCM1681 system
clock supplied via MCLK0. The DAC control lines come off a TCA6408 I/O
expander on the same bus.
Describe DAC_ENABLE as the enable of two regulator-fixed supplies
(3.3V and 5V load switches) feeding the PCM1681, and the three MAX9892
click-and-pop suppressors as one simple-audio-amplifier on
CLICK_POP_MUTE_N, routed after VOUT1..6, so DAPM controls the mute.
Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Shawn Guo <shengchao.guo@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/nord-embedded.dtsi | 30 ++++
.../boot/dts/qcom/nord-ride-embedded.dts | 166 ++++++++++++++++++
2 files changed, 196 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/nord-embedded.dtsi b/arch/arm64/boot/dts/qcom/nord-embedded.dtsi
index 003c5ba2771c..18818575b3c8 100644
--- a/arch/arm64/boot/dts/qcom/nord-embedded.dtsi
+++ b/arch/arm64/boot/dts/qcom/nord-embedded.dtsi
@@ -1140,6 +1140,36 @@ nsp_data_noc_3: interconnect@1fe00000 {
};
&tlmm {
+ aud_intfc8_mi2s_active: aud-intfc8-mi2s-active-state {
+ data-pins {
+ pins = "gpio75", "gpio76";
+ function = "aud_intfc8_data";
+ drive-strength = <8>;
+ bias-disable;
+ };
+
+ sclk-pins {
+ pins = "gpio73";
+ function = "aud_intfc8_clk";
+ drive-strength = <8>;
+ bias-disable;
+ };
+
+ ws-pins {
+ pins = "gpio74";
+ function = "aud_intfc8_ws";
+ drive-strength = <8>;
+ bias-disable;
+ };
+ };
+
+ aud_mclk0_mira_active: aud-mclk0-mira-active-state {
+ pins = "gpio99";
+ function = "aud_mclk0_mira";
+ drive-strength = <8>;
+ bias-disable;
+ };
+
qup_i2c0_default: qup-i2c0-default-state {
pins = "gpio111", "gpio112";
function = "qup0_se0";
diff --git a/arch/arm64/boot/dts/qcom/nord-ride-embedded.dts b/arch/arm64/boot/dts/qcom/nord-ride-embedded.dts
index 49635695f832..f092c2a85fbd 100644
--- a/arch/arm64/boot/dts/qcom/nord-ride-embedded.dts
+++ b/arch/arm64/boot/dts/qcom/nord-ride-embedded.dts
@@ -7,6 +7,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
+#include <dt-bindings/sound/qcom,q6afe.h>
#include "nord-embedded.dtsi"
#include "pmau0102-nord.dtsi"
@@ -53,6 +54,107 @@ bi_tcxo_ao_div2: bi-tcxo-ao-div2-clk {
clock-div = <2>;
};
};
+
+ /*
+ * MAX9892 click-and-pop suppressors on the PCM1681 line outputs. All
+ * three parts are muted by a single CLICK_POP_MUTE_N line, so describe
+ * them as one amplifier.
+ */
+ lineout_amp: amplifier {
+ compatible = "simple-audio-amplifier";
+ sound-name-prefix = "LineOut";
+ enable-gpios = <&expander0 5 GPIO_ACTIVE_HIGH>;
+ VCC-supply = <&vreg_per_3p3>;
+ };
+
+ sound {
+ compatible = "qcom,nord-sndcard";
+ model = "NORD-RIDE";
+
+ aux-devs = <&lineout_amp>;
+ audio-routing = "LineOut INL", "VOUT1",
+ "LineOut INR", "VOUT2",
+ "LineOut INL", "VOUT3",
+ "LineOut INR", "VOUT4",
+ "LineOut INL", "VOUT5",
+ "LineOut INR", "VOUT6";
+
+ pinctrl-0 = <&aud_intfc8_mi2s_active>;
+ pinctrl-names = "default";
+
+ aud-intfc8-tdm-playback-dai-link {
+ link-name = "PCM1681 Playback";
+
+ codec {
+ dai-tdm-slot-num = <8>;
+ dai-tdm-slot-width = <32>;
+ dai-tdm-slot-rx-mask = <1 1 1 1 1 1>;
+ sound-dai = <&pcm1681>;
+ };
+
+ cpu {
+ dai-tdm-slot-num = <8>;
+ dai-tdm-slot-width = <32>;
+ dai-tdm-slot-tx-mask = <1 1 1 1 1 1>;
+ sound-dai = <&q6apmbedai AIF_TDM_RX_8>;
+ };
+
+ platform {
+ sound-dai = <&q6apm>;
+ };
+ };
+
+ aud-intfc8-tdm-capture-dai-link {
+ link-name = "ADAU1979 Capture";
+
+ codec {
+ dai-tdm-slot-num = <8>;
+ dai-tdm-slot-width = <32>;
+ dai-tdm-slot-rx-mask = <1 1 1 1>;
+ sound-dai = <&adau1979>;
+ };
+
+ cpu {
+ dai-tdm-slot-num = <8>;
+ dai-tdm-slot-width = <32>;
+ dai-tdm-slot-rx-mask = <1 1 1 1>;
+ sound-dai = <&q6apmbedai AIF_TDM_TX_8>;
+ };
+
+ platform {
+ sound-dai = <&q6apm>;
+ };
+ };
+ };
+
+ /*
+ * DAC_ENABLE gates two load switches feeding the PCM1681, one for the
+ * analog and one for the digital supply.
+ */
+ vreg_3p3_dac: regulator-3p3-dac {
+ compatible = "regulator-fixed";
+ regulator-name = "vreg_3p3_dac";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ gpio = <&expander0 6 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ };
+
+ vreg_5p0_dac: regulator-5p0-dac {
+ compatible = "regulator-fixed";
+ regulator-name = "vreg_5p0_dac";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ gpio = <&expander0 6 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ };
+
+ vreg_per_3p3: regulator-per-3p3 {
+ compatible = "regulator-fixed";
+ regulator-name = "vreg_per_3p3";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ };
};
&apps_rsc {
@@ -366,6 +468,70 @@ vreg_l3l_1p8: ldo3 {
};
};
+&i2c18 {
+ clock-frequency = <400000>;
+
+ status = "okay";
+
+ expander0: gpio@20 {
+ compatible = "ti,tca6408";
+ reg = <0x20>;
+ #gpio-cells = <2>;
+ gpio-controller;
+ #interrupt-cells = <2>;
+ interrupt-controller;
+ interrupts-extended = <&pmau0102_l_gpios 6 IRQ_TYPE_LEVEL_LOW>;
+ reset-gpios = <&pmau0102_l_gpios 5 GPIO_ACTIVE_LOW>;
+ vcc-supply = <&vreg_per_3p3>;
+ };
+
+ /* ADI ADAU1979 - 4-channel 24-bit ADC */
+ adau1979: adau1979@31 {
+ compatible = "adi,adau1979";
+ reg = <0x31>;
+
+ AVDD-supply = <&vreg_per_3p3>;
+ #sound-dai-cells = <0>;
+ };
+
+ /* PCM1681 DAC */
+ pcm1681: pcm1681@4c {
+ compatible = "ti,pcm1681";
+ reg = <0x4c>;
+
+ pinctrl-0 = <&aud_mclk0_mira_active>;
+ pinctrl-names = "default";
+
+ clocks = <&q6prmcc LPASS_CLK_ID_MCLK_1 LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
+ clock-names = "sck";
+ assigned-clocks = <&q6prmcc LPASS_CLK_ID_MCLK_1 LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
+ assigned-clock-rates = <12288000>;
+
+ VCC1-supply = <&vreg_5p0_dac>;
+ VCC2-supply = <&vreg_5p0_dac>;
+ VDD-supply = <&vreg_3p3_dac>;
+
+ #sound-dai-cells = <0>;
+ };
+};
+
+&q6apmbedai {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ dai@195 {
+ reg = <AIF_TDM_RX_8>;
+ clocks = <&q6prmcc LPASS_CLK_ID_QAIF_IF8_IBIT LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
+ clock-names = "bclk";
+ };
+
+ dai@196 {
+ reg = <AIF_TDM_TX_8>;
+ clocks = <&q6prmcc LPASS_CLK_ID_QAIF_IF8_IBIT LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
+ clock-names = "bclk";
+ };
+};
+
&qupv3_0 {
firmware-name = "qcom/nord/qupv3fw.elf";
--
2.43.0
^ permalink raw reply [flat|nested] 8+ messages in thread* [PATCH v3 5/5] arm64: dts: qcom: nord-rrd: Add sound support
2026-11-11 7:31 [PATCH v3 0/5] arm64: dts: qcom: Add audio support for Nord platform Shawn Guo
` (3 preceding siblings ...)
2026-11-11 7:31 ` [PATCH v3 4/5] arm64: dts: qcom: nord-ride-embedded: Add sound support Shawn Guo
@ 2026-11-11 7:31 ` Shawn Guo
4 siblings, 0 replies; 8+ messages in thread
From: Shawn Guo @ 2026-11-11 7:31 UTC (permalink / raw)
To: Bjorn Andersson
Cc: Konrad Dybcio, Abel Vesa, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Mohammad Rafi Shaik, Zhangfei Gao,
Bartosz Golaszewski, devicetree, linux-arm-msm, linux-kernel,
Shawn Guo, Konrad Dybcio
Enable audio on the nord-rrd board. Add a soundcard node using
the qcom,nord-sndcard compatible.
Add PCM1681/ADAU1979 codec nodes on I2C18, with the PCM1681 system
clock supplied via MCLK0.
Describe DAC_ENABLE as the enable of two regulator-fixed supplies
(3.3V and 5V load switches) feeding the PCM1681, and the two MAX9892
click-and-pop suppressors as one simple-audio-amplifier on
CLICK_POP_MUTE_N, routed after VOUT1..4, so DAPM controls the mute.
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Shawn Guo <shengchao.guo@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/nord-rrd.dts | 153 ++++++++++++++++++++++++++
1 file changed, 153 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/nord-rrd.dts b/arch/arm64/boot/dts/qcom/nord-rrd.dts
index 47978df0af92..b0abee05a8ba 100644
--- a/arch/arm64/boot/dts/qcom/nord-rrd.dts
+++ b/arch/arm64/boot/dts/qcom/nord-rrd.dts
@@ -7,6 +7,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
+#include <dt-bindings/sound/qcom,q6afe.h>
#include "nord-embedded.dtsi"
#include "pmau0102-nord.dtsi"
@@ -53,6 +54,106 @@ bi_tcxo_ao_div2: bi-tcxo-ao-div2-clk {
clock-div = <2>;
};
};
+
+ /*
+ * MAX9892 click-and-pop suppressors on the PCM1681 line outputs. Both
+ * parts are muted by a single CLICK_POP_MUTE_N line, so describe them
+ * as one amplifier.
+ */
+ lineout_amp: amplifier {
+ compatible = "simple-audio-amplifier";
+ sound-name-prefix = "LineOut";
+ enable-gpios = <&tlmm 42 GPIO_ACTIVE_HIGH>;
+ VCC-supply = <&vreg_per_3p3>;
+ };
+
+ sound {
+ compatible = "qcom,nord-sndcard";
+ model = "NORD-RRD";
+
+ aux-devs = <&lineout_amp>;
+ audio-routing = "LineOut INL", "VOUT1",
+ "LineOut INR", "VOUT2",
+ "LineOut INL", "VOUT3",
+ "LineOut INR", "VOUT4";
+
+ pinctrl-0 = <&aud_intfc8_mi2s_active>;
+ pinctrl-names = "default";
+
+ aud-intfc8-tdm-playback-dai-link {
+ link-name = "PCM1681 Playback";
+
+ codec {
+ dai-tdm-slot-num = <8>;
+ dai-tdm-slot-width = <32>;
+ dai-tdm-slot-rx-mask = <1 1 1 1>;
+ sound-dai = <&pcm1681>;
+ };
+
+ cpu {
+ dai-tdm-slot-num = <8>;
+ dai-tdm-slot-width = <32>;
+ dai-tdm-slot-tx-mask = <1 1 1 1>;
+ sound-dai = <&q6apmbedai AIF_TDM_RX_8>;
+ };
+
+ platform {
+ sound-dai = <&q6apm>;
+ };
+ };
+
+ aud-intfc8-tdm-capture-dai-link {
+ link-name = "ADAU1979 Capture";
+
+ codec {
+ dai-tdm-slot-num = <8>;
+ dai-tdm-slot-width = <32>;
+ dai-tdm-slot-rx-mask = <1 1 1 1>;
+ sound-dai = <&adau1979>;
+ };
+
+ cpu {
+ dai-tdm-slot-num = <8>;
+ dai-tdm-slot-width = <32>;
+ dai-tdm-slot-rx-mask = <1 1 1 1>;
+ sound-dai = <&q6apmbedai AIF_TDM_TX_8>;
+ };
+
+ platform {
+ sound-dai = <&q6apm>;
+ };
+ };
+ };
+
+ /*
+ * DAC_ENABLE gates two load switches feeding the PCM1681, one for the
+ * analog and one for the digital supply.
+ */
+ vreg_3p3_dac: regulator-3p3-dac {
+ compatible = "regulator-fixed";
+ regulator-name = "vreg_3p3_dac";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ gpio = <&tlmm 41 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ };
+
+ vreg_5p0_dac: regulator-5p0-dac {
+ compatible = "regulator-fixed";
+ regulator-name = "vreg_5p0_dac";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ gpio = <&tlmm 41 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ };
+
+ vreg_per_3p3: regulator-per-3p3 {
+ compatible = "regulator-fixed";
+ regulator-name = "vreg_per_3p3";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-always-on;
+ };
};
&apps_rsc {
@@ -377,6 +478,58 @@ rtc@32 {
};
};
+&i2c18 {
+ clock-frequency = <400000>;
+
+ status = "okay";
+
+ /* ADI ADAU1979 - 4-channel 24-bit ADC */
+ adau1979: adau1979@31 {
+ compatible = "adi,adau1979";
+ reg = <0x31>;
+
+ AVDD-supply = <&vreg_per_3p3>;
+ #sound-dai-cells = <0>;
+ };
+
+ /* PCM1681 DAC */
+ pcm1681: pcm1681@4c {
+ compatible = "ti,pcm1681";
+ reg = <0x4c>;
+
+ pinctrl-0 = <&aud_mclk0_mira_active>;
+ pinctrl-names = "default";
+
+ clocks = <&q6prmcc LPASS_CLK_ID_MCLK_1 LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
+ clock-names = "sck";
+ assigned-clocks = <&q6prmcc LPASS_CLK_ID_MCLK_1 LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
+ assigned-clock-rates = <12288000>;
+
+ VCC1-supply = <&vreg_5p0_dac>;
+ VCC2-supply = <&vreg_5p0_dac>;
+ VDD-supply = <&vreg_3p3_dac>;
+
+ #sound-dai-cells = <0>;
+ };
+};
+
+&q6apmbedai {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ dai@195 {
+ reg = <AIF_TDM_RX_8>;
+ clocks = <&q6prmcc LPASS_CLK_ID_QAIF_IF8_IBIT LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
+ clock-names = "bclk";
+ };
+
+ dai@196 {
+ reg = <AIF_TDM_TX_8>;
+ clocks = <&q6prmcc LPASS_CLK_ID_QAIF_IF8_IBIT LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
+ clock-names = "bclk";
+ };
+};
+
&qupv3_0 {
firmware-name = "qcom/nord/qupv3fw.elf";
--
2.43.0
^ permalink raw reply [flat|nested] 8+ messages in thread