From patchwork Thu Dec 19 10:31:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 182061 Delivered-To: patch@linaro.org Received: by 2002:a92:d0a:0:0:0:0:0 with SMTP id 10csp293460iln; Thu, 19 Dec 2019 02:33:06 -0800 (PST) X-Google-Smtp-Source: APXvYqymCCLuen1FtifXEgIpYqD+8zJYriVhJA5K9BWJb9fF2v900YJOkmrmxin3plTFNbTV1C6f X-Received: by 2002:a05:6830:1d59:: with SMTP id p25mr8317867oth.308.1576751586805; Thu, 19 Dec 2019 02:33:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576751586; cv=none; d=google.com; s=arc-20160816; b=U4YyytUWh//CNG8Xg61Nk6DgAvrt/YKbv/WYTmq9obnZGXl2kLMhT8YFqpkMrhU1tV ynyuaIh7/mdfiwsr8FhifdxfzmunC65U/w4iiod2r2jUJ7bY+MLsHk8lR7Ss60ku+CPO wk/ge3VZyQcNSX6AQAijKRqaZ0OBo5yDjao00oKOIKv9J9EdPq5VfS1mGRa6QX90mss1 Z4lwgIfFu2CzB1gTOyXfBpilCLIi5gjsFW8tU+nOisFiSeF/NuSJKsGPSDsDUQsCyFxa ZKzjhNSyVqKlDgJLWa/m99lXSx8p43Cw25TFjODmYvFjDbqkIZ2cIyYnVxMJ6iODFTuN fBBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xp7wCXpGcTVvcKAxVVzo9jEX41qdh69vVDMu6rxufAY=; b=MKPFm0bNqVQa/1ETTnlJFQwwJPM2c3BFCSer6N3eokCEpqX4u9G9x294AloBMpQPkG jAcFZRWSfGb4RMnCi4193xepcXyvUvbJcv6XHnJBHm1wRPYud3oaQHOllglHYjmSxy3X gI3bd/0wh/L5ZRU4ij4434Co+IM20blWhaiOqEj7wlYKvE5unk+m0bJx/KO8/aqlCtYG 0cDCDir83JztdGYmNYKR5lC5V3+s+FJVd+VeQlYvooRjS1LxrUjd4K0460UIDBDW6wzU /SrC3KnvCwSk84c1m2gCE2/T3OOGFJOxfirdxs/AQ4v8j0DtPLKme4Xz8b+CoyObnKOm xd6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eEX5v9lX; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j20si3044288otp.147.2019.12.19.02.33.06; Thu, 19 Dec 2019 02:33:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eEX5v9lX; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726719AbfLSKdG (ORCPT + 5 others); Thu, 19 Dec 2019 05:33:06 -0500 Received: from mail-wm1-f52.google.com ([209.85.128.52]:52502 "EHLO mail-wm1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726633AbfLSKdE (ORCPT ); Thu, 19 Dec 2019 05:33:04 -0500 Received: by mail-wm1-f52.google.com with SMTP id p9so4892103wmc.2 for ; Thu, 19 Dec 2019 02:33:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xp7wCXpGcTVvcKAxVVzo9jEX41qdh69vVDMu6rxufAY=; b=eEX5v9lX8C+ZtbyJB8auS8U8CsO36kg32qqSK3F7y5vQaTkEfTO23mFeSZ+2t3qwdA 6g3ZorcylCtjEpihICW97lcg+9XgghHL/GjFs1hwsOVZZ0h+dq/YAdc6YAjH7wco0wnF Hlvt20Xq9mQ0PjBiKyp2MK0u98XDKaHSNuo7UQsqD+M23IayKUodDl/AxnNZAdpvvqAy qo2QUcDLc8xmZNWrz0J6fozlNxLLwZ2LDPwBcRyfrG+vyn1vukDg2/fuoNAsooHccZ3J IANCKCmu9ng2i5X9B0FlvvoffWlz/2MxBauc31UZCvS1dbfkva6CBDMJRc+s7ScZHXq2 Kp4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xp7wCXpGcTVvcKAxVVzo9jEX41qdh69vVDMu6rxufAY=; b=ATUJ84Aaaf72QFGiBkQAO7HVBatJcjK7rPUqeciAQoAG5NNqnYhpvlbEw4OLyMRbxW aXDK1GXy5NwW91hq6/V+/k7MQPLsjLWQpW/SSdfCmNWAkGWI30DuuclH9QfdmxiDeq+1 KWx54fCmLp6sMO7Wb3hxHGVbtp8Jb086WGsgqU7HoakCQTnj6pbt8s1kR73CILBvY8XX l8hQuyxRLbq6EvvfWP9k/GyzyLao10IcCH18M4F7JlCOLs8YNCXLRHE2ng01ri7l9LuC peujQL5Hhx5PUopoH4GYkRlgZrUJM2G0eVe/R1U6gzuc84L2SBrxsr8woc2/f4/+cyZP RtyQ== X-Gm-Message-State: APjAAAWoZ7EJ9RK3DIDUG7zzL4Wf3ru/ThyuFCHY76CB2QJRUSpowip8 tqdkdwtQvWreVfj4Agse6TUgEQ== X-Received: by 2002:a1c:23d7:: with SMTP id j206mr8849848wmj.39.1576751582540; Thu, 19 Dec 2019 02:33:02 -0800 (PST) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id i11sm5962942wrs.10.2019.12.19.02.33.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2019 02:33:01 -0800 (PST) From: Srinivas Kandagatla To: broonie@kernel.org, lee.jones@linaro.org, linus.walleij@linaro.org Cc: robh@kernel.org, vinod.koul@linaro.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, spapothi@codeaurora.org, bgoswami@codeaurora.org, linux-gpio@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH v6 01/11] ASoC: dt-bindings: add dt bindings for WCD9340/WCD9341 audio codec Date: Thu, 19 Dec 2019 10:31:43 +0000 Message-Id: <20191219103153.14875-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191219103153.14875-1-srinivas.kandagatla@linaro.org> References: <20191219103153.14875-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org This patch adds bindings for wcd9340/wcd9341 audio codec which can support both SLIMbus and I2S/I2C interface. Signed-off-by: Srinivas Kandagatla Reviewed-by: Rob Herring --- .../bindings/sound/qcom,wcd934x.yaml | 175 ++++++++++++++++++ 1 file changed, 175 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,wcd934x.yaml -- 2.21.0 diff --git a/Documentation/devicetree/bindings/sound/qcom,wcd934x.yaml b/Documentation/devicetree/bindings/sound/qcom,wcd934x.yaml new file mode 100644 index 000000000000..38eaf0c028f9 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,wcd934x.yaml @@ -0,0 +1,175 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/qcom,wcd934x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Bindings for Qualcomm WCD9340/WCD9341 Audio Codec + +maintainers: + - Srinivas Kandagatla + +description: | + Qualcomm WCD9340/WCD9341 Codec is a standalone Hi-Fi audio codec IC. + It has in-built Soundwire controller, pin controller, interrupt mux and + supports both I2S/I2C and SLIMbus audio interfaces. + +properties: + compatible: + const: slim217,250 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + reset-gpios: + description: GPIO spec for reset line to use + maxItems: 1 + + slim-ifc-dev: true + + clocks: + maxItems: 1 + + clock-names: + const: extclk + + vdd-buck-supply: + description: A reference to the 1.8V buck supply + + vdd-buck-sido-supply: + description: A reference to the 1.8V SIDO buck supply + + vdd-rx-supply: + description: A reference to the 1.8V rx supply + + vdd-tx-supply: + description: A reference to the 1.8V tx supply + + vdd-vbat-supply: + description: A reference to the vbat supply + + vdd-io-supply: + description: A reference to the 1.8V I/O supply + + vdd-micbias-supply: + description: A reference to the micbias supply + + 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 + + qcom,micbias4-microvolt: + description: micbias4 voltage + minimum: 1800000 + maximum: 2850000 + + clock-output-names: + const: mclk + + clock-frequency: + description: Clock frequency of output clk in Hz + + interrupt-controller: true + + '#interrupt-cells': + const: 1 + + '#clock-cells': + const: 0 + + '#sound-dai-cells': + const: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + + gpio@42: + type: object + allOf: + - $ref: ../gpio/qcom,wcd934x-gpio.yaml# + +patternProperties: + "^.*@[0-9a-f]+$": + type: object + description: | + WCD934x subnode for each slave devices. Bindings of each subnodes + depends on the specific driver providing the functionality and + documented in their respective bindings. + + properties: + reg: + maxItems: 1 + + required: + - reg + +required: + - compatible + - reg + - reset-gpios + - slim-ifc-dev + - interrupts + - interrupt-controller + - clock-frequency + - clock-output-names + - qcom,micbias1-microvolt + - qcom,micbias2-microvolt + - qcom,micbias3-microvolt + - qcom,micbias4-microvolt + - "#interrupt-cells" + - "#clock-cells" + - "#sound-dai-cells" + - "#address-cells" + - "#size-cells" + +examples: + - | + codec@1,0{ + compatible = "slim217,250"; + reg = <1 0>; + reset-gpios = <&tlmm 64 0>; + slim-ifc-dev = <&wcd9340_ifd>; + #sound-dai-cells = <1>; + interrupt-parent = <&tlmm>; + interrupts = <54 4>; + interrupt-controller; + #interrupt-cells = <1>; + #clock-cells = <0>; + clock-frequency = <9600000>; + clock-output-names = "mclk"; + qcom,micbias1-microvolt = <1800000>; + qcom,micbias2-microvolt = <1800000>; + qcom,micbias3-microvolt = <1800000>; + qcom,micbias4-microvolt = <1800000>; + clock-names = "extclk"; + clocks = <&rpmhcc 2>; + + #address-cells = <1>; + #size-cells = <1>; + + gpio@42 { + compatible = "qcom,wcd9340-gpio"; + reg = <0x42 0x2>; + gpio-controller; + #gpio-cells = <2>; + }; + }; + +... From patchwork Thu Dec 19 10:31:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 182070 Delivered-To: patch@linaro.org Received: by 2002:a92:d0a:0:0:0:0:0 with SMTP id 10csp294035iln; Thu, 19 Dec 2019 02:33:40 -0800 (PST) X-Google-Smtp-Source: APXvYqyN3fSxm7QY37vup8Px4GkpzfaSs8BdVQFYvbI0XDLKOq11Kv8wel4XggM9ll+QfwZNxPOu X-Received: by 2002:a05:6830:110a:: with SMTP id w10mr8259736otq.300.1576751620341; Thu, 19 Dec 2019 02:33:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576751620; cv=none; d=google.com; s=arc-20160816; b=qR3a3UgojPYQn6KM5TgD7QuQgZeLKsEKX1HcBnSY7eDBbzn+MT3YHfV23mE49mEwvR +GRzS3MoRcnbABZO2ZS5Kep58n9TbBUwMODWdOuFC0zkTvIldH4pUzKrbA3UdBjl0Efe +HbE0moc1hIFrYbHPjtAhFGC713uWb/JSoPakawEJ2wVY1J2mAGVU46rQJj/EYMGSg6a 7l6IKPr4MCIZPKfMPZgVcNb+Cs4xy9Zhf50xaomKlRlVKFFrpxXKYCnBUvcviO8hFgbU EVOyVcbAQCHI98XxQvkzLcpsUE/Ds84JPzYMkVE/9Pcxp4OFk/mKaZdoPViQVga6yx+x eS6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bP6qV0Ge4OMghuS4pDxfRI185IDu6wuYLbRLvgY6Moc=; b=Veu8CiUUJ7zm6BPeob5NVMOV+xvyrtTeaqIPCI+RvHU38HJ/cRZFMrpoKVzWIM0LaL 14ALKM9PdSV+t9D4SKaBW7AOc5ygI2KOxAOt10iXVbpta99ry0pcMMNJvX+vXVS5/aLz mtxVc8WXy5aqpldoSSLLBa0zhNmSSYGPSQpJvQrXaN7lRTVCDc/IS78VKCQTR65G4WiC qWJ5ufiqYjGa+Ppr65dX9xyzDTTgUVZ5SxrRyk63rVyQs1LCVpPDG+q60uplg8v0nXnp bNOWy6/OSJwcZ+BtfmlW+s5KnQ63W4DiaOOvsswR9gnWgm5p/xf5a6WQ+C8v6nG/He9q 1jzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SMNsyxx7; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g21si3015923otq.134.2019.12.19.02.33.40; Thu, 19 Dec 2019 02:33:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SMNsyxx7; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726891AbfLSKdj (ORCPT + 5 others); Thu, 19 Dec 2019 05:33:39 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:39741 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726754AbfLSKdP (ORCPT ); Thu, 19 Dec 2019 05:33:15 -0500 Received: by mail-wm1-f68.google.com with SMTP id 20so4933856wmj.4 for ; Thu, 19 Dec 2019 02:33:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bP6qV0Ge4OMghuS4pDxfRI185IDu6wuYLbRLvgY6Moc=; b=SMNsyxx7pM0b1zkW0RLF0Ik1SoN8mF1dLMIOX7+uhrefdK8m4QfUEC8B7dESlSX43D o3Mm5OxXX1I1Rmrn4vAqg/c16QLZxlUS8daAh+vH2g1yQMIfxGCGj0/au5+jzW7+1MJV CjB5wB1FWHFqTBnr0RjOy39QxfQFfJC7GICtDSTJoct4srrMWKb9neNcdaKXc8URW2X+ L+2HYf0iz/nnCVEkCxGVR1+guCkiAJp/XUKavpVFnQLjl77N/PiCHP+0qHECp+Wuz7aV NaQ2ATplLJ1sXdZE+5WBn6F0StShPIDMLvlccayCdSw+CQBZR/x2LVc0zyEIuLiugJP4 HfBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bP6qV0Ge4OMghuS4pDxfRI185IDu6wuYLbRLvgY6Moc=; b=WgVZetx6DZv7mYDpLC0I2VHs+pkhAzetw8oqgqrD+1DS+ocy0VIgGE6zs/7XWQRUB6 4sZdXJxFD05p4O2XzHwfRzWML9cMFHt9zL/c7P97ZCXLywwUye6mDoP1tgRvsvv5xihf Y7pSaKexGV9PBzcB/KE4qejb2VIdFl6zw9uK+Jh4/RaRTBNsq+BHXzWdZCuKUa+LZf4/ 5VzQmlp2pO4c5l9UtCSFfEPFhhQuzjFreKEnEpl3Lc1NSGszsaK+h2eT/+1zeobdX9wB 4reaSePZJREW0iMDEoCAnTXA0zsXLkm0ikT2ysX0zUtj8l/VDppIkHzJQejcgPWY3Bs1 d46Q== X-Gm-Message-State: APjAAAWxBC6UYJXP9XuvFjYXDH1GetbRgJpx3rSWjOQeInOqT0J5rTXi ePWHXtChuLQvhqWy/VtjJ4cedg== X-Received: by 2002:a05:600c:1:: with SMTP id g1mr8751070wmc.131.1576751592455; Thu, 19 Dec 2019 02:33:12 -0800 (PST) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id i11sm5962942wrs.10.2019.12.19.02.33.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2019 02:33:11 -0800 (PST) From: Srinivas Kandagatla To: broonie@kernel.org, lee.jones@linaro.org, linus.walleij@linaro.org Cc: robh@kernel.org, vinod.koul@linaro.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, spapothi@codeaurora.org, bgoswami@codeaurora.org, linux-gpio@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH v6 08/11] dt-bindings: gpio: wcd934x: Add bindings for gpio Date: Thu, 19 Dec 2019 10:31:50 +0000 Message-Id: <20191219103153.14875-9-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191219103153.14875-1-srinivas.kandagatla@linaro.org> References: <20191219103153.14875-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Qualcomm Technologies Inc WCD9340/WCD9341 Audio Codec has integrated gpio controller to control 5 gpios on the chip. This patch adds required device tree bindings for it. Signed-off-by: Srinivas Kandagatla Reviewed-by: Rob Herring --- .../bindings/gpio/qcom,wcd934x-gpio.yaml | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/qcom,wcd934x-gpio.yaml -- 2.21.0 diff --git a/Documentation/devicetree/bindings/gpio/qcom,wcd934x-gpio.yaml b/Documentation/devicetree/bindings/gpio/qcom,wcd934x-gpio.yaml new file mode 100644 index 000000000000..32a566ec3558 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/qcom,wcd934x-gpio.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/qcom,wcd934x-gpio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: WCD9340/WCD9341 GPIO controller + +maintainers: + - Srinivas Kandagatla + +description: | + Qualcomm Technologies Inc WCD9340/WCD9341 Audio Codec has integrated + gpio controller to control 5 gpios on the chip. + +properties: + compatible: + enum: + - qcom,wcd9340-gpio + - qcom,wcd9341-gpio + + reg: + maxItems: 1 + + gpio-controller: true + + '#gpio-cells': + const: 2 + +required: + - compatible + - reg + - gpio-controller + - "#gpio-cells" + +additionalProperties: false + +examples: + - | + wcdgpio: gpio@42 { + compatible = "qcom,wcd9340-gpio"; + reg = <0x042 0x2>; + gpio-controller; + #gpio-cells = <2>; + }; + +... From patchwork Thu Dec 19 10:31:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 182069 Delivered-To: patch@linaro.org Received: by 2002:a92:d0a:0:0:0:0:0 with SMTP id 10csp294021iln; Thu, 19 Dec 2019 02:33:39 -0800 (PST) X-Google-Smtp-Source: APXvYqyUQkfENBsWM6jCvhL/cpxHypkz/8SQAjmwIfd5qIdmMce/38RYo47yYG0Zmfwe0cSMhqRT X-Received: by 2002:a05:6830:20c6:: with SMTP id z6mr7722312otq.272.1576751619889; Thu, 19 Dec 2019 02:33:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576751619; cv=none; d=google.com; s=arc-20160816; b=EGAErntDNxeza5YfIgyZK+yZMT+2dHbtS2Nx0FbeR7vK3klUI90JUfDfJjIfs3uTCt GefJJagiQiS3/Rf9oryVUc2/gDEMX/jysmjaTMfuQ3PIfJVegi/bcnSYuPBqhk+GrFak fBjxyujkgk0bsbCMYFHhZXqpdduTXFbBdR/233aVK02Nes8os32MpVO70zwWvoE9j2o3 92iuchhc2ZFSCEOaHhBPIO2S1tRWs/FKDZmAQo5iF6MibSUN2ycP0VivOXZCDzVfMPQj +gwlE0vu+TwE56I6Bx3DPNF2pQd49jdUCNJuOBpK16Yy7iOJarL6liJHLEo2QMs6/jEy AHJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DVqcfTgjqDIP2wy7JDCyl9+vrKLd49ALRMx75DX6+Wc=; b=v8Nd7wVi+uzpOl5oVE4HkLFY7rib+ZeeCfSJPxKBqSFciPjibCrDca4MrEE7wYBLhJ qUIqfmEjGV6RbKHILjGTq4iNXaP0RmrMSPcZS+4TdSZVmsxuL07KtXUrYh2as9d3QYGk iAX1QNg+uY6/80K0gXeaqkpjS0RRqPyJpbN0MKr/LVFZZ/WQGmfi3Zs/9S/TWFFcEAZv pBCH0DCTaADcKCKyHWzT5cCWaO/FjeCe97oNDYAVVKNs3EJ8h6aTUmC1NLInPELhxp/j fo/wxYKL9FIGmg2NaVNSWX8cap3a+CwW/tuAnNFZbAH0NPvWIYkjiEXpkK/pPIUA9y0g aNJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ktZZjyoT; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g21si3015923otq.134.2019.12.19.02.33.39; Thu, 19 Dec 2019 02:33:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ktZZjyoT; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726996AbfLSKdf (ORCPT + 5 others); Thu, 19 Dec 2019 05:33:35 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:38313 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726884AbfLSKdQ (ORCPT ); Thu, 19 Dec 2019 05:33:16 -0500 Received: by mail-wr1-f68.google.com with SMTP id y17so5450486wrh.5 for ; Thu, 19 Dec 2019 02:33:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DVqcfTgjqDIP2wy7JDCyl9+vrKLd49ALRMx75DX6+Wc=; b=ktZZjyoTyUtEdNALf1SUzrS1RPulAqz9Se89Q4db1cThkkBsCMs7gsG3rDtjq0yNsi 1sjtnRgiV78PeN17xTD2FWam85YUufWlTpQnBXMbIi06RLpnGboxtv+lh2I7L6ZZ6H1O 3tfMyfeWxJUph3D1z8GuVXxKMcMCGa80N4qGnVTJc+0jwa5vjgerOi5ecxVgWHzOpM34 snKbXZbSzJyTQh3V20VFLiT7UOnM4/BX84Iflpnejm/qpOw8ITHqpwm/y8Bg0ZPVgyV1 7unaqHWFOSXFtKm9uVU4Ca4EHzCkmntnjAK9Nd8DGIAR2LrbCdoidB5OEZ8WN0+E3dMr WZaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DVqcfTgjqDIP2wy7JDCyl9+vrKLd49ALRMx75DX6+Wc=; b=hvlmCBjxEhXDeHz8Zojbm4McWhPnCsFcs5ojnjgf9/S2oq0xbJULlzC3m5fU1h0WrM 46vhM21pneZlM3aENCYExpuHz4ZawBkwSIo39jSCgPeQlgClAI/kOUpFtXpzYqaI8OrU Jv1R7XNM6iUY9y4sVD9jb0OaFG7m5RF89cKhj396zdFchQ+5/gfEPbuJIFgc3uiU9spO Ynva9wIxzZJQV74a1WDTxzoTIlf9Ky6pnfa/RHiA2y66r07mUk0KMDuSWCqR5HUiKNta oJOQF6I9ZX0IxqyvGaonIh8xHy9e/kscg+E1qA/aiTdmyjkP73YxxppI68grXdSItbs5 Lr5g== X-Gm-Message-State: APjAAAVfsWWTMali6gWAD1pX0OiiJqsOAaRSQOlm69Jy+14OWzWx5ZGX 2i7WV2GbhGqbQ/YHo7X+OC+19A== X-Received: by 2002:adf:de84:: with SMTP id w4mr8217555wrl.97.1576751593796; Thu, 19 Dec 2019 02:33:13 -0800 (PST) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id i11sm5962942wrs.10.2019.12.19.02.33.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2019 02:33:13 -0800 (PST) From: Srinivas Kandagatla To: broonie@kernel.org, lee.jones@linaro.org, linus.walleij@linaro.org Cc: robh@kernel.org, vinod.koul@linaro.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, spapothi@codeaurora.org, bgoswami@codeaurora.org, linux-gpio@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH v6 09/11] gpio: wcd934x: Add support to wcd934x gpio controller Date: Thu, 19 Dec 2019 10:31:51 +0000 Message-Id: <20191219103153.14875-10-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191219103153.14875-1-srinivas.kandagatla@linaro.org> References: <20191219103153.14875-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org This patch adds support to wcd934x gpio block found in WCD9340/WC9341 Audio codecs. Signed-off-by: Srinivas Kandagatla --- drivers/gpio/Kconfig | 8 +++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-wcd934x.c | 104 ++++++++++++++++++++++++++++++++++++ 3 files changed, 113 insertions(+) create mode 100644 drivers/gpio/gpio-wcd934x.c -- 2.21.0 diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 8adffd42f8cb..3da3e228c221 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -613,6 +613,14 @@ config GPIO_VX855 additional drivers must be enabled in order to use the functionality of the device. +config GPIO_WCD934X + tristate "Qualcomm Technologies Inc WCD9340/WCD9341 gpio controller driver" + depends on MFD_WCD934X && OF_GPIO + select GPIO_GENERIC + help + This driver is to supprot GPIO block found on the Qualcomm Technologies + Inc WCD9340/WCD9341 Audio Codec. + config GPIO_XGENE bool "APM X-Gene GPIO controller support" depends on ARM64 && OF_GPIO diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile index 34eb8b2b12dd..116133f905e7 100644 --- a/drivers/gpio/Makefile +++ b/drivers/gpio/Makefile @@ -157,6 +157,7 @@ obj-$(CONFIG_GPIO_VF610) += gpio-vf610.o obj-$(CONFIG_GPIO_VIPERBOARD) += gpio-viperboard.o obj-$(CONFIG_GPIO_VR41XX) += gpio-vr41xx.o obj-$(CONFIG_GPIO_VX855) += gpio-vx855.o +obj-$(CONFIG_GPIO_WCD934X) += gpio-wcd934x.o obj-$(CONFIG_GPIO_WHISKEY_COVE) += gpio-wcove.o obj-$(CONFIG_GPIO_WINBOND) += gpio-winbond.o obj-$(CONFIG_GPIO_WM831X) += gpio-wm831x.o diff --git a/drivers/gpio/gpio-wcd934x.c b/drivers/gpio/gpio-wcd934x.c new file mode 100644 index 000000000000..0aac33235c5f --- /dev/null +++ b/drivers/gpio/gpio-wcd934x.c @@ -0,0 +1,104 @@ +// SPDX-License-Identifier: GPL-2.0 +// Copyright (c) 2019, Linaro Limited + +#include +#include +#include +#include +#include + +#define WCD_PIN_MASK(p) BIT(p - 1) +#define WCD_REG_DIR_CTL_OFFSET 0x42 +#define WCD_REG_VAL_CTL_OFFSET 0x43 +#define WCD934X_NPINS 5 + +struct wcd_gpio_data { + struct regmap *map; + struct gpio_chip chip; +}; + +static int wcd_gpio_direction_input(struct gpio_chip *chip, unsigned int pin) +{ + struct wcd_gpio_data *data = gpiochip_get_data(chip); + + return regmap_update_bits(data->map, WCD_REG_DIR_CTL_OFFSET, + WCD_PIN_MASK(pin), 0); +} + +static int wcd_gpio_direction_output(struct gpio_chip *chip, unsigned int pin, + int val) +{ + struct wcd_gpio_data *data = gpiochip_get_data(chip); + + regmap_update_bits(data->map, WCD_REG_DIR_CTL_OFFSET, + WCD_PIN_MASK(pin), WCD_PIN_MASK(pin)); + + return regmap_update_bits(data->map, WCD_REG_VAL_CTL_OFFSET, + WCD_PIN_MASK(pin), + val ? WCD_PIN_MASK(pin) : 0); +} + +static int wcd_gpio_get(struct gpio_chip *chip, unsigned int pin) +{ + struct wcd_gpio_data *data = gpiochip_get_data(chip); + int value; + + regmap_read(data->map, WCD_REG_VAL_CTL_OFFSET, &value); + + return !!(value && WCD_PIN_MASK(pin)); +} + +static void wcd_gpio_set(struct gpio_chip *chip, unsigned int pin, int val) +{ + wcd_gpio_direction_output(chip, pin, val); +} + +static int wcd_gpio_probe(struct platform_device *pdev) +{ + struct device *dev = &pdev->dev; + struct wcd_gpio_data *data; + struct gpio_chip *chip; + + data = devm_kzalloc(dev, sizeof(*data), GFP_KERNEL); + if (!data) + return -ENOMEM; + + data->map = dev_get_regmap(dev->parent, NULL); + if (!data->map) { + dev_err(dev, "%s: failed to get regmap\n", __func__); + return -EINVAL; + } + + chip = &data->chip; + chip->direction_input = wcd_gpio_direction_input; + chip->direction_output = wcd_gpio_direction_output; + chip->get = wcd_gpio_get; + chip->set = wcd_gpio_set; + chip->parent = dev; + chip->base = -1; + chip->ngpio = WCD934X_NPINS; + chip->label = dev_name(dev); + chip->of_gpio_n_cells = 2; + chip->can_sleep = false; + + return devm_gpiochip_add_data(dev, chip, data); +} + +static const struct of_device_id wcd_gpio_of_match[] = { + { .compatible = "qcom,wcd9340-gpio" }, + { .compatible = "qcom,wcd9341-gpio" }, + { } +}; +MODULE_DEVICE_TABLE(of, wcd_gpio_of_match); + +static struct platform_driver wcd_gpio_driver = { + .driver = { + .name = "wcd934x-gpio", + .of_match_table = wcd_gpio_of_match, + }, + .probe = wcd_gpio_probe, +}; + +module_platform_driver(wcd_gpio_driver); +MODULE_DESCRIPTION("Qualcomm Technologies, Inc WCD GPIO control driver"); +MODULE_LICENSE("GPL v2"); From patchwork Thu Dec 19 10:31:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 182067 Delivered-To: patch@linaro.org Received: by 2002:a92:d0a:0:0:0:0:0 with SMTP id 10csp293925iln; Thu, 19 Dec 2019 02:33:34 -0800 (PST) X-Google-Smtp-Source: APXvYqxqQaXUpB0XZVGrPqGK1Wq8Ie+uGne45kp90cnoFeZnBQudY6hLEw1n7/zBOGdDN6+NNWIf X-Received: by 2002:a9d:8f1:: with SMTP id 104mr5980129otf.107.1576751614247; Thu, 19 Dec 2019 02:33:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576751614; cv=none; d=google.com; s=arc-20160816; b=GZgyzm5Lc19l65c2rcgWz7X5SqTss7gJAWtWdDJQ+dANEXK3pScxE0V6UkQeFGb/ZW NDLHtcZkmboa+Nshdi4dDsb6HGD6xzKrVtMEC9tqMvUMZLOUJfJc+FnmbqyVGeN/seIL qU98uNBWl7SwDLrTF/lELHfnRa1PmdIb87b3DXylok3c9GcWi7/L0LBbdSgsSydW+5aL wFFVcB1SQjfI9WAsuy+qOweU9M3Gfa4760s9PUyHFlSMEybTnTguhILtmbMimOSiIkhN cmF8cfaXcyuDCtd1Y2gsMHQ847lUf5Gf9y+gygD5OdBtvJEoMlAnPWt7zDy2+QwyWYbq 1sFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YC1onaWGjgTiGrUp75mNaoNmZWZWn8ozsG+Lz8zEBxg=; b=rDBO4D63vAXbxUoXbSgdKxGkGQjxvCmvMElpQDFW2/ZLtQ/oyy2WvSBk/reQq4am92 nGeuWwMJminii0YJ09Vhgwgdq/QUHnyiLdlZegTOe3A7SfovHvpVst/rmLWeXmxfMtT0 Ds4dXOBl/fFGdE+RAG9qrWHt0WZ9HtJ1osxRIMbKkB0R77i4ov1IVAFJUSxSrW+9lS4U vrPwU7AEPKPuvkhkOQwoSBVBLShRXXM+xYJVkT8Qqhfkv3WG2PBHJccERLVhkH7sSvzL VEjT0t7Wga0UT4R1nNPbbuzOdmcqNmcwe1y/ZCfpqbZKq6AJPdqVQzuBt23JFE/SzZvn QYsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NNOtGjrv; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y9si3467564otq.315.2019.12.19.02.33.34; Thu, 19 Dec 2019 02:33:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NNOtGjrv; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726909AbfLSKdS (ORCPT + 5 others); Thu, 19 Dec 2019 05:33:18 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:35134 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726890AbfLSKdR (ORCPT ); Thu, 19 Dec 2019 05:33:17 -0500 Received: by mail-wr1-f68.google.com with SMTP id g17so5439140wro.2 for ; Thu, 19 Dec 2019 02:33:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YC1onaWGjgTiGrUp75mNaoNmZWZWn8ozsG+Lz8zEBxg=; b=NNOtGjrvusypzMTC6MJS8EMtqQcuO5BJE9acFErPQYUgb6qPZe3jFF4p61eL5laUxW tuAsMpR75YhavzwfcY99YsJDQOvMJcS/g71uP5dW1poVMEOAiKVXYsRv83f+P2DKINe6 ZnH8A4QVwNGfb7XhFy+e184o1unmEhWRUyelBx1ihqKbSfSjJnwOu+rwKIZpZOefqAI9 nV7h4ChVDZFlXPeBKt62DSex2V0RjzmGBNEQt6fObCtHkTLVVufjT5mmTO/dS8i/+hy5 M8zjIOzc5MQ0W5LhXtQn2eW+HT5wpVfM3JQxOQVqqBIOcvWYf5puQLbrXgFxtBhSU9yK krmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=YC1onaWGjgTiGrUp75mNaoNmZWZWn8ozsG+Lz8zEBxg=; b=IKBTcJRUngamnbiQWhb6mGHaOOKbHlqVMP2ThzY7VCZFNbTbJeFjCzQAuRuZmyIIFF oVWT6pplmrGKMuAR3jVxBSkK/flCaq8qAZHX4TYVEYKfUY/AYpT/U4zFfmK7wcvT4mzu XL95OPxAB9qY2UjykEXaFc27MQ5ctMZMx0sNU/9/D7oSjN/oebbILtw4HprWFez5WAid RNMFn1OoYYyjxo6hCS3GQAX58usVsKAw8od+88Y3ThiIe+v+P/+0kJYmER0kPY60MJzC USpfq1CA0Jr9ZQDJdm688I3F18LrJOD8IT1tK6NYvmA0ASpUS1qMor1bATZsapQpxltT F8GA== X-Gm-Message-State: APjAAAVbMSXqVGMglYbGFa7Z5BjBiqM4YHzoKLoIX6GVS69vILzL+Lys cmgZFtarQNrhbF/YZrrlSNOzeA== X-Received: by 2002:adf:c74f:: with SMTP id b15mr8529223wrh.272.1576751595154; Thu, 19 Dec 2019 02:33:15 -0800 (PST) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id i11sm5962942wrs.10.2019.12.19.02.33.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2019 02:33:14 -0800 (PST) From: Srinivas Kandagatla To: broonie@kernel.org, lee.jones@linaro.org, linus.walleij@linaro.org Cc: robh@kernel.org, vinod.koul@linaro.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, spapothi@codeaurora.org, bgoswami@codeaurora.org, linux-gpio@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH v6 10/11] ASoC: qcom: dt-bindings: Add compatible for DB845c and Lenovo Yoga Date: Thu, 19 Dec 2019 10:31:52 +0000 Message-Id: <20191219103153.14875-11-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191219103153.14875-1-srinivas.kandagatla@linaro.org> References: <20191219103153.14875-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org This patch adds compatible strings for DB845c and Lenovo Yoga C630 soundcard. Based on this compatible strings common machine driver will be in better position to setup board specific configuration. Signed-off-by: Srinivas Kandagatla Acked-by: Rob Herring --- Documentation/devicetree/bindings/sound/qcom,sdm845.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) -- 2.21.0 diff --git a/Documentation/devicetree/bindings/sound/qcom,sdm845.txt b/Documentation/devicetree/bindings/sound/qcom,sdm845.txt index 408c4837e6d5..ca8c89e88bfa 100644 --- a/Documentation/devicetree/bindings/sound/qcom,sdm845.txt +++ b/Documentation/devicetree/bindings/sound/qcom,sdm845.txt @@ -5,7 +5,10 @@ This binding describes the SDM845 sound card, which uses qdsp for audio. - compatible: Usage: required Value type: - Definition: must be "qcom,sdm845-sndcard" + Definition: must be one of this + "qcom,sdm845-sndcard" + "qcom,db845c-sndcard" + "lenovo,yoga-c630-sndcard" - audio-routing: Usage: Optional