rtl83xx_d-link_dgs-1210_common.dtsi 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. #include <dt-bindings/input/input.h>
  3. #include <dt-bindings/leds/common.h>
  4. #include <dt-bindings/gpio/gpio.h>
  5. / {
  6. aliases {
  7. led-boot = &led_power;
  8. led-failsafe = &led_power;
  9. led-running = &led_power;
  10. led-upgrade = &led_power;
  11. };
  12. memory@0 {
  13. device_type = "memory";
  14. reg = <0x0 0x8000000>;
  15. };
  16. leds: leds {
  17. pinctrl-names = "default";
  18. pinctrl-0 = <&pinmux_disable_sys_led>;
  19. compatible = "gpio-leds";
  20. led_power: power {
  21. function = LED_FUNCTION_POWER;
  22. color = <LED_COLOR_ID_GREEN>;
  23. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  24. };
  25. };
  26. };
  27. &gpio0 {
  28. indirect-access-bus-id = <0>;
  29. };
  30. &spi0 {
  31. status = "okay";
  32. flash@0 {
  33. compatible = "jedec,spi-nor";
  34. reg = <0>;
  35. spi-max-frequency = <10000000>;
  36. partitions {
  37. compatible = "fixed-partitions";
  38. #address-cells = <1>;
  39. #size-cells = <1>;
  40. partition@0 {
  41. label = "u-boot";
  42. reg = <0x00000000 0x80000>;
  43. read-only;
  44. };
  45. partition@80000 {
  46. label = "u-boot-env";
  47. reg = <0x00080000 0x40000>;
  48. };
  49. partition@c0000 {
  50. label = "board-name";
  51. reg = <0x000c0000 0x40000>;
  52. };
  53. partition@280000 {
  54. label = "firmware";
  55. compatible = "denx,uimage";
  56. reg = <0x00100000 0xd80000>;
  57. };
  58. partition@be80000 {
  59. label = "kernel2";
  60. reg = <0x00e80000 0x180000>;
  61. };
  62. partition@1000000 {
  63. label = "sysinfo";
  64. reg = <0x01000000 0x40000>;
  65. };
  66. partition@1040000 {
  67. label = "rootfs2";
  68. reg = <0x01040000 0xc00000>;
  69. };
  70. partition@1c40000 {
  71. label = "jffs2";
  72. reg = <0x01c40000 0x3c0000>;
  73. };
  74. };
  75. };
  76. };