Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp360678lqt; Thu, 6 Jun 2024 06:05:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWGp+31BxpO9Rwm77lNHuita6fk30vEgd0Axe+Pt3JUzv/21OkPzr5i9HMy37rLg0pDoXnGllrZNtLpOaIbSQoLNqQYkdlid2g3dYtc2A== X-Google-Smtp-Source: AGHT+IH5/Db0J7bLSCUqv9HqDK1UmXOioUiwsWLhS0YiscHZ13xn2vkl/pXtD7fdIbgbAa1YFeYK X-Received: by 2002:a05:6a20:12d3:b0:1b2:ab9f:4544 with SMTP id adf61e73a8af0-1b2b6e2d469mr6399702637.7.1717679103399; Thu, 06 Jun 2024 06:05:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717679103; cv=pass; d=google.com; s=arc-20160816; b=xnCJMoDguLYgIcCnstbk3rZ0QE44I2RrbDBDXjmM8MP5MDlnkvZIrSGl6AoD3a+lUs 00PNSG3tvEVos5DOWSpBUdt7oTKWPiY7sklEH8J/G2M77T6jFD9cWs7I+18n2EsQZ5UZ X1VcxoFchb8a8jJtj69dA9AvD6dybaMbG36WuO3Mn74jbyNOmUKa7nKimwLsml1nWHbq 5TA90iucEUgcS/UfHa10Bz8l/qap0LU20DUpGpzCXvNe/YZkFlUVlF5XvWe/fzFPS2/9 y0WKUgD7w8Xrc/IH2xFZVDMnaaxTff5jCdfuWE9kcH4/rX260xsgC9WTgiOxIWD6ZljW DQzQ== 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=fuSq2gEANHXtmu+UUYCavqRwPgfGh0Xr65LspIuW5Dg=; fh=+9chKAhyxIK4TCkwFiMJqeslLezhsGOiUNZl7rgQAW8=; b=s4XvYP12SNvK8pQop5BchQqI08UuMtfA/ZH9BupkSFRlMsqdqCNirrDURxooNf27rU AN6Uy0WgBEAFGqWCpHP2b2YdBWYHgiR/yNqoyyib9dMUnYRuPDyNNywtBI0I6aFVmGpR zy31ZqBuiX3rnCeVxsv2R32lpDn8eVZ4J2wMzoVTneIzngS6XX0o5it3gyy2pjCFifsE nZHxl2fEpdNtN66Gmchl4S0FTfubBJ7MzJktdLelXXPXExc4lQ3rFsMgq+t9nP1BS+Un erp06EklYFcfDfxrFtgJOAjgZO0MUZQ7WMxKVb2sOk7U+Oxccr7gMxSromEllYafpB1S jw4Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=joPzXi64; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-204311-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204311-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-703fd565767si920202b3a.327.2024.06.06.06.05.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 06:05:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204311-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=@linaro.org header.s=google header.b=joPzXi64; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-204311-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204311-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C44B3286604 for ; Thu, 6 Jun 2024 13:04:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 078B0195F16; Thu, 6 Jun 2024 13:04:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="joPzXi64" Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (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 2EA98195B1F for ; Thu, 6 Jun 2024 13:04:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717679054; cv=none; b=n9DqN4gD5ExZUm40WqFTNAFVtLrUQtk0cBwUIHuzUj3qMw24GV09JbXM4MCOi36CQzsLsxrm0JlF0VJyrU6SBtqy83aEOAP8MwHEIs9oMRPdwlmZCerd3QOkOBKn1ajWk9WIkXLnnbOvh0wViJbLUN2sk7EKQEbAnCi/A9Vr4bE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717679054; c=relaxed/simple; bh=GAPH2Z7eu9DetUGOatBhUGzqxV8I0ITlkgNM75wQwFo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=J4JVWfcHtZzNfusTZbsKWrszhaRrXeepJn8+UR0x/M2R8e7EFBgCSEiBtbvIKStbL7A2XoHoNpgQb56yKVvER9Q3hc/XrMB1FgXMyD1LxtTqvYvOKqQ0ZyAfBtJkJTndEq/v6UigkcL2RCbwqNZ+CNjMUqX5wibUYjJap4mtQec= 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=joPzXi64; arc=none smtp.client-ip=209.85.221.54 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 Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-35dcc681f70so712843f8f.0 for ; Thu, 06 Jun 2024 06:04:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717679050; x=1718283850; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fuSq2gEANHXtmu+UUYCavqRwPgfGh0Xr65LspIuW5Dg=; b=joPzXi64Z2/YLInMpaXCxdHjsOFsx0X0m43XZbLLAR5wWeNqUMENSyT8G/0yunl0N9 S/7vQ+6rRlmFonbgJviLyIye3UQ7bPuoOS1rpb1Zb/gxmKVO9aHs8O+rGFd+t2Bpj32w BYawKtZriWqnQmk4XMlS1iXm1lPsfIc8FzfJFozE1KVwkQ8CpuuWMBBZYfn5Cm1Rx7os 2x8MN8hGaipFRsjTUfm83SSWU9xhYVI/vo9VCxrRRWYm61Ioep9uhfkK6jp79Re/g+/g lpo1zHXqZkydXNHRkTgiIV1ijlWIrQFldND3iTVLjyDatqGicMScEMuDIgKw1SxOOc1Q 1x3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717679050; x=1718283850; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fuSq2gEANHXtmu+UUYCavqRwPgfGh0Xr65LspIuW5Dg=; b=pH9ZeIv9rJ92RxgtvNb5p8c/QdsdXkrBHGu11mNnMjmn/X8QRYiKStayt/z+HNYVFD m5CwpnGg5QU9Pum4jrJ/sORH3jSzhrYBnaucWZ20p3RBR5JSKMYkYr8gcPmueE3me/4d DIQxDI9qUoXyxifKqraWS2ifAEHZBZz5LUNINhphlAvQ5OTmM5JkrvCXXUUfyS3XN4K9 7t329lhvRKHTq/uQ7BH1Tjxg/erCtpVl2XZ3+j3rGRtPcPAEnai1/PZqdars8MsF6DUI ovEZ8PdO3e7IO8Kl79DQ2h8iZl90RXn0NOvG+EdUhe9PM5XToQe8u0LLKJAKxxWspN9n C/rQ== X-Forwarded-Encrypted: i=1; AJvYcCXS4eu2ePjiJdaeojQEscdtoYRefQyLbTBJ4ZLqXlzEZIiy8QFGMAMXhPffHsGSv65b47g8VWJYbeRJw3bLsjQsban5bYDG/TkllDtM X-Gm-Message-State: AOJu0Yyu6XLzMf/GLYJd+vYMLRymFOhVwFYupK7j0NzYHPW5HCC4x2BY toyJRP8EwmdwGlsw1FklBdGGSkLx1OMzZ1boSDRDcUvmkfjKtK+jWJBnE2DgcwY= X-Received: by 2002:a5d:404d:0:b0:35e:7de9:bdb1 with SMTP id ffacd0b85a97d-35e8ef77e12mr4252978f8f.53.1717679050350; Thu, 06 Jun 2024 06:04:10 -0700 (PDT) Received: from localhost.localdomain ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35ef5d49dfcsm1505286f8f.39.2024.06.06.06.04.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 06:04:09 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: andersson@kernel.org, linus.walleij@linaro.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, srinivas.kandagatla@linaro.org, linux-arm-msm@vger.kernel.org, inux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: pinctrl: qcom: Add SM4250 pinctrl Date: Thu, 6 Jun 2024 14:03:22 +0100 Message-Id: <20240606130323.138970-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240606130323.138970-1-srinivas.kandagatla@linaro.org> References: <20240606130323.138970-1-srinivas.kandagatla@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Srinivas Kandagatla Add device tree binding Documentation details for Qualcomm SM4250 LPASS LPI(Low power Island) pinctrl device. Signed-off-by: Srinivas Kandagatla --- .../qcom,sm4250-lpass-lpi-pinctrl.yaml | 119 ++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,sm4250-lpass-lpi-pinctrl.yaml diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sm4250-lpass-lpi-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sm4250-lpass-lpi-pinctrl.yaml new file mode 100644 index 000000000000..3968a363aa51 --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sm4250-lpass-lpi-pinctrl.yaml @@ -0,0 +1,119 @@ +# 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.yaml# +$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 SubSystem + (LPASS) Low Power Island (LPI) of Qualcomm SM4250 SoC. + +properties: + compatible: + const: qcom,sm4250-lpass-lpi-pinctrl + + reg: + maxItems: 2 + + 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 configuration. + 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: + oneOf: + - pattern: "^gpio([0-9]|1[0-8])$" + minItems: 1 + maxItems: 19 + + 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 specified + pins. + +allOf: + - $ref: qcom,lpass-lpi-common.yaml# + +required: + - compatible + - reg + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + #include + lpi_tlmm: pinctrl@a7c0000 { + compatible = "qcom,sm4250-lpass-lpi-pinctrl"; + reg = <0xa7c0000 0x20000>, + <0xa950000 0x10000>; + clocks = <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + clock-names = "audio"; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&lpi_tlmm 0 0 19>; + + i2s2-active-state { + clk-pins { + pins = "gpio10"; + function = "i2s2_clk"; + drive-strength = <2>; + slew-rate = <1>; + bias-disable; + }; + + data-pins { + pins = "gpio12"; + function = "i2s2_data"; + drive-strength = <2>; + slew-rate = <1>; + }; + }; + + i2s2-sleep-clk-state { + pins = "gpio10"; + function = "i2s2_clk"; + drive-strength = <2>; + bias-pull-down; + }; + }; -- 2.25.1