Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1877320lqp; Mon, 15 Apr 2024 23:37:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXMPGVtntkRXRT8dpIUdGc0MeGMzyg+K/CUx4fldd0VGoebWxlYViFMpIguMNItfELWaAbb+k9nuv1ozscxrW+QsJJ8hfCPaQlIWLy+jA== X-Google-Smtp-Source: AGHT+IGF/8wvph9byzG0lwbx/tnFPhMFBumCPsSiK+QUgQgg3kKYVyvvWvMlKJeI/x1d92Qo1fpI X-Received: by 2002:a05:6358:690f:b0:186:3ae:e138 with SMTP id d15-20020a056358690f00b0018603aee138mr14542729rwh.25.1713249459679; Mon, 15 Apr 2024 23:37:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713249459; cv=pass; d=google.com; s=arc-20160816; b=Rh7cpknu7C2KblQGyIuF8ykljzASrMhqDP6FfSfUIRQ2i1wu2483iFwqgjxlsrNkZ0 fsGazsSFah26uX3D9sxafRWAD/AfG7/J5Z9FFvIxSFb2TPd1CPUB0SwxksgiCfwkGlZc +B/+gehlamz3GLg2BD1WswQzmbU+PG273wrcHGWFKRs72RsY6YY3Szwat9Q/ZiKgj43L AsnD0D411XImVeEvVcLW+AA9gnKhwuZqj6v6VW8Wj/Jj5X5ma80coHB/7RxMzCa9Eygb 3qOQKkwOcYv4KsNroHWRtnFYp5kBRUY1vBvpF8tNRcYAyXmwKiew1C5g7W+zY/Kie2dq +Rag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=9+RJitawOeTrE7hwBxtMXPaSL78gHxQpd8eAZUxLrmk=; fh=RZGL9QkT1KDtHi2BtdmE8j4WTQ8TVfVDoEV2YPPBAw0=; b=EHU/Dra4I7/UxN9/O+ujvfeA1yDajVZ1lJLlHrWKLEHXmIphPjQBwDekJUV3k0fWD9 vu3tcL27StrlXpqodX3UUH4Ku96tAWs8oAVizVRcNGX1N0D+IcTx0G8azS5c3jImWf/E LKapFcKDPM8cx9gFHukEINxo6IHPtxricEBn/yP/Af1+gX3fGaUIx7G8PC7rxvssBcpf 67/TYxcoAOUURQKvU7zwB2HI3IWqhwagLlzRXwAF4QBb3z4X/Jqm5+zsIJnQ3l5bZWYW f91vBGO1IN6qAZ/I4njiXgA2Esgu3oNh9hgf0ANCHiRP3TclQ45DqZQSuPEg92bwY2s3 72UQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=YaQEM8R6; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-146352-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146352-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q1-20020a63bc01000000b005dc89485b21si9196829pge.535.2024.04.15.23.37.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 23:37:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146352-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=YaQEM8R6; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-146352-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146352-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4E9C32844A5 for ; Tue, 16 Apr 2024 06:37:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 068ED6EB73; Tue, 16 Apr 2024 06:36:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="YaQEM8R6" 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 9FABD1E49D; Tue, 16 Apr 2024 06:36:52 +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=1713249414; cv=none; b=ixwWoSmqW5/OzDABsMyC1HQJ+zqq3zikAlti/5RYWmsFiB2ZNBkNTz3wv2jBK/f9DHprOxz54yOvUtorg61NAaBrBhfyeSeRBijm76olkv+TQK9/M4OMLV3IIco3jXQm8S5M81USNDG7WsVFbrzzqmpKg5EBo411Nsm5mSc1s+w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713249414; c=relaxed/simple; bh=aBlkdSjjwVkn6//EzAZb+PqCL3tCH8kR8KEGC9EkKyw=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=KKo2yJDGnoOAstV96RLVpe3k7xs1JcTwgaYGN4o/NSUIwN3O/RmWEnvebvmIn/WaO81OiR/F4qmwwdVnPRXR3EyhvxilkytxEpkZ16tlbfKv2+RG6tAIB7ChMNbSgEg6PmJ83MaK2TvQjWrC5KRjAGNzhLrRJUeauD+Wm2XWOHk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=YaQEM8R6; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 43FNxX6v030411; Tue, 16 Apr 2024 06:36:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= qcppdkim1; bh=9+RJitawOeTrE7hwBxtMXPaSL78gHxQpd8eAZUxLrmk=; b=Ya QEM8R6UCywlF4lOBKdocStQpIeGjoTLVtZwBtPmKYdZdg2YUpXGp1ybobBJ2HwES ywJOgkYXGbWB0U2Y06FNlmeEZs2Zg6IE/N/p9eQu8yr4xsXyp09NMnJ/ECq/dbRO Da3hZlL1J+ejX1xZy8InUjCOsFi1hPSEnH1GIbtVayqtFhh5vBgQ8tV7MqQZWc9K i2Kbw2yLupY4WStUYkC1UWniPWPRm0fr8442HTV6umogFQiAjkJcA9ybYl62FzSp rwCx0p+x8bTAtYrTIX0LCh8VA3ELjQyRHZAPgTze9T+oAyuvR8AzrafDIU1ilheA my4vAQBnkbf3isQiU34Q== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xh7t1smrn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 Apr 2024 06:36:37 +0000 (GMT) Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 43G6aald027625 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 Apr 2024 06:36:36 GMT Received: from hu-mohs-hyd.qualcomm.com (10.80.80.8) by nasanex01c.na.qualcomm.com (10.45.79.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Mon, 15 Apr 2024 23:36:32 -0700 From: Mohammad Rafi Shaik To: Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai CC: , , , , , , , Mohammad Rafi Shaik Subject: [PATCH v2 1/8] ASoC: dt-bindings: wcd937x: add bindings for wcd937x Date: Tue, 16 Apr 2024 12:05:53 +0530 Message-ID: <20240416063600.309747-2-quic_mohs@quicinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240416063600.309747-1-quic_mohs@quicinc.com> References: <20240416063600.309747-1-quic_mohs@quicinc.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 Content-Type: text/plain X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01c.na.qualcomm.com (10.45.79.139) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: DqB9GiCLlwfat3oD66CuI-2fAJ7h7G9_ X-Proofpoint-GUID: DqB9GiCLlwfat3oD66CuI-2fAJ7h7G9_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-16_04,2024-04-15_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 phishscore=0 bulkscore=0 mlxlogscore=999 priorityscore=1501 spamscore=0 malwarescore=0 lowpriorityscore=0 adultscore=0 mlxscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404160039 From: Prasad Kumpatla Qualcomm WCD9370/WCD9375 Codec is a standalone Hi-Fi audio codec IC connected over SoundWire. This device has two SoundWire device RX and TX respectively, supporting 3 x ADCs, ClassH, Ear, Aux PA, 2xHPH, 6 DMICs, MBHC. Co-developed-by: Mohammad Rafi Shaik Signed-off-by: Mohammad Rafi Shaik Signed-off-by: Prasad Kumpatla --- .../bindings/sound/qcom,wcd937x.yaml | 119 ++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,wcd937x.yaml diff --git a/Documentation/devicetree/bindings/sound/qcom,wcd937x.yaml b/Documentation/devicetree/bindings/sound/qcom,wcd937x.yaml new file mode 100644 index 000000000000..b45f823af04f --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,wcd937x.yaml @@ -0,0 +1,119 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/qcom,wcd937x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm WCD9370 Audio Codec + +maintainers: + - Srinivas Kandagatla + +description: | + Qualcomm WCD9370 Codec is a standalone Hi-Fi audio codec IC. + It has RX and TX Soundwire slave devices. + +properties: + compatible: + enum: + - qcom,wcd9370-codec + + reset-gpios: + description: GPIO spec for reset line to use + maxItems: 1 + + vdd-buck-supply: + description: A reference to the 1.8V buck supply + + vdd-rxtx-supply: + description: A reference to the 1.8V rx supply + + vdd-px-supply: + description: A reference to the 1.8V I/O supply + + vdd-mic-bias-supply: + description: A reference to the 3.8V mic bias supply + + qcom,tx-device: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: A reference to Soundwire tx device phandle + + qcom,rx-device: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: A reference to Soundwire rx device phandle + + qcom,micbias1-microvolt: + description: micbias1 voltage + minimum: 1800000 + maximum: 2850000 + + qcom,micbias2-microvolt: + description: micbias2 voltage + minimum: 1800000 + maximum: 2850000 + + qcom,micbias3-microvolt: + description: micbias3 voltage + minimum: 1800000 + maximum: 2850000 + + '#sound-dai-cells': + const: 1 + +required: + - compatible + - reset-gpios + - qcom,tx-device + - qcom,rx-device + - qcom,micbias1-microvolt + - qcom,micbias2-microvolt + - qcom,micbias3-microvolt + - "#sound-dai-cells" + +unevaluatedProperties: false + +examples: + - | + codec { + compatible = "qcom,wcd9370-codec"; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&wcd_reset_n>; + pinctrl-1 = <&wcd_reset_n_sleep>; + reset-gpios = <&tlmm 83 0>; + vdd-buck-supply = <&vreg_l17b_1p8>; + vdd-rxtx-supply = <&vreg_l18b_1p8>; + vdd-px-supply = <&vreg_l18b_1p8>; + vdd-mic-bias-supply = <&vreg_bob>; + qcom,micbias1-microvolt = <1800000>; + qcom,micbias2-microvolt = <1800000>; + qcom,micbias3-microvolt = <1800000>; + qcom,rx-device = <&wcd937x_rx>; + qcom,tx-device = <&wcd937x_tx>; + #sound-dai-cells = <1>; + }; + + /* ... */ + + soundwire@3210000 { + #address-cells = <2>; + #size-cells = <0>; + reg = <0x03210000 0x2000>; + wcd937x_rx: codec@0,4 { + compatible = "sdw20217010a00"; + reg = <0 4>; + qcom,rx-port-mapping = <1 2 3 4 5>; + }; + }; + + soundwire@3230000 { + #address-cells = <2>; + #size-cells = <0>; + reg = <0x03230000 0x2000>; + wcd937x_tx: codec@0,3 { + compatible = "sdw20217010a00"; + reg = <0 3>; + qcom,tx-port-mapping = <2 3 4 5>; + }; + }; + +... -- 2.25.1