From nobody Tue Dec 16 23:57:30 2025 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2053ABE6F for ; Sat, 22 Jun 2024 16:49:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719074986; cv=none; b=Wt8sqJ6IwU3kC2RZ3asAMhi3EUrwkAJxbQxSCgzh9szXbGWA/NymMXWgNOYefwEQkrn8fTgijH07BSECeJhbhl4j1K1Kn0HriLji0XGigukv/iECoBXvNinIFOyzFyeDqsKSN6Hp169Ku/V8p1MUTEKI5GqfQdJNuxcpN0tsX2o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719074986; c=relaxed/simple; bh=Sf0QTJR/Hu7OukemVEkC1P6CQSycyXAXifh7MOryd9E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ffsztWCGveYw/Ul5PpawOdr5yyOSGP/ZU85MDi+kC1GHm+3A6XVEeaFZYzQEcdUUP7M2wtMTxUZEtq74iYRWtEv+E0b2sQvWfYqd/yas8OavDCytORa293mlbulbbxUvCVFWljfg7ObhoK1CFXJjEj0Q72DKY/wG99GBH2zgFAk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=d9XrB5pY; arc=none smtp.client-ip=209.85.221.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="d9XrB5pY" Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-366e70d0330so187746f8f.1 for ; Sat, 22 Jun 2024 09:49:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719074981; x=1719679781; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Aln+eminEX0kpiO1aOrLC8R1kxsbuGPbt/Mp1hkWtRo=; b=d9XrB5pY9uKmD+KY+Y9qjIHNIdgqKLiKOFP2FjrvUwwueKp9uM2eYeRZZ5p9br8oFY 5C+kK36K1SGZI9CgF9ACNc1Q0Kr3WyI/jf21sm+AtuNQ3Q/K/g5wXxAbAhG33/HyQh1m RYN06roNehXPekhbHDHmqkeY0SwPFYG8Lpb9grb7d+M14Dza9N1dA9fnr7Au65otXOZg HUzh9K+E7K/yMFToCuoKgng1p2y2sJVJ2CZtHuvQ3ZF7RAEgqA3du/Y33yiQgZueNarD x5mB8F3IPlERaDBvOYkG1eZToRwXyYbm2QApwZbXPW0SD62XrMvawPer9Q4ZD0VKHisP 38fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719074981; x=1719679781; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Aln+eminEX0kpiO1aOrLC8R1kxsbuGPbt/Mp1hkWtRo=; b=iYoOrAORn64rgBEKQFeAHPj7sw7KuZ59u+t5/HuNNqa2/SYBvwMMX6Seh8Asbo7enq AN5IBs5XbpS3MyOHS/TvxmO9I9tTLod0QB81MmfBS9oFics/Mti8wj5J0dJTQKGVaCjE LMoNqgc59AWYY4sKE41Wy685UmvLTvyrZ/2fFbevoGzA/WzFUtJ0wYkNhRXNgZJZsyyx +Vcrivc5RtxpjSgXmaqDVMNKxAiUfu7XPG2n29j9CklQrj/mhknKh+sKw2JZ6KMzP7uF iCsq8dspNXKSTbxS/aIbpHnqBMYVgpuA0q32ZmiRRmri3AgF8KCjzFW39yBwAPv4HI05 /Y4g== X-Forwarded-Encrypted: i=1; AJvYcCXctt3JnEmgG8mgauooV4qJbUSKn201eeocFo70LxCL00g8MbHca5hxHBr13ck/VP8eDL3JH1k7fziUYJKx0H6GLPhzzJ0WVnHYVIXC X-Gm-Message-State: AOJu0Yy8d5QJkjry/tiVHGZxKGPs48j1EDpn9QtYUlov+Rqtx2FVhQjZ EI+t3LZ3vCDRtEQw8+xX6b+pUWjhQi0bHcjNqmKkazYmoNzvxyL2CrocKrdFDrY= X-Google-Smtp-Source: AGHT+IHGyaQuNel3rRyyzaXIhTQ0TuAMuKWZlPhXZMrPiDA3IPzWBySMuiKr86UqNkxtt9dV6QBxiA== X-Received: by 2002:a05:6000:1bd1:b0:35f:20da:e1a2 with SMTP id ffacd0b85a97d-366e94d165fmr147813f8f.30.1719074981459; Sat, 22 Jun 2024 09:49:41 -0700 (PDT) Received: from [192.168.1.195] ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3663a8c8b27sm5030730f8f.104.2024.06.22.09.49.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Jun 2024 09:49:41 -0700 (PDT) From: Srinivas Kandagatla Date: Sat, 22 Jun 2024 17:49:30 +0100 Subject: [PATCH v2 v4 1/2] dt-bindings: pinctrl: qcom: Add SM4250 pinctrl 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: quoted-printable Message-Id: <20240612-sm4250-lpi-v4-1-a0342e47e21b@linaro.org> References: <20240612-sm4250-lpi-v4-0-a0342e47e21b@linaro.org> In-Reply-To: <20240612-sm4250-lpi-v4-0-a0342e47e21b@linaro.org> To: Bjorn Andersson , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alexey.klimov@linaro.org, Srinivas Kandagatla X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=4210; i=srinivas.kandagatla@linaro.org; h=from:subject:message-id; bh=Sf0QTJR/Hu7OukemVEkC1P6CQSycyXAXifh7MOryd9E=; b=owEBbQGS/pANAwAKAXqh/VnHNFU3AcsmYgBmdwCiJoBdNttQui4uzT9TJ8TFykAyihd5AICOf 5F904RW6cCJATMEAAEKAB0WIQQi509axvzi9vce3Y16of1ZxzRVNwUCZncAogAKCRB6of1ZxzRV NzxWCACWKw/Hv8bZevHaWtWYOUqrqSdlhxaPdxdMR5jlqsEtg9npKJi1cf206tw0Z9j0En2LH/B KP43H51nCtqYNR/gPpHnZDu4nFwJYZ89SprY9VmzdFk2u4y4gEgC8E45o2kq9nPQmhiBars8Fzv wUjNnI+QyT9O6+K8Fk6pgJuraaroTKS9BBF71Reyj2utNqnXs99iqX+u6Dj2h1WdPzy28Do24sF Hw0IZyXHs0p15XQk5nIRDgiBLPYG0M5rTaCT9CIIufdxqZmLueIp0UrlnbFlS5mHscDjpTJM+9j vC58dpSkynIFBM3SgaIXdjJJofFU+2H9gtFll/dcR0rO6OCf X-Developer-Key: i=srinivas.kandagatla@linaro.org; a=openpgp; fpr=ED6472765AB36EC43B3EF97AD77E3FC0562560D6 Add device tree binding Documentation details for Qualcomm SM4250 LPASS LPI(Low power Island) pinctrl device. Signed-off-by: Srinivas Kandagatla Reviewed-by: Krzysztof Kozlowski --- .../pinctrl/qcom,sm4250-lpass-lpi-pinctrl.yaml | 118 +++++++++++++++++= ++++ 1 file changed, 118 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sm4250-lpass-lp= i-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sm4250-lpas= s-lpi-pinctrl.yaml new file mode 100644 index 000000000000..9612e21183fa --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sm4250-lpass-lpi-pinct= rl.yaml @@ -0,0 +1,118 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,sm4250-lpass-lpi-pinctrl.y= aml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SM4250 SoC LPASS LPI TLMM + +maintainers: + - Srinivas Kandagatla + +description: + Top Level Mode Multiplexer pin controller in the Low Power Audio SubSyst= em + (LPASS) Low Power Island (LPI) of Qualcomm SM4250 SoC. + +properties: + compatible: + const: qcom,sm4250-lpass-lpi-pinctrl + + reg: + items: + - description: LPASS LPI TLMM Control and Status registers + - description: LPASS LPI MCC registers + + clocks: + items: + - description: LPASS Audio voting clock + + clock-names: + items: + - const: audio + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-sm4250-lpass-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-sm4250-lpass-state" + additionalProperties: false + +$defs: + qcom-sm4250-lpass-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configura= tion. + Client device subnodes use below standard properties. + $ref: qcom,lpass-lpi-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + pattern: "^gpio([0-9]|1[0-9]|2[0-6])$" + + function: + enum: [ gpio, dmic01_clk, dmic01_data, dmic23_clk, dmic23_data, + dmic4_clk, dmic4_data, ext_mclk0_a, ext_mclk0_b, ext_mclk1= _a, + ext_mclk1_b, ext_mclk1_c, i2s1_clk, i2s1_data, i2s1_ws, + i2s2_clk, i2s2_data, i2s2_ws, i2s3_clk, i2s3_data, i2s3_ws, + qua_mi2s_data, qua_mi2s_sclk, qua_mi2s_ws, slim_clk, slim_= data, + swr_rx_clk, swr_rx_data, swr_tx_clk, swr_tx_data, swr_wsa_= clk, + swr_wsa_data ] + description: + Specify the alternative function to be configured for the specif= ied + pins. + +allOf: + - $ref: qcom,lpass-lpi-common.yaml# + +required: + - compatible + - reg + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + #include + lpi_tlmm: pinctrl@a7c0000 { + compatible =3D "qcom,sm4250-lpass-lpi-pinctrl"; + reg =3D <0xa7c0000 0x20000>, + <0xa950000 0x10000>; + clocks =3D <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUP= LE_NO>; + clock-names =3D "audio"; + gpio-controller; + #gpio-cells =3D <2>; + gpio-ranges =3D <&lpi_tlmm 0 0 19>; + + i2s2-active-state { + clk-pins { + pins =3D "gpio10"; + function =3D "i2s2_clk"; + drive-strength =3D <2>; + slew-rate =3D <1>; + bias-disable; + }; + + data-pins { + pins =3D "gpio12"; + function =3D "i2s2_data"; + drive-strength =3D <2>; + slew-rate =3D <1>; + }; + }; + + i2s2-sleep-clk-state { + pins =3D "gpio10"; + function =3D "i2s2_clk"; + drive-strength =3D <2>; + bias-pull-down; + }; + }; --=20 2.25.1