18c2ecf20Sopenharmony_ciQualcomm IPQ8064 TLMM block
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciRequired properties:
48c2ecf20Sopenharmony_ci- compatible: "qcom,ipq8064-pinctrl"
58c2ecf20Sopenharmony_ci- reg: Should be the base address and length of the TLMM block.
68c2ecf20Sopenharmony_ci- interrupts: Should be the parent IRQ of the TLMM block.
78c2ecf20Sopenharmony_ci- interrupt-controller: Marks the device node as an interrupt controller.
88c2ecf20Sopenharmony_ci- #interrupt-cells: Should be two.
98c2ecf20Sopenharmony_ci- gpio-controller: Marks the device node as a GPIO controller.
108c2ecf20Sopenharmony_ci- #gpio-cells : Should be two.
118c2ecf20Sopenharmony_ci                The first cell is the gpio pin number and the
128c2ecf20Sopenharmony_ci                second cell is used for optional parameters.
138c2ecf20Sopenharmony_ci- gpio-ranges: see ../gpio/gpio.txt
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ciOptional properties:
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci- gpio-reserved-ranges: see ../gpio/gpio.txt
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ciPlease refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for
208c2ecf20Sopenharmony_cia general description of GPIO and interrupt bindings.
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ciPlease refer to pinctrl-bindings.txt in this directory for details of the
238c2ecf20Sopenharmony_cicommon pinctrl bindings used by client devices, including the meaning of the
248c2ecf20Sopenharmony_ciphrase "pin configuration node".
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ciQualcomm's pin configuration nodes act as a container for an arbitrary number of
278c2ecf20Sopenharmony_cisubnodes. Each of these subnodes represents some desired configuration for a
288c2ecf20Sopenharmony_cipin, a group, or a list of pins or groups. This configuration can include the
298c2ecf20Sopenharmony_cimux function to select on those pin(s)/group(s), and various pin configuration
308c2ecf20Sopenharmony_ciparameters, such as pull-up, drive strength, etc.
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ciThe name of each subnode is not important; all subnodes should be enumerated
338c2ecf20Sopenharmony_ciand processed purely based on their content.
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ciEach subnode only affects those parameters that are explicitly listed. In
368c2ecf20Sopenharmony_ciother words, a subnode that lists a mux function but no pin configuration
378c2ecf20Sopenharmony_ciparameters implies no information about any pin configuration parameters.
388c2ecf20Sopenharmony_ciSimilarly, a pin subnode that describes a pullup parameter implies no
398c2ecf20Sopenharmony_ciinformation about e.g. the mux function.
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ciThe following generic properties as defined in pinctrl-bindings.txt are valid
438c2ecf20Sopenharmony_cito specify in a pin configuration subnode:
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci pins, function, bias-disable, bias-pull-down, bias-pull-up, drive-strength,
468c2ecf20Sopenharmony_ci output-low, output-high.
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_ciNon-empty subnodes must specify the 'pins' property.
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ciValid values for qcom,pins are:
518c2ecf20Sopenharmony_ci  gpio0-gpio68
528c2ecf20Sopenharmony_ci   Supports mux, bias, and drive-strength
538c2ecf20Sopenharmony_ci
548c2ecf20Sopenharmony_ci  sdc3_clk, sdc3_cmd, sdc3_data
558c2ecf20Sopenharmony_ci   Supports bias and drive-strength
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_ci
588c2ecf20Sopenharmony_ciValid values for function are:
598c2ecf20Sopenharmony_ci  mdio, mi2s, pdm, ssbi, spmi, audio_pcm, gpio, gsbi1, gsbi2, gsbi4, gsbi5,
608c2ecf20Sopenharmony_ci  gsbi5_spi_cs1, gsbi5_spi_cs2, gsbi5_spi_cs3, gsbi6, gsbi7, nss_spi, sdc1,
618c2ecf20Sopenharmony_ci  spdif, nand, tsif1, tsif2, usb_fs_n, usb_fs, usb2_hsic, rgmii2, sata,
628c2ecf20Sopenharmony_ci  pcie1_rst, pcie1_prsnt, pcie1_pwren_n, pcie1_pwren, pcie1_pwrflt,
638c2ecf20Sopenharmony_ci  pcie1_clk_req, pcie2_rst, pcie2_prsnt, pcie2_pwren_n, pcie2_pwren,
648c2ecf20Sopenharmony_ci  pcie2_pwrflt, pcie2_clk_req, pcie3_rst, pcie3_prsnt, pcie3_pwren_n,
658c2ecf20Sopenharmony_ci  pcie3_pwren, pcie3_pwrflt, pcie3_clk_req, ps_hold
668c2ecf20Sopenharmony_ci
678c2ecf20Sopenharmony_ciExample:
688c2ecf20Sopenharmony_ci
698c2ecf20Sopenharmony_ci	pinmux: pinctrl@800000 {
708c2ecf20Sopenharmony_ci		compatible = "qcom,ipq8064-pinctrl";
718c2ecf20Sopenharmony_ci		reg = <0x800000 0x4000>;
728c2ecf20Sopenharmony_ci
738c2ecf20Sopenharmony_ci		gpio-controller;
748c2ecf20Sopenharmony_ci		#gpio-cells = <2>;
758c2ecf20Sopenharmony_ci		gpio-ranges = <&pinmux 0 0 69>;
768c2ecf20Sopenharmony_ci		interrupt-controller;
778c2ecf20Sopenharmony_ci		#interrupt-cells = <2>;
788c2ecf20Sopenharmony_ci		interrupts = <0 32 0x4>;
798c2ecf20Sopenharmony_ci
808c2ecf20Sopenharmony_ci		pinctrl-names = "default";
818c2ecf20Sopenharmony_ci		pinctrl-0 = <&gsbi5_uart_default>;
828c2ecf20Sopenharmony_ci
838c2ecf20Sopenharmony_ci		gsbi5_uart_default: gsbi5_uart_default {
848c2ecf20Sopenharmony_ci			mux {
858c2ecf20Sopenharmony_ci				pins = "gpio18", "gpio19";
868c2ecf20Sopenharmony_ci				function = "gsbi5";
878c2ecf20Sopenharmony_ci			};
888c2ecf20Sopenharmony_ci
898c2ecf20Sopenharmony_ci			tx {
908c2ecf20Sopenharmony_ci				pins = "gpio18";
918c2ecf20Sopenharmony_ci				drive-strength = <4>;
928c2ecf20Sopenharmony_ci				bias-disable;
938c2ecf20Sopenharmony_ci			};
948c2ecf20Sopenharmony_ci
958c2ecf20Sopenharmony_ci			rx {
968c2ecf20Sopenharmony_ci				pins = "gpio19";
978c2ecf20Sopenharmony_ci				drive-strength = <2>;
988c2ecf20Sopenharmony_ci				bias-pull-up;
998c2ecf20Sopenharmony_ci			};
1008c2ecf20Sopenharmony_ci		};
1018c2ecf20Sopenharmony_ci	};
102