1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * Copyright (C) 2013 Linaro, Ltd. 4*f126890aSEmmanuel Vadot */ 5*f126890aSEmmanuel Vadot 6*f126890aSEmmanuel Vadot&twl { 7*f126890aSEmmanuel Vadot pinctrl-names = "default"; 8*f126890aSEmmanuel Vadot pinctrl-0 = <&twl4030_pins &twl4030_vpins>; 9*f126890aSEmmanuel Vadot}; 10*f126890aSEmmanuel Vadot 11*f126890aSEmmanuel Vadot&omap3_pmx_core { 12*f126890aSEmmanuel Vadot /* 13*f126890aSEmmanuel Vadot * On most OMAP3 platforms, the twl4030 IRQ line is connected 14*f126890aSEmmanuel Vadot * to the SYS_NIRQ line on OMAP. Therefore, configure the 15*f126890aSEmmanuel Vadot * defaults for the SYS_NIRQ pin here. 16*f126890aSEmmanuel Vadot */ 17*f126890aSEmmanuel Vadot twl4030_pins: twl4030-pins { 18*f126890aSEmmanuel Vadot pinctrl-single,pins = < 19*f126890aSEmmanuel Vadot OMAP3_CORE1_IOPAD(0x21e0, PIN_INPUT_PULLUP | PIN_OFF_WAKEUPENABLE | MUX_MODE0) /* sys_nirq.sys_nirq */ 20*f126890aSEmmanuel Vadot >; 21*f126890aSEmmanuel Vadot }; 22*f126890aSEmmanuel Vadot}; 23*f126890aSEmmanuel Vadot 24*f126890aSEmmanuel Vadot/* 25*f126890aSEmmanuel Vadot * If your board is not using the I2C4 pins with twl4030, then don't include 26*f126890aSEmmanuel Vadot * this file. For proper idle mode signaling with sys_clkreq and sys_off_mode 27*f126890aSEmmanuel Vadot * pins we need to configure I2C4, or else use the legacy sys_nvmode1 and 28*f126890aSEmmanuel Vadot * sys_nvmode2 signaling. 29*f126890aSEmmanuel Vadot */ 30*f126890aSEmmanuel Vadot&omap3_pmx_wkup { 31*f126890aSEmmanuel Vadot twl4030_vpins: twl4030-vpins-pins { 32*f126890aSEmmanuel Vadot pinctrl-single,pins = < 33*f126890aSEmmanuel Vadot OMAP3_WKUP_IOPAD(0x2a00, PIN_INPUT | MUX_MODE0) /* i2c4_scl.i2c4_scl */ 34*f126890aSEmmanuel Vadot OMAP3_WKUP_IOPAD(0x2a02, PIN_INPUT | MUX_MODE0) /* i2c4_sda.i2c4_sda */ 35*f126890aSEmmanuel Vadot OMAP3_WKUP_IOPAD(0x2a06, PIN_OUTPUT | MUX_MODE0) /* sys_clkreq.sys_clkreq */ 36*f126890aSEmmanuel Vadot OMAP3_WKUP_IOPAD(0x2a18, PIN_OUTPUT | MUX_MODE0) /* sys_off_mode.sys_off_mode */ 37*f126890aSEmmanuel Vadot >; 38*f126890aSEmmanuel Vadot }; 39*f126890aSEmmanuel Vadot}; 40