Skip to content

Commit e55ef16

Browse files
Huqiang QinLinus Walleij
authored andcommitted
dt-bindings: pinctrl: Add compatibles for Amlogic C3 SoCs
Add a new compatible name for Amlogic C3 pin controller, and add a new dt-binding header file which document the detail pin names. Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20230714122441.3098337-2-huqiang.qin@amlogic.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 060f03e commit e55ef16

2 files changed

Lines changed: 73 additions & 0 deletions

File tree

Documentation/devicetree/bindings/pinctrl/amlogic,meson-pinctrl-a1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ allOf:
1515
properties:
1616
compatible:
1717
enum:
18+
- amlogic,c3-periphs-pinctrl
1819
- amlogic,meson-a1-periphs-pinctrl
1920
- amlogic,meson-s4-periphs-pinctrl
2021

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */
2+
/*
3+
* Copyright (c) 2021 Amlogic, Inc. All rights reserved.
4+
* Author: Huqiang Qin <huqiang.qin@amlogic.com>
5+
*/
6+
7+
#ifndef _DT_BINDINGS_AMLOGIC_C3_GPIO_H
8+
#define _DT_BINDINGS_AMLOGIC_C3_GPIO_H
9+
10+
#define GPIOE_0 0
11+
#define GPIOE_1 1
12+
#define GPIOE_2 2
13+
#define GPIOE_3 3
14+
#define GPIOE_4 4
15+
16+
#define GPIOB_0 5
17+
#define GPIOB_1 6
18+
#define GPIOB_2 7
19+
#define GPIOB_3 8
20+
#define GPIOB_4 9
21+
#define GPIOB_5 10
22+
#define GPIOB_6 11
23+
#define GPIOB_7 12
24+
#define GPIOB_8 13
25+
#define GPIOB_9 14
26+
#define GPIOB_10 15
27+
#define GPIOB_11 16
28+
#define GPIOB_12 17
29+
#define GPIOB_13 18
30+
#define GPIOB_14 19
31+
32+
#define GPIOC_0 20
33+
#define GPIOC_1 21
34+
#define GPIOC_2 22
35+
#define GPIOC_3 23
36+
#define GPIOC_4 24
37+
#define GPIOC_5 25
38+
#define GPIOC_6 26
39+
40+
#define GPIOX_0 27
41+
#define GPIOX_1 28
42+
#define GPIOX_2 29
43+
#define GPIOX_3 30
44+
#define GPIOX_4 31
45+
#define GPIOX_5 32
46+
#define GPIOX_6 33
47+
#define GPIOX_7 34
48+
#define GPIOX_8 35
49+
#define GPIOX_9 36
50+
#define GPIOX_10 37
51+
#define GPIOX_11 38
52+
#define GPIOX_12 39
53+
#define GPIOX_13 40
54+
55+
#define GPIOD_0 41
56+
#define GPIOD_1 42
57+
#define GPIOD_2 43
58+
#define GPIOD_3 44
59+
#define GPIOD_4 45
60+
#define GPIOD_5 46
61+
#define GPIOD_6 47
62+
63+
#define GPIOA_0 48
64+
#define GPIOA_1 49
65+
#define GPIOA_2 50
66+
#define GPIOA_3 51
67+
#define GPIOA_4 52
68+
#define GPIOA_5 53
69+
70+
#define GPIO_TEST_N 54
71+
72+
#endif /* _DT_BINDINGS_AMLOGIC_C3_GPIO_H */

0 commit comments

Comments
 (0)