gardena-smart-gateway-mt7688.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (C) 2018 Stefan Roese <sr@denx.de>
  4. */
  5. /dts-v1/;
  6. #include "mt7628a.dtsi"
  7. #include <dt-bindings/gpio/gpio.h>
  8. / {
  9. compatible = "gardena,smart-gateway-mt7688", "ralink,mt7628a-soc";
  10. model = "Gardena smart-Gateway-MT7688";
  11. aliases {
  12. serial0 = &uart0;
  13. spi0 = &spi0;
  14. };
  15. memory@0 {
  16. device_type = "memory";
  17. reg = <0x0 0x08000000>;
  18. };
  19. leds {
  20. compatible = "gpio-leds";
  21. power_blue {
  22. label = "smartgw:power:blue";
  23. gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
  24. default-state = "off";
  25. };
  26. power_green {
  27. label = "smartgw:power:green";
  28. gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>;
  29. default-state = "off";
  30. };
  31. power_red {
  32. label = "smartgw:power:red";
  33. gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
  34. default-state = "off";
  35. };
  36. radio_blue {
  37. label = "smartgw:radio:blue";
  38. gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>;
  39. default-state = "off";
  40. };
  41. radio_green {
  42. label = "smartgw:radio:green";
  43. gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
  44. default-state = "off";
  45. };
  46. radio_red {
  47. label = "smartgw:radio:red";
  48. gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
  49. default-state = "off";
  50. };
  51. internet_blue {
  52. label = "smartgw:internet:blue";
  53. gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
  54. default-state = "off";
  55. };
  56. internet_green {
  57. label = "smartgw:internet:green";
  58. gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
  59. default-state = "off";
  60. };
  61. internet_red {
  62. label = "smartgw:internet:red";
  63. gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
  64. default-state = "off";
  65. };
  66. };
  67. chosen {
  68. stdout-path = &uart0;
  69. };
  70. };
  71. &uart0 {
  72. status = "okay";
  73. clock-frequency = <40000000>;
  74. };
  75. &spi0 {
  76. status = "okay";
  77. num-cs = <2>;
  78. spi-flash@0 {
  79. #address-cells = <1>;
  80. #size-cells = <1>;
  81. compatible = "spi-flash", "jedec,spi-nor";
  82. spi-max-frequency = <40000000>;
  83. reg = <0>;
  84. };
  85. spi-nand@1 {
  86. #address-cells = <1>;
  87. #size-cells = <1>;
  88. compatible = "spi-nand";
  89. spi-max-frequency = <40000000>;
  90. reg = <1>;
  91. };
  92. };