xref: /linux/arch/arm/boot/dts/nuvoton/nuvoton-wpcm450-supermicro-x9sci-ln4f.dts (revision 724ba6751532055db75992fc6ae21c3e322e94a7)
1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*724ba675SRob Herring// Copyright 2021 Jonathan Neuschäfer
3*724ba675SRob Herring
4*724ba675SRob Herring/dts-v1/;
5*724ba675SRob Herring
6*724ba675SRob Herring/* The last 16 MiB are dedicated to the GPU */
7*724ba675SRob Herring/memreserve/ 0x07000000 0x01000000;
8*724ba675SRob Herring
9*724ba675SRob Herring#include "nuvoton-wpcm450.dtsi"
10*724ba675SRob Herring
11*724ba675SRob Herring#include <dt-bindings/input/linux-event-codes.h>
12*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h>
13*724ba675SRob Herring
14*724ba675SRob Herring/ {
15*724ba675SRob Herring	model = "Supermicro X9SCi-LN4F BMC";
16*724ba675SRob Herring	compatible = "supermicro,x9sci-ln4f-bmc", "nuvoton,wpcm450";
17*724ba675SRob Herring
18*724ba675SRob Herring	aliases {
19*724ba675SRob Herring		serial0 = &serial0;
20*724ba675SRob Herring		serial1 = &serial1;
21*724ba675SRob Herring	};
22*724ba675SRob Herring
23*724ba675SRob Herring	chosen {
24*724ba675SRob Herring		stdout-path = "serial0:115200n8";
25*724ba675SRob Herring	};
26*724ba675SRob Herring
27*724ba675SRob Herring	memory@0 {
28*724ba675SRob Herring		device_type = "memory";
29*724ba675SRob Herring		reg = <0 0x08000000>; /* 128 MiB */
30*724ba675SRob Herring	};
31*724ba675SRob Herring
32*724ba675SRob Herring	gpio-keys {
33*724ba675SRob Herring		compatible = "gpio-keys";
34*724ba675SRob Herring		pinctrl-names = "default";
35*724ba675SRob Herring		pinctrl-0 = <&key_pins>;
36*724ba675SRob Herring
37*724ba675SRob Herring		uid {
38*724ba675SRob Herring			label = "UID button";
39*724ba675SRob Herring			linux,code = <KEY_HOME>;
40*724ba675SRob Herring			gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
41*724ba675SRob Herring		};
42*724ba675SRob Herring	};
43*724ba675SRob Herring
44*724ba675SRob Herring	gpio-leds {
45*724ba675SRob Herring		compatible = "gpio-leds";
46*724ba675SRob Herring		pinctrl-names = "default";
47*724ba675SRob Herring		pinctrl-0 = <&led_pins>;
48*724ba675SRob Herring
49*724ba675SRob Herring		uid {
50*724ba675SRob Herring			label = "UID";
51*724ba675SRob Herring			gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
52*724ba675SRob Herring		};
53*724ba675SRob Herring
54*724ba675SRob Herring		heartbeat {
55*724ba675SRob Herring			label = "heartbeat";
56*724ba675SRob Herring			gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
57*724ba675SRob Herring		};
58*724ba675SRob Herring	};
59*724ba675SRob Herring};
60*724ba675SRob Herring
61*724ba675SRob Herring&fiu {
62*724ba675SRob Herring	status = "okay";
63*724ba675SRob Herring
64*724ba675SRob Herring	flash@0 {
65*724ba675SRob Herring		reg = <0>;
66*724ba675SRob Herring		compatible = "jedec,spi-nor";
67*724ba675SRob Herring	};
68*724ba675SRob Herring};
69*724ba675SRob Herring
70*724ba675SRob Herring&gpio0 {
71*724ba675SRob Herring	gpio-line-names =
72*724ba675SRob Herring		/* 0 */ "", "host-reset-control-n", "", "", "", "", "", "",
73*724ba675SRob Herring		/* 8 */ "", "", "", "", "power-chassis-control-n", "", "uid-button", "";
74*724ba675SRob Herring};
75*724ba675SRob Herring
76*724ba675SRob Herring&gpio1 {
77*724ba675SRob Herring	gpio-line-names =
78*724ba675SRob Herring		/* 0 */ "", "", "", "", "led-heartbeat", "", "", "led-uid",
79*724ba675SRob Herring		/* 8 */ "", "", "", "", "", "", "", "";
80*724ba675SRob Herring};
81*724ba675SRob Herring
82*724ba675SRob Herring&gpio4 {
83*724ba675SRob Herring	gpio-line-names =
84*724ba675SRob Herring		/* 0 */ "", "", "", "", "", "", "", "",
85*724ba675SRob Herring		/* 8 */ "", "", "", "", "", "", "", "power-chassis-good";
86*724ba675SRob Herring};
87*724ba675SRob Herring
88*724ba675SRob Herring&pinctrl {
89*724ba675SRob Herring	key_pins: mux-keys {
90*724ba675SRob Herring		groups = "gspi", "sspi";
91*724ba675SRob Herring		function = "gpio";
92*724ba675SRob Herring	};
93*724ba675SRob Herring
94*724ba675SRob Herring	led_pins: mux-leds {
95*724ba675SRob Herring		groups = "hg3", "hg0", "pwm4";
96*724ba675SRob Herring		function = "gpio";
97*724ba675SRob Herring	};
98*724ba675SRob Herring};
99*724ba675SRob Herring
100*724ba675SRob Herring&serial0 {
101*724ba675SRob Herring	/*
102*724ba675SRob Herring	 * Debug serial port. TX is exposed on the right pad of unpopulated
103*724ba675SRob Herring	 * resistor R1247, RX on the right pad of R1162.
104*724ba675SRob Herring	 */
105*724ba675SRob Herring	status = "okay";
106*724ba675SRob Herring};
107*724ba675SRob Herring
108*724ba675SRob Herring&serial1 {
109*724ba675SRob Herring	/* "Serial over LAN" port. Connected to ttyS2 of the host system. */
110*724ba675SRob Herring	status = "okay";
111*724ba675SRob Herring};
112