Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  * Copyright (C) 2014 Florian Vaussard, EPFL Mobots group
0004  */
0005 
0006 /*
0007  * Chestnut43 expansion board is manufactured by Gumstix Inc.
0008  */
0009 
0010 #include "omap3-overo-common-peripherals.dtsi"
0011 #include "omap3-overo-common-lcd43.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 };
0051 
0052 #include "omap-gpmc-smsc9221.dtsi"
0053 
0054 &gpmc {
0055         ethernet@gpmc {
0056                 reg = <5 0 0xff>;
0057                 interrupt-parent = <&gpio6>;
0058                 interrupts = <16 IRQ_TYPE_LEVEL_LOW>;   /* GPIO 176 */
0059         };
0060 };
0061 
0062 &lis33de {
0063         status = "disabled";
0064 };
0065