Skip to content

Commit 43c95d3

Browse files
committed
Merge tag 'pinctrl-v5.3-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.3 kernel cycle: Core changes: - Device links can optionally be added between a pin control producer and its consumers. This will affect how the system power management is handled: a pin controller will not suspend before all of its consumers have been suspended. This was necessary for the ST Microelectronics STMFX expander and need to be tested on other systems as well: it makes sense to make this default in the long run. Right now it is opt-in per driver. - Drive strength can be specified in microamps. With decreases in silicon technology, milliamps isn't granular enough, let's make it possible to select drive strengths in microamps. Right now the Meson (AMlogic) driver needs this. New drivers: - New subdriver for the Tegra 194 SoC. - New subdriver for the Qualcomm SDM845. - New subdriver for the Qualcomm SM8150. - New subdriver for the Freescale i.MX8MN (Freescale is now a product line of NXP). - New subdriver for Marvell MV98DX1135. Driver improvements: - The Bitmain BM1880 driver now supports pin config in addition to muxing. - The Qualcomm drivers can now reserve some GPIOs as taken aside and not usable for users. This is used in ACPI systems to take out some GPIO lines used by the BIOS so that noone else (neither kernel nor userspace) will play with them by mistake and crash the machine. - A slew of refurbishing around the Aspeed drivers (board management controllers for servers) in preparation for the new Aspeed AST2600 SoC. - A slew of improvements over the SH PFC drivers as usual. - Misc cleanups and fixes" * tag 'pinctrl-v5.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl: (106 commits) pinctrl: aspeed: Strip moved macros and structs from private header pinctrl: aspeed: Fix missed include pinctrl: baytrail: Use GENMASK() consistently pinctrl: baytrail: Re-use data structures from pinctrl-intel.h pinctrl: baytrail: Use defined macro instead of magic in byt_get_gpio_mux() pinctrl: qcom: Add SM8150 pinctrl driver dt-bindings: pinctrl: qcom: Add SM8150 pinctrl binding dt-bindings: pinctrl: qcom: Document missing gpio nodes pinctrl: aspeed: Add implementation-related documentation pinctrl: aspeed: Split out pinmux from general pinctrl pinctrl: aspeed: Clarify comment about strapping W1C pinctrl: aspeed: Correct comment that is no longer true MAINTAINERS: Add entry for ASPEED pinctrl drivers dt-bindings: pinctrl: aspeed: Convert AST2500 bindings to json-schema dt-bindings: pinctrl: aspeed: Convert AST2400 bindings to json-schema dt-bindings: pinctrl: aspeed: Split bindings document in two pinctrl: qcom: Add irq_enable callback for msm gpio pinctrl: madera: Fixup SPDX headers pinctrl: qcom: sdm845: Fix CONFIG preprocessor guard pinctrl: tegra: Add bitmask support for parked bits ...
2 parents 073c916 + 4c10576 commit 43c95d3

109 files changed

Lines changed: 7689 additions & 3198 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/allwinner,sunxi-pinctrl.txt‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ Required properties:
2424
"allwinner,sun8i-h3-pinctrl"
2525
"allwinner,sun8i-h3-r-pinctrl"
2626
"allwinner,sun8i-r40-pinctrl"
27+
"allwinner,sun8i-v3-pinctrl"
28+
"allwinner,sun8i-v3s-pinctrl"
2729
"allwinner,sun50i-a64-pinctrl"
2830
"allwinner,sun50i-a64-r-pinctrl"
2931
"allwinner,sun50i-h5-pinctrl"
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# SPDX-License-Identifier: GPL-2.0-or-later
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/pinctrl/aspeed,ast2400-pinctrl.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: ASPEED AST2400 Pin Controller
8+
9+
maintainers:
10+
- Andrew Jeffery <andrew@aj.id.au>
11+
12+
description: |+
13+
The pin controller node should be the child of a syscon node with the
14+
required property:
15+
16+
- compatible: Should be one of the following:
17+
"aspeed,ast2400-scu", "syscon", "simple-mfd"
18+
"aspeed,g4-scu", "syscon", "simple-mfd"
19+
20+
Refer to the the bindings described in
21+
Documentation/devicetree/bindings/mfd/syscon.txt
22+
23+
properties:
24+
compatible:
25+
enum: [ aspeed,ast2400-pinctrl, aspeed,g4-pinctrl ]
26+
27+
patternProperties:
28+
'^.*$':
29+
if:
30+
type: object
31+
then:
32+
patternProperties:
33+
"^function|groups$":
34+
allOf:
35+
- $ref: "/schemas/types.yaml#/definitions/string"
36+
- enum: [ "ACPI", "ADC0", "ADC1", "ADC10", "ADC11", "ADC12", "ADC13",
37+
"ADC14", "ADC15", "ADC2", "ADC3", "ADC4", "ADC5", "ADC6", "ADC7",
38+
"ADC8", "ADC9", "BMCINT", "DDCCLK", "DDCDAT", "EXTRST", "FLACK",
39+
"FLBUSY", "FLWP", "GPID", "GPID0", "GPID2", "GPID4", "GPID6",
40+
"GPIE0", "GPIE2", "GPIE4", "GPIE6", "I2C10", "I2C11", "I2C12",
41+
"I2C13", "I2C14", "I2C3", "I2C4", "I2C5", "I2C6", "I2C7", "I2C8",
42+
"I2C9", "LPCPD", "LPCPME", "LPCRST", "LPCSMI", "MAC1LINK",
43+
"MAC2LINK", "MDIO1", "MDIO2", "NCTS1", "NCTS2", "NCTS3", "NCTS4",
44+
"NDCD1", "NDCD2", "NDCD3", "NDCD4", "NDSR1", "NDSR2", "NDSR3",
45+
"NDSR4", "NDTR1", "NDTR2", "NDTR3", "NDTR4", "NDTS4", "NRI1",
46+
"NRI2", "NRI3", "NRI4", "NRTS1", "NRTS2", "NRTS3", "OSCCLK",
47+
"PWM0", "PWM1", "PWM2", "PWM3", "PWM4", "PWM5", "PWM6", "PWM7",
48+
"RGMII1", "RGMII2", "RMII1", "RMII2", "ROM16", "ROM8", "ROMCS1",
49+
"ROMCS2", "ROMCS3", "ROMCS4", "RXD1", "RXD2", "RXD3", "RXD4",
50+
"SALT1", "SALT2", "SALT3", "SALT4", "SD1", "SD2", "SGPMCK",
51+
"SGPMI", "SGPMLD", "SGPMO", "SGPSCK", "SGPSI0", "SGPSI1", "SGPSLD",
52+
"SIOONCTRL", "SIOPBI", "SIOPBO", "SIOPWREQ", "SIOPWRGD", "SIOS3",
53+
"SIOS5", "SIOSCI", "SPI1", "SPI1DEBUG", "SPI1PASSTHRU", "SPICS1",
54+
"TIMER3", "TIMER4", "TIMER5", "TIMER6", "TIMER7", "TIMER8", "TXD1",
55+
"TXD2", "TXD3", "TXD4", "UART6", "USB11D1", "USB11H2", "USB2D1",
56+
"USB2H1", "USBCKI", "VGABIOS_ROM", "VGAHS", "VGAVS", "VPI18",
57+
"VPI24", "VPI30", "VPO12", "VPO24", "WDTRST1", "WDTRST2" ]
58+
59+
required:
60+
- compatible
61+
62+
examples:
63+
- |
64+
syscon: scu@1e6e2000 {
65+
compatible = "aspeed,ast2400-scu", "syscon", "simple-mfd";
66+
reg = <0x1e6e2000 0x1a8>;
67+
68+
pinctrl: pinctrl {
69+
compatible = "aspeed,g4-pinctrl";
70+
71+
pinctrl_i2c3_default: i2c3_default {
72+
function = "I2C3";
73+
groups = "I2C3";
74+
};
75+
76+
pinctrl_gpioh0_unbiased_default: gpioh0 {
77+
pins = "A8";
78+
bias-disable;
79+
};
80+
};
81+
};
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
# SPDX-License-Identifier: GPL-2.0-or-later
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/pinctrl/aspeed,ast2500-pinctrl.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: ASPEED AST2500 Pin Controller
8+
9+
maintainers:
10+
- Andrew Jeffery <andrew@aj.id.au>
11+
12+
description: |+
13+
The pin controller node should be the child of a syscon node with the
14+
required property:
15+
16+
- compatible: Should be one of the following:
17+
"aspeed,ast2500-scu", "syscon", "simple-mfd"
18+
"aspeed,g5-scu", "syscon", "simple-mfd"
19+
20+
Refer to the the bindings described in
21+
Documentation/devicetree/bindings/mfd/syscon.txt
22+
23+
properties:
24+
compatible:
25+
enum: [ aspeed,ast2500-pinctrl, aspeed,g5-pinctrl ]
26+
aspeed,external-nodes:
27+
minItems: 2
28+
maxItems: 2
29+
allOf:
30+
- $ref: /schemas/types.yaml#/definitions/phandle-array
31+
description: |
32+
A cell of phandles to external controller nodes:
33+
0: compatible with "aspeed,ast2500-gfx", "syscon"
34+
1: compatible with "aspeed,ast2500-lhc", "syscon"
35+
36+
patternProperties:
37+
'^.*$':
38+
if:
39+
type: object
40+
then:
41+
patternProperties:
42+
"^function|groups$":
43+
allOf:
44+
- $ref: "/schemas/types.yaml#/definitions/string"
45+
- enum: [ "ACPI", "ADC0", "ADC1", "ADC10", "ADC11", "ADC12", "ADC13",
46+
"ADC14", "ADC15", "ADC2", "ADC3", "ADC4", "ADC5", "ADC6", "ADC7",
47+
"ADC8", "ADC9", "BMCINT", "DDCCLK", "DDCDAT", "ESPI", "FWSPICS1",
48+
"FWSPICS2", "GPID0", "GPID2", "GPID4", "GPID6", "GPIE0", "GPIE2",
49+
"GPIE4", "GPIE6", "I2C10", "I2C11", "I2C12", "I2C13", "I2C14",
50+
"I2C3", "I2C4", "I2C5", "I2C6", "I2C7", "I2C8", "I2C9", "LAD0",
51+
"LAD1", "LAD2", "LAD3", "LCLK", "LFRAME", "LPCHC", "LPCPD",
52+
"LPCPLUS", "LPCPME", "LPCRST", "LPCSMI", "LSIRQ", "MAC1LINK",
53+
"MAC2LINK", "MDIO1", "MDIO2", "NCTS1", "NCTS2", "NCTS3", "NCTS4",
54+
"NDCD1", "NDCD2", "NDCD3", "NDCD4", "NDSR1", "NDSR2", "NDSR3",
55+
"NDSR4", "NDTR1", "NDTR2", "NDTR3", "NDTR4", "NRI1", "NRI2",
56+
"NRI3", "NRI4", "NRTS1", "NRTS2", "NRTS3", "NRTS4", "OSCCLK",
57+
"PEWAKE", "PNOR", "PWM0", "PWM1", "PWM2", "PWM3", "PWM4", "PWM5",
58+
"PWM6", "PWM7", "RGMII1", "RGMII2", "RMII1", "RMII2", "RXD1",
59+
"RXD2", "RXD3", "RXD4", "SALT1", "SALT10", "SALT11", "SALT12",
60+
"SALT13", "SALT14", "SALT2", "SALT3", "SALT4", "SALT5", "SALT6",
61+
"SALT7", "SALT8", "SALT9", "SCL1", "SCL2", "SD1", "SD2", "SDA1",
62+
"SDA2", "SGPS1", "SGPS2", "SIOONCTRL", "SIOPBI", "SIOPBO",
63+
"SIOPWREQ", "SIOPWRGD", "SIOS3", "SIOS5", "SIOSCI", "SPI1",
64+
"SPI1CS1", "SPI1DEBUG", "SPI1PASSTHRU", "SPI2CK", "SPI2CS0",
65+
"SPI2CS1", "SPI2MISO", "SPI2MOSI", "TIMER3", "TIMER4", "TIMER5",
66+
"TIMER6", "TIMER7", "TIMER8", "TXD1", "TXD2", "TXD3", "TXD4",
67+
"UART6", "USB11BHID", "USB2AD", "USB2AH", "USB2BD", "USB2BH",
68+
"USBCKI", "VGABIOSROM", "VGAHS", "VGAVS", "VPI24", "VPO",
69+
"WDTRST1", "WDTRST2", ]
70+
71+
required:
72+
- compatible
73+
- aspeed,external-nodes
74+
75+
examples:
76+
- |
77+
compatible = "simple-bus";
78+
ranges;
79+
80+
apb {
81+
compatible = "simple-bus";
82+
#address-cells = <1>;
83+
#size-cells = <1>;
84+
ranges;
85+
86+
syscon: scu@1e6e2000 {
87+
compatible = "aspeed,ast2500-scu", "syscon", "simple-mfd";
88+
reg = <0x1e6e2000 0x1a8>;
89+
90+
pinctrl: pinctrl {
91+
compatible = "aspeed,g5-pinctrl";
92+
aspeed,external-nodes = <&gfx &lhc>;
93+
94+
pinctrl_i2c3_default: i2c3_default {
95+
function = "I2C3";
96+
groups = "I2C3";
97+
};
98+
99+
pinctrl_gpioh0_unbiased_default: gpioh0 {
100+
pins = "A18";
101+
bias-disable;
102+
};
103+
};
104+
};
105+
106+
gfx: display@1e6e6000 {
107+
compatible = "aspeed,ast2500-gfx", "syscon";
108+
reg = <0x1e6e6000 0x1000>;
109+
};
110+
};
111+
112+
lpc: lpc@1e789000 {
113+
compatible = "aspeed,ast2500-lpc", "simple-mfd";
114+
reg = <0x1e789000 0x1000>;
115+
116+
#address-cells = <1>;
117+
#size-cells = <1>;
118+
ranges = <0x0 0x1e789000 0x1000>;
119+
120+
lpc_host: lpc-host@80 {
121+
compatible = "aspeed,ast2500-lpc-host", "simple-mfd", "syscon";
122+
reg = <0x80 0x1e0>;
123+
reg-io-width = <4>;
124+
125+
#address-cells = <1>;
126+
#size-cells = <1>;
127+
ranges = <0x0 0x80 0x1e0>;
128+
129+
lhc: lhc@20 {
130+
compatible = "aspeed,ast2500-lhc";
131+
reg = <0x20 0x24 0x48 0x8>;
132+
};
133+
};
134+
};

‎Documentation/devicetree/bindings/pinctrl/bitmain,bm1880-pinctrl.txt‎

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ phrase "pin configuration node".
1414
The pin configuration nodes act as a container for an arbitrary number of
1515
subnodes. Each of these subnodes represents some desired configuration for a
1616
pin, a group, or a list of pins or groups. This configuration for BM1880 SoC
17-
includes only pinmux as there is no pinconf support available in SoC.
17+
includes pinmux and various pin configuration parameters, such as pull-up,
18+
slew rate etc...
1819

1920
Each configuration node can consist of multiple nodes describing the pinmux
2021
options. The name of each subnode is not important; all subnodes should be
@@ -84,10 +85,37 @@ Required Properties:
8485
gpio66, gpio67, eth1, i2s0, i2s0_mclkin, i2s1, i2s1_mclkin,
8586
spi0
8687

88+
Optional Properties:
89+
90+
- bias-disable: No arguments. Disable pin bias.
91+
- bias-pull-down: No arguments. The specified pins should be configured as
92+
pull down.
93+
- bias-pull-up: No arguments. The specified pins should be configured as
94+
pull up.
95+
- input-schmitt-enable: No arguments: Enable schmitt trigger for the specified
96+
pins
97+
- input-schmitt-disable: No arguments: Disable schmitt trigger for the specified
98+
pins
99+
- slew-rate: Integer. Sets slew rate for the specified pins.
100+
Valid values are:
101+
<0> - Slow
102+
<1> - Fast
103+
- drive-strength: Integer. Selects the drive strength for the specified
104+
pins in mA.
105+
Valid values are:
106+
<4>
107+
<8>
108+
<12>
109+
<16>
110+
<20>
111+
<24>
112+
<28>
113+
<32>
114+
87115
Example:
88-
pinctrl: pinctrl@50 {
116+
pinctrl: pinctrl@400 {
89117
compatible = "bitmain,bm1880-pinctrl";
90-
reg = <0x50 0x4B0>;
118+
reg = <0x400 0x120>;
91119

92120
pinctrl_uart0_default: uart0-default {
93121
pinmux {

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ controller, and pinmux/control device.
55

66
Required properties:
77
- compatible: "brcm,bcm2835-gpio"
8+
- compatible: should be one of:
9+
"brcm,bcm2835-gpio" - BCM2835 compatible pinctrl
10+
"brcm,bcm7211-gpio" - BCM7211 compatible pinctrl
811
- reg: Should contain the physical address of the GPIO module's registers.
912
- gpio-controller: Marks the device node as a GPIO controller.
1013
- #gpio-cells : Should be two. The first cell is the pin number and the

‎Documentation/devicetree/bindings/pinctrl/fsl,imx8mm-pinctrl.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Required properties in sub-nodes:
1212
- fsl,pins: each entry consists of 6 integers and represents the mux and config
1313
setting for one pin. The first 5 integers <mux_reg conf_reg input_reg mux_val
1414
input_val> are specified using a PIN_FUNC_ID macro, which can be found in
15-
<dt-bindings/pinctrl/imx8mm-pinfunc.h>. The last integer CONFIG is
15+
<arch/arm64/boot/dts/freescale/imx8mm-pinfunc.h>. The last integer CONFIG is
1616
the pad setting value like pull-up on this pin. Please refer to i.MX8M Mini
1717
Reference Manual for detailed CONFIG settings.
1818

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
* Freescale IMX8MN 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,imx8mn-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+
<arch/arm64/boot/dts/freescale/imx8mn-pinfunc.h>. The last integer CONFIG is
16+
the pad setting value like pull-up on this pin. Please refer to i.MX8M Nano
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,imx8mn-iomuxc";
28+
reg = <0x0 0x30330000 0x0 0x10000>;
29+
30+
pinctrl_uart1: uart1grp {
31+
fsl,pins = <
32+
MX8MN_IOMUXC_UART1_RXD_UART1_DCE_RX 0x140
33+
MX8MN_IOMUXC_UART1_TXD_UART1_DCE_TX 0x140
34+
MX8MN_IOMUXC_UART3_RXD_UART1_DCE_CTS_B 0x140
35+
MX8MN_IOMUXC_UART3_TXD_UART1_DCE_RTS_B 0x140
36+
MX8MN_IOMUXC_SD1_DATA4_GPIO2_IO6 0x19
37+
>;
38+
};
39+
};

‎Documentation/devicetree/bindings/pinctrl/marvell,kirkwood-pinctrl.txt‎

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ part and usage.
66
Required properties:
77
- compatible: "marvell,88f6180-pinctrl",
88
"marvell,88f6190-pinctrl", "marvell,88f6192-pinctrl",
9-
"marvell,88f6281-pinctrl", "marvell,88f6282-pinctrl"
10-
"marvell,98dx4122-pinctrl"
9+
"marvell,88f6281-pinctrl", "marvell,88f6282-pinctrl",
10+
"marvell,98dx4122-pinctrl", "marvell,98dx1135-pinctrl"
1111
- reg: register specifier of MPP registers
1212

1313
This driver supports all kirkwood variants, i.e. 88f6180, 88f619x, and 88f628x.
@@ -317,3 +317,43 @@ mpp44 44 gpio
317317
mpp45 45 gpio
318318
mpp49 49 gpio
319319

320+
* Marvell Poncat2 98dx1135
321+
322+
name pins functions
323+
================================================================================
324+
325+
mpp0 0 gpio, nand(io2), spi(cs)
326+
mpp1 1 gpo, nand(io3), spi(mosi)
327+
mpp2 2 gpo, nand(io4), spi(sck)
328+
mpp3 3 gpo, nand(io5), spi(miso)
329+
mpp4 4 gpio, nand(io6), uart0(rxd)
330+
mpp5 5 gpo, nand(io7), uart0(txd)
331+
mpp6 6 sysrst(out)
332+
mpp7 7 gpo, spi(cs)
333+
mpp8 8 gpio, twsi0(sda), uart1(rts)
334+
mpp9 9 gpio, twsi(sck), uart1(cts)
335+
mpp10 10 gpo, uart0(txd)
336+
mpp11 11 gpio, uart0(rxd)
337+
mpp13 13 gpio, uart1(txd)
338+
mpp14 14 gpio, uart1(rxd)
339+
mpp15 15 gpio, uart0(rts)
340+
mpp16 16 gpio, uart0(cts)
341+
mpp17 17 gpio, nand(cle)
342+
mpp18 18 gpo, nand(io0)
343+
mpp19 19 gpo, nand(io1)
344+
mpp20 20 gpio
345+
mpp21 21 gpio
346+
mpp22 22 gpio
347+
mpp23 23 gpio
348+
mpp24 24 gpio
349+
mpp25 25 gpio
350+
mpp26 26 gpio
351+
mpp27 27 gpio
352+
mpp28 28 gpio, nand(ren)
353+
mpp29 29 gpio, nand(wen)
354+
mpp30 30 gpio
355+
mpp31 31 gpio
356+
mpp32 32 gpio
357+
mpp33 33 gpio
358+
mpp34 34 gpio, nand(ale)
359+
mpp35 35 gpio, nand(cen)

0 commit comments

Comments
 (0)