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 C45EF31355D for ; Mon, 8 Jun 2026 02:30:39 +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=1780885841; cv=none; b=n5TF/wsPbiS7AB2u8TytECtmIRyELtXnnsms5uFWPr0QJhAactgkd2L1mvOElPcZpdR+EUY3d+uxmE38qKBdHk6IMZWrcCIMwGHixabhBWemzEue3cOIHGHzHEUzIuHn1NhFYmift97kTtdioAbJYKl2FJ8Ez4BHqduCbRAQXiE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780885841; c=relaxed/simple; bh=42VpR8ugAARHyI0wmOQZp/rBCGxgBSiRrJQELIHnh8s=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=VkL7izlF/noGSJt9jrnG5xKMOH2CwmZYuXrj9PPJh71JTASMgL3RYvFpVU7OzLdViD6CC7EpfcJIFmRlkciD+fde4v06+LQpmBQzGYssHmw7fJQb/gatj36TLYHwBKZ5AGmnVIRww9vhl7vIkRKQ5qWlO2c7Zw+Mb7cIVEWeckE= 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=eWBhz2m0; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=K5t8OE34; 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="eWBhz2m0"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="K5t8OE34" Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6580HaQd1935496 for ; Mon, 8 Jun 2026 02:30:38 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=IKc5Obhm1v3 /KA4MaSQ32W6Hvld9D5qR9cN80qMH2Ak=; b=eWBhz2m0o4dB3nYeHqRL9JMfo3G /Wq8MjhNV0VpLkdkPjX1kI04Zrf0vL4n0OM0CqINRu6ka+nOQtzQ71uG59PvZg+1 +cZBtUkfxRllUzcKbxJCZhUwMq7OAWnGOVwAS+6ijcXhk8sHKgHGSNTgC3EjxZDY UfOliPtgSg34AYcWEOhBMs61iuWx5nP008FTBFFRKL6eVm5rqJaJ0YEOoqrZd1S/ xhflQXyx6kDrGIJiaRhqhG0uRCcdmWzkDspBNjS5bqRE3C7udDdzRQxdUme8a5WR hFhLZIeAT3ddHuamm2Sc4ev/r5dlOkG5obBM1JBBW0wNqLguGo+hlDYWujA== Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4emavf5k67-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 08 Jun 2026 02:30:38 +0000 (GMT) Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-2c0c20f7581so40901455ad.0 for ; Sun, 07 Jun 2026 19:30:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1780885838; x=1781490638; 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; bh=IKc5Obhm1v3/KA4MaSQ32W6Hvld9D5qR9cN80qMH2Ak=; b=K5t8OE34B29tH9uCHbnM6suinHcCqyE8n62KSh70HJdEQiHBPyLa9vkn0C5finBn/r YB8C2n/w7doOzgmrIhDoZcDKcoIojfPdR2uEBstisNAupOsoG/XTTra6cNnw2xa763xR PD/arZWyZy4wfvwFRSpqVpkzOapY9JRsZi/bPJe2ChRl9nBMaz/I2RpNaGCOIqUHaO2F QRXlvlaLqQd4zNQp3IOXo1KcaM1SLKfNMYi/U2SO//YbMaT2m8bZzL5WB8kd63BNSxkq aXhT8u/rz19OmvuKdRngTL9Dw6dZ9t9MZUvvwlnDdd6//x8yagDNGbMS/7q/8ZmmE04b nwWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780885838; x=1781490638; 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; bh=IKc5Obhm1v3/KA4MaSQ32W6Hvld9D5qR9cN80qMH2Ak=; b=PhxlhSUzlGAU1FDnlsSzggdPjTUoSuzan3C5KrdO/fnnBSoNNJejho+Tn4MUrRsJxK 8B9CtcI61C8PWIDlmbfu/IpsxuqXBzH/Atifo7H+88X4hvQwyn1MFfMbXZlicWBhu0s9 4DttWikHWYklic2ASgz9h1T6GynCuRsfnI5mUsX/mbgXiDyAu/4iJimvMFdoaAJiWI7s bd59INgSXWXNYFuCpysDeEytcyTBewtgk1z6ry01BhtH4y7IYgUSmcSLDLJfFrxd7jkL jg8fwcc7018E3nU+VMAqDbsSCQre7SVrzb0AHskod9t3tMmC7iHx59EcjA48RllhwoxR wXCg== X-Forwarded-Encrypted: i=1; AFNElJ8BihAP+NiM7HDfz4l2l95s3PK7NCQ8YnrQTzHnhANwkh44e7kyvgaARbygIuzeiNl/iFgNNIB95FR0rWQ=@vger.kernel.org X-Gm-Message-State: AOJu0Yz6mVhALDQTI9dmshmbRKICLN4ezQO+WelOJDuv+3TivSiKPLyB qfP/Uv0hOebESs7Ko5QKO7aB+0fFoafLEfRWJchV2O4UiqqFOM2dXT23V573YOULybHSZfddBz4 lY5dGk1JzEfoSCLXdVqQUjoMuQXvsFS6Gkm+6q7FAgbTTE/AOOroEQWqBOudZLf5EaG0= X-Gm-Gg: Acq92OGL0M2io5F2mHfkV5f28RlK7k1eVt9EwQw/Q0/iqS7QEjxo80uErY9vXWl/6FF XCevsesEcSVMNVbzoA+Y3tf8DV1m//Z5vS3Om94iDi6hjEv5Ut3vkWB0yl95Vc57/MhiYY8TlkX hRAyl19fnVFCdPKJu9IoB6qOaTLn6JvkY+ZmDdtlwUy/mnla39BXv3XTzUNZ+xHU69Isk+IQF6J SWOEAwgJDVj4ueRuxoXHJt03g4YYPASZYSxwPfLNtUlsVpFUrV7Zj1UgkPENRtuAE4ApGSlOwJB 9PnXBNMmjGBLbgiw3YBEkTdzPX32gJkjNiqTZzLWvihz8wx/hCxFOMll/pM+39TTjaFm1ABDGkI ozIPP/2tWP6NnzDtXavGi92DepRrHE1PzaAyhOcBdosmZi7kK4lOGWQ3tgZem01yPoDpY X-Received: by 2002:a17:903:2348:b0:2c1:ee75:56bb with SMTP id d9443c01a7336-2c1ee755854mr149411715ad.20.1780885837670; Sun, 07 Jun 2026 19:30:37 -0700 (PDT) X-Received: by 2002:a17:903:2348:b0:2c1:ee75:56bb with SMTP id d9443c01a7336-2c1ee755854mr149411295ad.20.1780885837094; Sun, 07 Jun 2026 19:30:37 -0700 (PDT) Received: from hu-mohs-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2c16609e0bbsm162343585ad.50.2026.06.07.19.30.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jun 2026 19:30:36 -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 Subject: [PATCH v2 1/3] ASoC: dt-bindings: qcom,q6apm-lpass-dais: Document DAI subnode Date: Mon, 8 Jun 2026 08:00:09 +0530 Message-Id: <20260608023011.942228-2-mohammad.rafi.shaik@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260608023011.942228-1-mohammad.rafi.shaik@oss.qualcomm.com> References: <20260608023011.942228-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-Authority-Analysis: v=2.4 cv=I4JVgtgg c=1 sm=1 tr=0 ts=6a26294e cx=c_pps a=JL+w9abYAAE89/QcEU+0QA==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=FelO9ux0wxsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=EUspDBNiAAAA:8 a=NrbrONOL4QpDeGKfLFoA:9 a=324X-CrmTo6CU4MGRt3R:22 X-Proofpoint-ORIG-GUID: hZkLgAQLo5BbIREMq4J1LSlctISEIE4q X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjA4MDAyMCBTYWx0ZWRfXwsc+i7lieskP GdS1O2fTIuCAfluLd6Jz8JqW5Dch3heduwT7Ixc24424uCOdq7bETcxTd+WgtZ0JHMewp39xFw9 j8vFXxBIqWfztpuen6miVGubwhppLKXgCa3sSsHyCOZpcpPr4oNvCFKooYrBIFpUIYgXbthoF7M yhtKFJUadXRw8vX2b8xQnVYomNjzX4xaWPZ3FAV7O7ZHr1vFIdyZ47ymR4KrAPEae9wR+oZFWJr OXWVSCOOqsBAfrurVIP5ErNKFdA1rnqDGOHEuNhOBqh+QwdVuXzAKLXLH+CncEoXxrwMAMU26UZ abBDDENRyQQu+/xzrUmKA+P8z3O0MnJkTOhSDH//PGDxKBQz6rlBQUdF+4m5FkgYRG4JnrLeJI1 EcE17m6Ocy6CHjK38LuUmtX8DulIontoBQ6tbTtBND0gIht6TZ9KmGUU4EVV3Th6Z4UfZJlPQQE IhaEg7mktAMEG87qt6A== X-Proofpoint-GUID: hZkLgAQLo5BbIREMq4J1LSlctISEIE4q X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-06-08_01,2026-06-05_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 adultscore=0 impostorscore=0 malwarescore=0 priorityscore=1501 bulkscore=0 phishscore=0 lowpriorityscore=0 clxscore=1015 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2605210000 definitions=main-2606080020 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 Signed-off-by: Mohammad Rafi Shaik --- .../bindings/sound/qcom,q6apm-lpass-dais.yaml | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/qcom,q6apm-lpass-dais.yaml b/Documentation/devicetree/bindings/sound/qcom,q6apm-lpass-dais.yaml index 2fb95544d..4c4c73778 100644 --- a/Documentation/devicetree/bindings/sound/qcom,q6apm-lpass-dais.yaml +++ b/Documentation/devicetree/bindings/sound/qcom,q6apm-lpass-dais.yaml @@ -21,6 +21,48 @@ properties: '#sound-dai-cells': const: 1 + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + +# Digital Audio Interfaces +patternProperties: + '^dai@[0-9]+$': + 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 ] + clock-names: [ clocks ] + + required: + - reg + + additionalProperties: false + required: - compatible - '#sound-dai-cells' @@ -29,7 +71,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