ar9330_ziking_cpe46b.dts 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /dts-v1/;
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. #include "ar9330.dtsi"
  6. / {
  7. model = "ZiKing CPE46B";
  8. compatible = "ziking,cpe46b", "qca,ar9330";
  9. aliases {
  10. serial0 = &uart;
  11. label-mac-device = &eth0;
  12. };
  13. };
  14. &gpio {
  15. status = "okay";
  16. };
  17. &uart {
  18. status = "okay";
  19. };
  20. &spi {
  21. status = "okay";
  22. num-chipselects = <1>;
  23. flash@0 {
  24. compatible = "jedec,spi-nor";
  25. spi-max-frequency = <50000000>;
  26. reg = <0>;
  27. partitions {
  28. compatible = "fixed-partitions";
  29. #address-cells = <1>;
  30. #size-cells = <1>;
  31. partition@0 {
  32. label = "u-boot";
  33. reg = <0x000000 0x010000>;
  34. read-only;
  35. };
  36. partition@1 {
  37. label = "u-boot-env";
  38. reg = <0x010000 0x010000>;
  39. };
  40. partition@2 {
  41. compatible = "denx,uimage";
  42. label = "firmware";
  43. reg = <0x020000 0x7d0000>;
  44. };
  45. art: partition@3 {
  46. label = "art";
  47. reg = <0x7f0000 0x010000>;
  48. read-only;
  49. };
  50. };
  51. };
  52. };
  53. &eth0 {
  54. status = "okay";
  55. mtd-mac-address = <&art 0x0>;
  56. };
  57. &eth1 {
  58. status = "okay";
  59. mtd-mac-address = <&art 0x0>;
  60. };
  61. &wmac {
  62. status = "okay";
  63. mtd-cal-data = <&art 0x1000>;
  64. mtd-mac-address = <&art 0x0>;
  65. };