xref: /freebsd-src/sys/contrib/device-tree/src/arm/microchip/usb_a9g20-dab-mmx.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * calao-dab-mmx.dtsi - Device Tree Include file for Calao DAB-MMX Daughter Board
4*f126890aSEmmanuel Vadot *
5*f126890aSEmmanuel Vadot * Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
6*f126890aSEmmanuel Vadot */
7*f126890aSEmmanuel Vadot
8*f126890aSEmmanuel Vadot/ {
9*f126890aSEmmanuel Vadot	ahb {
10*f126890aSEmmanuel Vadot		apb {
11*f126890aSEmmanuel Vadot			usart1: serial@fffb4000 {
12*f126890aSEmmanuel Vadot				status = "okay";
13*f126890aSEmmanuel Vadot			};
14*f126890aSEmmanuel Vadot
15*f126890aSEmmanuel Vadot			usart3: serial@fffd0000 {
16*f126890aSEmmanuel Vadot				status = "okay";
17*f126890aSEmmanuel Vadot			};
18*f126890aSEmmanuel Vadot		};
19*f126890aSEmmanuel Vadot	};
20*f126890aSEmmanuel Vadot
21*f126890aSEmmanuel Vadot	i2c-gpio@0 {
22*f126890aSEmmanuel Vadot		status = "okay";
23*f126890aSEmmanuel Vadot	};
24*f126890aSEmmanuel Vadot
25*f126890aSEmmanuel Vadot	leds {
26*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
27*f126890aSEmmanuel Vadot
28*f126890aSEmmanuel Vadot		user_led1 {
29*f126890aSEmmanuel Vadot			label = "user_led1";
30*f126890aSEmmanuel Vadot			gpios = <&pioB 20 GPIO_ACTIVE_LOW>;
31*f126890aSEmmanuel Vadot		};
32*f126890aSEmmanuel Vadot
33*f126890aSEmmanuel Vadot/*
34*f126890aSEmmanuel Vadot* led already used by mother board but active as high
35*f126890aSEmmanuel Vadot*		user_led2 {
36*f126890aSEmmanuel Vadot*			label = "user_led2";
37*f126890aSEmmanuel Vadot*			gpios = <&pioB 21 GPIO_ACTIVE_LOW>;
38*f126890aSEmmanuel Vadot*		};
39*f126890aSEmmanuel Vadot*/
40*f126890aSEmmanuel Vadot		user_led3 {
41*f126890aSEmmanuel Vadot			label = "user_led3";
42*f126890aSEmmanuel Vadot			gpios = <&pioB 22 GPIO_ACTIVE_LOW>;
43*f126890aSEmmanuel Vadot		};
44*f126890aSEmmanuel Vadot
45*f126890aSEmmanuel Vadot		user_led4 {
46*f126890aSEmmanuel Vadot			label = "user_led4";
47*f126890aSEmmanuel Vadot			gpios = <&pioB 23 GPIO_ACTIVE_LOW>;
48*f126890aSEmmanuel Vadot		};
49*f126890aSEmmanuel Vadot
50*f126890aSEmmanuel Vadot		red {
51*f126890aSEmmanuel Vadot			label = "red";
52*f126890aSEmmanuel Vadot			gpios = <&pioB 24 GPIO_ACTIVE_LOW>;
53*f126890aSEmmanuel Vadot		};
54*f126890aSEmmanuel Vadot
55*f126890aSEmmanuel Vadot		orange {
56*f126890aSEmmanuel Vadot			label = "orange";
57*f126890aSEmmanuel Vadot			gpios = <&pioB 30 GPIO_ACTIVE_LOW>;
58*f126890aSEmmanuel Vadot		};
59*f126890aSEmmanuel Vadot
60*f126890aSEmmanuel Vadot		green {
61*f126890aSEmmanuel Vadot			label = "green";
62*f126890aSEmmanuel Vadot			gpios = <&pioB 31 GPIO_ACTIVE_LOW>;
63*f126890aSEmmanuel Vadot		};
64*f126890aSEmmanuel Vadot	};
65*f126890aSEmmanuel Vadot
66*f126890aSEmmanuel Vadot	gpio_keys {
67*f126890aSEmmanuel Vadot		compatible = "gpio-keys";
68*f126890aSEmmanuel Vadot		#address-cells = <1>;
69*f126890aSEmmanuel Vadot		#size-cells = <0>;
70*f126890aSEmmanuel Vadot
71*f126890aSEmmanuel Vadot		user_pb1 {
72*f126890aSEmmanuel Vadot			label = "user_pb1";
73*f126890aSEmmanuel Vadot			gpios = <&pioB 25 GPIO_ACTIVE_LOW>;
74*f126890aSEmmanuel Vadot			linux,code = <0x100>;
75*f126890aSEmmanuel Vadot		};
76*f126890aSEmmanuel Vadot
77*f126890aSEmmanuel Vadot		user_pb2 {
78*f126890aSEmmanuel Vadot			label = "user_pb2";
79*f126890aSEmmanuel Vadot			gpios = <&pioB 13 GPIO_ACTIVE_LOW>;
80*f126890aSEmmanuel Vadot			linux,code = <0x101>;
81*f126890aSEmmanuel Vadot		};
82*f126890aSEmmanuel Vadot
83*f126890aSEmmanuel Vadot		user_pb3 {
84*f126890aSEmmanuel Vadot			label = "user_pb3";
85*f126890aSEmmanuel Vadot			gpios = <&pioA 26 GPIO_ACTIVE_LOW>;
86*f126890aSEmmanuel Vadot			linux,code = <0x102>;
87*f126890aSEmmanuel Vadot		};
88*f126890aSEmmanuel Vadot
89*f126890aSEmmanuel Vadot		user_pb4 {
90*f126890aSEmmanuel Vadot			label = "user_pb4";
91*f126890aSEmmanuel Vadot			gpios = <&pioC 9 GPIO_ACTIVE_LOW>;
92*f126890aSEmmanuel Vadot			linux,code = <0x103>;
93*f126890aSEmmanuel Vadot		};
94*f126890aSEmmanuel Vadot	};
95*f126890aSEmmanuel Vadot};
96