Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp330857rwe; Fri, 14 Apr 2023 03:38:27 -0700 (PDT) X-Google-Smtp-Source: AKy350aDae1G4Nxty1oVfxETvsn49Gu/MU5fdDOxAZhjRjE8wgaqGvK04EDzaqNi/d6LUIOQ3i/m X-Received: by 2002:a17:903:2301:b0:1a0:57dd:b340 with SMTP id d1-20020a170903230100b001a057ddb340mr2619734plh.64.1681468706971; Fri, 14 Apr 2023 03:38:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681468706; cv=none; d=google.com; s=arc-20160816; b=DKQ0f0p6D4WSS97YCsAVd2zr5CLZ66YdjkVJX/rdUl3X5ECwjPR6uBV1JbOW329C2m Z/F617vOr8g0K91Ue//FaTL+p23AL//+9sQdzOPXh0AT1tfK/U8nJgVJhpl6739jhlWA j4OQ4aBUjeEUN5FmMHdd/WXbe50xvw3YdrJjvnn8TFLZ86zQsd8f11SL9/Y+36BHt9eJ +msru0DYAgxGo6Bg5+H9heuSb/VTHEYGhEsBChLvvo10hPYxY98OcwntlfQ1xyrF5URx 98WF3Y8ql3mZH5+N0wFmTQNB2WnQbhOj4WG2BFxIrQW6NLXZZXUJO2sfqBkUPVnRayEK 582Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=I80zwU7ZInjCVuuV0qL/PFaRjJItbxARlTbUSW52oRE=; b=aPeF0Kf8uS9No9jIn/KsvB5uSVRGWpvhgyU4b9X4LVx9rv2pYgFOWsfhr6yvfeh/PS d1sq9MbOBzKxpJA3c837gY+LvSAAj/bnY/YriTJuox22GADAivb/U/IU6Xxg5E94+xsa aF0MEbYO/TPNmJbPSQ0+PnhsZrNzLEnKvoYXYW52s+TALecYbjq7yQd93+iOSBSX4k0S W/9rSlrnz0zCrxB+qcS1TqQ0hQRuE1aHnANKsp95hNj02fIMxQL7I1SO6FFOD9H0aQ8M hxJ7/XY5V0l7hjigyEHbXPSFC4XUc+/kp5px5cl59+cbmED/KqxwCWWFuPfI3U3QOtDs QWvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=LSQtkEh+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c17-20020a630d11000000b0050f6925a400si4305642pgl.589.2023.04.14.03.38.15; Fri, 14 Apr 2023 03:38:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=LSQtkEh+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229910AbjDNKfI (ORCPT + 99 others); Fri, 14 Apr 2023 06:35:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229893AbjDNKfF (ORCPT ); Fri, 14 Apr 2023 06:35:05 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7FB7558B; Fri, 14 Apr 2023 03:35:03 -0700 (PDT) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33E9nCjW006287; Fri, 14 Apr 2023 10:34:52 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=I80zwU7ZInjCVuuV0qL/PFaRjJItbxARlTbUSW52oRE=; b=LSQtkEh+xapw4485vkOsHhf4+ffIMbXYTb8Gvn6L97mp0UEhDoj20W05wyx6AbAw20RA movo65bEm5k3RHnDXNi01HdZICQrFNL2VVGztEXuTa7xRawzbQrHlBC0JrEkBk6sRmjJ AzBDjHg8pmEk6nKtSOCnNhzzp4A2fRQFPmyE0c3mUC9utsTc9pSG9K3/a2jVOCgUamla jFjSW1fY6egL71igcHrOLxzU/kTGekum3jhJOsfSh11c1k1iWWl0WLHw/YcBp9GyXBj+ bmjOBzBNWuQgstj7VxlTAhbBG1ecw+vsB56SiwOctv6WQn3rtPzy6tUL651ZNej4WWae 6w== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3pxqf99mhc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Apr 2023 10:34:52 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 33EAYpi5015785 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Apr 2023 10:34:51 GMT Received: from srichara-linux.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Fri, 14 Apr 2023 03:34:44 -0700 From: Sricharan Ramabadhran To: , , , , , , , , , , , , , , , , , , CC: Nitheesh Sekar , Varadarajan Narayanan Subject: [PATCH V3 3/9] dt-bindings: pinctrl: qcom: Add support for ipq5018 Date: Fri, 14 Apr 2023 15:59:21 +0530 Message-ID: <1681468167-11689-4-git-send-email-quic_srichara@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1681468167-11689-1-git-send-email-quic_srichara@quicinc.com> References: <1681468167-11689-1-git-send-email-quic_srichara@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: LxEAJ6669YoDILi1u-rGtbX9CQoMgzIe X-Proofpoint-ORIG-GUID: LxEAJ6669YoDILi1u-rGtbX9CQoMgzIe X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-14_04,2023-04-14_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 mlxscore=0 suspectscore=0 malwarescore=0 spamscore=0 phishscore=0 clxscore=1015 mlxlogscore=999 priorityscore=1501 lowpriorityscore=0 bulkscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304140095 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add device tree binding Documentation details for ipq5018 pinctrl driver. Co-developed-by: Nitheesh Sekar Signed-off-by: Nitheesh Sekar Co-developed-by: Varadarajan Narayanan Signed-off-by: Varadarajan Narayanan Signed-off-by: Sricharan Ramabadhran --- [v3] Fixed review comments and DTS schema warnings .../bindings/pinctrl/qcom,ipq5018-tlmm.yaml | 129 +++++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,ipq5018-tlmm.yaml diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,ipq5018-tlmm.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,ipq5018-tlmm.yaml new file mode 100644 index 0000000..477d5df --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/qcom,ipq5018-tlmm.yaml @@ -0,0 +1,129 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,ipq5018-tlmm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm IPQ5018 TLMM pin controller + +maintainers: + - Bjorn Andersson + - Krzysztof Kozlowski + +description: + Top Level Mode Multiplexer pin controller in Qualcomm IPQ5018 SoC. + +properties: + compatible: + const: qcom,ipq5018-tlmm + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + interrupt-controller: true + "#interrupt-cells": true + gpio-controller: true + "#gpio-cells": true + gpio-ranges: true + wakeup-parent: true + + gpio-reserved-ranges: + minItems: 1 + maxItems: 33 + + gpio-line-names: + maxItems: 47 + +patternProperties: + "-state$": + oneOf: + - $ref: "#/$defs/qcom-ipq5018-tlmm-state" + - patternProperties: + "-pins$": + $ref: "#/$defs/qcom-ipq5018-tlmm-state" + additionalProperties: false + +$defs: + qcom-ipq5018-tlmm-state: + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + pattern: "^gpio([0-9]|[1-3][0-9]|4[0-6])$" + minItems: 1 + maxItems: 8 + + function: + description: + Specify the alternative function to be configured for the specified + pins. + + enum: [ atest_char, audio_pdm0, audio_pdm1, audio_rxbclk, audio_rxd, + audio_rxfsync, audio_rxmclk, audio_txbclk, audio_txd, + audio_txfsync, audio_txmclk, blsp0_i2c, blsp0_spi, blsp0_uart0, + blsp0_uart1, blsp1_i2c0, blsp1_i2c1, blsp1_spi0, blsp1_spi1, + blsp1_uart0, blsp1_uart1, blsp1_uart2, blsp2_i2c0, blsp2_i2c1, + blsp2_spi, blsp2_spi0, blsp2_spi1, btss, burn0, burn1, cri_trng, + cri_trng0, cri_trng1, cxc_clk, cxc_data, dbg_out, eud_gpio, + gcc_plltest, gcc_tlmm, gpio, led0, led2, mac0, mac1, mdc, mdio, + pcie0_clk, pcie0_wake, pcie1_clk, pcie1_wake, pll_test, + prng_rosc, pwm0, pwm1, pwm2, pwm3, qdss_cti_trig_in_a0, + qdss_cti_trig_in_a1, qdss_cti_trig_in_b0, qdss_cti_trig_in_b1, + qdss_cti_trig_out_a0, qdss_cti_trig_out_a1, + qdss_cti_trig_out_b0, qdss_cti_trig_out_b1, qdss_traceclk_a, + qdss_traceclk_b, qdss_tracectl_a, qdss_tracectl_b, + qdss_tracedata_a, qdss_tracedata_b, qspi_clk, qspi_cs, + qspi_data, reset_out, sdc1_clk, sdc1_cmd, sdc1_data, wci_txd, + wci_rxd, wsa_swrm, wsi_clk3, wsi_data3, wsis_reset, xfem ] + + bias-pull-down: true + bias-pull-up: true + bias-disable: true + drive-strength: true + input-enable: true + output-high: true + output-low: true + + required: + - pins + + additionalProperties: false + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + + tlmm: pinctrl@1000000 { + compatible = "qcom,ipq5018-tlmm"; + reg = <0x01000000 0x300000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&tlmm 0 0 47>; + interrupts = ; + interrupt-controller; + #interrupt-cells = <2>; + + uart2-state { + pins = "gpio34", "gpio35"; + function = "blsp2_uart"; + drive-strength = <8>; + bias-pull-down; + }; + }; -- 2.7.4