xref: /freebsd-src/sys/contrib/device-tree/src/arm/ti/omap/omap3-overo-chestnut43-common.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright (C) 2014 Florian Vaussard, EPFL Mobots group
4*f126890aSEmmanuel Vadot */
5*f126890aSEmmanuel Vadot
6*f126890aSEmmanuel Vadot/*
7*f126890aSEmmanuel Vadot * Chestnut43 expansion board is manufactured by Gumstix Inc.
8*f126890aSEmmanuel Vadot */
9*f126890aSEmmanuel Vadot
10*f126890aSEmmanuel Vadot#include "omap3-overo-common-peripherals.dtsi"
11*f126890aSEmmanuel Vadot#include "omap3-overo-common-lcd43.dtsi"
12*f126890aSEmmanuel Vadot
13*f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h>
14*f126890aSEmmanuel Vadot
15*f126890aSEmmanuel Vadot/ {
16*f126890aSEmmanuel Vadot	leds {
17*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
18*f126890aSEmmanuel Vadot		pinctrl-names = "default";
19*f126890aSEmmanuel Vadot		pinctrl-0 = <&led_pins>;
20*f126890aSEmmanuel Vadot		led-heartbeat {
21*f126890aSEmmanuel Vadot			label = "overo:red:gpio21";
22*f126890aSEmmanuel Vadot			gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;		/* gpio_21 */
23*f126890aSEmmanuel Vadot			linux,default-trigger = "heartbeat";
24*f126890aSEmmanuel Vadot		};
25*f126890aSEmmanuel Vadot		led-gpio22 {
26*f126890aSEmmanuel Vadot			label = "overo:blue:gpio22";
27*f126890aSEmmanuel Vadot			gpios = <&gpio1 22 GPIO_ACTIVE_LOW>;		/* gpio_22 */
28*f126890aSEmmanuel Vadot		};
29*f126890aSEmmanuel Vadot	};
30*f126890aSEmmanuel Vadot
31*f126890aSEmmanuel Vadot	gpio_keys {
32*f126890aSEmmanuel Vadot		compatible = "gpio-keys";
33*f126890aSEmmanuel Vadot		pinctrl-names = "default";
34*f126890aSEmmanuel Vadot		pinctrl-0 = <&button_pins>;
35*f126890aSEmmanuel Vadot		#address-cells = <1>;
36*f126890aSEmmanuel Vadot		#size-cells = <0>;
37*f126890aSEmmanuel Vadot		button0 {
38*f126890aSEmmanuel Vadot			label = "button0";
39*f126890aSEmmanuel Vadot			linux,code = <BTN_0>;
40*f126890aSEmmanuel Vadot			gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;		/* gpio_23 */
41*f126890aSEmmanuel Vadot			wakeup-source;
42*f126890aSEmmanuel Vadot		};
43*f126890aSEmmanuel Vadot		button1 {
44*f126890aSEmmanuel Vadot			label = "button1";
45*f126890aSEmmanuel Vadot			linux,code = <BTN_1>;
46*f126890aSEmmanuel Vadot			gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;		/* gpio_14 */
47*f126890aSEmmanuel Vadot			wakeup-source;
48*f126890aSEmmanuel Vadot		};
49*f126890aSEmmanuel Vadot	};
50*f126890aSEmmanuel Vadot};
51*f126890aSEmmanuel Vadot
52*f126890aSEmmanuel Vadot#include "omap-gpmc-smsc9221.dtsi"
53*f126890aSEmmanuel Vadot
54*f126890aSEmmanuel Vadot&gpmc {
55*f126890aSEmmanuel Vadot	ethernet@gpmc {
56*f126890aSEmmanuel Vadot		reg = <5 0 0xff>;
57*f126890aSEmmanuel Vadot		interrupt-parent = <&gpio6>;
58*f126890aSEmmanuel Vadot		interrupts = <16 IRQ_TYPE_LEVEL_LOW>;	/* GPIO 176 */
59*f126890aSEmmanuel Vadot	};
60*f126890aSEmmanuel Vadot};
61*f126890aSEmmanuel Vadot
62*f126890aSEmmanuel Vadot&lis33de {
63*f126890aSEmmanuel Vadot	status = "disabled";
64*f126890aSEmmanuel Vadot};
65*f126890aSEmmanuel Vadot
66