From patchwork Sat Jul 22 08:52:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13322880 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6C378EB64DA for ; Sat, 22 Jul 2023 08:53:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=r+2sA+WdsBhHN+tquA69VBMmQVwz1dZyu0/J9WMUmvU=; b=mkifNnuPpMPHPV NSnKOza2Wc6Q1jpidvfMalDGAkZcj0DFvYBtcY9bWjh8fqSfWlrT9nim04N+83dThNAhcZFxd2QFV i9n13lBaEDWpraCKrmlKaMYfB4k860bl7CHCJTsC0RmEwl9hvsTDkZmFQeM/+6I21MpTgQm14xtBt RByWsjMb5qywH618PrhPhNfF0CavOWaTaTy/PEq9AWHMruDw+mdYmcTBUnk3mGHq4y3VEnW7B6IEa 0cw8qaie48H+cJ3OwJUVf/5VmVGEuMvrqwmusZ5TJ/nefD1XxK9gbml+ngAtf4+Y7F5BVVLAoDqTT Ukkwb+Y+QNFRgy9jCyvw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qN8MG-00GBv5-1l; Sat, 22 Jul 2023 08:53:00 +0000 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qN8MD-00GBt4-1N for linux-arm-kernel@lists.infradead.org; Sat, 22 Jul 2023 08:52:59 +0000 Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2b9540031acso39356171fa.3 for ; Sat, 22 Jul 2023 01:52:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690015974; x=1690620774; 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=oLi0ZxQW1HPTfc+V8jkz5vcYl8Z+aYUPawOmFoE8J38=; b=X58oriPd1dkJhPP8sly94KSAJqrO2uFkX8CLOO5gEUpSYgCZQgKClTjMqKHGxGg+SQ tuQ+cGocCdhnZcAsSOPseGsoHA8N+Yw92oGriX/kUPGBcSUJf6O8Vin1rkxB/NnowuoG X94GoHQ2f+mQ4pqSrH1Gcz6VsH6Cfd+WWoS3X7WbEdV9V1meXHd67fIjuFTcBV94fxmS cW3rVxdVuw/FrfqelPaYWypeLsCMeJ6I/12brYeoP+L3lG+cvV/5o7CDM82SisV9gCy7 X3bIjAJT3QGThNcC5WbHLYxLdpWRl1E7q4oiLCdVtC7g/ee86Gg98mmHhjwhS4hTU/1m TEvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690015974; x=1690620774; 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=oLi0ZxQW1HPTfc+V8jkz5vcYl8Z+aYUPawOmFoE8J38=; b=OozVy2PchkMPK2/1TZ3sLtNn4v+FVfPfku/Fz8GhkZZk2BOOOcbuy4vk5X81k+AbQS Pce7bvNzVQ/9uqoEyACBgH5Hu2tQMKzSUaHUKOznN0MjXcoevks+6QYSh+y+UxC92Drl ZAQl4fyXzVpEsXvWyK5pIaPiSFeMm3ME/m/5zgNDHWhSaIBflgE6wYV9oRxmAI+ZX0QY bFHmBKxKgJ1M51nKDzc3JgXI+ZDwJYUDVL8Sb33QmRKcN1lUJtmDXXhAbbqukyBA2Nz/ yovAn3qG0C39MD5IIWgmzUk9bGMG/aioDdVcyz1/uwU3O+YuMZrXlIy9i+83gLxMUN+t Nn4Q== X-Gm-Message-State: ABy/qLZ/amu5MSWj/AZjP4Q5PsqUkmLjfEGXh4hJFmohkx1gIBDEnHfR +fSehGH84onN0IeyyOM33pLQlA== X-Google-Smtp-Source: APBJJlHGQI8qaUrOKPg6gnzzv8f+08Icu/BhHhKInUry0hT/Y1cw/896sWky5wPZg8NhbfGl7kokjA== X-Received: by 2002:a19:6d16:0:b0:4f8:4177:e087 with SMTP id i22-20020a196d16000000b004f84177e087mr2437113lfc.47.1690015974292; Sat, 22 Jul 2023 01:52:54 -0700 (PDT) Received: from [192.168.1.101] (abyj181.neoplus.adsl.tpnet.pl. [83.9.29.181]) by smtp.gmail.com with ESMTPSA id x9-20020ac259c9000000b004fbf5242e8bsm1107034lfn.231.2023.07.22.01.52.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Jul 2023 01:52:53 -0700 (PDT) From: Konrad Dybcio Date: Sat, 22 Jul 2023 10:52:45 +0200 Subject: [PATCH 1/3] dt-bindings: pinctrl: qcom,sm6115-lpass-lpi: add SM6115 LPASS TLMM MIME-Version: 1.0 Message-Id: <20230722-topic-6115_lpasstlmm-v1-1-32d1643d8774@linaro.org> References: <20230722-topic-6115_lpasstlmm-v1-0-32d1643d8774@linaro.org> In-Reply-To: <20230722-topic-6115_lpasstlmm-v1-0-32d1643d8774@linaro.org> To: Andy Gross , Bjorn Andersson , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Catalin Marinas , Will Deacon Cc: Marijn Suijten , Konrad Dybcio , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1690015971; l=4326; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=c43yKRy0X3J5bR0oJzd2QzC0RF8oja+5GuFLw0rnLyM=; b=iVWBp23i34c79z8+M30T/6QTmi7ZvcvfJOz4DOcbFsetM4DlLtYcHMx7GHiGwEO/BEDqUfTHf da1bCH1Q/V+D3poxjeyBpMA0fOkaE/ObabBdbVr0EHNNcQ1T3CliTtQ X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230722_015257_472311_B79CE76F X-CRM114-Status: GOOD ( 13.05 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add bindings for pin controller in SM6115 Low Power Audio SubSystem LPASS). Signed-off-by: Konrad Dybcio --- .../pinctrl/qcom,sm6115-lpass-lpi-pinctrl.yaml | 135 +++++++++++++++++++++ 1 file changed, 135 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sm6115-lpass-lpi-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sm6115-lpass-lpi-pinctrl.yaml new file mode 100644 index 000000000000..1fe876e6bd66 --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sm6115-lpass-lpi-pinctrl.yaml @@ -0,0 +1,135 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,sm6115-lpass-lpi-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SM6115 SoC LPASS LPI TLMM + +maintainers: + - Konrad Dybcio + - Srinivas Kandagatla + +description: + Top Level Mode Multiplexer pin controller in the Low Power Audio SubSystem + (LPASS) Low Power Island (LPI) of Qualcomm SM6115 SoC. + +properties: + compatible: + const: qcom,sm6115-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 + + gpio-controller: true + + "#gpio-cells": + description: Specifying the pin number and flags, as defined in + include/dt-bindings/gpio/gpio.h + const: 2 + + gpio-ranges: + maxItems: 1 + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-sm6115-lpass-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-sm6115-lpass-state" + additionalProperties: false + +$defs: + qcom-sm6115-lpass-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: /schemas/pinctrl/pincfg-node.yaml + + 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-2])$" + + function: + enum: [ dmic01_clk, dmic01_data, dmic23_clk, dmic23_data, gpio, 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, + swr_rx_clk, swr_rx_data, swr_tx_clk, swr_tx_data, wsa_mclk ] + description: + Specify the alternative function to be configured for the specified + pins. + + drive-strength: + enum: [2, 4, 6, 8, 10, 12, 14, 16] + default: 2 + description: + Selects the drive strength for the specified pins, in mA. + + slew-rate: + enum: [0, 1, 2, 3] + default: 0 + description: | + 0: No adjustments + 1: Higher Slew rate (faster edges) + 2: Lower Slew rate (slower edges) + 3: Reserved (No adjustments) + + bias-bus-hold: true + bias-pull-down: true + bias-pull-up: true + bias-disable: true + input-enable: true + output-high: true + output-low: true + + required: + - pins + - function + + additionalProperties: false + +allOf: + - $ref: pinctrl.yaml# + +required: + - compatible + - reg + - clocks + - clock-names + - gpio-controller + - "#gpio-cells" + - gpio-ranges + +additionalProperties: false + +examples: + - | + #include + + lpass_tlmm: pinctrl@a7c0000 { + compatible = "qcom,sm6115-lpass-lpi-pinctrl"; + reg = <0x0a7c0000 0x20000>, + <0x0a950000 0x10000>; + clocks = <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + clock-names = "audio"; + + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&lpass_tlmm 0 0 15>; + };