014-add_uartx_labels.patch 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. From 181d9b28cbc9ae10e1467e2d013033b672d91d4b Mon Sep 17 00:00:00 2001
  2. From: Arnaud Ebalard <arno@natisbad.org>
  3. Date: Sat, 22 Nov 2014 00:45:35 +0100
  4. Subject: arm: mvebu: add uartX labels for Armada SoC serial nodes
  5. This patch adds uartX labels for Armada SoC serial nodes. This is
  6. a preliminary work to be able to easily reference the serial lines
  7. in Device Tree files. One expected use is when providing stdout-path
  8. property for barebox.
  9. Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  10. Acked-by: Andrew Lunn <andrew@lunn.ch>
  11. Signed-off-by: Arnaud Ebalard <arno@natisbad.org>
  12. Link: https://lkml.kernel.org/r/0683d1a823fe9b75849f3dafcf1cf6ee291cdca6.1416613429.git.arno@natisbad.org
  13. Signed-off-by: Jason Cooper <jason@lakedaemon.net>
  14. --- a/arch/arm/boot/dts/armada-370-xp.dtsi
  15. +++ b/arch/arm/boot/dts/armada-370-xp.dtsi
  16. @@ -151,7 +151,7 @@
  17. status = "disabled";
  18. };
  19. - serial@12000 {
  20. + uart0: serial@12000 {
  21. compatible = "snps,dw-apb-uart";
  22. reg = <0x12000 0x100>;
  23. reg-shift = <2>;
  24. @@ -160,7 +160,8 @@
  25. clocks = <&coreclk 0>;
  26. status = "disabled";
  27. };
  28. - serial@12100 {
  29. +
  30. + uart1: serial@12100 {
  31. compatible = "snps,dw-apb-uart";
  32. reg = <0x12100 0x100>;
  33. reg-shift = <2>;
  34. --- a/arch/arm/boot/dts/armada-xp.dtsi
  35. +++ b/arch/arm/boot/dts/armada-xp.dtsi
  36. @@ -53,7 +53,7 @@
  37. reg = <0x11100 0x100>;
  38. };
  39. - serial@12200 {
  40. + uart2: serial@12200 {
  41. compatible = "snps,dw-apb-uart";
  42. reg = <0x12200 0x100>;
  43. reg-shift = <2>;
  44. @@ -62,7 +62,8 @@
  45. clocks = <&coreclk 0>;
  46. status = "disabled";
  47. };
  48. - serial@12300 {
  49. +
  50. + uart3: serial@12300 {
  51. compatible = "snps,dw-apb-uart";
  52. reg = <0x12300 0x100>;
  53. reg-shift = <2>;