xref: /linux/scripts/dtc/include-prefixes/arm64/hisilicon/hikey-pinctrl.dtsi (revision 379e9bf52daaaa841ecc4eed3f2c5c86845c45a9)
1/*
2 * pinctrl dts fils for Hislicon HiKey development board
3 *
4 */
5#include <dt-bindings/pinctrl/hisi.h>
6
7/ {
8	soc {
9		pmx0: pinmux@f7010000 {
10			pinctrl-names = "default";
11			pinctrl-0 = <
12				&boot_sel_pmx_func
13				&hkadc_ssi_pmx_func
14				&codec_clk_pmx_func
15				&pwm_in_pmx_func
16				&bl_pwm_pmx_func
17				>;
18
19			boot_sel_pmx_func: boot_sel_pmx_func {
20				pinctrl-single,pins = <
21					0x0    MUX_M0	/* BOOT_SEL     (IOMG000) */
22				>;
23			};
24
25			emmc_pmx_func: emmc_pmx_func {
26				pinctrl-single,pins = <
27					0x100  MUX_M0	/* EMMC_CLK     (IOMG064) */
28					0x104  MUX_M0	/* EMMC_CMD     (IOMG065) */
29					0x108  MUX_M0	/* EMMC_DATA0   (IOMG066) */
30					0x10c  MUX_M0	/* EMMC_DATA1   (IOMG067) */
31					0x110  MUX_M0	/* EMMC_DATA2   (IOMG068) */
32					0x114  MUX_M0	/* EMMC_DATA3   (IOMG069) */
33					0x118  MUX_M0	/* EMMC_DATA4   (IOMG070) */
34					0x11c  MUX_M0	/* EMMC_DATA5   (IOMG071) */
35					0x120  MUX_M0	/* EMMC_DATA6   (IOMG072) */
36					0x124  MUX_M0	/* EMMC_DATA7   (IOMG073) */
37				>;
38			};
39
40			sd_pmx_func: sd_pmx_func {
41				pinctrl-single,pins = <
42					0xc    MUX_M0	/* SD_CLK       (IOMG003) */
43					0x10   MUX_M0	/* SD_CMD       (IOMG004) */
44					0x14   MUX_M0	/* SD_DATA0     (IOMG005) */
45					0x18   MUX_M0	/* SD_DATA1     (IOMG006) */
46					0x1c   MUX_M0	/* SD_DATA2     (IOMG007) */
47					0x20   MUX_M0	/* SD_DATA3     (IOMG008) */
48				>;
49			};
50			sd_pmx_idle: sd_pmx_idle {
51				pinctrl-single,pins = <
52					0xc    MUX_M1	/* SD_CLK       (IOMG003) */
53					0x10   MUX_M1	/* SD_CMD       (IOMG004) */
54					0x14   MUX_M1	/* SD_DATA0     (IOMG005) */
55					0x18   MUX_M1	/* SD_DATA1     (IOMG006) */
56					0x1c   MUX_M1	/* SD_DATA2     (IOMG007) */
57					0x20   MUX_M1	/* SD_DATA3     (IOMG008) */
58				>;
59			};
60
61			sdio_pmx_func: sdio_pmx_func {
62				pinctrl-single,pins = <
63					0x128  MUX_M0	/* SDIO_CLK     (IOMG074) */
64					0x12c  MUX_M0	/* SDIO_CMD     (IOMG075) */
65					0x130  MUX_M0	/* SDIO_DATA0   (IOMG076) */
66					0x134  MUX_M0	/* SDIO_DATA1   (IOMG077) */
67					0x138  MUX_M0	/* SDIO_DATA2   (IOMG078) */
68					0x13c  MUX_M0	/* SDIO_DATA3   (IOMG079) */
69				>;
70			};
71			sdio_pmx_idle: sdio_pmx_idle {
72				pinctrl-single,pins = <
73					0x128  MUX_M1	/* SDIO_CLK     (IOMG074) */
74					0x12c  MUX_M1	/* SDIO_CMD     (IOMG075) */
75					0x130  MUX_M1	/* SDIO_DATA0   (IOMG076) */
76					0x134  MUX_M1	/* SDIO_DATA1   (IOMG077) */
77					0x138  MUX_M1	/* SDIO_DATA2   (IOMG078) */
78					0x13c  MUX_M1	/* SDIO_DATA3   (IOMG079) */
79				>;
80			};
81
82			isp_pmx_func: isp_pmx_func {
83				pinctrl-single,pins = <
84					0x24   MUX_M0	/* ISP_PWDN0    (IOMG009) */
85					0x28   MUX_M0	/* ISP_PWDN1    (IOMG010) */
86					0x2c   MUX_M0	/* ISP_PWDN2    (IOMG011) */
87					0x30   MUX_M1	/* ISP_SHUTTER0 (IOMG012) */
88					0x34   MUX_M1	/* ISP_SHUTTER1 (IOMG013) */
89					0x38   MUX_M1	/* ISP_PWM      (IOMG014) */
90					0x3c   MUX_M0	/* ISP_CCLK0    (IOMG015) */
91					0x40   MUX_M0	/* ISP_CCLK1    (IOMG016) */
92					0x44   MUX_M0	/* ISP_RESETB0  (IOMG017) */
93					0x48   MUX_M0	/* ISP_RESETB1  (IOMG018) */
94					0x4c   MUX_M1	/* ISP_STROBE0  (IOMG019) */
95					0x50   MUX_M1	/* ISP_STROBE1  (IOMG020) */
96					0x54   MUX_M0	/* ISP_SDA0     (IOMG021) */
97					0x58   MUX_M0	/* ISP_SCL0     (IOMG022) */
98					0x5c   MUX_M0	/* ISP_SDA1     (IOMG023) */
99					0x60   MUX_M0	/* ISP_SCL1     (IOMG024) */
100				>;
101			};
102
103			hkadc_ssi_pmx_func: hkadc_ssi_pmx_func {
104				pinctrl-single,pins = <
105					0x68   MUX_M0	/* HKADC_SSI    (IOMG026) */
106				>;
107			};
108
109			codec_clk_pmx_func: codec_clk_pmx_func {
110				pinctrl-single,pins = <
111					0x6c   MUX_M0	/* CODEC_CLK    (IOMG027) */
112				>;
113			};
114
115			codec_pmx_func: codec_pmx_func {
116				pinctrl-single,pins = <
117					0x70   MUX_M1	/* DMIC_CLK     (IOMG028) */
118					0x74   MUX_M0	/* CODEC_SYNC   (IOMG029) */
119					0x78   MUX_M0	/* CODEC_DI     (IOMG030) */
120					0x7c   MUX_M0	/* CODEC_DO     (IOMG031) */
121				>;
122			};
123
124			fm_pmx_func: fm_pmx_func {
125				pinctrl-single,pins = <
126					0x80   MUX_M1	/* FM_XCLK      (IOMG032) */
127					0x84   MUX_M1	/* FM_XFS       (IOMG033) */
128					0x88   MUX_M1	/* FM_DI        (IOMG034) */
129					0x8c   MUX_M1	/* FM_DO        (IOMG035) */
130				>;
131			};
132
133			bt_pmx_func: bt_pmx_func {
134				pinctrl-single,pins = <
135					0x90   MUX_M0	/* BT_XCLK      (IOMG036) */
136					0x94   MUX_M0	/* BT_XFS       (IOMG037) */
137					0x98   MUX_M0	/* BT_DI        (IOMG038) */
138					0x9c   MUX_M0	/* BT_DO        (IOMG039) */
139				>;
140			};
141
142			pwm_in_pmx_func: pwm_in_pmx_func {
143				pinctrl-single,pins = <
144					0xb8   MUX_M1	/* PWM_IN       (IOMG046) */
145				>;
146			};
147
148			bl_pwm_pmx_func: bl_pwm_pmx_func {
149				pinctrl-single,pins = <
150					0xbc   MUX_M1	/* BL_PWM       (IOMG047) */
151				>;
152			};
153
154			uart0_pmx_func: uart0_pmx_func {
155				pinctrl-single,pins = <
156					0xc0   MUX_M0	/* UART0_RXD    (IOMG048) */
157					0xc4   MUX_M0	/* UART0_TXD    (IOMG049) */
158				>;
159			};
160
161			uart1_pmx_func: uart1_pmx_func {
162				pinctrl-single,pins = <
163					0xc8   MUX_M0	/* UART1_CTS_N  (IOMG050) */
164					0xcc   MUX_M0	/* UART1_RTS_N  (IOMG051) */
165					0xd0   MUX_M0	/* UART1_RXD    (IOMG052) */
166					0xd4   MUX_M0	/* UART1_TXD    (IOMG053) */
167				>;
168			};
169
170			uart2_pmx_func: uart2_pmx_func {
171				pinctrl-single,pins = <
172					0xd8   MUX_M0	/* UART2_CTS_N  (IOMG054) */
173					0xdc   MUX_M0	/* UART2_RTS_N  (IOMG055) */
174					0xe0   MUX_M0	/* UART2_RXD    (IOMG056) */
175					0xe4   MUX_M0	/* UART2_TXD    (IOMG057) */
176				>;
177			};
178
179			uart3_pmx_func: uart3_pmx_func {
180				pinctrl-single,pins = <
181					0x180  MUX_M1	/* UART3_CTS_N  (IOMG096) */
182					0x184  MUX_M1	/* UART3_RTS_N  (IOMG097) */
183					0x188  MUX_M1	/* UART3_RXD    (IOMG098) */
184					0x18c  MUX_M1	/* UART3_TXD    (IOMG099) */
185				>;
186			};
187
188			uart4_pmx_func: uart4_pmx_func {
189				pinctrl-single,pins = <
190					0x1d0  MUX_M1	/* UART4_CTS_N  (IOMG116) */
191					0x1d4  MUX_M1	/* UART4_RTS_N  (IOMG117) */
192					0x1d8  MUX_M1	/* UART4_RXD    (IOMG118) */
193					0x1dc  MUX_M1	/* UART4_TXD    (IOMG119) */
194				>;
195			};
196
197			uart5_pmx_func: uart5_pmx_func {
198				pinctrl-single,pins = <
199					0x1c8  MUX_M1	/* UART5_RXD    (IOMG114) */
200					0x1cc  MUX_M1	/* UART5_TXD    (IOMG115) */
201				>;
202			};
203
204			i2c0_pmx_func: i2c0_pmx_func {
205				pinctrl-single,pins = <
206					0xe8   MUX_M0	/* I2C0_SCL     (IOMG058) */
207					0xec   MUX_M0	/* I2C0_SDA     (IOMG059) */
208				>;
209			};
210
211			i2c1_pmx_func: i2c1_pmx_func {
212				pinctrl-single,pins = <
213					0xf0   MUX_M0	/* I2C1_SCL     (IOMG060) */
214					0xf4   MUX_M0	/* I2C1_SDA     (IOMG061) */
215				>;
216			};
217
218			i2c2_pmx_func: i2c2_pmx_func {
219				pinctrl-single,pins = <
220					0xf8   MUX_M0	/* I2C2_SCL     (IOMG062) */
221					0xfc   MUX_M0	/* I2C2_SDA     (IOMG063) */
222				>;
223			};
224		};
225
226		pmx1: pinmux@f7010800 {
227
228			pinctrl-names = "default";
229			pinctrl-0 = <
230				&boot_sel_cfg_func
231				&hkadc_ssi_cfg_func
232				&codec_clk_cfg_func
233				&pwm_in_cfg_func
234				&bl_pwm_cfg_func
235				>;
236
237			boot_sel_cfg_func: boot_sel_cfg_func {
238				pinctrl-single,pins = <
239					0x0    0x0	/* BOOT_SEL     (IOCFG000) */
240				>;
241				pinctrl-single,bias-pulldown  = <PULL_DIS  PULL_DOWN PULL_DIS  PULL_DOWN>;
242				pinctrl-single,bias-pullup    = <PULL_UP   PULL_UP   PULL_DIS  PULL_UP>;
243				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
244			};
245
246			hkadc_ssi_cfg_func: hkadc_ssi_cfg_func {
247				pinctrl-single,pins = <
248					0x6c   0x0	/* HKADC_SSI    (IOCFG027) */
249				>;
250				pinctrl-single,bias-pulldown  = <PULL_DIS  PULL_DOWN PULL_DIS  PULL_DOWN>;
251				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
252				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
253			};
254
255			emmc_clk_cfg_func: emmc_clk_cfg_func {
256				pinctrl-single,pins = <
257					0x104  0x0	/* EMMC_CLK     (IOCFG065) */
258				>;
259				pinctrl-single,bias-pulldown  = <PULL_DIS  PULL_DOWN PULL_DIS  PULL_DOWN>;
260				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
261				pinctrl-single,drive-strength = <DRIVE1_08MA DRIVE_MASK>;
262			};
263
264			emmc_cfg_func: emmc_cfg_func {
265				pinctrl-single,pins = <
266					0x108  0x0	/* EMMC_CMD     (IOCFG066) */
267					0x10c  0x0	/* EMMC_DATA0   (IOCFG067) */
268					0x110  0x0	/* EMMC_DATA1   (IOCFG068) */
269					0x114  0x0	/* EMMC_DATA2   (IOCFG069) */
270					0x118  0x0	/* EMMC_DATA3   (IOCFG070) */
271					0x11c  0x0	/* EMMC_DATA4   (IOCFG071) */
272					0x120  0x0	/* EMMC_DATA5   (IOCFG072) */
273					0x124  0x0	/* EMMC_DATA6   (IOCFG073) */
274					0x128  0x0	/* EMMC_DATA7   (IOCFG074) */
275				>;
276				pinctrl-single,bias-pulldown  = <PULL_DIS  PULL_DOWN PULL_DIS  PULL_DOWN>;
277				pinctrl-single,bias-pullup    = <PULL_UP   PULL_UP   PULL_DIS  PULL_UP>;
278				pinctrl-single,drive-strength = <DRIVE1_04MA DRIVE_MASK>;
279			};
280
281			emmc_rst_cfg_func: emmc_rst_cfg_func {
282				pinctrl-single,pins = <
283					0x12c  0x0	/* EMMC_RST_N   (IOCFG075) */
284				>;
285				pinctrl-single,bias-pulldown  = <PULL_DIS  PULL_DOWN PULL_DIS  PULL_DOWN>;
286				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
287				pinctrl-single,drive-strength = <DRIVE1_04MA DRIVE_MASK>;
288			};
289
290			sd_clk_cfg_func: sd_clk_cfg_func {
291				pinctrl-single,pins = <
292					0xc    0x0	/* SD_CLK       (IOCFG003) */
293				>;
294				pinctrl-single,bias-pulldown  = <PULL_DIS  PULL_DOWN PULL_DIS  PULL_DOWN>;
295				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
296				pinctrl-single,drive-strength = <DRIVE1_10MA DRIVE_MASK>;
297			};
298			sd_clk_cfg_idle: sd_clk_cfg_idle {
299				pinctrl-single,pins = <
300					0xc    0x0	/* SD_CLK       (IOCFG003) */
301				>;
302				pinctrl-single,bias-pulldown  = <PULL_DOWN PULL_DOWN PULL_DIS  PULL_DOWN>;
303				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
304				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
305			};
306
307			sd_cfg_func: sd_cfg_func {
308				pinctrl-single,pins = <
309					0x10   0x0	/* SD_CMD       (IOCFG004) */
310					0x14   0x0	/* SD_DATA0     (IOCFG005) */
311					0x18   0x0	/* SD_DATA1     (IOCFG006) */
312					0x1c   0x0	/* SD_DATA2     (IOCFG007) */
313					0x20   0x0	/* SD_DATA3     (IOCFG008) */
314				>;
315				pinctrl-single,bias-pulldown  = <PULL_DIS  PULL_DOWN PULL_DIS  PULL_DOWN>;
316				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
317				pinctrl-single,drive-strength = <DRIVE1_08MA DRIVE_MASK>;
318			};
319			sd_cfg_idle: sd_cfg_idle {
320				pinctrl-single,pins = <
321					0x10   0x0	/* SD_CMD       (IOCFG004) */
322					0x14   0x0	/* SD_DATA0     (IOCFG005) */
323					0x18   0x0	/* SD_DATA1     (IOCFG006) */
324					0x1c   0x0	/* SD_DATA2     (IOCFG007) */
325					0x20   0x0	/* SD_DATA3     (IOCFG008) */
326				>;
327				pinctrl-single,bias-pulldown  = <PULL_DOWN PULL_DOWN PULL_DIS  PULL_DOWN>;
328				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
329				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
330			};
331
332			sdio_clk_cfg_func: sdio_clk_cfg_func {
333				pinctrl-single,pins = <
334					0x134  0x0	/* SDIO_CLK     (IOCFG077) */
335				>;
336				pinctrl-single,bias-pulldown  = <PULL_DIS  PULL_DOWN PULL_DIS  PULL_DOWN>;
337				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
338				pinctrl-single,drive-strength = <DRIVE1_08MA DRIVE_MASK>;
339			};
340			sdio_clk_cfg_idle: sdio_clk_cfg_idle {
341				pinctrl-single,pins = <
342					0x134  0x0	/* SDIO_CLK     (IOCFG077) */
343				>;
344				pinctrl-single,bias-pulldown  = <PULL_DOWN PULL_DOWN PULL_DIS  PULL_DOWN>;
345				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
346				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
347			};
348
349			sdio_cfg_func: sdio_cfg_func {
350				pinctrl-single,pins = <
351					0x138  0x0	/* SDIO_CMD     (IOCFG078) */
352					0x13c  0x0	/* SDIO_DATA0   (IOCFG079) */
353					0x140  0x0	/* SDIO_DATA1   (IOCFG080) */
354					0x144  0x0	/* SDIO_DATA2   (IOCFG081) */
355					0x148  0x0	/* SDIO_DATA3   (IOCFG082) */
356				>;
357				pinctrl-single,bias-pulldown  = <PULL_DIS  PULL_DOWN PULL_DIS  PULL_DOWN>;
358				pinctrl-single,bias-pullup    = <PULL_UP   PULL_UP   PULL_DIS  PULL_UP>;
359				pinctrl-single,drive-strength = <DRIVE1_04MA DRIVE_MASK>;
360			};
361			sdio_cfg_idle: sdio_cfg_idle {
362				pinctrl-single,pins = <
363					0x138  0x0	/* SDIO_CMD     (IOCFG078) */
364					0x13c  0x0	/* SDIO_DATA0   (IOCFG079) */
365					0x140  0x0	/* SDIO_DATA1   (IOCFG080) */
366					0x144  0x0	/* SDIO_DATA2   (IOCFG081) */
367					0x148  0x0	/* SDIO_DATA3   (IOCFG082) */
368				>;
369				pinctrl-single,bias-pulldown  = <PULL_DIS  PULL_DOWN PULL_DIS  PULL_DOWN>;
370				pinctrl-single,bias-pullup    = <PULL_UP   PULL_UP   PULL_DIS  PULL_UP>;
371				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
372			};
373
374			isp_cfg_func1: isp_cfg_func1 {
375				pinctrl-single,pins = <
376					0x28   0x0	/* ISP_PWDN0    (IOCFG010) */
377					0x2c   0x0	/* ISP_PWDN1    (IOCFG011) */
378					0x30   0x0	/* ISP_PWDN2    (IOCFG012) */
379					0x34   0x0	/* ISP_SHUTTER0 (IOCFG013) */
380					0x38   0x0	/* ISP_SHUTTER1 (IOCFG014) */
381					0x3c   0x0	/* ISP_PWM      (IOCFG015) */
382					0x40   0x0	/* ISP_CCLK0    (IOCFG016) */
383					0x44   0x0	/* ISP_CCLK1    (IOCFG017) */
384					0x48   0x0	/* ISP_RESETB0  (IOCFG018) */
385					0x4c   0x0	/* ISP_RESETB1  (IOCFG019) */
386					0x50   0x0	/* ISP_STROBE0  (IOCFG020) */
387					0x58   0x0	/* ISP_SDA0     (IOCFG022) */
388					0x5c   0x0	/* ISP_SCL0     (IOCFG023) */
389					0x60   0x0	/* ISP_SDA1     (IOCFG024) */
390					0x64   0x0	/* ISP_SCL1     (IOCFG025) */
391				>;
392				pinctrl-single,bias-pulldown  = <PULL_DIS  PULL_DOWN PULL_DIS  PULL_DOWN>;
393				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
394				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
395			};
396			isp_cfg_idle1: isp_cfg_idle1 {
397				pinctrl-single,pins = <
398					0x34   0x0	/* ISP_SHUTTER0 (IOCFG013) */
399					0x38   0x0	/* ISP_SHUTTER1 (IOCFG014) */
400				>;
401				pinctrl-single,bias-pulldown  = <PULL_DOWN PULL_DOWN PULL_DIS  PULL_DOWN>;
402				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
403				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
404			};
405
406			isp_cfg_func2: isp_cfg_func2 {
407				pinctrl-single,pins = <
408					0x54   0x0	/* ISP_STROBE1  (IOCFG021) */
409				>;
410				pinctrl-single,bias-pulldown  = <PULL_DOWN PULL_DOWN PULL_DIS  PULL_DOWN>;
411				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
412				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
413			};
414
415			codec_clk_cfg_func: codec_clk_cfg_func {
416				pinctrl-single,pins = <
417					0x70   0x0	/* CODEC_CLK    (IOCFG028) */
418				>;
419				pinctrl-single,bias-pulldown  = <PULL_DIS  PULL_DOWN PULL_DIS  PULL_DOWN>;
420				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
421				pinctrl-single,drive-strength = <DRIVE1_04MA DRIVE_MASK>;
422			};
423			codec_clk_cfg_idle: codec_clk_cfg_idle {
424				pinctrl-single,pins = <
425					0x70   0x0	/* CODEC_CLK    (IOCFG028) */
426				>;
427				pinctrl-single,bias-pulldown  = <PULL_DIS  PULL_DOWN PULL_DIS  PULL_DOWN>;
428				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
429				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
430			};
431
432			codec_cfg_func1: codec_cfg_func1 {
433				pinctrl-single,pins = <
434					0x74   0x0	/* DMIC_CLK     (IOCFG029) */
435				>;
436				pinctrl-single,bias-pulldown  = <PULL_DOWN PULL_DOWN PULL_DIS  PULL_DOWN>;
437				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
438				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
439			};
440
441			codec_cfg_func2: codec_cfg_func2 {
442				pinctrl-single,pins = <
443					0x78   0x0	/* CODEC_SYNC   (IOCFG030) */
444					0x7c   0x0	/* CODEC_DI     (IOCFG031) */
445					0x80   0x0	/* CODEC_DO     (IOCFG032) */
446				>;
447				pinctrl-single,bias-pulldown  = <PULL_DIS  PULL_DOWN PULL_DIS  PULL_DOWN>;
448				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
449				pinctrl-single,drive-strength = <DRIVE1_04MA DRIVE_MASK>;
450			};
451			codec_cfg_idle2: codec_cfg_idle2 {
452				pinctrl-single,pins = <
453					0x78   0x0	/* CODEC_SYNC   (IOCFG030) */
454					0x7c   0x0	/* CODEC_DI     (IOCFG031) */
455					0x80   0x0	/* CODEC_DO     (IOCFG032) */
456				>;
457				pinctrl-single,bias-pulldown  = <PULL_DIS  PULL_DOWN PULL_DIS  PULL_DOWN>;
458				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
459				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
460			};
461
462			fm_cfg_func: fm_cfg_func {
463				pinctrl-single,pins = <
464					0x84   0x0	/* FM_XCLK      (IOCFG033) */
465					0x88   0x0	/* FM_XFS       (IOCFG034) */
466					0x8c   0x0	/* FM_DI        (IOCFG035) */
467					0x90   0x0	/* FM_DO        (IOCFG036) */
468				>;
469				pinctrl-single,bias-pulldown  = <PULL_DOWN PULL_DOWN PULL_DIS  PULL_DOWN>;
470				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
471				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
472			};
473
474			bt_cfg_func: bt_cfg_func {
475				pinctrl-single,pins = <
476					0x94   0x0	/* BT_XCLK      (IOCFG037) */
477					0x98   0x0	/* BT_XFS       (IOCFG038) */
478					0x9c   0x0	/* BT_DI        (IOCFG039) */
479					0xa0   0x0	/* BT_DO        (IOCFG040) */
480				>;
481				pinctrl-single,bias-pulldown  = <PULL_DIS  PULL_DOWN PULL_DIS  PULL_DOWN>;
482				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
483				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
484			};
485			bt_cfg_idle: bt_cfg_idle {
486				pinctrl-single,pins = <
487					0x94   0x0	/* BT_XCLK      (IOCFG037) */
488					0x98   0x0	/* BT_XFS       (IOCFG038) */
489					0x9c   0x0	/* BT_DI        (IOCFG039) */
490					0xa0   0x0	/* BT_DO        (IOCFG040) */
491				>;
492				pinctrl-single,bias-pulldown  = <PULL_DOWN PULL_DOWN PULL_DIS  PULL_DOWN>;
493				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
494				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
495			};
496
497			pwm_in_cfg_func: pwm_in_cfg_func {
498				pinctrl-single,pins = <
499					0xbc   0x0	/* PWM_IN       (IOCFG047) */
500				>;
501				pinctrl-single,bias-pulldown  = <PULL_DOWN PULL_DOWN PULL_DIS  PULL_DOWN>;
502				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
503				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
504			};
505
506			bl_pwm_cfg_func: bl_pwm_cfg_func {
507				pinctrl-single,pins = <
508					0xc0   0x0	/* BL_PWM       (IOCFG048) */
509				>;
510				pinctrl-single,bias-pulldown  = <PULL_DOWN PULL_DOWN PULL_DIS  PULL_DOWN>;
511				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
512				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
513			};
514
515			uart0_cfg_func1: uart0_cfg_func1 {
516				pinctrl-single,pins = <
517					0xc4   0x0	/* UART0_RXD    (IOCFG049) */
518				>;
519				pinctrl-single,bias-pulldown  = <PULL_DIS  PULL_DOWN PULL_DIS  PULL_DOWN>;
520				pinctrl-single,bias-pullup    = <PULL_UP   PULL_UP   PULL_DIS  PULL_UP>;
521				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
522			};
523
524			uart0_cfg_func2: uart0_cfg_func2 {
525				pinctrl-single,pins = <
526					0xc8   0x0	/* UART0_TXD    (IOCFG050) */
527				>;
528				pinctrl-single,bias-pulldown  = <PULL_DIS  PULL_DOWN PULL_DIS  PULL_DOWN>;
529				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
530				pinctrl-single,drive-strength = <DRIVE1_04MA DRIVE_MASK>;
531			};
532
533			uart1_cfg_func1: uart1_cfg_func1 {
534				pinctrl-single,pins = <
535					0xcc   0x0	/* UART1_CTS_N  (IOCFG051) */
536					0xd4   0x0	/* UART1_RXD    (IOCFG053) */
537				>;
538				pinctrl-single,bias-pulldown  = <PULL_DIS  PULL_DOWN PULL_DIS  PULL_DOWN>;
539				pinctrl-single,bias-pullup    = <PULL_UP   PULL_UP   PULL_DIS  PULL_UP>;
540				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
541			};
542
543			uart1_cfg_func2: uart1_cfg_func2 {
544				pinctrl-single,pins = <
545					0xd0   0x0	/* UART1_RTS_N  (IOCFG052) */
546					0xd8   0x0	/* UART1_TXD    (IOCFG054) */
547				>;
548				pinctrl-single,bias-pulldown  = <PULL_DIS  PULL_DOWN PULL_DIS  PULL_DOWN>;
549				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
550				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
551			};
552
553			uart2_cfg_func: uart2_cfg_func {
554				pinctrl-single,pins = <
555					0xdc   0x0	/* UART2_CTS_N  (IOCFG055) */
556					0xe0   0x0	/* UART2_RTS_N  (IOCFG056) */
557					0xe4   0x0	/* UART2_RXD    (IOCFG057) */
558					0xe8   0x0	/* UART2_TXD    (IOCFG058) */
559				>;
560				pinctrl-single,bias-pulldown  = <PULL_DIS  PULL_DOWN PULL_DIS  PULL_DOWN>;
561				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
562				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
563			};
564
565			uart3_cfg_func: uart3_cfg_func {
566				pinctrl-single,pins = <
567					0x190  0x0	/* UART3_CTS_N  (IOCFG100) */
568					0x194  0x0	/* UART3_RTS_N  (IOCFG101) */
569					0x198  0x0	/* UART3_RXD    (IOCFG102) */
570					0x19c  0x0	/* UART3_TXD    (IOCFG103) */
571				>;
572				pinctrl-single,bias-pulldown  = <PULL_DOWN PULL_DOWN PULL_DIS  PULL_DOWN>;
573				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
574				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
575			};
576
577			uart4_cfg_func: uart4_cfg_func {
578				pinctrl-single,pins = <
579					0x1e0  0x0	/* UART4_CTS_N  (IOCFG120) */
580					0x1e4  0x0	/* UART4_RTS_N  (IOCFG121) */
581					0x1e8  0x0	/* UART4_RXD    (IOCFG122) */
582					0x1ec  0x0	/* UART4_TXD    (IOCFG123) */
583				>;
584				pinctrl-single,bias-pulldown  = <PULL_DOWN PULL_DOWN PULL_DIS  PULL_DOWN>;
585				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
586				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
587			};
588
589			uart5_cfg_func: uart5_cfg_func {
590				pinctrl-single,pins = <
591					0x1d8  0x0	/* UART4_RXD    (IOCFG118) */
592					0x1dc  0x0	/* UART4_TXD    (IOCFG119) */
593				>;
594				pinctrl-single,bias-pulldown  = <PULL_DOWN PULL_DOWN PULL_DIS  PULL_DOWN>;
595				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
596				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
597			};
598
599			i2c0_cfg_func: i2c0_cfg_func {
600				pinctrl-single,pins = <
601					0xec   0x0	/* I2C0_SCL     (IOCFG059) */
602					0xf0   0x0	/* I2C0_SDA     (IOCFG060) */
603				>;
604				pinctrl-single,bias-pulldown  = <PULL_DIS  PULL_DOWN PULL_DIS  PULL_DOWN>;
605				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
606				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
607			};
608
609			i2c1_cfg_func: i2c1_cfg_func {
610				pinctrl-single,pins = <
611					0xf4   0x0	/* I2C1_SCL     (IOCFG061) */
612					0xf8   0x0	/* I2C1_SDA     (IOCFG062) */
613				>;
614				pinctrl-single,bias-pulldown  = <PULL_DIS  PULL_DOWN PULL_DIS  PULL_DOWN>;
615				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
616				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
617			};
618
619			i2c2_cfg_func: i2c2_cfg_func {
620				pinctrl-single,pins = <
621					0xfc   0x0	/* I2C2_SCL     (IOCFG063) */
622					0x100  0x0	/* I2C2_SDA     (IOCFG064) */
623				>;
624				pinctrl-single,bias-pulldown  = <PULL_DIS  PULL_DOWN PULL_DIS  PULL_DOWN>;
625				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
626				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
627			};
628		};
629
630		pmx2: pinmux@f8001800 {
631
632			pinctrl-names = "default";
633			pinctrl-0 = <
634				&rstout_n_cfg_func
635				>;
636
637			rstout_n_cfg_func: rstout_n_cfg_func {
638				pinctrl-single,pins = <
639					0x0    0x0	/* RSTOUT_N     (IOCFG000) */
640				>;
641				pinctrl-single,bias-pulldown  = <PULL_DIS  PULL_DOWN PULL_DIS  PULL_DOWN>;
642				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
643				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
644			};
645
646			pmu_peri_en_cfg_func: pmu_peri_en_cfg_func {
647				pinctrl-single,pins = <
648					0x4    0x0	/* PMU_PERI_EN  (IOCFG001) */
649				>;
650				pinctrl-single,bias-pulldown  = <PULL_DIS  PULL_DOWN PULL_DIS  PULL_DOWN>;
651				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
652				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
653			};
654
655			sysclk0_en_cfg_func: sysclk0_en_cfg_func {
656				pinctrl-single,pins = <
657					0x8    0x0	/* SYSCLK0_EN   (IOCFG002) */
658				>;
659				pinctrl-single,bias-pulldown  = <PULL_DIS  PULL_DOWN PULL_DIS  PULL_DOWN>;
660				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
661				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
662			};
663
664			jtag_tdo_cfg_func: jtag_tdo_cfg_func {
665				pinctrl-single,pins = <
666					0xc    0x0	/* JTAG_TDO     (IOCFG003) */
667				>;
668				pinctrl-single,bias-pulldown  = <PULL_DIS  PULL_DOWN PULL_DIS  PULL_DOWN>;
669				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
670				pinctrl-single,drive-strength = <DRIVE1_08MA DRIVE_MASK>;
671			};
672
673			rf_reset_cfg_func: rf_reset_cfg_func {
674				pinctrl-single,pins = <
675					0x70   0x0	/* RF_RESET0    (IOCFG028) */
676					0x74   0x0	/* RF_RESET1    (IOCFG029) */
677				>;
678				pinctrl-single,bias-pulldown  = <PULL_DIS  PULL_DOWN PULL_DIS  PULL_DOWN>;
679				pinctrl-single,bias-pullup    = <PULL_DIS  PULL_UP   PULL_DIS  PULL_UP>;
680				pinctrl-single,drive-strength = <DRIVE1_02MA DRIVE_MASK>;
681			};
682		};
683	};
684};
685