0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003 * Copyright (C) 2014 Florian Vaussard, EPFL Mobots group
0004 */
0005
0006 /*
0007 * Alto35 expansion board is manufactured by Gumstix Inc.
0008 */
0009
0010 #include "omap3-overo-common-peripherals.dtsi"
0011 #include "omap3-overo-common-lcd35.dtsi"
0012
0013 #include <dt-bindings/input/input.h>
0014
0015 / {
0016 leds {
0017 compatible = "gpio-leds";
0018 pinctrl-names = "default";
0019 pinctrl-0 = <&led_pins>;
0020 gpio148 {
0021 label = "overo:red:gpio148";
0022 gpios = <&gpio5 20 GPIO_ACTIVE_HIGH>; /* gpio 148 */
0023 };
0024 gpio150 {
0025 label = "overo:yellow:gpio150";
0026 gpios = <&gpio5 22 GPIO_ACTIVE_HIGH>; /* gpio 150 */
0027 };
0028 gpio151 {
0029 label = "overo:blue:gpio151";
0030 gpios = <&gpio5 23 GPIO_ACTIVE_HIGH>; /* gpio 151 */
0031 };
0032 gpio170 {
0033 label = "overo:green:gpio170";
0034 gpios = <&gpio6 10 GPIO_ACTIVE_HIGH>; /* gpio 170 */
0035 };
0036 };
0037
0038 gpio_keys {
0039 compatible = "gpio-keys";
0040 #address-cells = <1>;
0041 #size-cells = <0>;
0042 pinctrl-names = "default";
0043 pinctrl-0 = <&button_pins>;
0044 button0 {
0045 label = "button0";
0046 linux,code = <BTN_0>;
0047 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; /* gpio_10 */
0048 wakeup-source;
0049 };
0050 };
0051 };
0052
0053 &omap3_pmx_core {
0054 led_pins: pinmux_led_pins {
0055 pinctrl-single,pins = <
0056 OMAP3_CORE1_IOPAD(0x217c, PIN_OUTPUT | MUX_MODE4) /* uart1_tx.gpio_148 */
0057 OMAP3_CORE1_IOPAD(0x2180, PIN_OUTPUT | MUX_MODE4) /* uart1_cts.gpio_150 */
0058 OMAP3_CORE1_IOPAD(0x2182, PIN_OUTPUT | MUX_MODE4) /* uart1_rx.gpio_151 */
0059 OMAP3_CORE1_IOPAD(0x21c6, PIN_OUTPUT | MUX_MODE4) /* hdq_sio.gpio_170 */
0060 >;
0061 };
0062 };
0063
0064 &omap3_pmx_wkup {
0065 button_pins: pinmux_button_pins {
0066 pinctrl-single,pins = <
0067 OMAP3_WKUP_IOPAD(0x2a18, PIN_INPUT | MUX_MODE4) /* sys_clkout1.gpio_10 */
0068 >;
0069 };
0070 };
0071
0072 &usbhshost {
0073 status = "disabled";
0074 };
0075