From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0A513416113 for ; Mon, 6 Jul 2026 13:20:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783344044; cv=none; b=Lk08nHZe+U/o7preLWK1QGntSw9dQoKk+hx5/Y0FWsYCiyTsIjygY43/p+XNB+8EleAjKPT/kpZPXMldH+mhSGU7grpbkde1AbW0o2zS9WsFOIpAz8b+hGA7uth+xxWQlpRyDevVZl2a9lyjOe11CnJ0nehn3ZODesFfiFNlrKM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783344044; c=relaxed/simple; bh=RuoW/FXZwjJXKxjWtApQABvJWpziWxB5IlaGCpbDBZQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=PZbwldmrshQSV6kgX1AtTbU3bSD+crHVy6oy6izGu9TFI0z2uRwf/kcQBleC6Koy5i8uK47XPdulZlfCvcUlO2/ah2YXiBVyCX6P1ht7quYzkxbzF5cLx8fd+bnWxeHR8k/UrxY+FKQ5Qbfgwxpb1oi73H3GSme0NekruPLBDWU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=fAAECANS; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=dQH4EPzC; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="fAAECANS"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="dQH4EPzC" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 666AxJX4316461 for ; Mon, 6 Jul 2026 13:20:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=R34M5+VU1Dp tfjZFm4KX5IKXsV6uN0Bc//jdRhc23W8=; b=fAAECANSXAw+UojNjil/HMfomuO bGnEaTiI/IzYZ46yKlRDMVo063u+/emfXLGbaGWsE7qfIQkpzoEl3YfBVlwUPhLQ xbTOKWXCLdca5K4rQuA/+LvcGbeWlHVXNWwvj+Fh1A8vZKVjJNYUsHA00txHPjWW AQIORcaRAz/QlxJyR8mnLc4qysCKmC0uYEXeTz2nZxWmQHevvjLOjhCYEcsKepb9 29TzveTi91M2YwkFgvR5NWcjnTQt/YIYhRhSHv3iPBEnidJEceashQhaBkQVCJpj whZp7TI12LZdcJq7OPMYCl0p/oDNUZq0j5fv/paIRvbYNC3aTAdCYz3Geig== Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f87q7he1x-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 06 Jul 2026 13:20:36 +0000 (GMT) Received: by mail-pl1-f198.google.com with SMTP id d9443c01a7336-2c6a20348ceso42326835ad.1 for ; Mon, 06 Jul 2026 06:20:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1783344036; x=1783948836; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=R34M5+VU1DptfjZFm4KX5IKXsV6uN0Bc//jdRhc23W8=; b=dQH4EPzCodbv2Haik3X7HihMkcTS4WqU+J7OMvqGcm0saT2/grAVItlMGYtp7Brinv qWoYLUm2Jv+PSRcA+Yu4979gR7z4RZukl3jZ/hGKsWzQdp6hVnmNNmvIhACRvnmaNRE/ 1VkaMl87XAjJaT3zkWOp+TCSbBhdAi4EeksfW4QXmJixIUqWh0HLFUIcGOyDdkKmEQ19 UTGgaLRpQV99MqVnkDgRtwOl1exHKyolVwH4dNv/THX9oWVfmx1gfDGCmtVQEqwPbSJl U+XUbLuZZOXtgPqYyYULNEnzQyz9ClnIzEOfV/MBWNzurcjT6qgjHVKeeqPXRfRoYtpm KlGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783344036; x=1783948836; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=R34M5+VU1DptfjZFm4KX5IKXsV6uN0Bc//jdRhc23W8=; b=INl+Ds690Cw168ckFw64nEWy+9TBa45IxKNB/hjEZFLqksMm2w+itonl8Utb1S8GL0 oly1GFv55fEmKwYpaWw/DZ6bSoX3f/yG50dTCV3kUg1fmcNLfkU36buHM/JzaO6UJAhM 6HOsKUyhs0lgUIrWnjdOEUAkiIz2rT9tfKy4ApCRGMhopqtHcHzVR8xfhqyzsriKfV5N ZnwRJEJ7QIkzJXRb9NEE/F5/azHJ5e8GPt/9dcXpJt0hMi8by04QoIadRd58FtFHLxQ5 SYCmIA9SckA0/KeOpsI5Hg/4/HchbdbUBrW8S64FbKP8aJqTgwdsR3FL1K9NH8Adbeom SIvQ== X-Forwarded-Encrypted: i=1; AHgh+RqeRJnq05Xl4321inPCJSJdOw9wD/OKWeMmAD6/Fc21PRd6j5l1M/HvBB86b0hk9+G/mKbC6h1IHzuSpJ4=@vger.kernel.org X-Gm-Message-State: AOJu0Ywi51ylNYG0wqfIvypWHzJ7WTE5a/8JKpqz4ePcaV3dYKEdh6pZ +BVSp0w8w+1eDiE/6EqNHJeRJ/mr5/9Xe9WqniYdz2Bc6HovdS+TADA4ESS8Vxraub5uGTi3lWs m6tOL12krMME3/quXdjSHVYEqN7jhOfMtknoF+5g10eZXJlqX/GrSdFfY2aLiIxk7LxQ= X-Gm-Gg: AfdE7cmqv6QLn2C8Z90hsBZ+S+7uo0WWVQIOLdwW4fyVH+nJ0GXajdI+cnrKo2NQ7e4 so3FWU5HU39eOiER16Be7WFU9tH0tKIRsTeWRnRBU+bAsqxXth1rWx5iS76QA8puc7HKob9qLsC qs7B1NnC6ryKdda1RcAGMmuy5u5PwK53FWWpx7dK5EaTCBSCUzIRJn5auN59Izizl3aSKFG23cq 23rTRhvdWd7dv8huOumm6w8VbiEP84Qx9bjWN31rcpB5C2z54VqPbVA7/qHTEen9a1lF85nRsp4 m6hJHqQzl08zoHAkIwJySFLGsX2pO81ftzfmYpxNo8P0ueAN0Q/5LNYQWO00XKzxtgzrNDvkJgB 330hiKwpoCsDcFMd9Z4hiHS3YjsvKwQymk2Ln/9Z85OhIovE= X-Received: by 2002:a17:902:d2cf:b0:2ca:b4b9:4586 with SMTP id d9443c01a7336-2ccbe615002mr4817975ad.19.1783344036017; Mon, 06 Jul 2026 06:20:36 -0700 (PDT) X-Received: by 2002:a17:902:d2cf:b0:2ca:b4b9:4586 with SMTP id d9443c01a7336-2ccbe615002mr4817395ad.19.1783344035455; Mon, 06 Jul 2026 06:20:35 -0700 (PDT) Received: from hu-mohs-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2cad6f260d2sm51173095ad.10.2026.07.06.06.20.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2026 06:20:35 -0700 (PDT) From: Mohammad Rafi Shaik To: Srinivas Kandagatla , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai Cc: Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla , Krzysztof Kozlowski , Neil Armstrong Subject: [PATCH v3 1/3] ASoC: dt-bindings: qcom,q6apm-lpass-dais: Document DAI subnode Date: Mon, 6 Jul 2026 18:50:07 +0530 Message-Id: <20260706132009.1496321-2-mohammad.rafi.shaik@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260706132009.1496321-1-mohammad.rafi.shaik@oss.qualcomm.com> References: <20260706132009.1496321-1-mohammad.rafi.shaik@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzA2MDEzNiBTYWx0ZWRfX7aIQpxppJWm2 zRuD7HxMf2UyeCcexPA9toZrndY7lLOjajjKEN9dl1K0G6QB7jXnpvZbMqPk/JrzKpuBWVyVjof SMnE87rV+UO4DJi1TCh0yPhth+A45y73rWdz8KGIV+2Zl7bvQ6n5l1zJaUF2zLP7dtRV9kj7IdO DLnV/kyAndgOcaBTPIktSIPJ0LX20E0cNwDVFGrhsDNo/Xd/CTe8WO4MM/rkQhQr5+uWru5kG2a 7rBW+zRnELJksArwj9k0AvNCXRDwPz1vnc9hLVarGJDC3vVfvNQb65THsZhtQlNZRIdGEg0O3SU /WX1arZy0NF29b0PUTEzY9aVPzJUDJT7e5Vd/gbTHYG3REtoVzmLjXUH3Y+Y5TigxWCfFkZw44N fxftX8TzDbBmbmZHhuSWsG92kpcnSEyU10A9J5p9pqr+qnGm+i9gw8oNrqOsFSgYKd3+p9M6M+M VHbAGadEVGlYP7lXDCQ== X-Proofpoint-ORIG-GUID: Lf38BpTB_DxHCkhJWXXOBVD4aThaT0M- X-Proofpoint-Spam-Info: AW1haW4tMjYwNzA2MDEzNiBTYWx0ZWRfXxD702QOA8XYU lQ6Foh0+V05rY1FMv+zpauiiINbMFi1+e7TMtkihAEiJE3Mj+PeKNWeRdSaHHvVk67VFzxCOmE4 6di10vkhIKk+gMEk/cav+WEEQidedGE= X-Proofpoint-GUID: Lf38BpTB_DxHCkhJWXXOBVD4aThaT0M- X-Authority-Analysis: v=2.4 cv=f9N4wuyM c=1 sm=1 tr=0 ts=6a4baba4 cx=c_pps a=MTSHoo12Qbhz2p7MsH1ifg==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=EUspDBNiAAAA:8 a=KKAkSRfTAAAA:8 a=NrbrONOL4QpDeGKfLFoA:9 a=GvdueXVYPmCkWapjIL-Q:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-06_01,2026-07-06_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 adultscore=0 impostorscore=0 bulkscore=0 suspectscore=0 clxscore=1015 spamscore=0 phishscore=0 priorityscore=1501 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607060136 Extend the qcom,q6apm-lpass-dais device tree binding to explicitly describe Digital Audio Interface (DAI) child nodes. Add #address-cells and #size-cells to allow representation of multiple DAI instances as child nodes, and define a dai@ pattern to document per-DAI properties such as the interface ID and associated clocks. On platforms such as Monaco and Lemans, third-party codecs are hardware wired to the SoC and do not always have an in-tree codec driver to manage their clocks. For these designs, clock line enablement must be driven from the platform side, and this series provides the necessary support for that. On QAIF-based platforms such as Shikra and Hawi, responsibility for voting I2S MCLK and BCLK has moved from the DSP to the kernel. This series introduces the required device tree binding support to represent and vote for these clocks from the kernel. Co-developed-by: Srinivas Kandagatla Signed-off-by: Srinivas Kandagatla Reviewed-by: Krzysztof Kozlowski Tested-by: Neil Armstrong Signed-off-by: Mohammad Rafi Shaik --- .../bindings/sound/qcom,q6apm-lpass-dais.yaml | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/qcom,q6apm-lpass-dais.yaml b/Documentation/devicetree/bindings/sound/qcom,q6apm-lpass-dais.yaml index 2fb95544db8b..42d05334bd39 100644 --- a/Documentation/devicetree/bindings/sound/qcom,q6apm-lpass-dais.yaml +++ b/Documentation/devicetree/bindings/sound/qcom,q6apm-lpass-dais.yaml @@ -21,6 +21,47 @@ properties: '#sound-dai-cells': const: 1 + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + +# Digital Audio Interfaces +patternProperties: + '^dai@[0-9a-f]+$': + type: object + description: + Q6DSP Digital Audio Interfaces. + + properties: + reg: + maxItems: 1 + description: + Digital Audio Interface ID + + clocks: + minItems: 1 + items: + - description: MI2S master clock + - description: MI2S bit clock + - description: MI2S external bit clock + + clock-names: + minItems: 1 + items: + - const: mclk + - const: bclk + - const: eclk + + dependencies: + clocks: [clock-names] + + required: + - reg + + additionalProperties: false + required: - compatible - '#sound-dai-cells' @@ -29,7 +70,22 @@ unevaluatedProperties: false examples: - | + #include + dais { compatible = "qcom,q6apm-lpass-dais"; #sound-dai-cells = <1>; + #address-cells = <1>; + #size-cells = <0>; + + dai@16 { + reg = ; + clocks = <&q6prmcc LPASS_CLK_ID_MCLK_1 + LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6prmcc LPASS_CLK_ID_PRI_MI2S_IBIT + LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6prmcc LPASS_CLK_ID_PRI_MI2S_EBIT + LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + clock-names = "mclk", "bclk", "eclk"; + }; }; -- 2.34.1