.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * pxa2xx.dtsi - Device Tree Include file for Marvell PXA2xx family SoC |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2011 Marek Vasut <marek.vasut@gmail.com> |
---|
5 | | - * |
---|
6 | | - * Licensed under GPLv2 or later. |
---|
7 | 6 | */ |
---|
8 | 7 | |
---|
9 | | -#include "skeleton.dtsi" |
---|
10 | 8 | #include "dt-bindings/clock/pxa-clock.h" |
---|
11 | 9 | |
---|
| 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 | + |
---|
12 | 29 | / { |
---|
| 30 | + #address-cells = <1>; |
---|
| 31 | + #size-cells = <1>; |
---|
13 | 32 | model = "Marvell PXA2xx family SoC"; |
---|
14 | 33 | compatible = "marvell,pxa2xx"; |
---|
15 | 34 | interrupt-parent = <&pxairq>; |
---|
.. | .. |
---|
24 | 43 | }; |
---|
25 | 44 | |
---|
26 | 45 | cpus { |
---|
27 | | - #address-cells = <0>; |
---|
28 | | - #size-cells = <0>; |
---|
29 | 46 | cpu { |
---|
30 | 47 | compatible = "marvell,xscale"; |
---|
31 | 48 | device_type = "cpu"; |
---|
.. | .. |
---|
76 | 93 | }; |
---|
77 | 94 | }; |
---|
78 | 95 | |
---|
79 | | - ffuart: uart@40100000 { |
---|
| 96 | + ffuart: serial@40100000 { |
---|
80 | 97 | compatible = "mrvl,pxa-uart"; |
---|
81 | 98 | reg = <0x40100000 0x30>; |
---|
82 | 99 | interrupts = <22>; |
---|
.. | .. |
---|
84 | 101 | status = "disabled"; |
---|
85 | 102 | }; |
---|
86 | 103 | |
---|
87 | | - btuart: uart@40200000 { |
---|
| 104 | + btuart: serial@40200000 { |
---|
88 | 105 | compatible = "mrvl,pxa-uart"; |
---|
89 | 106 | reg = <0x40200000 0x30>; |
---|
90 | 107 | interrupts = <21>; |
---|
.. | .. |
---|
92 | 109 | status = "disabled"; |
---|
93 | 110 | }; |
---|
94 | 111 | |
---|
95 | | - stuart: uart@40700000 { |
---|
| 112 | + stuart: serial@40700000 { |
---|
96 | 113 | compatible = "mrvl,pxa-uart"; |
---|
97 | 114 | reg = <0x40700000 0x30>; |
---|
98 | 115 | interrupts = <20>; |
---|
.. | .. |
---|
100 | 117 | status = "disabled"; |
---|
101 | 118 | }; |
---|
102 | 119 | |
---|
103 | | - hwuart: uart@41100000 { |
---|
| 120 | + hwuart: serial@41600000 { |
---|
104 | 121 | compatible = "mrvl,pxa-uart"; |
---|
105 | | - reg = <0x41100000 0x30>; |
---|
| 122 | + reg = <0x41600000 0x30>; |
---|
106 | 123 | interrupts = <7>; |
---|
107 | 124 | status = "disabled"; |
---|
108 | 125 | }; |
---|