sun5i-a10s-r7-tv-dongle.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /*
  2. * Copyright 2014 Hans de Goede <hdegoede@redhat.com>
  3. *
  4. * The code contained herein is licensed under the GNU General Public
  5. * License. You may obtain a copy of the GNU General Public License
  6. * Version 2 or later at the following locations:
  7. *
  8. * http://www.opensource.org/licenses/gpl-license.html
  9. * http://www.gnu.org/copyleft/gpl.html
  10. */
  11. /dts-v1/;
  12. /include/ "sun5i-a10s.dtsi"
  13. /include/ "sunxi-common-regulators.dtsi"
  14. / {
  15. model = "R7 A10s hdmi tv-stick";
  16. compatible = "allwinner,r7-tv-dongle", "allwinner,sun5i-a10s";
  17. soc@01c00000 {
  18. mmc0: mmc@01c0f000 {
  19. pinctrl-names = "default";
  20. pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_r7>;
  21. vmmc-supply = <&reg_vcc3v3>;
  22. bus-width = <4>;
  23. cd-gpios = <&pio 6 1 0>; /* PG1 */
  24. cd-inverted;
  25. status = "okay";
  26. };
  27. mmc1: mmc@01c10000 {
  28. pinctrl-names = "default";
  29. pinctrl-0 = <&mmc1_pins_a>;
  30. vmmc-supply = <&reg_vcc3v3>;
  31. bus-width = <4>;
  32. non-removable;
  33. status = "okay";
  34. };
  35. usbphy: phy@01c13400 {
  36. usb1_vbus-supply = <&reg_usb1_vbus>;
  37. status = "okay";
  38. };
  39. ehci0: usb@01c14000 {
  40. status = "okay";
  41. };
  42. ohci0: usb@01c14400 {
  43. status = "okay";
  44. };
  45. pinctrl@01c20800 {
  46. mmc0_cd_pin_r7: mmc0_cd_pin@0 {
  47. allwinner,pins = "PG1";
  48. allwinner,function = "gpio_in";
  49. allwinner,drive = <0>;
  50. allwinner,pull = <1>;
  51. };
  52. led_pins_r7: led_pins@0 {
  53. allwinner,pins = "PB2";
  54. allwinner,function = "gpio_out";
  55. allwinner,drive = <1>;
  56. allwinner,pull = <0>;
  57. };
  58. usb1_vbus_pin_r7: usb1_vbus_pin@0 {
  59. allwinner,pins = "PG13";
  60. allwinner,function = "gpio_out";
  61. allwinner,drive = <0>;
  62. allwinner,pull = <0>;
  63. };
  64. };
  65. uart0: serial@01c28000 {
  66. pinctrl-names = "default";
  67. pinctrl-0 = <&uart0_pins_a>;
  68. status = "okay";
  69. };
  70. };
  71. leds {
  72. compatible = "gpio-leds";
  73. pinctrl-names = "default";
  74. pinctrl-0 = <&led_pins_r7>;
  75. green {
  76. label = "r7-tv-dongle:green:usr";
  77. gpios = <&pio 1 2 0>;
  78. default-state = "on";
  79. };
  80. };
  81. reg_usb1_vbus: usb1-vbus {
  82. pinctrl-0 = <&usb1_vbus_pin_r7>;
  83. gpio = <&pio 6 13 0>;
  84. status = "okay";
  85. };
  86. };