105-dt-sun4i-add-linksprite-pcduino.patch 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. From 2fc6dcd5e7c76c203d2e174e70ef21393a231163 Mon Sep 17 00:00:00 2001
  2. From: Zoltan HERPAI <wigyori@uid0.hu>
  3. Date: Mon, 13 Jan 2014 14:15:01 +0100
  4. Subject: [PATCH] ARM: sun4i: dt: Add basic board support for LinkSprite
  5. pcDuino
  6. This patch will add a basic board support DT for the
  7. LinkSprite pcDuino board.
  8. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
  9. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
  10. ---
  11. arch/arm/boot/dts/Makefile | 1 +
  12. arch/arm/boot/dts/sun4i-a10-pcduino.dts | 48 +++++++++++++++++++++++++++++++++
  13. 2 files changed, 49 insertions(+)
  14. create mode 100644 arch/arm/boot/dts/sun4i-a10-pcduino.dts
  15. --- a/arch/arm/boot/dts/Makefile
  16. +++ b/arch/arm/boot/dts/Makefile
  17. @@ -284,6 +284,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += \
  18. sun4i-a10-cubieboard.dtb \
  19. sun4i-a10-mini-xplus.dtb \
  20. sun4i-a10-hackberry.dtb \
  21. + sun4i-a10-pcduino.dtb \
  22. sun5i-a10s-olinuxino-micro.dtb \
  23. sun5i-a13-olinuxino.dtb \
  24. sun5i-a13-olinuxino-micro.dtb \
  25. --- /dev/null
  26. +++ b/arch/arm/boot/dts/sun4i-a10-pcduino.dts
  27. @@ -0,0 +1,48 @@
  28. +/*
  29. + * Copyright 2014 Zoltan HERPAI
  30. + * Zoltan HERPAI <wigyori@uid0.hu>
  31. + *
  32. + * The code contained herein is licensed under the GNU General Public
  33. + * License. You may obtain a copy of the GNU General Public License
  34. + * Version 2 or later at the following locations:
  35. + *
  36. + * http://www.opensource.org/licenses/gpl-license.html
  37. + * http://www.gnu.org/copyleft/gpl.html
  38. + */
  39. +
  40. +/dts-v1/;
  41. +/include/ "sun4i-a10.dtsi"
  42. +
  43. +/ {
  44. + model = "LinkSprite pcDuino";
  45. + compatible = "linksprite,a10-pcduino", "allwinner,sun4i-a10";
  46. +
  47. + soc@01c00000 {
  48. + emac: ethernet@01c0b000 {
  49. + pinctrl-names = "default";
  50. + pinctrl-0 = <&emac_pins_a>;
  51. + phy = <&phy1>;
  52. + status = "okay";
  53. + };
  54. +
  55. + mdio@01c0b080 {
  56. + status = "okay";
  57. +
  58. + phy1: ethernet-phy@1 {
  59. + reg = <1>;
  60. + };
  61. + };
  62. +
  63. + uart0: serial@01c28000 {
  64. + pinctrl-names = "default";
  65. + pinctrl-0 = <&uart0_pins_a>;
  66. + status = "okay";
  67. + };
  68. +
  69. + i2c0: i2c@01c2ac00 {
  70. + pinctrl-names = "default";
  71. + pinctrl-0 = <&i2c0_pins_a>;
  72. + status = "okay";
  73. + };
  74. + };
  75. +};