From patchwork Sat Jan 6 01:51:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 123597 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp63913qgn; Fri, 5 Jan 2018 17:51:12 -0800 (PST) X-Google-Smtp-Source: ACJfBouajFTFsYUwBhquxA3f0cgrwwrLx/DDd24vfd3QOyDa/gIEJwh4ABAZiVWTgwarVL9opxMd X-Received: by 10.84.231.205 with SMTP id g13mr4888095pln.248.1515203472281; Fri, 05 Jan 2018 17:51:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515203472; cv=none; d=google.com; s=arc-20160816; b=xsOfFoNt3hAWZoKmJSdKL5SNSZ+ny2NBPuqaY9sc/w3NucW8yC2pd6gfw4SKin0don OX0X8i5kIU7cqm6xIC8+NXxVPnmuwsP246nzTsxaDOoeZ39yfOL8nZ8kGpPCPJGIJDm9 Q0bI2rmSgv8rhyS1sQGljCaQgWLSKyXueak9u+tgBOuydz9H5fnvYIApv0MfbKJv+wXA RkWb+1E0xeGnIFCrvUg/e/trnIWBYD/HRLh0BbI97crugScYJS2yxQy4MAfgpS8Fi0l6 0clhoC3rZ7eI2HBtc38O2wpS7gQabHhS/AE5VhPZIyJNdDJpeRafWXr65zeATZt1QTXE VnEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=yhYqmDfo+xsU0Z73GH2VjWeoLU0dRG6Gnblc+xzmmRs=; b=MyiufDxX+N/C74jOI2D1vP+Iw1+tKFiFzTuNtzmOGHyJHU3TyfhuXyvbo/Clff/s/N /Sidumx1YxlobXuD+LW6FLlC6fR9aXc8DZChB7rBH5tLZ2WjTj4ddwsTv5vycoewIMKj G5J9NFZALV/DwJhjJIa2rQvNlkJvuiCgCkAIDEjQ8SVOekzc+Sbvs8zwUYgiFQzYsa9w cGnIPnNXoWSjlbkyr7nJAwLSSyMcpbwlX9EEjeq4Xp0epWbRLim7a76Vpx6PqiGDtQiS yXjv+XD23E+WXmvMQYu7g23oeJHWnigsdLf6aOOQ90bY1UYxf9p+P7o3sJ6WI+TAU7N0 4gGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=bNmJF7uH; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (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 y73si4864668pfb.364.2018.01.05.17.51.11; Fri, 05 Jan 2018 17:51:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=bNmJF7uH; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753585AbeAFBvK (ORCPT + 10 others); Fri, 5 Jan 2018 20:51:10 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:33591 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753560AbeAFBvI (ORCPT ); Fri, 5 Jan 2018 20:51:08 -0500 Received: by mail-pg0-f67.google.com with SMTP id i196so2657989pgd.0 for ; Fri, 05 Jan 2018 17:51:08 -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; bh=6DDdl/qeIVI9ax5zdTxY+fq409BDcIny7EDH1mS2788=; b=bNmJF7uHin2sTvrpDZ/0+dG21q4UKYtie+NiboB5tZjP1U+1yJUj2gdg+chRSU0SK6 +QXNjrJuzL1WLRAXiKfvm+4q5Oge9alaDyAiN13ex6/YOzeC8Bc34n1WoQ46c22y4JhR YWnAWH3s3bXb8lq8WlzG1BjuXHsBf/pPkzk7I= 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; bh=6DDdl/qeIVI9ax5zdTxY+fq409BDcIny7EDH1mS2788=; b=NpAXJihuA/fp0d0PVPllC8lEzaSaXm6O21ygfvow/pMB0Fpj+gd5MklnloDJLNNvMy j3QgfGhlAPIm3gjcUBo425adn+MzYC+S2HZ4O0RO+smfzscfD0C4K3fOFRPziN8eWz9B qFxBshvao6QTZnvYgVYsR5PgQybT6+ClqbQFNbLm31X4Nx7jVIfGuAK65p+QjgxvUvxd i74gtLFZL2Tjzu9y3X3pIyeNTcYlR8WpThdW4XDk3mL97UfOrgUCopVovJtzVpox3Zhq FY19xGZZvdRtEyAF2fSP+HkSRc43DvaiBC7mnzKa4HSJzYBxofsGTiqnuaLpRUoKEnAA v2sg== X-Gm-Message-State: AKGB3mK5ufoJOAMxrAPlsbPjYcwGOAPGwOWyWWcvPOdksZ5O53jSlSCq NWdLc4D34RKB1VI8vSWf7nPwqA== X-Received: by 10.98.10.28 with SMTP id s28mr4595193pfi.92.1515203467765; Fri, 05 Jan 2018 17:51:07 -0800 (PST) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id u67sm15050350pfd.162.2018.01.05.17.51.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Jan 2018 17:51:07 -0800 (PST) From: Bjorn Andersson To: Bjorn Andersson , Linus Walleij , Rob Herring , Mark Rutland Cc: linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: pinctrl: Add Qualcomm SDM845 TLMM binding Date: Fri, 5 Jan 2018 17:51:03 -0800 Message-Id: <20180106015104.19143-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.15.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This adds the DeviceTree binding for the Qualcomm SDM845 TLMM block. Signed-off-by: Bjorn Andersson --- .../bindings/pinctrl/qcom,sdm845-pinctrl.txt | 176 +++++++++++++++++++++ 1 file changed, 176 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.txt -- 2.15.0 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.txt new file mode 100644 index 000000000000..9ce1fd55d63e --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.txt @@ -0,0 +1,176 @@ +Qualcomm SDM845 TLMM block + +This binding describes the Top Level Mode Multiplexer block found in the +SDM845 platform. + +- compatible: + Usage: required + Value type: + Definition: must be "qcom,sdm845-pinctrl" + +- reg: + Usage: required + Value type: + Definition: the base address and size of the TLMM register space. + +- interrupts: + Usage: required + Value type: + Definition: should specify the TLMM summary IRQ. + +- interrupt-controller: + Usage: required + Value type: + Definition: identifies this node as an interrupt controller + +- #interrupt-cells: + Usage: required + Value type: + Definition: must be 2. Specifying the pin number and flags, as defined + in + +- gpio-controller: + Usage: required + Value type: + Definition: identifies this node as a gpio controller + +- #gpio-cells: + Usage: required + Value type: + Definition: must be 2. Specifying the pin number and flags, as defined + in + +Please refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for +a general description of GPIO and interrupt bindings. + +Please refer to pinctrl-bindings.txt in this directory for details of the +common pinctrl bindings used by client devices, including the meaning of the +phrase "pin configuration node". + +The pin configuration nodes act as a container for an arbitrary number of +subnodes. Each of these subnodes represents some desired configuration for a +pin, a group, or a list of pins or groups. This configuration can include the +mux function to select on those pin(s)/group(s), and various pin configuration +parameters, such as pull-up, drive strength, etc. + + +PIN CONFIGURATION NODES: + +The name of each subnode is not important; all subnodes should be enumerated +and processed purely based on their content. + +Each subnode only affects those parameters that are explicitly listed. In +other words, a subnode that lists a mux function but no pin configuration +parameters implies no information about any pin configuration parameters. +Similarly, a pin subnode that describes a pullup parameter implies no +information about e.g. the mux function. + + +The following generic properties as defined in pinctrl-bindings.txt are valid +to specify in a pin configuration subnode: + +- pins: + Usage: required + Value type: + Definition: List of gpio pins affected by the properties specified in + this subnode. + + Valid pins are: + gpio0-gpio149 + Supports mux, bias and drive-strength + + sdc2_clk, sdc2_cmd, sdc2_data + Supports bias and drive-strength + +- function: + Usage: required + Value type: + Definition: Specify the alternative function to be configured for the + specified pins. Functions are only valid for gpio pins. + Valid values are: + + gpio, adsp_ext, agera_pll, atest_char, atest_tsens, + atest_tsens2, atest_usb1, atest_usb10, atest_usb11, + atest_usb12, atest_usb13, atest_usb2, atest_usb20, + atest_usb21, atest_usb22, atest_usb23, audio_ref, + btfm_slimbus, cam_mclk, cci_async, cci_i2c, cci_timer0, + cci_timer1, cci_timer2, cci_timer3, cci_timer4, cri_trng, + cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, + ddr_pxi1, ddr_pxi2, ddr_pxi3, edp_hot, edp_lcd, gcc_gp1, + gcc_gp2, gcc_gp3, jitter_bist, ldo_en, ldo_update, + lpass_slimbus, m_voc, mdp_vsync, mdp_vsync0, mdp_vsync1, + mdp_vsync2, mdp_vsync3, mss_lte, nav_pps, pa_indicator, + pci_e0, pci_e1, phase_flag, pll_bist, pll_bypassnl, + pll_reset, pri_mi2s, pri_mi2s_ws, prng_rosc, qdss_cti, + qdss, qlink_enable, qlink_request, qua_mi2s, qup0, qup1, + qup10, qup11, qup12, qup13, qup14, qup15, qup2, qup3, qup4, + qup5, qup6, qup7, qup8, qup9, qup_l4, qup_l5, qup_l6, + sd_write, sdc4_clk, sdc4_cmd, sdc4_data, sec_mi2s, sp_cmu, + spkr_i2s, ter_mi2s, tgu_ch0, tgu_ch1, tgu_ch2, tgu_ch3, + tsense_pwm1, tsense_pwm2, tsif1_clk, tsif1_data, tsif1_en, + tsif1_error, tsif1_sync, tsif2_clk, tsif2_data, tsif2_en, + tsif2_error, tsif2_sync, uim1_clk, uim1_data, uim1_present, + uim1_reset, uim2_clk, uim2_data, uim2_present, uim2_reset, + uim_batt, usb_phy, vfr_1, vsense_trigger, wlan1_adc0, + wlan1_adc1, wlan2_adc0, wlan2_adc1, + +- bias-disable: + Usage: optional + Value type: + Definition: The specified pins should be configued as no pull. + +- bias-pull-down: + Usage: optional + Value type: + Definition: The specified pins should be configued as pull down. + +- bias-pull-up: + Usage: optional + Value type: + Definition: The specified pins should be configued as pull up. + +- output-high: + Usage: optional + Value type: + Definition: The specified pins are configured in output mode, driven + high. + Not valid for sdc pins. + +- output-low: + Usage: optional + Value type: + Definition: The specified pins are configured in output mode, driven + low. + Not valid for sdc pins. + +- drive-strength: + Usage: optional + Value type: + Definition: Selects the drive strength for the specified pins, in mA. + Valid values are: 2, 4, 6, 8, 10, 12, 14 and 16 + +Example: + + tlmm: pinctrl@03400000 { + compatible = "qcom,sdm845-pinctrl"; + reg = <0x03400000 0xc00000>; + interrupts = ; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + + qup9_active: qup9-active { + mux { + pins = "gpio4", "gpio5"; + function = "qup9"; + }; + + config { + pins = "gpio4", "gpio5"; + drive-strength = <2>; + bias-disable; + }; + }; + }; +