summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/nuvoton-wpcm450-supermicro-x9sci-ln4f.dts
blob: b78c116cbc18eee0d888e14d116b5261d59ead55 (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
// SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
// Copyright 2021 Jonathan Neuschäfer

/dts-v1/;

/* The last 16 MiB are dedicated to the GPU */
/memreserve/ 0x07000000 0x01000000;

#include "nuvoton-wpcm450.dtsi"

#include <dt-bindings/input/linux-event-codes.h>
#include <dt-bindings/gpio/gpio.h>

/ {
	model = "Supermicro X9SCi-LN4F BMC";
	compatible = "supermicro,x9sci-ln4f-bmc", "nuvoton,wpcm450";

	aliases {
		serial0 = &serial0;
		serial1 = &serial1;
	};

	chosen {
		stdout-path = "serial0:115200n8";
	};

	memory@0 {
		device_type = "memory";
		reg = <0 0x08000000>; /* 128 MiB */
	};

	gpio-keys {
		compatible = "gpio-keys";
		pinctrl-names = "default";
		pinctrl-0 = <&key_pins>;

		uid {
			label = "UID button";
			linux,code = <KEY_HOME>;
			gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
		};
	};

	gpio-leds {
		compatible = "gpio-leds";
		pinctrl-names = "default";
		pinctrl-0 = <&led_pins>;

		uid {
			label = "UID";
			gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
		};

		heartbeat {
			label = "heartbeat";
			gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
		};
	};
};

&fiu {
	status = "okay";

	flash@0 {
		reg = <0>;
		compatible = "jedec,spi-nor";
	};
};

&gpio0 {
	gpio-line-names =
		/* 0 */ "", "host-reset-control-n", "", "", "", "", "", "",
		/* 8 */ "", "", "", "", "power-chassis-control-n", "", "uid-button", "";
};

&gpio1 {
	gpio-line-names =
		/* 0 */ "", "", "", "", "led-heartbeat", "", "", "led-uid",
		/* 8 */ "", "", "", "", "", "", "", "";
};

&gpio4 {
	gpio-line-names =
		/* 0 */ "", "", "", "", "", "", "", "",
		/* 8 */ "", "", "", "", "", "", "", "power-chassis-good";
};

&pinctrl {
	key_pins: mux-keys {
		groups = "gspi", "sspi";
		function = "gpio";
	};

	led_pins: mux-leds {
		groups = "hg3", "hg0", "pwm4";
		function = "gpio";
	};
};

&serial0 {
	/*
	 * Debug serial port. TX is exposed on the right pad of unpopulated
	 * resistor R1247, RX on the right pad of R1162.
	 */
	status = "okay";
};

&serial1 {
	/* "Serial over LAN" port. Connected to ttyS2 of the host system. */
	status = "okay";
};