Skip to content

Commit 68fed41

Browse files
committed
Merge tag 'pinctrl-v4.12-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 v4.12 cycle. The extra week before the merge window actually resulted in some of the type of fixes that usually arrive after the merge window already starting to trickle in from eager developers using -next, I'm impressed. I have recruited a Samsung subsubsystem maintainer (Krzysztof) to deal with the onset of Samsung patches. It works great. Apart from that it is a boring round, just incremental updates and fixes all over the place, no serious core changes or anything exciting like that. The most pleasing to see is Julia Cartwrights work to audit the irqchip-providing drivers for realtime locking compliance. It's one of those "I should really get around to looking into that" things that have been on my TODO list since forever. Summary: Core changes: - add bi-directional and output-enable pin configurations to the generic bindings and generic pin controlling core. New drivers or subdrivers: - Armada 37xx SoC pin controller and GPIO support. - Axis ARTPEC-6 SoC pin controller support. - AllWinner A64 R_PIO controller support, and opening up the AllWinner sunxi driver for ARM64 use. - Rockchip RK3328 support. - Renesas R-Car H3 ES2.0 support. - STM32F469 support in the STM32 driver. - Aspeed G4 and G5 pin controller support. Improvements: - a whole slew of realtime improvements to drivers implementing irqchips: BCM, AMD, SiRF, sunxi, rockchip. - switch meson driver to get the GPIO ranges from the device tree. - input schmitt trigger support on the Rockchip driver. - enable the sunxi (AllWinner) driver to also be used on ARM64 silicon. - name the Qualcomm QDF2xxx GPIO lines. - support GMMR GPIO regions on the Intel Cherryview. This fixes a serialization problem on these platforms. - pad retention support for the Samsung Exynos 5433. - handle suspend-to-ram in the AT91-pio4 driver. - pin configuration support in the Aspeed driver. Cleanups: - the final name of Rockchip RK1108 was RV1108 so rename the driver and variables to stay consistent" * tag 'pinctrl-v4.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl: (80 commits) pinctrl: mediatek: Add missing pinctrl bindings for mt7623 pinctrl: artpec6: Fix return value check in artpec6_pmx_probe() pinctrl: artpec6: Remove .owner field for driver pinctrl: tegra: xusb: Silence sparse warnings ARM: at91/at91-pinctrl documentation: fix spelling mistake: "contoller" -> "controller" pinctrl: make artpec6 explicitly non-modular pinctrl: aspeed: g5: Add pinconf support pinctrl: aspeed: g4: Add pinconf support pinctrl: aspeed: Add core pinconf support pinctrl: aspeed: Document pinconf in devicetree bindings pinctrl: Add st,stm32f469-pinctrl compatible to stm32-pinctrl pinctrl: stm32: Add STM32F469 MCU support Documentation: dt: Remove ngpios from stm32-pinctrl binding pinctrl: stm32: replace device_initcall() with arch_initcall() pinctrl: stm32: add possibility to use gpio-ranges to declare bank range pinctrl: armada-37xx: Add gpio support pinctrl: armada-37xx: Add pin controller support for Armada 37xx pinctrl: dt-bindings: Add documentation for Armada 37xx pin controllers pinctrl: core: Make pinctrl_init_controller() static pinctrl: generic: Add bi-directional and output-enable ...
2 parents be580e7 + 1aa2faf commit 68fed41

73 files changed

Lines changed: 11882 additions & 3972 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/clock/armada3700-xtal-clock.txt‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ reading the gpio latch register.
55

66
This node must be a subnode of the node exposing the register address
77
of the GPIO block where the gpio latch is located.
8+
See Documentation/devicetree/bindings/pinctrl/marvell,armada-37xx-pinctrl.txt
89

910
Required properties:
1011
- compatible : shall be one of the following:
@@ -16,9 +17,9 @@ Optional properties:
1617
output names ("xtal")
1718

1819
Example:
19-
gpio1: gpio@13800 {
20-
compatible = "marvell,armada-3700-gpio", "syscon", "simple-mfd";
21-
reg = <0x13800 0x1000>;
20+
pinctrl_nb: pinctrl-nb@13800 {
21+
compatible = "armada3710-nb-pinctrl", "syscon", "simple-mfd";
22+
reg = <0x13800 0x100>, <0x13C00 0x20>;
2223

2324
xtalclk: xtal-clk {
2425
compatible = "marvell,armada-3700-xtal-clock";

‎Documentation/devicetree/bindings/pinctrl/allwinner,sunxi-pinctrl.txt‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ Required properties:
2323
"allwinner,sun8i-h3-pinctrl"
2424
"allwinner,sun8i-h3-r-pinctrl"
2525
"allwinner,sun50i-a64-pinctrl"
26-
"allwinner,sun50i-h5-r-pinctrl"
26+
"allwinner,sun50i-a64-r-pinctrl"
27+
"allwinner,sun50i-h5-pinctrl"
2728
"nextthing,gr8-pinctrl"
2829

2930
- reg: Should contain the register physical address and length for the

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The AT91 Pinmux Controller, enables the IC
44
to share one PAD to several functional blocks. The sharing is done by
55
multiplexing the PAD input/output signals. For each PAD there are up to
66
8 muxing options (called periph modes). Since different modules require
7-
different PAD settings (like pull up, keeper, etc) the contoller controls
7+
different PAD settings (like pull up, keeper, etc) the controller controls
88
also the PAD settings parameters.
99

1010
Please refer to pinctrl-bindings.txt in this directory for details of the
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
Axis ARTPEC-6 Pin Controller
2+
3+
Required properties:
4+
- compatible: "axis,artpec6-pinctrl".
5+
- reg: Should contain the register physical address and length for the pin
6+
controller.
7+
8+
A pinctrl node should contain at least one subnode representing the pinctrl
9+
groups available on the machine. Each subnode will list the mux function
10+
required and what pin group it will use. Each subnode will also configure the
11+
drive strength and bias pullup of the pin group. If either of these options is
12+
not set, its actual value will be unspecified.
13+
14+
15+
Required subnode-properties:
16+
- function: Function to mux.
17+
- groups: Name of the pin group to use for the function above.
18+
19+
Available functions and groups (function: group0, group1...):
20+
gpio: cpuclkoutgrp0, udlclkoutgrp0, i2c1grp0, i2c2grp0,
21+
i2c3grp0, i2s0grp0, i2s1grp0, i2srefclkgrp0, spi0grp0,
22+
spi1grp0, pciedebuggrp0, uart0grp0, uart0grp1, uart1grp0,
23+
uart2grp0, uart2grp1, uart3grp0, uart4grp0, uart5grp0
24+
cpuclkout: cpuclkoutgrp0
25+
udlclkout: udlclkoutgrp0
26+
i2c1: i2c1grp0
27+
i2c2: i2c2grp0
28+
i2c3: i2c3grp0
29+
i2s0: i2s0grp0
30+
i2s1: i2s1grp0
31+
i2srefclk: i2srefclkgrp0
32+
spi0: spi0grp0
33+
spi1: spi1grp0
34+
pciedebug: pciedebuggrp0
35+
uart0: uart0grp0, uart0grp1
36+
uart1: uart1grp0
37+
uart2: uart2grp0, uart2grp1
38+
uart3: uart3grp0
39+
uart4: uart4grp0
40+
uart5: uart5grp0
41+
nand: nandgrp0
42+
sdio0: sdio0grp0
43+
sdio1: sdio1grp0
44+
ethernet: ethernetgrp0
45+
46+
47+
Optional subnode-properties (see pinctrl-bindings.txt):
48+
- drive-strength: 4, 6, 8, 9 mA. For SD and NAND pins, this is for 3.3V VCCQ3.
49+
- bias-pull-up
50+
- bias-disable
51+
52+
Examples:
53+
pinctrl@f801d000 {
54+
compatible = "axis,artpec6-pinctrl";
55+
reg = <0xf801d000 0x400>;
56+
57+
pinctrl_uart0: uart0grp {
58+
function = "uart0";
59+
groups = "uart0grp0";
60+
drive-strength = <4>;
61+
bias-pull-up;
62+
};
63+
pinctrl_uart3: uart3grp {
64+
function = "uart3";
65+
groups = "uart3grp0";
66+
};
67+
};
68+
uart0: uart@f8036000 {
69+
compatible = "arm,pl011", "arm,primecell";
70+
reg = <0xf8036000 0x1000>;
71+
interrupts = <0 104 IRQ_TYPE_LEVEL_HIGH>;
72+
clocks = <&pll2div24>, <&apb_pclk>;
73+
clock-names = "uart_clk", "apb_pclk";
74+
pinctrl-names = "default";
75+
pinctrl-0 = <&pinctrl_uart0>;
76+
};
77+
uart3: uart@f8039000 {
78+
compatible = "arm,pl011", "arm,primecell";
79+
reg = <0xf8039000 0x1000>;
80+
interrupts = <0 128 IRQ_TYPE_LEVEL_HIGH>;
81+
clocks = <&pll2div24>, <&apb_pclk>;
82+
clock-names = "uart_clk", "apb_pclk";
83+
pinctrl-names = "default";
84+
pinctrl-0 = <&pinctrl_uart3>;
85+
};
Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
* Marvell Armada 37xx SoC pin and gpio controller
2+
3+
Each Armada 37xx SoC come with two pin and gpio controller one for the
4+
south bridge and the other for the north bridge.
5+
6+
Inside this set of register the gpio latch allows exposing some
7+
configuration of the SoC and especially the clock frequency of the
8+
xtal. Hence, this node is a represent as syscon allowing sharing the
9+
register between multiple hardware block.
10+
11+
GPIO and pin controller:
12+
------------------------
13+
14+
Main node:
15+
16+
Refer to pinctrl-bindings.txt in this directory for details of the
17+
common pinctrl bindings used by client devices, including the meaning
18+
of the phrase "pin configuration node".
19+
20+
Required properties for pinctrl driver:
21+
22+
- compatible: "marvell,armada3710-sb-pinctrl", "syscon, "simple-mfd"
23+
for the south bridge
24+
"marvell,armada3710-nb-pinctrl", "syscon, "simple-mfd"
25+
for the north bridge
26+
- reg: The first set of register are for pinctrl/gpio and the second
27+
set for the interrupt controller
28+
- interrupts: list of the interrupt use by the gpio
29+
30+
Available groups and functions for the North bridge:
31+
32+
group: jtag
33+
- pins 20-24
34+
- functions jtag, gpio
35+
36+
group sdio0
37+
- pins 8-10
38+
- functions sdio, gpio
39+
40+
group emmc_nb
41+
- pins 27-35
42+
- functions emmc, gpio
43+
44+
group pwm0
45+
- pin 11 (GPIO1-11)
46+
- functions pwm, gpio
47+
48+
group pwm1
49+
- pin 12
50+
- functions pwm, gpio
51+
52+
group pwm2
53+
- pin 13
54+
- functions pwm, gpio
55+
56+
group pwm3
57+
- pin 14
58+
- functions pwm, gpio
59+
60+
group pmic1
61+
- pin 17
62+
- functions pmic, gpio
63+
64+
group pmic0
65+
- pin 16
66+
- functions pmic, gpio
67+
68+
group i2c2
69+
- pins 2-3
70+
- functions i2c, gpio
71+
72+
group i2c1
73+
- pins 0-1
74+
- functions i2c, gpio
75+
76+
group spi_cs1
77+
- pin 17
78+
- functions spi, gpio
79+
80+
group spi_cs2
81+
- pin 18
82+
- functions spi, gpio
83+
84+
group spi_cs3
85+
- pin 19
86+
- functions spi, gpio
87+
88+
group onewire
89+
- pin 4
90+
- functions onewire, gpio
91+
92+
group uart1
93+
- pins 25-26
94+
- functions uart, gpio
95+
96+
group spi_quad
97+
- pins 15-16
98+
- functions spi, gpio
99+
100+
group uart_2
101+
- pins 9-10
102+
- functions uart, gpio
103+
104+
Available groups and functions for the South bridge:
105+
106+
group usb32_drvvbus0
107+
- pin 36
108+
- functions drvbus, gpio
109+
110+
group usb2_drvvbus1
111+
- pin 37
112+
- functions drvbus, gpio
113+
114+
group sdio_sb
115+
- pins 60-64
116+
- functions sdio, gpio
117+
118+
group rgmii
119+
- pins 42-55
120+
- functions mii, gpio
121+
122+
group pcie1
123+
- pins 39-40
124+
- functions pcie, gpio
125+
126+
group ptp
127+
- pins 56-58
128+
- functions ptp, gpio
129+
130+
group ptp_clk
131+
- pin 57
132+
- functions ptp, mii
133+
134+
group ptp_trig
135+
- pin 58
136+
- functions ptp, mii
137+
138+
group mii_col
139+
- pin 59
140+
- functions mii, mii_err
141+
142+
GPIO subnode:
143+
144+
Please refer to gpio.txt in this directory for details of gpio-ranges property
145+
and the common GPIO bindings used by client devices.
146+
147+
Required properties for gpio driver under the gpio subnode:
148+
- interrupts: List of interrupt specifier for the controllers interrupt.
149+
- gpio-controller: Marks the device node as a gpio controller.
150+
- #gpio-cells: Should be 2. The first cell is the GPIO number and the
151+
second cell specifies GPIO flags, as defined in
152+
<dt-bindings/gpio/gpio.h>. Only the GPIO_ACTIVE_HIGH and
153+
GPIO_ACTIVE_LOW flags are supported.
154+
- gpio-ranges: Range of pins managed by the GPIO controller.
155+
156+
Xtal Clock bindings for Marvell Armada 37xx SoCs
157+
------------------------------------------------
158+
159+
see Documentation/devicetree/bindings/clock/armada3700-xtal-clock.txt
160+
161+
162+
Example:
163+
pinctrl_sb: pinctrl-sb@18800 {
164+
compatible = "marvell,armada3710-sb-pinctrl", "syscon", "simple-mfd";
165+
reg = <0x18800 0x100>, <0x18C00 0x20>;
166+
gpio {
167+
#gpio-cells = <2>;
168+
gpio-ranges = <&pinctrl_sb 0 0 29>;
169+
gpio-controller;
170+
interrupts =
171+
<GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
172+
<GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>,
173+
<GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>,
174+
<GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
175+
<GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
176+
};
177+
178+
rgmii_pins: mii-pins {
179+
groups = "rgmii";
180+
function = "mii";
181+
};
182+
183+
};

‎Documentation/devicetree/bindings/pinctrl/pinctrl-aspeed.txt‎

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,28 @@ Documentation/devicetree/bindings/mfd/syscon.txt
3434
Subnode Format
3535
==============
3636

37-
The required properties of child nodes are (as defined in pinctrl-bindings):
38-
- function
39-
- groups
37+
The required properties of pinmux child nodes are:
38+
- function: the mux function to select
39+
- groups : the list of groups to select with this function
4040

41-
Each function has only one associated pin group. Each group is named by its
42-
function. The following values for the function and groups properties are
43-
supported:
41+
Required properties of pinconf child nodes are:
42+
- groups: A list of groups to select (either this or "pins" must be
43+
specified)
44+
- pins : A list of ball names as strings, eg "D14" (either this or "groups"
45+
must be specified)
46+
47+
Optional properties of pinconf child nodes are:
48+
- bias-disable : disable any pin bias
49+
- bias-pull-down: pull down the pin
50+
- drive-strength: sink or source at most X mA
51+
52+
Definitions are as specified in
53+
Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt, with any
54+
further limitations as described above.
55+
56+
For pinmux, each mux function has only one associated pin group. Each group is
57+
named by its function. The following values for the function and groups
58+
properties are supported:
4459

4560
aspeed,ast2400-pinctrl, aspeed,g4-pinctrl:
4661

@@ -90,6 +105,11 @@ syscon: scu@1e6e2000 {
90105
function = "I2C3";
91106
groups = "I2C3";
92107
};
108+
109+
pinctrl_gpioh0_unbiased_default: gpioh0 {
110+
pins = "A8";
111+
bias-disable;
112+
};
93113
};
94114
};
95115

@@ -110,6 +130,11 @@ ahb {
110130
function = "I2C3";
111131
groups = "I2C3";
112132
};
133+
134+
pinctrl_gpioh0_unbiased_default: gpioh0 {
135+
pins = "A18";
136+
bias-disable;
137+
};
113138
};
114139
};
115140

@@ -143,6 +168,3 @@ ahb {
143168
};
144169
};
145170
};
146-
147-
Please refer to pinctrl-bindings.txt in this directory for details of the
148-
common pinctrl bindings used by client devices.

0 commit comments

Comments
 (0)