hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/arm/boot/dts/pxa2xx.dtsi
....@@ -1,15 +1,34 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * pxa2xx.dtsi - Device Tree Include file for Marvell PXA2xx family SoC
34 *
45 * Copyright (C) 2011 Marek Vasut <marek.vasut@gmail.com>
5
- *
6
- * Licensed under GPLv2 or later.
76 */
87
9
-#include "skeleton.dtsi"
108 #include "dt-bindings/clock/pxa-clock.h"
119
10
+#define PMGROUP(pin) #pin
11
+#define PMMUX(func, pin, af) \
12
+ mux- ## func { \
13
+ groups = PMGROUP(P ## pin); \
14
+ function = #af; \
15
+ }
16
+#define PMMUX_LPM_LOW(func, pin, af) \
17
+ mux- ## func { \
18
+ groups = PMGROUP(P ## pin); \
19
+ function = #af; \
20
+ low-power-disable; \
21
+ }
22
+#define PMMUX_LPM_HIGH(func, pin, af) \
23
+ mux- ## func { \
24
+ groups = PMGROUP(P ## pin); \
25
+ function = #af; \
26
+ low-power-enable; \
27
+ }
28
+
1229 / {
30
+ #address-cells = <1>;
31
+ #size-cells = <1>;
1332 model = "Marvell PXA2xx family SoC";
1433 compatible = "marvell,pxa2xx";
1534 interrupt-parent = <&pxairq>;
....@@ -24,8 +43,6 @@
2443 };
2544
2645 cpus {
27
- #address-cells = <0>;
28
- #size-cells = <0>;
2946 cpu {
3047 compatible = "marvell,xscale";
3148 device_type = "cpu";
....@@ -76,7 +93,7 @@
7693 };
7794 };
7895
79
- ffuart: uart@40100000 {
96
+ ffuart: serial@40100000 {
8097 compatible = "mrvl,pxa-uart";
8198 reg = <0x40100000 0x30>;
8299 interrupts = <22>;
....@@ -84,7 +101,7 @@
84101 status = "disabled";
85102 };
86103
87
- btuart: uart@40200000 {
104
+ btuart: serial@40200000 {
88105 compatible = "mrvl,pxa-uart";
89106 reg = <0x40200000 0x30>;
90107 interrupts = <21>;
....@@ -92,7 +109,7 @@
92109 status = "disabled";
93110 };
94111
95
- stuart: uart@40700000 {
112
+ stuart: serial@40700000 {
96113 compatible = "mrvl,pxa-uart";
97114 reg = <0x40700000 0x30>;
98115 interrupts = <20>;
....@@ -100,9 +117,9 @@
100117 status = "disabled";
101118 };
102119
103
- hwuart: uart@41100000 {
120
+ hwuart: serial@41600000 {
104121 compatible = "mrvl,pxa-uart";
105
- reg = <0x41100000 0x30>;
122
+ reg = <0x41600000 0x30>;
106123 interrupts = <7>;
107124 status = "disabled";
108125 };