xref: /freebsd/sys/contrib/device-tree/src/arm/ti/omap/omap3-ha-common.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
4*f126890aSEmmanuel Vadot * Copyright (C) 2014 Stefan Roese <sr@denx.de>
5*f126890aSEmmanuel Vadot */
6*f126890aSEmmanuel Vadot
7*f126890aSEmmanuel Vadot#include "omap3-tao3530.dtsi"
8*f126890aSEmmanuel Vadot
9*f126890aSEmmanuel Vadot/ {
10*f126890aSEmmanuel Vadot	gpio_poweroff {
11*f126890aSEmmanuel Vadot		pinctrl-names = "default";
12*f126890aSEmmanuel Vadot		pinctrl-0 = <&poweroff_pins>;
13*f126890aSEmmanuel Vadot
14*f126890aSEmmanuel Vadot		compatible = "gpio-poweroff";
15*f126890aSEmmanuel Vadot		gpios = <&gpio6 8 GPIO_ACTIVE_LOW>;	/* GPIO 168 */
16*f126890aSEmmanuel Vadot	};
17*f126890aSEmmanuel Vadot};
18*f126890aSEmmanuel Vadot
19*f126890aSEmmanuel Vadot&omap3_pmx_core {
20*f126890aSEmmanuel Vadot	sound2_pins: sound2-pins {
21*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
22*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x209e, PIN_OUTPUT | MUX_MODE4)	/* gpmc_d8 gpio_44 */
23*f126890aSEmmanuel Vadot		>;
24*f126890aSEmmanuel Vadot	};
25*f126890aSEmmanuel Vadot
26*f126890aSEmmanuel Vadot	led_blue_pins: led-blue-pins {
27*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
28*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2110, PIN_OUTPUT | MUX_MODE4)	/* cam_xclka gpio_96, LED blue */
29*f126890aSEmmanuel Vadot		>;
30*f126890aSEmmanuel Vadot	};
31*f126890aSEmmanuel Vadot
32*f126890aSEmmanuel Vadot	led_green_pins: led-green-pins {
33*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
34*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2126, PIN_OUTPUT | MUX_MODE4)	/* cam_d8 gpio_107, LED green */
35*f126890aSEmmanuel Vadot		>;
36*f126890aSEmmanuel Vadot	};
37*f126890aSEmmanuel Vadot
38*f126890aSEmmanuel Vadot	led_red_pins: led-red-pins {
39*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
40*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x212e, PIN_OUTPUT_PULLUP | MUX_MODE4)	/* cam_xclkb gpio_111, LED red */
41*f126890aSEmmanuel Vadot		>;
42*f126890aSEmmanuel Vadot	};
43*f126890aSEmmanuel Vadot
44*f126890aSEmmanuel Vadot	poweroff_pins: poweroff-pins {
45*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
46*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x21be, PIN_OUTPUT_PULLUP | MUX_MODE4)	/* i2c2_scl gpio_168 */
47*f126890aSEmmanuel Vadot		>;
48*f126890aSEmmanuel Vadot	};
49*f126890aSEmmanuel Vadot
50*f126890aSEmmanuel Vadot	powerdown_input_pins: powerdown-input-pins {
51*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
52*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x21c0, PIN_INPUT_PULLUP | MUX_MODE4)	/* i2c2_sda gpio_183 */
53*f126890aSEmmanuel Vadot		>;
54*f126890aSEmmanuel Vadot	};
55*f126890aSEmmanuel Vadot
56*f126890aSEmmanuel Vadot	fpga_boot0_pins: fpga-boot0-pins {
57*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
58*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x211a, PIN_INPUT | MUX_MODE4)	/* cam_d2 gpio_101 */
59*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x211c, PIN_OUTPUT | MUX_MODE4)	/* cam_d3 gpio_102 */
60*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x211e, PIN_OUTPUT | MUX_MODE4)	/* cam_d4 gpio_103 */
61*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2120, PIN_INPUT_PULLUP | MUX_MODE4)	/* cam_d5 gpio_104 */
62*f126890aSEmmanuel Vadot		>;
63*f126890aSEmmanuel Vadot	};
64*f126890aSEmmanuel Vadot
65*f126890aSEmmanuel Vadot	fpga_boot1_pins: fpga-boot1-pins {
66*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
67*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20a2, PIN_INPUT | MUX_MODE4)	/* gpmc_d10 gpio_46 */
68*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20a4, PIN_OUTPUT | MUX_MODE4)	/* gpmc_d11 gpio_47 */
69*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20a6, PIN_OUTPUT | MUX_MODE4)	/* gpmc_d12 gpio_48 */
70*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20a8, PIN_INPUT_PULLUP | MUX_MODE4)	/* gpmc_d13 gpio_49 */
71*f126890aSEmmanuel Vadot		>;
72*f126890aSEmmanuel Vadot	};
73*f126890aSEmmanuel Vadot};
74*f126890aSEmmanuel Vadot
75*f126890aSEmmanuel Vadot/* I2C2: mux'ed with GPIO168 which is connected to nKILL_POWER */
76*f126890aSEmmanuel Vadot&i2c2 {
77*f126890aSEmmanuel Vadot	status = "disabled";
78*f126890aSEmmanuel Vadot};
79*f126890aSEmmanuel Vadot
80*f126890aSEmmanuel Vadot&i2c3 {
81*f126890aSEmmanuel Vadot	clock-frequency = <100000>;
82*f126890aSEmmanuel Vadot
83*f126890aSEmmanuel Vadot	pinctrl-names = "default";
84*f126890aSEmmanuel Vadot	pinctrl-0 = <&i2c3_pins>;
85*f126890aSEmmanuel Vadot};
86