Adam Ford | 361bad8 | 2017-04-17 08:09:41 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2013 Linaro, Ltd. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 as |
| 6 | * published by the Free Software Foundation. |
| 7 | */ |
| 8 | |
| 9 | &twl { |
| 10 | pinctrl-names = "default"; |
| 11 | pinctrl-0 = <&twl4030_pins &twl4030_vpins>; |
| 12 | }; |
| 13 | |
| 14 | &omap3_pmx_core { |
| 15 | /* |
| 16 | * On most OMAP3 platforms, the twl4030 IRQ line is connected |
| 17 | * to the SYS_NIRQ line on OMAP. Therefore, configure the |
| 18 | * defaults for the SYS_NIRQ pin here. |
| 19 | */ |
| 20 | twl4030_pins: pinmux_twl4030_pins { |
| 21 | pinctrl-single,pins = < |
| 22 | OMAP3_CORE1_IOPAD(0x21e0, PIN_INPUT_PULLUP | PIN_OFF_WAKEUPENABLE | MUX_MODE0) /* sys_nirq.sys_nirq */ |
| 23 | >; |
| 24 | }; |
| 25 | }; |
| 26 | |
| 27 | /* |
| 28 | * If your board is not using the I2C4 pins with twl4030, then don't include |
| 29 | * this file. For proper idle mode signaling with sys_clkreq and sys_off_mode |
| 30 | * pins we need to configure I2C4, or else use the legacy sys_nvmode1 and |
| 31 | * sys_nvmode2 signaling. |
| 32 | */ |
| 33 | &omap3_pmx_wkup { |
| 34 | twl4030_vpins: pinmux_twl4030_vpins { |
| 35 | pinctrl-single,pins = < |
| 36 | OMAP3_WKUP_IOPAD(0x2a00, PIN_INPUT | MUX_MODE0) /* i2c4_scl.i2c4_scl */ |
| 37 | OMAP3_WKUP_IOPAD(0x2a02, PIN_INPUT | MUX_MODE0) /* i2c4_sda.i2c4_sda */ |
| 38 | OMAP3_WKUP_IOPAD(0x2a06, PIN_OUTPUT | MUX_MODE0) /* sys_clkreq.sys_clkreq */ |
| 39 | OMAP3_WKUP_IOPAD(0x2a18, PIN_OUTPUT | MUX_MODE0) /* sys_off_mode.sys_off_mode */ |
| 40 | >; |
| 41 | }; |
| 42 | }; |