From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 B341930E85C for ; Mon, 8 Jun 2026 02:30:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780885835; cv=none; b=hqjgGvhIDH7V9J3ryN9wkbv19DTVujokMsbdjAEYm9j9LG7jj2yHpyOOD5s8F46CfyElcm1+AYzmt6Pnh979lQjDPp6q/lhklP+Uf3a6AZyA2vdtC7uBXn58XK+80T7IbT4yIsPs3jZVR/VLXSxMTcLhUZI4S88Ltq146zM8huY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780885835; c=relaxed/simple; bh=as2K6Olkw9oeUKiAJkBfQ29l/hJM1plHj4oLgqB9CAo=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=jLmF41nXpnIt4cPNqO1POCcZxxh15r8pRgaHc0bKARJL6rELC+iUFwAwoR4Ucg26ruDw6g6uYCa5pB4fPqoU7PECKZltaH8hV066RZlbIbLyVetFhijDJ0pysMsCDXi8qCzfJt+h0Rz/fABya98OA8Tr0t2t8mLjUA2ueEHgW90= 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=UUiGFWLt; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=QgsPJZY0; arc=none smtp.client-ip=205.220.168.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="UUiGFWLt"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="QgsPJZY0" Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6580EKeG1511132 for ; Mon, 8 Jun 2026 02:30:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=GruohMJr1MJcHN3mBUM1hv z0MEHN2CgE7L3SL79Ae2g=; b=UUiGFWLt82y45uxMLhYUVEVLgXPbDOZGyB/Uab HJza44t76d/65fRfEiT1Xfb5nDtrbTjYaLkIrzsyfVt4zMyTiAWe6eFv6rfLNmVu tHAwU7dxQ7z5QH1ahqR82WDnj3606YZ0vZZoFU2hF/nNL+lDU+WugPr1S0kw+qis VZouZlc/KrQ4RL4XutaX2wuknIFLrGsHsgaL64NleNkWh2cA7UIvqCWNoP1Y0DY8 bCPgeHxj5CJFmD+u/FnHGBaijP9MZDmOBDdVlPvrY79FmpviR5mTVJ2dc0uvUY7i vlGlM5i/cYbFiCVRgyTK/obYvzs6FOoZ7UruARfgGIm8innQ== Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4emcadw509-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 08 Jun 2026 02:30:33 +0000 (GMT) Received: by mail-pl1-f200.google.com with SMTP id d9443c01a7336-2bd04e4fe3dso51594345ad.3 for ; Sun, 07 Jun 2026 19:30:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1780885833; x=1781490633; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=GruohMJr1MJcHN3mBUM1hvz0MEHN2CgE7L3SL79Ae2g=; b=QgsPJZY0dHu3Vf5kTWiJhrxIywseyoy413S53ERdwVKgZlAsXqmvFZMBPnnhzVnW1v OjAJnaNQj6YluHA4nsBaqMoHhAIC4R32UTr1zDX0AgweAP7L7vw5NGGNzOdvr0sY30T9 eqBB4JCJa/U6yxy3BuuWBf0o3fI36Pjsr3ZDoNTfxdGW0KmNuHGER6uVCyJVlbf3OuT4 uqznmCFULvbipjEKLxeGmfPwh+LaKP3HiZYFJuEz2KgbrRv9Is/z7ArBmUZBp+Y99n+n kwKpRrZSD7rIkrE1AlpuqlLZ16iMkiavAtFokPCSzEkaM/l1FSIhNhnmLXwCTPjW9bvg 5OmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780885833; x=1781490633; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=GruohMJr1MJcHN3mBUM1hvz0MEHN2CgE7L3SL79Ae2g=; b=hy2THmld/fZSTbPy0B/Z0C6x2NpByOvQ3y79yneAknxzp/L3oqMwgjdNJvZi+IGJp+ AJWHZTDtza/HLXaPCfNVy2pA2JzN1IIsCNY1tqXRJOPki7iHybgDvqPLD+eXmLEEdhPT aRXsEFdSC1zc+OY8qj5M7QD4JylA9+AYPv3B1ePWeJdnup2CwzHU7K8vtQ6OEhQBnl3D dHdUJSgLIkBwuGuVnUwNNjuJUSyp1KkhtRlFB+bErm3pXkHtQVy668C4FkTlPe3OmqKF fQONNHM0z6hHYwlWkIWnT44ReWZc4RnShtllh+N5C8lZp4E818FBUm3R6GrcrCiDbuoE X1/g== X-Forwarded-Encrypted: i=1; AFNElJ/d35vSn9JSkeubM9bhuc9lazjxWArKTpW9HHz1beFgWcjl+rGtcVSWDO414a3tWlK4e6w1J1MffBFrvp4=@vger.kernel.org X-Gm-Message-State: AOJu0YwcHpf2HLpJvvF6mEc/LavqkQNwFFT5CYFNRdLhE2spa97D4gRA nXLlhmnwqbzmO4a+142x/9H6+MIuGR1rl45kaswfWgSoqYYPEnwCWhnADtWUn8D56IJtG7XQgqW 9tPbW+S0HnFmy1krxS2OD5i5ZfFPi7xyKndONKkYNKbP0+RuGRFvYNE2coE5lFX84nvc= X-Gm-Gg: Acq92OFNblrMHDsXWiVZtuOesIM5Sxm8wllF+HpCviXLympfvfMPqEPd64Z9N3oM/Is pLs9TgnYbKY75/XLrdUBaK7AyCFXJE9PV2aM4kVayIwv0SQLw1d+UamZwQUlG/ULRdhc/Lxaxgv hZpzqCPS8M0zeVaJ9BsyusV0Wb3GVywuN6Zpmrm3ewqycsredb7jyuU5HMRuJDdNFLUeH9jm94p JrsxHy0iO0/3QRnVMXm6rs26gO1j+jDrb6YPcTZmT0fshG6vYQOSLfPpRDZexD2MFlaCUAvMcwn ObhH+jGaDq/pQWQk6o/wYxqOUGu6O2rqUvau3IWam9aiK2QVpiqiaibBWebkzJVWYpFm5YDiUGb HsHT3J5QMtnjvGJcv0rhTCEoWDGc0wZWg6Vsn0Z3/vrZG+aLV9oCq8XAOq4HG5ocC/ttv X-Received: by 2002:a17:903:4b30:b0:2c0:d097:51bb with SMTP id d9443c01a7336-2c1e80e43c8mr152399365ad.1.1780885833109; Sun, 07 Jun 2026 19:30:33 -0700 (PDT) X-Received: by 2002:a17:903:4b30:b0:2c0:d097:51bb with SMTP id d9443c01a7336-2c1e80e43c8mr152398945ad.1.1780885832674; Sun, 07 Jun 2026 19:30:32 -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.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jun 2026 19:30:32 -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 Subject: [PATCH v2 0/3] ASoC: qcom: qdsp6: Add MI2S clock control Date: Mon, 8 Jun 2026 08:00:08 +0530 Message-Id: <20260608023011.942228-1-mohammad.rafi.shaik@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 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: 8bit X-Authority-Analysis: v=2.4 cv=DIa/JSNb c=1 sm=1 tr=0 ts=6a262949 cx=c_pps a=IZJwPbhc+fLeJZngyXXI0A==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=VwQbUJbxAAAA:8 a=Wdb1h0LgAAAA:8 a=EUspDBNiAAAA:8 a=BifR_v5mCn8YSut0XsEA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=uG9DUKGECoFWVXl0Dc02:22 a=j5gyrzqu0rbr1vhfHjzO:22 X-Proofpoint-GUID: up911fwZpqa1I_iFFjc5Mv0ImrUaIYnN X-Proofpoint-ORIG-GUID: up911fwZpqa1I_iFFjc5Mv0ImrUaIYnN X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjA4MDAyMCBTYWx0ZWRfXy2VuvwuXGdNg JNN9puCnkUaCadwTcDpgUC/uJX7newzg0niTABJmIzohWAGTVkxdapHv4dGo64PtzpVxr9RYJGW uXmThRg0JeWdJ1rUP5EL8b9Rns8egZDJke/oUOmx/n2vLdOOGNEtdPXCPNbSpdpp1YxpndmlCY2 vgZJvbTtYff4eMlkSmTMUWjVppY0fd5x3i8839p1zni6JLeTtJMFeMZumA7kJVGOfLOe8DfMsqB LeEGGs1NnwBq8kwe0AVWiJXTKu8+NzOkfDzWMsFAuh4/RQUR3u6blfoXoz5zZ2SjXg4OGE5CZSw URAWuWoQK7/I4MMfp3H3G67GT39bpjNrAJLODsjNvCggQFxDhr82NKYKaZgSWAvCnUtMSCIMF6k OSFYFRBxIjJlgRShaRgHfJP0BTA7v/ZXsq8+uN9XDQs0dfXHqg7ZPYewIz7ZKceFSs9iZuSASjN /CQ/UMphIMdsFzvnfMg== 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 impostorscore=0 lowpriorityscore=0 priorityscore=1501 phishscore=0 bulkscore=0 adultscore=0 malwarescore=0 clxscore=1015 spamscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2605210000 definitions=main-2606080020 Add support for MI2S clock control within q6apm-lpass DAIs, including handling of MCLK, BCLK, and ECLK via the DAI .set_sysclk callback. Each MI2S port now retrieves its clock handles from the device tree, allowing per-port clock configuration and proper enable/disable during startup and shutdown. 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 bit-clock 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. Enhances the sc8280xp machine driver to set the boards spacific configurations. This series depends on: - https://lore.kernel.org/all/20260607-rubikpi-next-20260605-v1-3-7f334e16fea6@thundersoft.com/ --- Changes in v3: - Added a detailed commit description to clearly explain the need for this change. - Improved the machine driver based on Neil’s feedback. - Link to v1: https://lore.kernel.org/all/20260309111300.2484262-1-mohammad.rafi.shaik@oss.qualcomm.com/ --- Mohammad Rafi Shaik (3): ASoC: dt-bindings: qcom,q6apm-lpass-dais: Document DAI subnode ASoC: qcom: q6apm-lpass-dais: Add MI2S clock control ASoC: qcom: sc8280xp: ASoC: qcom: sc8280xp: enhance machine driver for board-specific config .../bindings/sound/qcom,q6apm-lpass-dais.yaml | 57 +++++ sound/soc/qcom/qdsp6/q6apm-lpass-dais.c | 137 ++++++++++- sound/soc/qcom/qdsp6/q6prm.h | 4 + sound/soc/qcom/sc8280xp.c | 213 ++++++++++++++++-- 4 files changed, 391 insertions(+), 20 deletions(-) base-commit: 6e845bcb78c95af935094040bd4edc3c2b6dd784 prerequisite-patch-id: 2f1bd3efac328030dd8efe28fb95f84603868043 -- 2.34.1