Skip to content

Commit c6ed444

Browse files
committed
Merge tag 'pinctrl-v4.19-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl
Pull pin control updates from Linus Walleij: "This is the bulk of pin control changes for v4.19: Core changes: - Augment pinctrl_generic_add_group() and pinmux_generic_add_function() to return the selector for the added group/function to the caller and augment (hopefully) all drivers to handle this New subdrivers: - Qualcomm PM8998 and PM8005 are supported in the SPMI pin control and GPIO driver - Intel Ice Lake PCH (platform controller hub) support - NXP (ex Freescale) i.MX8MQ support - Berlin AS370 support Improvements to drivers: - Support interrupts on the Ocelot pin controller - Add SPI pins to the Uniphier driver - Define a GPIO compatible per SoC in the Tegra driver - Push Tegra initialization down in the initlevels - Support external wakeup interrupts on the Exynos - Add generic clocks pins to the meson driver - Add USB and HSCIF pins for some Renesas PFC chips - Suspend/resume support in the armada-37xx - Interrupt support for the Actions Semiconductor S900 also known as "owl" - Correct the pin ordering in Cedarfork - Debugfs output for INTF in the mcp23s08 driver - Avoid divisions in context save/restore in pinctrl-single The rest is minor bug fixes or cleanups" * tag 'pinctrl-v4.19-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl: (69 commits) pinctrl: nomadik: silence uninitialized variable warning pinctrl: axp209: Fix NULL pointer dereference after allocation pinctrl: samsung: Remove duplicated "wakeup" in printk pinctrl: ocelot: add support for interrupt controller pinctrl: intel: Don't shadow error code of gpiochip_lock_as_irq() pinctrl: berlin: fix 'pctrl->functions' allocation in berlin_pinctrl_build_state gpio: tegra: Move driver registration to subsys_init level pinctrl: tegra: Move drivers registration to arch_init level pinctrl: baytrail: actually print the apparently misconfigured pin MAINTAINERS: Replace Heikki as maintainer of Intel pinctrl pinctrl: freescale: off by one in imx1_pinconf_group_dbg_show() pinctrl: uniphier: add spi pin-mux settings pinctrl: cannonlake: Fix community ordering for H variant pinctrl: tegra: define GPIO compatible node per SoC pinctrl: intel: Do pin translation when lock IRQ pinctrl: imx: off by one in imx_pinconf_group_dbg_show() pinctrl: mediatek: include chained_irq.h header pinctrl/amd: only handle irq if it is pending and unmasked pinctrl/amd: fix gpio irq level in debugfs pinctrl: stm32: add syscfg mask parameter ...
2 parents 3860cae + c2944a9 commit c6ed444

99 files changed

Lines changed: 2936 additions & 302 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/devicetree/bindings/pinctrl/actions,s900-pinctrl.txt‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ Required Properties:
1919
defines the interrupt number, the second encodes
2020
the trigger flags described in
2121
bindings/interrupt-controller/interrupts.txt
22+
- interrupts: The interrupt outputs from the controller. There is one GPIO
23+
interrupt per GPIO bank. The number of interrupts listed depends
24+
on the number of GPIO banks on the SoC. The interrupts must be
25+
ordered by bank, starting with bank 0.
2226

2327
Please refer to pinctrl-bindings.txt in this directory for details of the
2428
common pinctrl bindings used by client devices, including the meaning of the
@@ -180,6 +184,12 @@ Example:
180184
#gpio-cells = <2>;
181185
interrupt-controller;
182186
#interrupt-cells = <2>;
187+
interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>,
188+
<GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>,
189+
<GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>,
190+
<GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>,
191+
<GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
192+
<GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
183193

184194
uart2-default: uart2-default {
185195
pinmux {

‎Documentation/devicetree/bindings/pinctrl/atmel,at91-pio4-pinctrl.txt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ Optional properties:
3636
- GENERIC_PINCONFIG: generic pinconfig options to use, bias-disable,
3737
bias-pull-down, bias-pull-up, drive-open-drain, input-schmitt-enable,
3838
input-debounce, output-low, output-high.
39+
- atmel,drive-strength: 0 or 1 for low drive, 2 for medium drive and 3 for
40+
high drive. The default value is low drive.
3941

4042
Example:
4143

@@ -66,6 +68,7 @@ Example:
6668
pinmux = <PIN_PB0>,
6769
<PIN_PB5>;
6870
bias-pull-up;
71+
atmel,drive-strength = <ATMEL_PIO_DRVSTR_ME>;
6972
};
7073

7174
pinctrl_sdmmc1_default: sdmmc1_default {

‎Documentation/devicetree/bindings/pinctrl/berlin,pinctrl.txt‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ Required properties:
2323
"marvell,berlin2q-system-pinctrl",
2424
"marvell,berlin4ct-avio-pinctrl",
2525
"marvell,berlin4ct-soc-pinctrl",
26-
"marvell,berlin4ct-system-pinctrl"
26+
"marvell,berlin4ct-system-pinctrl",
27+
"syna,as370-soc-pinctrl"
2728

2829
Required subnode-properties:
2930
- groups: a list of strings describing the group names.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
* Freescale IMX8MQ IOMUX Controller
2+
3+
Please refer to fsl,imx-pinctrl.txt and pinctrl-bindings.txt in this directory
4+
for common binding part and usage.
5+
6+
Required properties:
7+
- compatible: "fsl,imx8mq-iomuxc"
8+
- reg: should contain the base physical address and size of the iomuxc
9+
registers.
10+
11+
Required properties in sub-nodes:
12+
- fsl,pins: each entry consists of 6 integers and represents the mux and config
13+
setting for one pin. The first 5 integers <mux_reg conf_reg input_reg mux_val
14+
input_val> are specified using a PIN_FUNC_ID macro, which can be found in
15+
imx8mq-pinfunc.h under device tree source folder. The last integer CONFIG is
16+
the pad setting value like pull-up on this pin. Please refer to i.MX8M Quad
17+
Reference Manual for detailed CONFIG settings.
18+
19+
Examples:
20+
21+
&uart1 {
22+
pinctrl-names = "default";
23+
pinctrl-0 = <&pinctrl_uart1>;
24+
};
25+
26+
iomuxc: pinctrl@30330000 {
27+
compatible = "fsl,imx8mq-iomuxc";
28+
reg = <0x0 0x30330000 0x0 0x10000>;
29+
30+
pinctrl_uart1: uart1grp {
31+
fsl,pins = <
32+
MX8MQ_IOMUXC_UART1_RXD_UART1_DCE_RX 0x49
33+
MX8MQ_IOMUXC_UART1_TXD_UART1_DCE_TX 0x49
34+
>;
35+
};
36+
};

‎Documentation/devicetree/bindings/pinctrl/qcom,apq8064-pinctrl.txt‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ Required properties:
1010
- #gpio-cells : Should be two.
1111
The first cell is the gpio pin number and the
1212
second cell is used for optional parameters.
13+
- gpio-ranges: see ../gpio/gpio.txt
14+
15+
Optional properties:
16+
17+
- gpio-reserved-ranges: see ../gpio/gpio.txt
1318

1419
Please refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for
1520
a general description of GPIO and interrupt bindings.
@@ -67,6 +72,7 @@ Example:
6772

6873
pinctrl-names = "default";
6974
pinctrl-0 = <&gsbi5_uart_default>;
75+
gpio-ranges = <&msmgpio 0 0 90>;
7076

7177
gsbi5_uart_default: gsbi5_uart_default {
7278
mux {

‎Documentation/devicetree/bindings/pinctrl/qcom,apq8084-pinctrl.txt‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ MSM8960 platform.
4040
Definition: must be 2. Specifying the pin number and flags, as defined
4141
in <dt-bindings/gpio/gpio.h>
4242

43+
- gpio-ranges:
44+
Usage: required
45+
Definition: see ../gpio/gpio.txt
46+
47+
- gpio-reserved-ranges:
48+
Usage: optional
49+
Definition: see ../gpio/gpio.txt
50+
4351
Please refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for
4452
a general description of GPIO and interrupt bindings.
4553

@@ -154,6 +162,7 @@ Example:
154162

155163
gpio-controller;
156164
#gpio-cells = <2>;
165+
gpio-ranges = <&tlmm 0 0 147>;
157166
interrupt-controller;
158167
#interrupt-cells = <2>;
159168
interrupts = <0 208 0>;

‎Documentation/devicetree/bindings/pinctrl/qcom,ipq4019-pinctrl.txt‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ Required properties:
1313
- #gpio-cells : Should be two.
1414
The first cell is the gpio pin number and the
1515
second cell is used for optional parameters.
16+
- gpio-ranges: see ../gpio/gpio.txt
17+
18+
Optional properties:
19+
20+
- gpio-reserved-ranges: see ../gpio/gpio.txt
1621

1722
Please refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for
1823
a general description of GPIO and interrupt bindings.
@@ -64,6 +69,7 @@ Example:
6469

6570
gpio-controller;
6671
#gpio-cells = <2>;
72+
gpio-ranges = <&tlmm 0 0 100>;
6773
interrupt-controller;
6874
#interrupt-cells = <2>;
6975
interrupts = <0 208 0>;

‎Documentation/devicetree/bindings/pinctrl/qcom,ipq8064-pinctrl.txt‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ Required properties:
1010
- #gpio-cells : Should be two.
1111
The first cell is the gpio pin number and the
1212
second cell is used for optional parameters.
13+
- gpio-ranges: see ../gpio/gpio.txt
14+
15+
Optional properties:
16+
17+
- gpio-reserved-ranges: see ../gpio/gpio.txt
1318

1419
Please refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for
1520
a general description of GPIO and interrupt bindings.
@@ -67,6 +72,7 @@ Example:
6772

6873
gpio-controller;
6974
#gpio-cells = <2>;
75+
gpio-ranges = <&pinmux 0 0 69>;
7076
interrupt-controller;
7177
#interrupt-cells = <2>;
7278
interrupts = <0 32 0x4>;

‎Documentation/devicetree/bindings/pinctrl/qcom,ipq8074-pinctrl.txt‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ IPQ8074 platform.
4040
Definition: must be 2. Specifying the pin number and flags, as defined
4141
in <dt-bindings/gpio/gpio.h>
4242

43+
- gpio-ranges:
44+
Usage: required
45+
Definition: see ../gpio/gpio.txt
46+
47+
- gpio-reserved-ranges:
48+
Usage: optional
49+
Definition: see ../gpio/gpio.txt
50+
4351
Please refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for
4452
a general description of GPIO and interrupt bindings.
4553

@@ -148,6 +156,7 @@ Example:
148156
interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
149157
gpio-controller;
150158
#gpio-cells = <2>;
159+
gpio-ranges = <&tlmm 0 0 70>;
151160
interrupt-controller;
152161
#interrupt-cells = <2>;
153162

‎Documentation/devicetree/bindings/pinctrl/qcom,mdm9615-pinctrl.txt‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ MDM9615 platform.
4040
Definition: must be 2. Specifying the pin number and flags, as defined
4141
in <dt-bindings/gpio/gpio.h>
4242

43+
- gpio-ranges:
44+
Usage: required
45+
Definition: see ../gpio/gpio.txt
46+
47+
- gpio-reserved-ranges:
48+
Usage: optional
49+
Definition: see ../gpio/gpio.txt
50+
4351
Please refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for
4452
a general description of GPIO and interrupt bindings.
4553

@@ -127,6 +135,7 @@ Example:
127135

128136
gpio-controller;
129137
#gpio-cells = <2>;
138+
gpio-ranges = <&msmgpio 0 0 88>;
130139
interrupt-controller;
131140
#interrupt-cells = <2>;
132141
interrupts = <0 16 0x4>;

0 commit comments

Comments
 (0)