Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  * Copyright (C) 2015 Ash Charles, Gumstix Inc.
0004  */
0005 
0006 /*
0007  * Palo35 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                 heartbeat {
0021                         label = "overo:red:gpio21";
0022                         gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;            /* gpio_21 */
0023                         linux,default-trigger = "heartbeat";
0024                 };
0025                 gpio22 {
0026                         label = "overo:blue:gpio22";
0027                         gpios = <&gpio1 22 GPIO_ACTIVE_LOW>;            /* gpio_22 */
0028                 };
0029         };
0030 
0031         gpio_keys {
0032                 compatible = "gpio-keys";
0033                 pinctrl-names = "default";
0034                 pinctrl-0 = <&button_pins>;
0035                 #address-cells = <1>;
0036                 #size-cells = <0>;
0037                 button0 {
0038                         label = "button0";
0039                         linux,code = <BTN_0>;
0040                         gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;            /* gpio_23 */
0041                         wakeup-source;
0042                 };
0043                 button1 {
0044                         label = "button1";
0045                         linux,code = <BTN_1>;
0046                         gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;            /* gpio_14 */
0047                         wakeup-source;
0048                 };
0049         };
0050 };