sun6i-a31-m9.dts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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/ "sun6i-a31.dtsi"
  13. /include/ "sunxi-common-regulators.dtsi"
  14. / {
  15. model = "Mele M9 / A1000G Quad top set box";
  16. compatible = "mele,m9", "allwinner,sun6i-a31";
  17. chosen {
  18. bootargs = "earlyprintk console=ttyS0,115200";
  19. };
  20. soc@01c00000 {
  21. mmc0: mmc@01c0f000 {
  22. pinctrl-names = "default";
  23. pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_m9>;
  24. vmmc-supply = <&reg_vcc3v3>;
  25. bus-width = <4>;
  26. cd-gpios = <&pio 7 22 0>; /* PH22 */
  27. cd-inverted;
  28. status = "okay";
  29. };
  30. pio: pinctrl@01c20800 {
  31. mmc0_cd_pin_m9: mmc0_cd_pin@0 {
  32. allwinner,pins = "PH22";
  33. allwinner,function = "gpio_in";
  34. allwinner,drive = <0>;
  35. allwinner,pull = <1>;
  36. };
  37. };
  38. uart0: serial@01c28000 {
  39. pinctrl-names = "default";
  40. pinctrl-0 = <&uart0_pins_a>;
  41. status = "okay";
  42. };
  43. };
  44. };