Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
0002 // Copyright 2021 Jonathan Neuschäfer
0003 
0004 /dts-v1/;
0005 
0006 /* The last 16 MiB are dedicated to the GPU */
0007 /memreserve/ 0x07000000 0x01000000;
0008 
0009 #include "nuvoton-wpcm450.dtsi"
0010 
0011 #include <dt-bindings/input/linux-event-codes.h>
0012 #include <dt-bindings/gpio/gpio.h>
0013 
0014 / {
0015         model = "Supermicro X9SCi-LN4F BMC";
0016         compatible = "supermicro,x9sci-ln4f-bmc", "nuvoton,wpcm450";
0017 
0018         chosen {
0019                 stdout-path = "serial0:115200n8";
0020         };
0021 
0022         memory@0 {
0023                 device_type = "memory";
0024                 reg = <0 0x08000000>; /* 128 MiB */
0025         };
0026 
0027         gpio-keys {
0028                 compatible = "gpio-keys";
0029                 pinctrl-names = "default";
0030                 pinctrl-0 = <&key_pins>;
0031 
0032                 uid {
0033                         label = "UID button";
0034                         linux,code = <KEY_HOME>;
0035                         gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
0036                 };
0037         };
0038 
0039         gpio-leds {
0040                 compatible = "gpio-leds";
0041                 pinctrl-names = "default";
0042                 pinctrl-0 = <&led_pins>;
0043 
0044                 uid {
0045                         label = "UID";
0046                         gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
0047                 };
0048 
0049                 heartbeat {
0050                         label = "heartbeat";
0051                         gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
0052                 };
0053         };
0054 };
0055 
0056 &pinctrl {
0057         key_pins: mux-keys {
0058                 groups = "gspi", "sspi";
0059                 function = "gpio";
0060         };
0061 
0062         led_pins: mux-leds {
0063                 groups = "hg3", "hg0", "pwm4";
0064                 function = "gpio";
0065         };
0066 };
0067 
0068 &serial0 {
0069         /*
0070          * Debug serial port. TX is exposed on the right pad of unpopulated
0071          * resistor R1247, RX on the right pad of R1162.
0072          */
0073         status = "okay";
0074 };
0075 
0076 &serial1 {
0077         /* "Serial over LAN" port. Connected to ttyS2 of the host system. */
0078         status = "okay";
0079 };
0080 
0081 &watchdog0 {
0082         status = "okay";
0083 };