kn_st.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /dts-v1/;
  3. #include "rt5350.dtsi"
  4. #include <dt-bindings/gpio/gpio.h>
  5. #include <dt-bindings/input/input.h>
  6. / {
  7. compatible = "zyxel,keenetic-start", "ralink,rt5350-soc";
  8. model = "ZyXEL Keenetic Start";
  9. aliases {
  10. led-boot = &led_status;
  11. led-failsafe = &led_status;
  12. led-running = &led_status;
  13. led-upgrade = &led_status;
  14. };
  15. leds {
  16. compatible = "gpio-leds";
  17. led_status: power {
  18. label = "zyxel:green:power";
  19. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  20. };
  21. internet {
  22. label = "zyxel:green:internet";
  23. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  24. };
  25. };
  26. keys {
  27. compatible = "gpio-keys-polled";
  28. poll-interval = <20>;
  29. reset {
  30. label = "reset";
  31. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  32. linux,code = <KEY_RESTART>;
  33. };
  34. wps {
  35. label = "wps";
  36. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  37. linux,code = <KEY_WPS_BUTTON>;
  38. };
  39. };
  40. };
  41. &spi0 {
  42. status = "okay";
  43. flash@0 {
  44. compatible = "jedec,spi-nor";
  45. reg = <0>;
  46. spi-max-frequency = <10000000>;
  47. partitions {
  48. compatible = "fixed-partitions";
  49. #address-cells = <1>;
  50. #size-cells = <1>;
  51. partition@0 {
  52. label = "u-boot";
  53. reg = <0x0 0x30000>;
  54. read-only;
  55. };
  56. partition@30000 {
  57. label = "u-boot-env";
  58. reg = <0x30000 0x10000>;
  59. read-only;
  60. };
  61. factory: partition@40000 {
  62. label = "factory";
  63. reg = <0x40000 0x10000>;
  64. read-only;
  65. };
  66. partition@50000 {
  67. compatible = "denx,uimage";
  68. label = "firmware";
  69. reg = <0x50000 0x3b0000>;
  70. };
  71. };
  72. };
  73. };
  74. &pinctrl {
  75. state_default: pinctrl0 {
  76. gpio {
  77. ralink,group = "i2c", "jtag", "uartf";
  78. ralink,function = "gpio";
  79. };
  80. };
  81. };
  82. &ethernet {
  83. mtd-mac-address = <&factory 0x28>;
  84. };
  85. &esw {
  86. mediatek,portmap = <0x2f>;
  87. mediatek,led_polarity = <0x17>;
  88. };
  89. &wmac {
  90. status = "okay";
  91. ralink,led-polarity = <1>;
  92. ralink,mtd-eeprom = <&factory 0>;
  93. };