101-dts-update-mt7629-rfb.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --- a/arch/arm/boot/dts/mt7629-rfb.dts
  2. +++ b/arch/arm/boot/dts/mt7629-rfb.dts
  3. @@ -18,6 +18,7 @@
  4. chosen {
  5. stdout-path = "serial0:115200n8";
  6. + bootargs = "earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n8";
  7. };
  8. gpio-keys {
  9. @@ -70,6 +71,10 @@
  10. compatible = "mediatek,eth-mac";
  11. reg = <0>;
  12. phy-mode = "2500base-x";
  13. +
  14. + nvmem-cells = <&macaddr_factory_2a>;
  15. + nvmem-cell-names = "mac-address";
  16. +
  17. fixed-link {
  18. speed = <2500>;
  19. full-duplex;
  20. @@ -82,6 +87,9 @@
  21. reg = <1>;
  22. phy-mode = "gmii";
  23. phy-handle = <&phy0>;
  24. +
  25. + nvmem-cells = <&macaddr_factory_24>;
  26. + nvmem-cell-names = "mac-address";
  27. };
  28. mdio: mdio-bus {
  29. @@ -133,8 +141,9 @@
  30. };
  31. partition@b0000 {
  32. - label = "kernel";
  33. + label = "firmware";
  34. reg = <0xb0000 0xb50000>;
  35. + compatible = "denx,fit";
  36. };
  37. };
  38. };
  39. @@ -273,3 +282,17 @@
  40. pinctrl-0 = <&watchdog_pins>;
  41. status = "okay";
  42. };
  43. +
  44. +&factory {
  45. + compatible = "nvmem-cells";
  46. + #address-cells = <1>;
  47. + #size-cells = <1>;
  48. +
  49. + macaddr_factory_24: macaddr@24 {
  50. + reg = <0x24 0x6>;
  51. + };
  52. +
  53. + macaddr_factory_2a: macaddr@2a {
  54. + reg = <0x2a 0x6>;
  55. + };
  56. +};