135-dt-sun5i-a13-add-olinuxino-micro.patch 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. From aad62992a2921436ec7c054f8b80bc916b8cc9d7 Mon Sep 17 00:00:00 2001
  2. From: Hans de Goede <[email protected]>
  3. Date: Sat, 14 Dec 2013 16:26:17 +0100
  4. Subject: [PATCH] ARM: dts: sun5i: Add new sun5i-a13-olinuxino-micro board
  5. The A13-OLinuXino-MICRO is a small dev-board with the Allwinner A13 SoC:
  6. https://www.olimex.com/Products/OLinuXino/A13/A13-OLinuXino-MICRO/
  7. Features:
  8. A13 Cortex A8 processor at 1GHz, 3D Mali400 GPU
  9. 256 MB RAM (128Mbit x 16)
  10. 5VDC input power supply with own ICs, noise immune design
  11. 1 USB host
  12. 1 USB OTG which can power the board
  13. SD-card connector for booting the Linux image
  14. VGA video output
  15. LCD signals available on connector so you still can use LCD if you disable VGA/HDMI
  16. Audio output
  17. Microphone input pads (no connector)
  18. Signed-off-by: Hans de Goede <[email protected]>
  19. ---
  20. arch/arm/boot/dts/Makefile | 1 +
  21. arch/arm/boot/dts/sun5i-a13-olinuxino-micro.dts | 68 +++++++++++++++++++++++++
  22. 2 files changed, 69 insertions(+)
  23. create mode 100644 arch/arm/boot/dts/sun5i-a13-olinuxino-micro.dts
  24. --- a/arch/arm/boot/dts/Makefile
  25. +++ b/arch/arm/boot/dts/Makefile
  26. @@ -255,6 +255,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += \
  27. sun4i-a10-hackberry.dtb \
  28. sun5i-a10s-olinuxino-micro.dtb \
  29. sun5i-a13-olinuxino.dtb \
  30. + sun5i-a13-olinuxino-micro.dtb \
  31. sun6i-a31-colombus.dtb \
  32. sun7i-a20-cubieboard2.dtb \
  33. sun7i-a20-cubietruck.dtb \
  34. --- /dev/null
  35. +++ b/arch/arm/boot/dts/sun5i-a13-olinuxino-micro.dts
  36. @@ -0,0 +1,68 @@
  37. +/*
  38. + * Copyright 2012 Maxime Ripard
  39. + * Copyright 2013 Hans de Goede <[email protected]>
  40. + *
  41. + * Maxime Ripard <[email protected]>
  42. + *
  43. + * The code contained herein is licensed under the GNU General Public
  44. + * License. You may obtain a copy of the GNU General Public License
  45. + * Version 2 or later at the following locations:
  46. + *
  47. + * http://www.opensource.org/licenses/gpl-license.html
  48. + * http://www.gnu.org/copyleft/gpl.html
  49. + */
  50. +
  51. +/dts-v1/;
  52. +/include/ "sun5i-a13.dtsi"
  53. +
  54. +/ {
  55. + model = "Olimex A13-Olinuxino Micro";
  56. + compatible = "olimex,a13-olinuxino-micro", "allwinner,sun5i-a13";
  57. +
  58. + soc@01c00000 {
  59. + pinctrl@01c20800 {
  60. + led_pins_olinuxinom: led_pins@0 {
  61. + allwinner,pins = "PG9";
  62. + allwinner,function = "gpio_out";
  63. + allwinner,drive = <1>;
  64. + allwinner,pull = <0>;
  65. + };
  66. + };
  67. +
  68. + uart1: serial@01c28400 {
  69. + pinctrl-names = "default";
  70. + pinctrl-0 = <&uart1_pins_b>;
  71. + status = "okay";
  72. + };
  73. +
  74. + i2c0: i2c@01c2ac00 {
  75. + pinctrl-names = "default";
  76. + pinctrl-0 = <&i2c0_pins_a>;
  77. + status = "okay";
  78. + };
  79. +
  80. + i2c1: i2c@01c2b000 {
  81. + pinctrl-names = "default";
  82. + pinctrl-0 = <&i2c1_pins_a>;
  83. + status = "okay";
  84. + };
  85. +
  86. + i2c2: i2c@01c2b400 {
  87. + pinctrl-names = "default";
  88. + pinctrl-0 = <&i2c2_pins_a>;
  89. + status = "okay";
  90. + };
  91. + };
  92. +
  93. + leds {
  94. + compatible = "gpio-leds";
  95. + pinctrl-names = "default";
  96. + pinctrl-0 = <&led_pins_olinuxinom>;
  97. +
  98. + power {
  99. + label = "a13-olinuxino-micro:green:power";
  100. + gpios = <&pio 6 9 0>;
  101. + default-state = "on";
  102. + };
  103. + };
  104. +};