Skip to content

Commit 33486ed

Browse files
AzharMCHPfabiobaltieri
authored andcommitted
dts: arm: microchip: add pinctrl dts node and bindings for Port G1 IP
Add pinctrl dts node for PIC32CM JH family devices and update binding file for Microchip Pinctrl Port G1 IP Signed-off-by: Mohamed Azhar <[email protected]>
1 parent e929a72 commit 33486ed

File tree

5 files changed

+43
-41
lines changed

5 files changed

+43
-41
lines changed

dts/arm/microchip/pic32c/pic32cm_jh/common/pic32cm_jh.dtsi

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,19 @@
3838
compatible = "mmio-sram";
3939
};
4040

41-
porta: gpio@41000000 {
42-
compatible = "microchip,port-g1-gpio";
43-
reg = <0x41000000 0x80>;
44-
gpio-controller;
45-
#gpio-cells = <2>;
46-
#microchip,pin-cells = <2>;
41+
pinctrl: pinctrl@41000000 {
42+
compatible = "microchip,port-g1-pinctrl";
43+
#address-cells = <1>;
44+
#size-cells = <1>;
45+
ranges = <0x41000000 0x41000000 0x180>;
46+
47+
porta: gpio@41000000 {
48+
compatible = "microchip,port-g1-gpio";
49+
reg = <0x41000000 0x80>;
50+
gpio-controller;
51+
#gpio-cells = <2>;
52+
#microchip,pin-cells = <2>;
53+
};
4754
};
4855
};
4956
};

dts/arm/microchip/pic32c/pic32cm_jh/common/pic32cm_jh_100.dtsi

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,20 @@
88

99
#include <microchip/pic32c/pic32cm_jh/common/pic32cm_jh.dtsi>
1010

11-
/ {
12-
soc {
13-
portb: gpio@41000080 {
14-
compatible = "microchip,port-g1-gpio";
15-
reg = <0x41000080 0x80>;
16-
gpio-controller;
17-
#gpio-cells = <2>;
18-
#microchip,pin-cells = <2>;
19-
};
11+
&pinctrl {
12+
portb: gpio@41000080 {
13+
compatible = "microchip,port-g1-gpio";
14+
reg = <0x41000080 0x80>;
15+
gpio-controller;
16+
#gpio-cells = <2>;
17+
#microchip,pin-cells = <2>;
18+
};
2019

21-
portc: gpio@41000100 {
22-
compatible = "microchip,port-g1-gpio";
23-
reg = <0x41000100 0x80>;
24-
gpio-controller;
25-
#gpio-cells = <2>;
26-
#microchip,pin-cells = <2>;
27-
};
20+
portc: gpio@41000100 {
21+
compatible = "microchip,port-g1-gpio";
22+
reg = <0x41000100 0x80>;
23+
gpio-controller;
24+
#gpio-cells = <2>;
25+
#microchip,pin-cells = <2>;
2826
};
2927
};

dts/arm/microchip/pic32c/pic32cm_jh/common/pic32cm_jh_48.dtsi

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@
88

99
#include <microchip/pic32c/pic32cm_jh/common/pic32cm_jh.dtsi>
1010

11-
/ {
12-
soc {
13-
portb: gpio@41000080 {
14-
compatible = "microchip,port-g1-gpio";
15-
reg = <0x41000080 0x80>;
16-
gpio-controller;
17-
#gpio-cells = <2>;
18-
#microchip,pin-cells = <2>;
19-
};
11+
&pinctrl {
12+
portb: gpio@41000080 {
13+
compatible = "microchip,port-g1-gpio";
14+
reg = <0x41000080 0x80>;
15+
gpio-controller;
16+
#gpio-cells = <2>;
17+
#microchip,pin-cells = <2>;
2018
};
2119
};

dts/arm/microchip/pic32c/pic32cm_jh/common/pic32cm_jh_64.dtsi

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@
88

99
#include <microchip/pic32c/pic32cm_jh/common/pic32cm_jh.dtsi>
1010

11-
/ {
12-
soc {
13-
portb: gpio@41000080 {
14-
compatible = "microchip,port-g1-gpio";
15-
reg = <0x41000080 0x80>;
16-
gpio-controller;
17-
#gpio-cells = <2>;
18-
#microchip,pin-cells = <2>;
19-
};
11+
&pinctrl {
12+
portb: gpio@41000080 {
13+
compatible = "microchip,port-g1-gpio";
14+
reg = <0x41000080 0x80>;
15+
gpio-controller;
16+
#gpio-cells = <2>;
17+
#microchip,pin-cells = <2>;
2018
};
2119
};

dts/bindings/pinctrl/microchip,port-g1-pinctrl.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ description: |
1313
1414
Group g1 PORT PINCTRL driver supports following hardware peripherals:
1515
- module name="PORT" id="U2210" version="2.2.0"
16+
- module name="PORT" id="U2210" version="3.1.0"
1617
1718
The node has the 'pinctrl' node label set in your SoC's devicetree, so you can
1819
modify it like this:
@@ -112,7 +113,7 @@ child-binding:
112113
description: |
113114
An array of pins sharing the same group properties. The pins should
114115
be defined using pre-defined macros or, alternatively, using the
115-
SAM_PINMUX utility macros depending on the pinmux model used by the
116+
MCHP_PINMUX utility macros depending on the pinmux model used by the
116117
SoC series.
117118
drive-strength:
118119
enum:

0 commit comments

Comments
 (0)