Skip to content

Commit cf0c97f

Browse files
committed
Merge tag 'pinctrl-v5.8-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 the v5.8 kernel cycle. It's just really boring this time. Zero core changes. Just linear development, cleanups and misc noncritical fixes. Some new drivers for very new Qualcomm and Intel chips. New drivers: - Intel Jasper Lake support. - NXP Freescale i.MX8DXL support. - Qualcomm SM8250 support. - Renesas R8A7742 SH-PFC support. Driver improvements: - Severe cleanup and modernization of the MCP23s08 driver. - Mediatek driver modularized. - Setting config supported in the Meson driver. - Wakeup support for the Broadcom BCM7211" * tag 'pinctrl-v5.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl: (72 commits) pinctrl: sprd: Fix the incorrect pull-up definition pinctrl: pxa: pxa2xx: Remove 'pxa2xx_pinctrl_exit()' which is unused and broken pinctrl: freescale: imx: Use 'devm_of_iomap()' to avoid a resource leak in case of error in 'imx_pinctrl_probe()' pinctrl: freescale: imx: Fix an error handling path in 'imx_pinctrl_probe()' pinctrl: sirf: add missing put_device() call in sirfsoc_gpio_probe() pinctrl: imxl: Fix an error handling path in 'imx1_pinctrl_core_probe()' pinctrl: bcm2835: Add support for wake-up interrupts pinctrl: bcm2835: Match BCM7211 compatible string dt-bindings: pinctrl: Document optional BCM7211 wake-up interrupts dt-bindings: pinctrl: Document 7211 compatible for brcm, bcm2835-gpio.txt dt-bindings: pinctrl: stm32: Add missing interrupts property pinctrl: at91-pio4: Add COMPILE_TEST support pinctrl: Fix return value about devm_platform_ioremap_resource() MAINTAINERS: Renesas Pin Controllers are supported dt-bindings: pinctrl: ocelot: Add Sparx5 SoC support pinctrl: ocelot: Fix GPIO interrupt decoding on Jaguar2 pinctrl: ocelot: Remove instance number from pin functions pinctrl: ocelot: Always register GPIO driver dt-bindings: pinctrl: rockchip: update example pinctrl: amd: Add ACPI dependency ...
2 parents e8dff03 + 94873f6 commit cf0c97f

71 files changed

Lines changed: 4147 additions & 1314 deletions

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/arm/freescale/fsl,scu.txt‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,17 @@ This binding uses the i.MX common pinctrl binding[3].
108108
Required properties:
109109
- compatible: Should be one of:
110110
"fsl,imx8qm-iomuxc",
111-
"fsl,imx8qxp-iomuxc".
111+
"fsl,imx8qxp-iomuxc",
112+
"fsl,imx8dxl-iomuxc".
112113

113114
Required properties for Pinctrl sub nodes:
114115
- fsl,pins: Each entry consists of 3 integers which represents
115116
the mux and config setting for one pin. The first 2
116117
integers <pin_id mux_mode> are specified using a
117118
PIN_FUNC_ID macro, which can be found in
118119
<dt-bindings/pinctrl/pads-imx8qm.h>,
119-
<dt-bindings/pinctrl/pads-imx8qxp.h>.
120+
<dt-bindings/pinctrl/pads-imx8qxp.h>,
121+
<dt-bindings/pinctrl/pads-imx8dxl.h>.
120122
The last integer CONFIG is the pad setting value like
121123
pull-up on this pin.
122124

‎Documentation/devicetree/bindings/pinctrl/brcm,bcm2835-gpio.txt‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,16 @@ Required properties:
99
"brcm,bcm2835-gpio" - BCM2835 compatible pinctrl
1010
"brcm,bcm7211-gpio" - BCM7211 compatible pinctrl
1111
"brcm,bcm2711-gpio" - BCM2711 compatible pinctrl
12+
"brcm,bcm7211-gpio" - BCM7211 compatible pinctrl
1213
- reg: Should contain the physical address of the GPIO module's registers.
1314
- gpio-controller: Marks the device node as a GPIO controller.
1415
- #gpio-cells : Should be two. The first cell is the pin number and the
1516
second cell is used to specify optional parameters:
1617
- bit 0 specifies polarity (0 for normal, 1 for inverted)
1718
- interrupts : The interrupt outputs from the controller. One interrupt per
18-
individual bank followed by the "all banks" interrupt.
19+
individual bank followed by the "all banks" interrupt. For BCM7211, an
20+
additional set of per-bank interrupt line and an "all banks" wake-up
21+
interrupt may be specified.
1922
- interrupt-controller: Marks the device node as an interrupt controller.
2023
- #interrupt-cells : Should be 2.
2124
The first cell is the GPIO number.

‎Documentation/devicetree/bindings/pinctrl/mscc,ocelot-pinctrl.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ Microsemi Ocelot pin controller Device Tree Bindings
22
----------------------------------------------------
33

44
Required properties:
5-
- compatible : Should be "mscc,ocelot-pinctrl" or
6-
"mscc,jaguar2-pinctrl"
5+
- compatible : Should be "mscc,ocelot-pinctrl",
6+
"mscc,jaguar2-pinctrl" or "microchip,sparx5-pinctrl"
77
- reg : Address and length of the register set for the device
88
- gpio-controller : Indicates this device is a GPIO controller
99
- #gpio-cells : Must be 2.
Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/pinctrl/qcom,sm8250-pinctrl.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Qualcomm Technologies, Inc. SM8250 TLMM block
8+
9+
maintainers:
10+
- Bjorn Andersson <bjorn.andersson@linaro.org>
11+
12+
description: |
13+
This binding describes the Top Level Mode Multiplexer block found in the
14+
SM8250 platform.
15+
16+
properties:
17+
compatible:
18+
const: qcom,sm8250-pinctrl
19+
20+
reg:
21+
minItems: 3
22+
maxItems: 3
23+
24+
reg-names:
25+
items:
26+
- const: "west"
27+
- const: "south"
28+
- const: "north"
29+
30+
interrupts:
31+
description: Specifies the TLMM summary IRQ
32+
maxItems: 1
33+
34+
interrupt-controller: true
35+
36+
'#interrupt-cells':
37+
description:
38+
Specifies the PIN numbers and Flags, as defined in defined in
39+
include/dt-bindings/interrupt-controller/irq.h
40+
const: 2
41+
42+
gpio-controller: true
43+
44+
'#gpio-cells':
45+
description: Specifying the pin number and flags, as defined in
46+
include/dt-bindings/gpio/gpio.h
47+
const: 2
48+
49+
gpio-ranges:
50+
maxItems: 1
51+
52+
wakeup-parent:
53+
maxItems: 1
54+
55+
#PIN CONFIGURATION NODES
56+
patternProperties:
57+
'^.*$':
58+
if:
59+
type: object
60+
then:
61+
properties:
62+
pins:
63+
description:
64+
List of gpio pins affected by the properties specified in this
65+
subnode.
66+
items:
67+
oneOf:
68+
- pattern: "^gpio([0-9]|[1-9][0-9]|1[0-7][0-9])$"
69+
- enum: [ sdc2_clk, sdc2_cmd, sdc2_data, ufs_reset ]
70+
minItems: 1
71+
maxItems: 36
72+
73+
function:
74+
description:
75+
Specify the alternative function to be configured for the specified
76+
pins.
77+
78+
enum: [ aoss_cti, atest, audio_ref, cam_mclk, cci_async, cci_i2c,
79+
cci_timer0, cci_timer1, cci_timer2, cci_timer3, cci_timer4, cri_trng,
80+
cri_trng0, cri_trng1, dbg_out, ddr_bist, ddr_pxi0, ddr_pxi1,
81+
ddr_pxi2, ddr_pxi3, dp_hot, dp_lcd, gcc_gp1, gcc_gp2, gcc_gp3, gpio,
82+
ibi_i3c, jitter_bist, lpass_slimbus, mdp_vsync, mdp_vsync0,
83+
mdp_vsync1, mdp_vsync2, mdp_vsync3, mi2s0_data0, mi2s0_data1,
84+
mi2s0_sck, mi2s0_ws, mi2s1_data0, mi2s1_data1, mi2s1_sck, mi2s1_ws,
85+
mi2s2_data0, mi2s2_data1, mi2s2_sck, mi2s2_ws, pci_e0, pci_e1,
86+
pci_e2, phase_flag, pll_bist, pll_bypassnl, pll_clk, pll_reset,
87+
pri_mi2s, prng_rosc, qdss_cti, qdss_gpio, qspi0, qspi1, qspi2, qspi3,
88+
qspi_clk, qspi_cs, qup0, qup1, qup10, qup11, qup12, qup13, qup14,
89+
qup15, qup16, qup17, qup18, qup19, qup2, qup3, qup4, qup5, qup6,
90+
qup7, qup8, qup9, qup_l4, qup_l5, qup_l6, sd_write, sdc40, sdc41,
91+
sdc42, sdc43, sdc4_clk, sdc4_cmd, sec_mi2s, sp_cmu, tgu_ch0, tgu_ch1,
92+
tgu_ch2, tgu_ch3, tsense_pwm1, tsense_pwm2, tsif0_clk, tsif0_data,
93+
tsif0_en, tsif0_error, tsif0_sync, tsif1_clk, tsif1_data, tsif1_en,
94+
tsif1_error, tsif1_sync, usb2phy_ac, usb_phy, vsense_trigger ]
95+
96+
drive-strength:
97+
enum: [2, 4, 6, 8, 10, 12, 14, 16]
98+
default: 2
99+
description:
100+
Selects the drive strength for the specified pins, in mA.
101+
102+
bias-pull-down: true
103+
104+
bias-pull-up: true
105+
106+
bias-disable: true
107+
108+
output-high: true
109+
110+
output-low: true
111+
112+
required:
113+
- pins
114+
- function
115+
116+
additionalProperties: false
117+
118+
required:
119+
- compatible
120+
- reg
121+
- reg-names
122+
- interrupts
123+
- interrupt-controller
124+
- '#interrupt-cells'
125+
- gpio-controller
126+
- '#gpio-cells'
127+
- gpio-ranges
128+
129+
additionalProperties: false
130+
131+
examples:
132+
- |
133+
#include <dt-bindings/interrupt-controller/arm-gic.h>
134+
pinctrl@1f00000 {
135+
compatible = "qcom,sm8250-pinctrl";
136+
reg = <0x0f100000 0x300000>,
137+
<0x0f500000 0x300000>,
138+
<0x0f900000 0x300000>;
139+
reg-names = "west", "south", "north";
140+
interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
141+
gpio-controller;
142+
#gpio-cells = <2>;
143+
interrupt-controller;
144+
#interrupt-cells = <2>;
145+
gpio-ranges = <&tlmm 0 0 180>;
146+
wakeup-parent = <&pdc>;
147+
};

‎Documentation/devicetree/bindings/pinctrl/renesas,pfc-pinctrl.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Required Properties:
1313
- "renesas,pfc-emev2": for EMEV2 (EMMA Mobile EV2) compatible pin-controller.
1414
- "renesas,pfc-r8a73a4": for R8A73A4 (R-Mobile APE6) compatible pin-controller.
1515
- "renesas,pfc-r8a7740": for R8A7740 (R-Mobile A1) compatible pin-controller.
16+
- "renesas,pfc-r8a7742": for R8A7742 (RZ/G1H) compatible pin-controller.
1617
- "renesas,pfc-r8a7743": for R8A7743 (RZ/G1M) compatible pin-controller.
1718
- "renesas,pfc-r8a7744": for R8A7744 (RZ/G1N) compatible pin-controller.
1819
- "renesas,pfc-r8a7745": for R8A7745 (RZ/G1E) compatible pin-controller.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ pinctrl@20008000 {
110110

111111
uart2 {
112112
uart2_xfer: uart2-xfer {
113-
rockchip,pins = <RK_GPIO1 8 1 &pcfg_pull_default>,
114-
<RK_GPIO1 9 1 &pcfg_pull_default>;
113+
rockchip,pins = <1 RK_PB0 1 &pcfg_pull_default>,
114+
<1 RK_PB1 1 &pcfg_pull_default>;
115115
};
116116
};
117117
};

‎Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ properties:
3636
pins-are-numbered: true
3737
hwlocks: true
3838

39+
interrupts:
40+
maxItems: 1
41+
3942
st,syscfg:
4043
description: Should be phandle/offset/mask
4144
- Phandle to the syscon node which includes IRQ mux selection.

‎MAINTAINERS‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13496,8 +13496,9 @@ F: drivers/pinctrl/qcom/
1349613496
PIN CONTROLLER - RENESAS
1349713497
M: Geert Uytterhoeven <geert+renesas@glider.be>
1349813498
L: linux-renesas-soc@vger.kernel.org
13499-
S: Maintained
13499+
S: Supported
1350013500
T: git git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git sh-pfc
13501+
F: Documentation/devicetree/bindings/pinctrl/renesas,*
1350113502
F: drivers/pinctrl/pinctrl-rz*
1350213503
F: drivers/pinctrl/sh-pfc/
1350313504

‎drivers/pinctrl/Kconfig‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ config PINCTRL_AT91
8282
config PINCTRL_AT91PIO4
8383
bool "AT91 PIO4 pinctrl driver"
8484
depends on OF
85-
depends on ARCH_AT91
85+
depends on ARCH_AT91 || COMPILE_TEST
8686
select PINMUX
8787
select GENERIC_PINCONF
8888
select GPIOLIB
@@ -95,6 +95,7 @@ config PINCTRL_AT91PIO4
9595
config PINCTRL_AMD
9696
tristate "AMD GPIO pin control"
9797
depends on HAS_IOMEM
98+
depends on ACPI || COMPILE_TEST
9899
select GPIOLIB
99100
select GPIOLIB_IRQCHIP
100101
select PINMUX
@@ -172,15 +173,22 @@ config PINCTRL_GEMINI
172173
select GENERIC_PINCONF
173174
select MFD_SYSCON
174175

176+
config PINCTRL_MCP23S08_I2C
177+
tristate
178+
select REGMAP_I2C
179+
180+
config PINCTRL_MCP23S08_SPI
181+
tristate
182+
select REGMAP_SPI
183+
175184
config PINCTRL_MCP23S08
176185
tristate "Microchip MCP23xxx I/O expander"
177186
depends on SPI_MASTER || I2C
178-
depends on I2C || I2C=n
179187
select GPIOLIB
180188
select GPIOLIB_IRQCHIP
181-
select REGMAP_I2C if I2C
182-
select REGMAP_SPI if SPI_MASTER
183189
select GENERIC_PINCONF
190+
select PINCTRL_MCP23S08_I2C if I2C
191+
select PINCTRL_MCP23S08_SPI if SPI_MASTER
184192
help
185193
SPI/I2C driver for Microchip MCP23S08 / MCP23S17 / MCP23S18 /
186194
MCP23008 / MCP23017 / MCP23018 I/O expanders.
@@ -435,6 +443,7 @@ config PINCTRL_TB10X
435443
config PINCTRL_EQUILIBRIUM
436444
tristate "Generic pinctrl and GPIO driver for Intel Lightning Mountain SoC"
437445
depends on OF && HAS_IOMEM
446+
depends on X86 || COMPILE_TEST
438447
select PINMUX
439448
select PINCONF
440449
select GPIOLIB

‎drivers/pinctrl/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ obj-$(CONFIG_PINCTRL_DIGICOLOR) += pinctrl-digicolor.o
2121
obj-$(CONFIG_PINCTRL_FALCON) += pinctrl-falcon.o
2222
obj-$(CONFIG_PINCTRL_GEMINI) += pinctrl-gemini.o
2323
obj-$(CONFIG_PINCTRL_MAX77620) += pinctrl-max77620.o
24+
obj-$(CONFIG_PINCTRL_MCP23S08_I2C) += pinctrl-mcp23s08_i2c.o
25+
obj-$(CONFIG_PINCTRL_MCP23S08_SPI) += pinctrl-mcp23s08_spi.o
2426
obj-$(CONFIG_PINCTRL_MCP23S08) += pinctrl-mcp23s08.o
2527
obj-$(CONFIG_PINCTRL_MESON) += meson/
2628
obj-$(CONFIG_PINCTRL_OXNAS) += pinctrl-oxnas.o

0 commit comments

Comments
 (0)