162306a36Sopenharmony_ciQualcomm IPQ8064 TLMM block
262306a36Sopenharmony_ci
362306a36Sopenharmony_ciRequired properties:
462306a36Sopenharmony_ci- compatible: "qcom,ipq8064-pinctrl"
562306a36Sopenharmony_ci- reg: Should be the base address and length of the TLMM block.
662306a36Sopenharmony_ci- interrupts: Should be the parent IRQ of the TLMM block.
762306a36Sopenharmony_ci- interrupt-controller: Marks the device node as an interrupt controller.
862306a36Sopenharmony_ci- #interrupt-cells: Should be two.
962306a36Sopenharmony_ci- gpio-controller: Marks the device node as a GPIO controller.
1062306a36Sopenharmony_ci- #gpio-cells : Should be two.
1162306a36Sopenharmony_ci                The first cell is the gpio pin number and the
1262306a36Sopenharmony_ci                second cell is used for optional parameters.
1362306a36Sopenharmony_ci- gpio-ranges: see ../gpio/gpio.txt
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ciOptional properties:
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci- gpio-reserved-ranges: see ../gpio/gpio.txt
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ciPlease refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for
2062306a36Sopenharmony_cia general description of GPIO and interrupt bindings.
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ciPlease refer to pinctrl-bindings.txt in this directory for details of the
2362306a36Sopenharmony_cicommon pinctrl bindings used by client devices, including the meaning of the
2462306a36Sopenharmony_ciphrase "pin configuration node".
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ciQualcomm's pin configuration nodes act as a container for an arbitrary number of
2762306a36Sopenharmony_cisubnodes. Each of these subnodes represents some desired configuration for a
2862306a36Sopenharmony_cipin, a group, or a list of pins or groups. This configuration can include the
2962306a36Sopenharmony_cimux function to select on those pin(s)/group(s), and various pin configuration
3062306a36Sopenharmony_ciparameters, such as pull-up, drive strength, etc.
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ciThe name of each subnode is not important; all subnodes should be enumerated
3362306a36Sopenharmony_ciand processed purely based on their content.
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ciEach subnode only affects those parameters that are explicitly listed. In
3662306a36Sopenharmony_ciother words, a subnode that lists a mux function but no pin configuration
3762306a36Sopenharmony_ciparameters implies no information about any pin configuration parameters.
3862306a36Sopenharmony_ciSimilarly, a pin subnode that describes a pullup parameter implies no
3962306a36Sopenharmony_ciinformation about e.g. the mux function.
4062306a36Sopenharmony_ci
4162306a36Sopenharmony_ci
4262306a36Sopenharmony_ciThe following generic properties as defined in pinctrl-bindings.txt are valid
4362306a36Sopenharmony_cito specify in a pin configuration subnode:
4462306a36Sopenharmony_ci
4562306a36Sopenharmony_ci pins, function, bias-disable, bias-pull-down, bias-pull-up, drive-strength,
4662306a36Sopenharmony_ci output-low, output-high.
4762306a36Sopenharmony_ci
4862306a36Sopenharmony_ciNon-empty subnodes must specify the 'pins' property.
4962306a36Sopenharmony_ci
5062306a36Sopenharmony_ciValid values for qcom,pins are:
5162306a36Sopenharmony_ci  gpio0-gpio68
5262306a36Sopenharmony_ci   Supports mux, bias, and drive-strength
5362306a36Sopenharmony_ci
5462306a36Sopenharmony_ci  sdc3_clk, sdc3_cmd, sdc3_data
5562306a36Sopenharmony_ci   Supports bias and drive-strength
5662306a36Sopenharmony_ci
5762306a36Sopenharmony_ci
5862306a36Sopenharmony_ciValid values for function are:
5962306a36Sopenharmony_ci  mdio, mi2s, pdm, ssbi, spmi, audio_pcm, gpio, gsbi1, gsbi2, gsbi4, gsbi5,
6062306a36Sopenharmony_ci  gsbi5_spi_cs1, gsbi5_spi_cs2, gsbi5_spi_cs3, gsbi6, gsbi7, nss_spi, sdc1,
6162306a36Sopenharmony_ci  spdif, nand, tsif1, tsif2, usb_fs_n, usb_fs, usb2_hsic, rgmii2, sata,
6262306a36Sopenharmony_ci  pcie1_rst, pcie1_prsnt, pcie1_pwren_n, pcie1_pwren, pcie1_pwrflt,
6362306a36Sopenharmony_ci  pcie1_clk_req, pcie2_rst, pcie2_prsnt, pcie2_pwren_n, pcie2_pwren,
6462306a36Sopenharmony_ci  pcie2_pwrflt, pcie2_clk_req, pcie3_rst, pcie3_prsnt, pcie3_pwren_n,
6562306a36Sopenharmony_ci  pcie3_pwren, pcie3_pwrflt, pcie3_clk_req, ps_hold
6662306a36Sopenharmony_ci
6762306a36Sopenharmony_ciExample:
6862306a36Sopenharmony_ci
6962306a36Sopenharmony_ci	pinmux: pinctrl@800000 {
7062306a36Sopenharmony_ci		compatible = "qcom,ipq8064-pinctrl";
7162306a36Sopenharmony_ci		reg = <0x800000 0x4000>;
7262306a36Sopenharmony_ci
7362306a36Sopenharmony_ci		gpio-controller;
7462306a36Sopenharmony_ci		#gpio-cells = <2>;
7562306a36Sopenharmony_ci		gpio-ranges = <&pinmux 0 0 69>;
7662306a36Sopenharmony_ci		interrupt-controller;
7762306a36Sopenharmony_ci		#interrupt-cells = <2>;
7862306a36Sopenharmony_ci		interrupts = <0 32 0x4>;
7962306a36Sopenharmony_ci
8062306a36Sopenharmony_ci		pinctrl-names = "default";
8162306a36Sopenharmony_ci		pinctrl-0 = <&gsbi5_uart_default>;
8262306a36Sopenharmony_ci
8362306a36Sopenharmony_ci		gsbi5_uart_default: gsbi5_uart_default {
8462306a36Sopenharmony_ci			mux {
8562306a36Sopenharmony_ci				pins = "gpio18", "gpio19";
8662306a36Sopenharmony_ci				function = "gsbi5";
8762306a36Sopenharmony_ci			};
8862306a36Sopenharmony_ci
8962306a36Sopenharmony_ci			tx {
9062306a36Sopenharmony_ci				pins = "gpio18";
9162306a36Sopenharmony_ci				drive-strength = <4>;
9262306a36Sopenharmony_ci				bias-disable;
9362306a36Sopenharmony_ci			};
9462306a36Sopenharmony_ci
9562306a36Sopenharmony_ci			rx {
9662306a36Sopenharmony_ci				pins = "gpio19";
9762306a36Sopenharmony_ci				drive-strength = <2>;
9862306a36Sopenharmony_ci				bias-pull-up;
9962306a36Sopenharmony_ci			};
10062306a36Sopenharmony_ci		};
10162306a36Sopenharmony_ci	};
102