aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/at91/files/arch/arm/boot/dts/wb50n.dts
blob: febd76b87415bdd45449df82e83bfd25a2c8fefa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/*
 * wb50n.dts - Device Tree file for wb50n board
 *
 *  Copyright (C) 2015 Laird
 *
 * Licensed under GPLv2 or later.
 */
/dts-v1/;
#include "wb50n.dtsi"

/ {
	model = "Laird Workgroup Bridge 50N - Atmel SAMA5D";
	compatible = "laird,wb50n", "atmel,sama5d31ek", "atmel,sama5d3xmb", "atmel,sama5d3xcm", "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5";

	chosen {
		bootargs = "console=ttyS0,115200 earlyprintk loglevel=4 mem=64M";
	};

	ahb {

		apb {
			mmc0: mmc@f0000000 {
				status = "okay";
			};

			macb1: ethernet@f802c000 {
				status = "okay";
			};

			dbgu: serial@ffffee00 {
				status = "okay";
			};

			/* On BB40 this port is labeled UART1 */
			usart0: serial@f001c000 {
				status = "okay";
			};

			/* On BB40 this port is labeled UART0 */
			usart1: serial@f0020000 {
				status = "okay";
			};

			i2c0: i2c@f0014000 {
				status = "okay";
			};

			spi1: spi@f8008000 {
				status = "okay";

				spidev@0 {
					compatible = "spidev";
					reg = <0>;
					spi-max-frequency = <8000000>;
				};
			};

			watchdog@fffffe40 {
				status = "okay";
			};
		};

		usb0: gadget@00500000 {
			status = "okay";
		};

		usb1: ohci@00600000 {
			status = "okay";
		};

		usb2: ehci@00700000 {
			status = "okay";
		};
	};

	keys {
		compatible = "gpio-keys";
		#address-cells = <1>;
		#size-cells = <0>;
		btn0@pa10 {
			label = "BTNESC";
			linux,code = <1>; /* ESC button */
			gpios = <&pioA 10 GPIO_ACTIVE_LOW>;
			gpio-key,wakeup = <1>;
		};

		irqbtn@pe31 {
			label = "IRQBTN";
			linux,code = <99>; /* SysReq button */
			gpios = <&pioE 31 GPIO_ACTIVE_LOW>;
			gpio-key,wakeup = <1>;
		};
	};

	leds {
		compatible = "gpio-leds";

		led0 {
			label = "wb50n:blue:led0";
			gpios = <&pioA 12 GPIO_ACTIVE_LOW>;
		};

		led1 {
			label = "wb50n:green:led1";
			gpios = <&pioA 24 GPIO_ACTIVE_LOW>;
		};

		led2 {
			label = "wb50n:red:led2";
			gpios = <&pioA 26 GPIO_ACTIVE_LOW>;
		};
	};
};