nuvoton-wpcm450-supermicro-x9sci-ln4f.dts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. // SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. // Copyright 2021 Jonathan Neuschäfer
  3. /dts-v1/;
  4. /* The last 16 MiB are dedicated to the GPU */
  5. /memreserve/ 0x07000000 0x01000000;
  6. #include "nuvoton-wpcm450.dtsi"
  7. #include <dt-bindings/input/linux-event-codes.h>
  8. #include <dt-bindings/gpio/gpio.h>
  9. / {
  10. model = "Supermicro X9SCi-LN4F BMC";
  11. compatible = "supermicro,x9sci-ln4f-bmc", "nuvoton,wpcm450";
  12. chosen {
  13. stdout-path = "serial0:115200n8";
  14. };
  15. memory@0 {
  16. device_type = "memory";
  17. reg = <0 0x08000000>; /* 128 MiB */
  18. };
  19. gpio-keys {
  20. compatible = "gpio-keys";
  21. pinctrl-names = "default";
  22. pinctrl-0 = <&key_pins>;
  23. uid {
  24. label = "UID button";
  25. linux,code = <KEY_HOME>;
  26. gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
  27. };
  28. };
  29. gpio-leds {
  30. compatible = "gpio-leds";
  31. pinctrl-names = "default";
  32. pinctrl-0 = <&led_pins>;
  33. uid {
  34. label = "UID";
  35. gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
  36. };
  37. heartbeat {
  38. label = "heartbeat";
  39. gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
  40. };
  41. };
  42. };
  43. &pinctrl {
  44. key_pins: mux-keys {
  45. groups = "gspi", "sspi";
  46. function = "gpio";
  47. };
  48. led_pins: mux-leds {
  49. groups = "hg3", "hg0", "pwm4";
  50. function = "gpio";
  51. };
  52. };
  53. &serial0 {
  54. /*
  55. * Debug serial port. TX is exposed on the right pad of unpopulated
  56. * resistor R1247, RX on the right pad of R1162.
  57. */
  58. status = "okay";
  59. };
  60. &serial1 {
  61. /* "Serial over LAN" port. Connected to ttyS2 of the host system. */
  62. status = "okay";
  63. };
  64. &watchdog0 {
  65. status = "okay";
  66. };