Skip to content

Commit d208389

Browse files
Lakshmi-Sowjanyalinusw
authored andcommitted
dt-bindings: pinctrl: Add bindings for Intel Keembay pinctrl driver
Add Device Tree bindings documentation for Intel Keem Bay SoC's pin controller. Add entry for INTEL Keem Bay pinctrl driver in MAINTAINERS file Co-developed-by: Vineetha G. Jaya Kumaran <[email protected]> Signed-off-by: Vineetha G. Jaya Kumaran <[email protected]> Co-developed-by: Vijayakannan Ayyathurai <[email protected]> Signed-off-by: Vijayakannan Ayyathurai <[email protected]> Signed-off-by: Lakshmi Sowjanya D <[email protected]> Acked-by: Mark Gross <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 3fb5c90 commit d208389

File tree

2 files changed

+140
-0
lines changed

2 files changed

+140
-0
lines changed
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/pinctrl/intel,pinctrl-keembay.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Intel Keem Bay pin controller Device Tree Bindings
8+
9+
maintainers:
10+
- Lakshmi Sowjanya D <[email protected]>
11+
12+
description: |
13+
Intel Keem Bay SoC integrates a pin controller which enables control
14+
of pin directions, input/output values and configuration
15+
for a total of 80 pins.
16+
17+
properties:
18+
compatible:
19+
const: intel,keembay-pinctrl
20+
21+
reg:
22+
maxItems: 2
23+
24+
gpio-controller: true
25+
26+
'#gpio-cells':
27+
const: 2
28+
29+
ngpios:
30+
description: The number of GPIOs exposed.
31+
const: 80
32+
33+
interrupts:
34+
description:
35+
Specifies the interrupt lines to be used by the controller.
36+
Each interrupt line is shared by upto 4 GPIO lines.
37+
maxItems: 8
38+
39+
interrupt-controller: true
40+
41+
'#interrupt-cells':
42+
const: 2
43+
44+
patternProperties:
45+
'^gpio@[0-9a-f]*$':
46+
type: object
47+
48+
description:
49+
Child nodes can be specified to contain pin configuration information,
50+
which can then be utilized by pinctrl client devices.
51+
The following properties are supported.
52+
53+
properties:
54+
pins:
55+
description: |
56+
The name(s) of the pins to be configured in the child node.
57+
Supported pin names are "GPIO0" up to "GPIO79".
58+
59+
bias-disable: true
60+
61+
bias-pull-down: true
62+
63+
bias-pull-up: true
64+
65+
drive-strength:
66+
description: IO pads drive strength in milli Ampere.
67+
enum: [2, 4, 8, 12]
68+
69+
bias-bus-hold:
70+
type: boolean
71+
72+
input-schmitt-enable:
73+
type: boolean
74+
75+
slew-rate:
76+
description: GPIO slew rate control.
77+
0 - Fast(~100MHz)
78+
1 - Slow(~50MHz)
79+
enum: [0, 1]
80+
81+
additionalProperties: false
82+
83+
required:
84+
- compatible
85+
- reg
86+
- gpio-controller
87+
- ngpios
88+
- '#gpio-cells'
89+
- interrupts
90+
- interrupt-controller
91+
- '#interrupt-cells'
92+
93+
examples:
94+
- |
95+
#include <dt-bindings/interrupt-controller/arm-gic.h>
96+
#include <dt-bindings/interrupt-controller/irq.h>
97+
// Example 1
98+
gpio@0 {
99+
compatible = "intel,keembay-pinctrl";
100+
reg = <0x600b0000 0x88>,
101+
<0x600b0190 0x1ac>;
102+
gpio-controller;
103+
ngpios = <0x50>;
104+
#gpio-cells = <0x2>;
105+
interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>,
106+
<GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>,
107+
<GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>,
108+
<GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>,
109+
<GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
110+
<GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>,
111+
<GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
112+
<GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
113+
interrupt-controller;
114+
#interrupt-cells = <2>;
115+
};
116+
117+
// Example 2
118+
gpio@1 {
119+
compatible = "intel,keembay-pinctrl";
120+
reg = <0x600c0000 0x88>,
121+
<0x600c0190 0x1ac>;
122+
gpio-controller;
123+
ngpios = <0x50>;
124+
#gpio-cells = <0x2>;
125+
interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>,
126+
<GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>,
127+
<GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>,
128+
<GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>,
129+
<GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
130+
<GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>,
131+
<GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
132+
<GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
133+
interrupt-controller;
134+
#interrupt-cells = <2>;
135+
};

MAINTAINERS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14635,6 +14635,11 @@ S: Maintained
1463514635
T: git git://git.kernel.org/pub/scm/linux/kernel/git/pinctrl/intel.git
1463614636
F: drivers/pinctrl/intel/
1463714637

14638+
PIN CONTROLLER - KEEMBAY
14639+
M: Lakshmi Sowjanya D <[email protected]>
14640+
S: Supported
14641+
F: drivers/pinctrl/pinctrl-keembay*
14642+
1463814643
PIN CONTROLLER - MEDIATEK
1463914644
M: Sean Wang <[email protected]>
1464014645
L: [email protected] (moderated for non-subscribers)

0 commit comments

Comments
 (0)