Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp720382lqb; Wed, 17 Apr 2024 08:54:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXeK66lg2hFLrUNAgAgdIBjnMMRPUtD+Sc6itN9BLJ5Er7yrsegoAaHT5QUca+eMVxYt0QwvaCtFQOZADN2tWjdZwJxIgxFccxiXdYHYA== X-Google-Smtp-Source: AGHT+IFlrmo+CndX5N2SwzqCheQpafM6JUe7Cg/pCmvODGwcH+5WVvNDpP35MxKXWzImntMmMDQf X-Received: by 2002:a17:906:3b45:b0:a52:3451:8a18 with SMTP id h5-20020a1709063b4500b00a5234518a18mr4295533ejf.29.1713369262004; Wed, 17 Apr 2024 08:54:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713369261; cv=pass; d=google.com; s=arc-20160816; b=ppkHJohNiM0xUvPFBEcWgJIKjgaMB+KGcpIqqLfN4gHUaWGXDwBJafIEk3GdPN8ciz wr/5rnZOkHJmAWoFCSRYMGhyPXokPIMdP8RpVBByWRZQf3Nv1zJhgSJYcTZFBxqHNlh3 PfWXDZNITBWfMmxXLWJG/2sfDhBZlJuf9w14rOzNqJ31q38mBV/aRp57nOqEa/ZoNNfb JC96WRGzuzbT5rEmaEujYcQ01CgxBESzGYghkFRnyijJ6PSYD5Y/vXn2hD+RnCsc/B84 QOrza5EHindckV+semn1SOYJS5suXX8rOxg5TWrNVoE/d+0gF3eTNJV1z42yNI53AIJj GwjA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=sRmHrFB7iA2o1LWq3yBB3Bm2Ud2RcHglpQvkTldCY/M=; fh=RYke0ut8ZIeVSZKN/WAjvnlnch6CC3K5X1J40BSRdmw=; b=uD+SAbNfvFxpOWL2ykTsW+sXBHMmT25zNwjIGQFjNmLMcYJCvSVoPvJBF0xp8CuSvt TvRJmjwxLrfNGgbIS0P6UfsGC4Ubv3aTGCKRULKmgzzRrYXd4t4Pqx6xQGEVa+2wRcRs nLv7MZSRSU3UUY4kYDtvfHBWV9qm8BfQqKDo0Y/oVpIzds3z0BtcvvNIi8QSFp4AJ6PX dJwPrgkJRYpS2zj358GsikqRl4OJACwEQYYPgdk3b6kHPFnMOXlCSrNsM6kSL85pm8bi USEh0BS0rfZRwWdXgJbB4C9GGJAqYXSiAHoHkLHdKXKMlL7BpYejItXEoRcq7teIW+v/ pz8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QOkD+AqR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-148849-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148849-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id k17-20020a170906681100b00a4df3b2356dsi7070866ejr.246.2024.04.17.08.54.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 08:54:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148849-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QOkD+AqR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-148849-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148849-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5CC3B1F23AFC for ; Wed, 17 Apr 2024 15:51:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7D665147C96; Wed, 17 Apr 2024 15:51:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QOkD+AqR" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5B9701474A1; Wed, 17 Apr 2024 15:51:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713369068; cv=none; b=gn5xE5Ri7xYRr2okYpr2dCPu4OtdsYdWGW4x8F44e6lKwY4O87fho6dysEnQS61uaw9YrpiVdk9vQxYajJrpHmvx5L6lOm2RptGHvTQTdzhUPHPTOD5ZFHoUzixdf9kVDeSecZPAz4WZreBxv/bGEHU93FII9HOBIKu99UdCjNw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713369068; c=relaxed/simple; bh=5J0q06ubp9rRvfasDCdw5BJC+rg9Xl6czKSqrMj/mKw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=iGHqhyK861tRQoMy6+JBddQ7Jz5POztoiB1eMvBepOvAAxmqWLdfwkozlVLPM5PUyzsUJVwvyvt4J8i7acQ09dCuN0KVgY2z/Dpu0XPgE3fAcE+dzlvJ8BVzcbOqGJl+mQf4mVnsbXLsE5qb4bL9hWz8D4pbbZL9if9p6N7enDU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QOkD+AqR; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1F24C072AA; Wed, 17 Apr 2024 15:51:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713369067; bh=5J0q06ubp9rRvfasDCdw5BJC+rg9Xl6czKSqrMj/mKw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=QOkD+AqRQ04ajG1mBiEMBz3sn8SIiHb3tRJBnVJaD6H9tP/uBI7lnuuQwo/as659s pk5XWF4sYRTQgb3AFMYOql0A9L14xqNfooJIie5XuKtdptTtjMXz+lQ8R4bPXZbJPD c5bm4vMYMK740gG57SrXMjU3QnbOLikNpHyiA8xb7D9MRF9007qixxyBKaS9iE8Bhu ZvdBeEb4FTbO5pZIQWYRleEt1YAK9SaGGoC2oAVB41bInxUkS9FwPuDSusNXZRP2GY j7m9JkjMpAhsVQqVHerA5f4b4WfMIP5F1c04RC3IWwcRlF2p5YklTDk0WPbvSPdm8Q eiCzk2KGIskUA== Message-ID: <09410fa9-265e-4fb0-9814-35dee465dbec@kernel.org> Date: Wed, 17 Apr 2024 17:51:07 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/8] ASoC: dt-bindings: wcd937x: add bindings for wcd937x To: Mohammad Rafi Shaik , Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai Cc: alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_rohkumar@quicinc.com, quic_pkumpatl@quicinc.com References: <20240416063600.309747-1-quic_mohs@quicinc.com> <20240416063600.309747-2-quic_mohs@quicinc.com> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VB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M9RFWS+nYyJh+c3OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <20240416063600.309747-2-quic_mohs@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 16/04/2024 08:35, Mohammad Rafi Shaik wrote: > 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 No wildcards. This is wcd9370, right? > @@ -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: | Do not need '|' unless you need to preserve formatting. > + 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 Can it be anything else than 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 "A reference to phandle" is not correct. Phandle is the reference. Anyway, both are redundant. > > + 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 This does not make sense without ref to dai-common, so this should point you to missing ref. > + > +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>; Drop this and other nodes. Best regards, Krzysztof