0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
0004 * Copyright (C) 2014 Stefan Roese <sr@denx.de>
0005 */
0006
0007 #include "omap3-tao3530.dtsi"
0008
0009 / {
0010 gpio_poweroff {
0011 pinctrl-names = "default";
0012 pinctrl-0 = <&poweroff_pins>;
0013
0014 compatible = "gpio-poweroff";
0015 gpios = <&gpio6 8 GPIO_ACTIVE_LOW>; /* GPIO 168 */
0016 };
0017 };
0018
0019 &omap3_pmx_core {
0020 sound2_pins: pinmux_sound2_pins {
0021 pinctrl-single,pins = <
0022 OMAP3_CORE1_IOPAD(0x209e, PIN_OUTPUT | MUX_MODE4) /* gpmc_d8 gpio_44 */
0023 >;
0024 };
0025
0026 led_blue_pins: pinmux_led_blue_pins {
0027 pinctrl-single,pins = <
0028 OMAP3_CORE1_IOPAD(0x2110, PIN_OUTPUT | MUX_MODE4) /* cam_xclka gpio_96, LED blue */
0029 >;
0030 };
0031
0032 led_green_pins: pinmux_led_green_pins {
0033 pinctrl-single,pins = <
0034 OMAP3_CORE1_IOPAD(0x2126, PIN_OUTPUT | MUX_MODE4) /* cam_d8 gpio_107, LED green */
0035 >;
0036 };
0037
0038 led_red_pins: pinmux_led_red_pins {
0039 pinctrl-single,pins = <
0040 OMAP3_CORE1_IOPAD(0x212e, PIN_OUTPUT_PULLUP | MUX_MODE4) /* cam_xclkb gpio_111, LED red */
0041 >;
0042 };
0043
0044 poweroff_pins: pinmux_poweroff_pins {
0045 pinctrl-single,pins = <
0046 OMAP3_CORE1_IOPAD(0x21be, PIN_OUTPUT_PULLUP | MUX_MODE4) /* i2c2_scl gpio_168 */
0047 >;
0048 };
0049
0050 powerdown_input_pins: pinmux_powerdown_input_pins {
0051 pinctrl-single,pins = <
0052 OMAP3_CORE1_IOPAD(0x21c0, PIN_INPUT_PULLUP | MUX_MODE4) /* i2c2_sda gpio_183 */
0053 >;
0054 };
0055
0056 fpga_boot0_pins: fpga_boot0_pins {
0057 pinctrl-single,pins = <
0058 OMAP3_CORE1_IOPAD(0x211a, PIN_INPUT | MUX_MODE4) /* cam_d2 gpio_101 */
0059 OMAP3_CORE1_IOPAD(0x211c, PIN_OUTPUT | MUX_MODE4) /* cam_d3 gpio_102 */
0060 OMAP3_CORE1_IOPAD(0x211e, PIN_OUTPUT | MUX_MODE4) /* cam_d4 gpio_103 */
0061 OMAP3_CORE1_IOPAD(0x2120, PIN_INPUT_PULLUP | MUX_MODE4) /* cam_d5 gpio_104 */
0062 >;
0063 };
0064
0065 fpga_boot1_pins: fpga_boot1_pins {
0066 pinctrl-single,pins = <
0067 OMAP3_CORE1_IOPAD(0x20a2, PIN_INPUT | MUX_MODE4) /* gpmc_d10 gpio_46 */
0068 OMAP3_CORE1_IOPAD(0x20a4, PIN_OUTPUT | MUX_MODE4) /* gpmc_d11 gpio_47 */
0069 OMAP3_CORE1_IOPAD(0x20a6, PIN_OUTPUT | MUX_MODE4) /* gpmc_d12 gpio_48 */
0070 OMAP3_CORE1_IOPAD(0x20a8, PIN_INPUT_PULLUP | MUX_MODE4) /* gpmc_d13 gpio_49 */
0071 >;
0072 };
0073 };
0074
0075 /* I2C2: mux'ed with GPIO168 which is connected to nKILL_POWER */
0076 &i2c2 {
0077 status = "disabled";
0078 };
0079
0080 &i2c3 {
0081 clock-frequency = <100000>;
0082
0083 pinctrl-names = "default";
0084 pinctrl-0 = <&i2c3_pins>;
0085 };