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