Hans de Goede | 0ff1ffd | 2014-05-02 17:57:25 +0200 | [diff] [blame] | 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 | |
| 12 | /dts-v1/; |
| 13 | /include/ "sun6i-a31.dtsi" |
Hans de Goede | e6879d1 | 2014-05-11 09:46:56 +0200 | [diff] [blame] | 14 | /include/ "sunxi-common-regulators.dtsi" |
Hans de Goede | 0ff1ffd | 2014-05-02 17:57:25 +0200 | [diff] [blame] | 15 | |
| 16 | / { |
| 17 | model = "Mele M9 / A1000G Quad top set box"; |
| 18 | compatible = "mele,m9", "allwinner,sun6i-a31"; |
| 19 | |
| 20 | chosen { |
| 21 | bootargs = "earlyprintk console=ttyS0,115200"; |
| 22 | }; |
| 23 | |
| 24 | soc@01c00000 { |
| 25 | mmc0: mmc@01c0f000 { |
| 26 | pinctrl-names = "default"; |
| 27 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_m9>; |
Hans de Goede | e6879d1 | 2014-05-11 09:46:56 +0200 | [diff] [blame] | 28 | vmmc-supply = <®_vcc3v3>; |
Hans de Goede | 0ff1ffd | 2014-05-02 17:57:25 +0200 | [diff] [blame] | 29 | bus-width = <4>; |
| 30 | cd-gpios = <&pio 7 22 0>; /* PH22 */ |
| 31 | cd-inverted; |
| 32 | status = "okay"; |
| 33 | }; |
| 34 | |
| 35 | pio: pinctrl@01c20800 { |
| 36 | mmc0_cd_pin_m9: mmc0_cd_pin@0 { |
| 37 | allwinner,pins = "PH22"; |
| 38 | allwinner,function = "gpio_in"; |
| 39 | allwinner,drive = <0>; |
| 40 | allwinner,pull = <1>; |
| 41 | }; |
| 42 | }; |
| 43 | |
| 44 | uart0: serial@01c28000 { |
| 45 | pinctrl-names = "default"; |
| 46 | pinctrl-0 = <&uart0_pins_a>; |
| 47 | status = "okay"; |
| 48 | }; |
| 49 | }; |
| 50 | }; |