xref: /linux/arch/arm/boot/dts/nuvoton/nuvoton-wpcm450-supermicro-x9sci-ln4f.dts (revision 3a39d672e7f48b8d6b91a09afa4b55352773b4b5)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2724ba675SRob Herring// Copyright 2021 Jonathan Neuschäfer
3724ba675SRob Herring
4724ba675SRob Herring/dts-v1/;
5724ba675SRob Herring
6724ba675SRob Herring/* The last 16 MiB are dedicated to the GPU */
7724ba675SRob Herring/memreserve/ 0x07000000 0x01000000;
8724ba675SRob Herring
9724ba675SRob Herring#include "nuvoton-wpcm450.dtsi"
10724ba675SRob Herring
11724ba675SRob Herring#include <dt-bindings/input/linux-event-codes.h>
12724ba675SRob Herring#include <dt-bindings/gpio/gpio.h>
13724ba675SRob Herring
14724ba675SRob Herring/ {
15724ba675SRob Herring	model = "Supermicro X9SCi-LN4F BMC";
16724ba675SRob Herring	compatible = "supermicro,x9sci-ln4f-bmc", "nuvoton,wpcm450";
17724ba675SRob Herring
18724ba675SRob Herring	aliases {
19724ba675SRob Herring		serial0 = &serial0;
20724ba675SRob Herring		serial1 = &serial1;
21724ba675SRob Herring	};
22724ba675SRob Herring
23724ba675SRob Herring	chosen {
24724ba675SRob Herring		stdout-path = "serial0:115200n8";
25724ba675SRob Herring	};
26724ba675SRob Herring
27724ba675SRob Herring	memory@0 {
28724ba675SRob Herring		device_type = "memory";
29724ba675SRob Herring		reg = <0 0x08000000>; /* 128 MiB */
30724ba675SRob Herring	};
31724ba675SRob Herring
32724ba675SRob Herring	gpio-keys {
33724ba675SRob Herring		compatible = "gpio-keys";
34724ba675SRob Herring		pinctrl-names = "default";
35724ba675SRob Herring		pinctrl-0 = <&key_pins>;
36724ba675SRob Herring
37*c7b44ed9SKrzysztof Kozlowski		button-uid {
38724ba675SRob Herring			label = "UID button";
39724ba675SRob Herring			linux,code = <KEY_HOME>;
40724ba675SRob Herring			gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
41724ba675SRob Herring		};
42724ba675SRob Herring	};
43724ba675SRob Herring
44724ba675SRob Herring	gpio-leds {
45724ba675SRob Herring		compatible = "gpio-leds";
46724ba675SRob Herring		pinctrl-names = "default";
47724ba675SRob Herring		pinctrl-0 = <&led_pins>;
48724ba675SRob Herring
49*c7b44ed9SKrzysztof Kozlowski		led-uid {
50724ba675SRob Herring			label = "UID";
51724ba675SRob Herring			gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
52724ba675SRob Herring		};
53724ba675SRob Herring
54*c7b44ed9SKrzysztof Kozlowski		led-heartbeat {
55724ba675SRob Herring			label = "heartbeat";
56724ba675SRob Herring			gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
57724ba675SRob Herring		};
58724ba675SRob Herring	};
59724ba675SRob Herring};
60724ba675SRob Herring
61724ba675SRob Herring&fiu {
62724ba675SRob Herring	status = "okay";
63724ba675SRob Herring
64724ba675SRob Herring	flash@0 {
65724ba675SRob Herring		reg = <0>;
66724ba675SRob Herring		compatible = "jedec,spi-nor";
67724ba675SRob Herring	};
68724ba675SRob Herring};
69724ba675SRob Herring
70724ba675SRob Herring&gpio0 {
71724ba675SRob Herring	gpio-line-names =
72724ba675SRob Herring		/* 0 */ "", "host-reset-control-n", "", "", "", "", "", "",
73724ba675SRob Herring		/* 8 */ "", "", "", "", "power-chassis-control-n", "", "uid-button", "";
74724ba675SRob Herring};
75724ba675SRob Herring
76724ba675SRob Herring&gpio1 {
77724ba675SRob Herring	gpio-line-names =
78724ba675SRob Herring		/* 0 */ "", "", "", "", "led-heartbeat", "", "", "led-uid",
79724ba675SRob Herring		/* 8 */ "", "", "", "", "", "", "", "";
80724ba675SRob Herring};
81724ba675SRob Herring
82724ba675SRob Herring&gpio4 {
83724ba675SRob Herring	gpio-line-names =
84724ba675SRob Herring		/* 0 */ "", "", "", "", "", "", "", "",
85724ba675SRob Herring		/* 8 */ "", "", "", "", "", "", "", "power-chassis-good";
86724ba675SRob Herring};
87724ba675SRob Herring
88724ba675SRob Herring&pinctrl {
89724ba675SRob Herring	key_pins: mux-keys {
90724ba675SRob Herring		groups = "gspi", "sspi";
91724ba675SRob Herring		function = "gpio";
92724ba675SRob Herring	};
93724ba675SRob Herring
94724ba675SRob Herring	led_pins: mux-leds {
95724ba675SRob Herring		groups = "hg3", "hg0", "pwm4";
96724ba675SRob Herring		function = "gpio";
97724ba675SRob Herring	};
98724ba675SRob Herring};
99724ba675SRob Herring
100724ba675SRob Herring&serial0 {
101724ba675SRob Herring	/*
102724ba675SRob Herring	 * Debug serial port. TX is exposed on the right pad of unpopulated
103724ba675SRob Herring	 * resistor R1247, RX on the right pad of R1162.
104724ba675SRob Herring	 */
105724ba675SRob Herring	status = "okay";
106724ba675SRob Herring};
107724ba675SRob Herring
108724ba675SRob Herring&serial1 {
109724ba675SRob Herring	/* "Serial over LAN" port. Connected to ttyS2 of the host system. */
110724ba675SRob Herring	status = "okay";
111724ba675SRob Herring};
112