1 /* The pxa3xx skeleton simply augments the 2xx version */
4 #define MFP_PIN_PXA300(gpio) \
5 ((gpio <= 2) ? (0x00b4 + 4 * gpio) : \
6 (gpio <= 26) ? (0x027c + 4 * (gpio - 3)) : \
7 (gpio <= 98) ? (0x0400 + 4 * (gpio - 27)) : \
8 (gpio <= 127) ? (0x0600 + 4 * (gpio - 99)) : \
11 #define MFP_PIN_PXA310(gpio) \
12 ((gpio <= 2) ? (0x00b4 + 4 * gpio) : \
13 (gpio <= 26) ? (0x027c + 4 * (gpio - 3)) : \
14 (gpio <= 29) ? (0x0400 + 4 * (gpio - 27)) : \
15 (gpio <= 98) ? (0x0418 + 4 * (gpio - 30)) : \
16 (gpio <= 127) ? (0x0600 + 4 * (gpio - 99)) : \
18 (gpio <= 268) ? (0x052c + 4 * (gpio - 263)) : \
21 #define MFP_PIN_PXA320(gpio) \
22 ((gpio <= 4) ? (0x0124 + 4 * gpio) : \
23 (gpio <= 9) ? (0x028c + 4 * (gpio - 5)) : \
24 (gpio <= 10) ? (0x0458 + 4 * (gpio - 10)) : \
25 (gpio <= 26) ? (0x02a0 + 4 * (gpio - 11)) : \
26 (gpio <= 48) ? (0x0400 + 4 * (gpio - 27)) : \
27 (gpio <= 62) ? (0x045c + 4 * (gpio - 49)) : \
28 (gpio <= 73) ? (0x04b4 + 4 * (gpio - 63)) : \
29 (gpio <= 98) ? (0x04f0 + 4 * (gpio - 74)) : \
30 (gpio <= 127) ? (0x0600 + 4 * (gpio - 99)) : \
34 * MFP Alternate functions for pins having a gpio.
35 * Example of use: pinctrl-single,pins = < MFP_PIN_PXA310(21) MFP_AF1 >
37 #define MFP_AF0 (0 << 0)
38 #define MFP_AF1 (1 << 0)
39 #define MFP_AF2 (2 << 0)
40 #define MFP_AF3 (3 << 0)
41 #define MFP_AF4 (4 << 0)
42 #define MFP_AF5 (5 << 0)
43 #define MFP_AF6 (6 << 0)
46 * MFP drive strength functions for pins.
47 * Example of use: pinctrl-single,drive-strength = MFP_DS03X;
49 #define MFP_DSMSK (0x7 << 10)
50 #define MFP_DS01X < (0x0 << 10) MFP_DSMSK >
51 #define MFP_DS02X < (0x1 << 10) MFP_DSMSK >
52 #define MFP_DS03X < (0x2 << 10) MFP_DSMSK >
53 #define MFP_DS04X < (0x3 << 10) MFP_DSMSK >
54 #define MFP_DS06X < (0x4 << 10) MFP_DSMSK >
55 #define MFP_DS08X < (0x5 << 10) MFP_DSMSK >
56 #define MFP_DS10X < (0x6 << 10) MFP_DSMSK >
57 #define MFP_DS13X < (0x7 << 10) MFP_DSMSK >
60 * MFP low power mode for pins.
62 * pinctrl-single,low-power-mode = MFP_LPM(MFP_LPM_PULL_LOW|MFP_LPM_EDGE_FALL);
64 * Table that determines the low power modes outputs, with actual settings
65 * used in parentheses for don't-care values. Except for the float output,
66 * the configured driven and pulled levels match, so if there is a need for
67 * non-LPM pulled output, the same configuration could probably be used.
69 * Output value sleep_oe_n sleep_data pullup_en pulldown_en pull_sel
70 * (bit 7) (bit 8) (bit 14) (bit 13) (bit 15)
72 * Input 0 X(0) X(0) X(0) 0
73 * Drive 0 0 0 0 X(1) 0
74 * Drive 1 0 1 X(1) 0 0
75 * Pull hi (1) 1 X(1) 1 0 0
76 * Pull lo (0) 1 X(0) 0 1 0
77 * Z (float) 1 X(0) 0 0 0
79 #define MFP_LPM(x) < (x) MFP_LPM_MSK >
81 #define MFP_LPM_MSK 0xe1f0
82 #define MFP_LPM_INPUT 0x0000
83 #define MFP_LPM_DRIVE_LOW 0x2000
84 #define MFP_LPM_DRIVE_HIGH 0x4100
85 #define MFP_LPM_PULL_LOW 0x2080
86 #define MFP_LPM_PULL_HIGH 0x4180
87 #define MFP_LPM_FLOAT 0x0080
89 #define MFP_LPM_EDGE_NONE 0x0000
90 #define MFP_LPM_EDGE_RISE 0x0010
91 #define MFP_LPM_EDGE_FALL 0x0020
92 #define MFP_LPM_EDGE_BOTH 0x0030
95 model = "Marvell PXA3xx familiy SoC";
96 compatible = "marvell,pxa3xx";
99 pdma: dma-controller@40000000 {
100 compatible = "marvell,pdma-1.0";
101 reg = <0x40000000 0x10000>;
103 #dma-channels = <32>;
105 #dma-requests = <100>;
109 pwri2c: i2c@40f500c0 {
110 compatible = "mrvl,pwri2c";
111 reg = <0x40f500c0 0x30>;
113 clocks = <&clks CLK_PWRI2C>;
114 #address-cells = <0x1>;
119 nand0: nand@43100000 {
120 compatible = "marvell,pxa3xx-nand";
121 reg = <0x43100000 90>;
123 clocks = <&clks CLK_NAND>;
126 #address-cells = <1>;
131 pxairq: interrupt-controller@40d00000 {
132 marvell,intc-priority;
133 marvell,intc-nr-irqs = <56>;
136 pinctrl: pinctrl@40e10000 {
137 compatible = "pinconf-single";
138 reg = <0x40e10000 0xffff>;
139 #address-cells = <1>;
141 #pinctrl-cells = <1>;
142 pinctrl-single,register-width = <32>;
143 pinctrl-single,function-mask = <0x7>;
146 gpio: gpio@40e00000 {
147 compatible = "intel,pxa3xx-gpio";
148 reg = <0x40e00000 0x10000>;
149 clocks = <&clks CLK_GPIO>;
150 interrupt-names = "gpio0", "gpio1", "gpio_mux";
151 interrupts = <8 9 10>;
154 interrupt-controller;
155 #interrupt-cells = <0x2>;
159 compatible = "marvell,pxa-mmc";
160 reg = <0x41100000 0x1000>;
162 clocks = <&clks CLK_MMC>;
165 dma-names = "rx", "tx";
170 compatible = "marvell,pxa-mmc";
171 reg = <0x42000000 0x1000>;
173 clocks = <&clks CLK_MMC1>;
176 dma-names = "rx", "tx";
181 compatible = "marvell,pxa-mmc";
182 reg = <0x42500000 0x1000>;
184 clocks = <&clks CLK_MMC2>;
187 dma-names = "rx", "tx";
191 pxa3xx_ohci: usb@4c000000 {
192 compatible = "marvell,pxa-ohci";
193 reg = <0x4c000000 0x10000>;
195 clocks = <&clks CLK_USBH>;
200 compatible = "marvell,pxa270-pwm";
201 reg = <0x40b00000 0x10>;
203 clocks = <&clks CLK_PWM0>;
208 compatible = "marvell,pxa270-pwm";
209 reg = <0x40b00010 0x10>;
211 clocks = <&clks CLK_PWM1>;
216 compatible = "marvell,pxa270-pwm";
217 reg = <0x40c00000 0x10>;
219 clocks = <&clks CLK_PWM0>;
224 compatible = "marvell,pxa270-pwm";
225 reg = <0x40c00010 0x10>;
227 clocks = <&clks CLK_PWM1>;
234 * The muxing of external clocks/internal dividers for osc* clock
235 * sources has been hidden under the carpet by now.
237 #address-cells = <1>;
241 clks: pxa3xx_clks@41300004 {
242 compatible = "marvell,pxa300-clocks";
249 compatible = "marvell,pxa-timer";
250 reg = <0x40a00000 0x20>;
252 clocks = <&clks CLK_OSTIMER>;