diff options
author | Adam Ford <aford173@gmail.com> | 2017-04-17 08:09:41 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-05-09 20:35:36 -0400 |
commit | c9ff04fdc8cc43f54737e2d6882739667bd5923e (patch) | |
tree | 103a1dcb53c836a0bfe67da45147b4c5272d406b /arch/arm/dts/twl4030_omap3.dtsi | |
parent | 0fc8a3af5c27dba760dc3c40130c99189f0f7506 (diff) | |
download | u-boot-c9ff04fdc8cc43f54737e2d6882739667bd5923e.tar.gz u-boot-c9ff04fdc8cc43f54737e2d6882739667bd5923e.tar.xz u-boot-c9ff04fdc8cc43f54737e2d6882739667bd5923e.zip |
omap3: Copy twl4030 device tree from Linux 4.9.y stable
Many OMAP3 boards use a TWL4030 PMIC. This brings in the related
device tree information for common TWL4030 and TWL4030 with OMAP3.
Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'arch/arm/dts/twl4030_omap3.dtsi')
-rw-r--r-- | arch/arm/dts/twl4030_omap3.dtsi | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/arch/arm/dts/twl4030_omap3.dtsi b/arch/arm/dts/twl4030_omap3.dtsi new file mode 100644 index 0000000000..f9aaa53e7b --- /dev/null +++ b/arch/arm/dts/twl4030_omap3.dtsi @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2013 Linaro, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +&twl { + pinctrl-names = "default"; + pinctrl-0 = <&twl4030_pins &twl4030_vpins>; +}; + +&omap3_pmx_core { + /* + * On most OMAP3 platforms, the twl4030 IRQ line is connected + * to the SYS_NIRQ line on OMAP. Therefore, configure the + * defaults for the SYS_NIRQ pin here. + */ + twl4030_pins: pinmux_twl4030_pins { + pinctrl-single,pins = < + OMAP3_CORE1_IOPAD(0x21e0, PIN_INPUT_PULLUP | PIN_OFF_WAKEUPENABLE | MUX_MODE0) /* sys_nirq.sys_nirq */ + >; + }; +}; + +/* + * If your board is not using the I2C4 pins with twl4030, then don't include + * this file. For proper idle mode signaling with sys_clkreq and sys_off_mode + * pins we need to configure I2C4, or else use the legacy sys_nvmode1 and + * sys_nvmode2 signaling. + */ +&omap3_pmx_wkup { + twl4030_vpins: pinmux_twl4030_vpins { + pinctrl-single,pins = < + OMAP3_WKUP_IOPAD(0x2a00, PIN_INPUT | MUX_MODE0) /* i2c4_scl.i2c4_scl */ + OMAP3_WKUP_IOPAD(0x2a02, PIN_INPUT | MUX_MODE0) /* i2c4_sda.i2c4_sda */ + OMAP3_WKUP_IOPAD(0x2a06, PIN_OUTPUT | MUX_MODE0) /* sys_clkreq.sys_clkreq */ + OMAP3_WKUP_IOPAD(0x2a18, PIN_OUTPUT | MUX_MODE0) /* sys_off_mode.sys_off_mode */ + >; + }; +}; |