intel-ixp42x-netgear-wg302v1.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. // SPDX-License-Identifier: ISC
  2. /*
  3. * Device Tree file for Netgear WG302v2 based on IXP422BB
  4. * Derived from boardfiles written by Imre Kaloz
  5. */
  6. /dts-v1/;
  7. #include "intel-ixp42x.dtsi"
  8. #include <dt-bindings/input/input.h>
  9. / {
  10. model = "Netgear WG302 v1";
  11. compatible = "netgear,wg302v1", "intel,ixp42x";
  12. #address-cells = <1>;
  13. #size-cells = <1>;
  14. memory@0 {
  15. /* 32 MB SDRAM according to boot arguments */
  16. device_type = "memory";
  17. reg = <0x00000000 0x02000000>;
  18. };
  19. chosen {
  20. /* The RedBoot comes up in 9600 baud so let's keep this */
  21. bootargs = "console=ttyS0,9600n8";
  22. stdout-path = "uart1:9600n8";
  23. };
  24. aliases {
  25. /* These are switched around */
  26. serial0 = &uart1;
  27. };
  28. soc {
  29. bus@c4000000 {
  30. flash@0,0 {
  31. compatible = "intel,ixp4xx-flash", "cfi-flash";
  32. bank-width = <2>;
  33. /*
  34. * 8 MB of Flash in 64 0x20000 sized blocks
  35. * mapped in at CS0.
  36. */
  37. reg = <0 0x00000000 0x800000>;
  38. /* Configure expansion bus to allow writes */
  39. intel,ixp4xx-eb-write-enable = <1>;
  40. partitions {
  41. compatible = "redboot-fis";
  42. fis-index-block = <0x3f>;
  43. };
  44. };
  45. };
  46. pci@c0000000 {
  47. status = "ok";
  48. /*
  49. * Taken from WG302 v2 PCI boardfile (wg302v2-pci.c)
  50. * We have slots (IDSEL) 1 and 2 with one assigned IRQ
  51. * each handling all IRQs.
  52. */
  53. #interrupt-cells = <1>;
  54. interrupt-map-mask = <0xf800 0 0 7>;
  55. interrupt-map =
  56. /* IDSEL 1 */
  57. <0x0800 0 0 1 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 1 is irq 8 */
  58. <0x0800 0 0 2 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 1 is irq 8 */
  59. <0x0800 0 0 3 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 1 is irq 8 */
  60. <0x0800 0 0 4 &gpio0 8 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 1 is irq 8 */
  61. /* IDSEL 2 */
  62. <0x1000 0 0 1 &gpio0 9 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 2 is irq 9 */
  63. <0x1000 0 0 2 &gpio0 9 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 2 is irq 9 */
  64. <0x1000 0 0 3 &gpio0 9 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 2 is irq 9 */
  65. <0x1000 0 0 4 &gpio0 9 IRQ_TYPE_LEVEL_LOW>; /* INT D on slot 2 is irq 9 */
  66. };
  67. ethernet@c8009000 {
  68. status = "ok";
  69. queue-rx = <&qmgr 3>;
  70. queue-txready = <&qmgr 20>;
  71. phy-mode = "rgmii";
  72. phy-handle = <&phy30>;
  73. mdio {
  74. #address-cells = <1>;
  75. #size-cells = <0>;
  76. phy30: ethernet-phy@30 {
  77. reg = <30>;
  78. };
  79. };
  80. };
  81. };
  82. };