162306a36Sopenharmony_ciQualcomm APQ8064 TLMM block
262306a36Sopenharmony_ci
362306a36Sopenharmony_ciRequired properties:
462306a36Sopenharmony_ci- compatible: "qcom,apq8064-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 pins are:
5162306a36Sopenharmony_ci  gpio0-gpio89
5262306a36Sopenharmony_ci
5362306a36Sopenharmony_ciValid values for function are:
5462306a36Sopenharmony_ci  cam_mclk, codec_mic_i2s, codec_spkr_i2s, gp_clk_0a, gp_clk_0b, gp_clk_1a,
5562306a36Sopenharmony_ci  gp_clk_1b, gp_clk_2a, gp_clk_2b, gpio, gsbi1, gsbi2, gsbi3, gsbi4,
5662306a36Sopenharmony_ci  gsbi4_cam_i2c, gsbi5, gsbi5_spi_cs1, gsbi5_spi_cs2, gsbi5_spi_cs3, gsbi6,
5762306a36Sopenharmony_ci  gsbi6_spi_cs1, gsbi6_spi_cs2, gsbi6_spi_cs3, gsbi7, gsbi7_spi_cs1,
5862306a36Sopenharmony_ci  gsbi7_spi_cs2, gsbi7_spi_cs3, gsbi_cam_i2c, hdmi, mi2s, riva_bt, riva_fm,
5962306a36Sopenharmony_ci  riva_wlan, sdc2, sdc4, slimbus, spkr_i2s, tsif1, tsif2, usb2_hsic, ps_hold
6062306a36Sopenharmony_ci
6162306a36Sopenharmony_ciExample:
6262306a36Sopenharmony_ci
6362306a36Sopenharmony_ci	msmgpio: pinctrl@800000 {
6462306a36Sopenharmony_ci		compatible = "qcom,apq8064-pinctrl";
6562306a36Sopenharmony_ci		reg = <0x800000 0x4000>;
6662306a36Sopenharmony_ci
6762306a36Sopenharmony_ci		gpio-controller;
6862306a36Sopenharmony_ci		#gpio-cells = <2>;
6962306a36Sopenharmony_ci		interrupt-controller;
7062306a36Sopenharmony_ci		#interrupt-cells = <2>;
7162306a36Sopenharmony_ci		interrupts = <0 16 0x4>;
7262306a36Sopenharmony_ci
7362306a36Sopenharmony_ci		pinctrl-names = "default";
7462306a36Sopenharmony_ci		pinctrl-0 = <&gsbi5_uart_default>;
7562306a36Sopenharmony_ci		gpio-ranges = <&msmgpio 0 0 90>;
7662306a36Sopenharmony_ci
7762306a36Sopenharmony_ci		gsbi5_uart_default: gsbi5_uart_default {
7862306a36Sopenharmony_ci			mux {
7962306a36Sopenharmony_ci				pins = "gpio51", "gpio52";
8062306a36Sopenharmony_ci				function = "gsbi5";
8162306a36Sopenharmony_ci			};
8262306a36Sopenharmony_ci
8362306a36Sopenharmony_ci			tx {
8462306a36Sopenharmony_ci				pins = "gpio51";
8562306a36Sopenharmony_ci				drive-strength = <4>;
8662306a36Sopenharmony_ci				bias-disable;
8762306a36Sopenharmony_ci			};
8862306a36Sopenharmony_ci
8962306a36Sopenharmony_ci			rx {
9062306a36Sopenharmony_ci				pins = "gpio52";
9162306a36Sopenharmony_ci				drive-strength = <2>;
9262306a36Sopenharmony_ci				bias-pull-up;
9362306a36Sopenharmony_ci			};
9462306a36Sopenharmony_ci		};
9562306a36Sopenharmony_ci	};
96