ARM: dts: sun6i: Add new sun6i-a31-m9 dts file for Mele M9
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / sun6i-a31-m9.dts
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"
14
15 / {
16         model = "Mele M9 / A1000G Quad top set box";
17         compatible = "mele,m9", "allwinner,sun6i-a31";
18
19         chosen {
20                 bootargs = "earlyprintk console=ttyS0,115200";
21         };
22
23         soc@01c00000 {
24                 mmc0: mmc@01c0f000 {
25                         pinctrl-names = "default";
26                         pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_m9>;
27                         bus-width = <4>;
28                         cd-gpios = <&pio 7 22 0>; /* PH22 */
29                         cd-inverted;
30                         status = "okay";
31                 };
32
33                 pio: pinctrl@01c20800 {
34                         mmc0_cd_pin_m9: mmc0_cd_pin@0 {
35                                 allwinner,pins = "PH22";
36                                 allwinner,function = "gpio_in";
37                                 allwinner,drive = <0>;
38                                 allwinner,pull = <1>;
39                         };
40                 };
41
42                 uart0: serial@01c28000 {
43                         pinctrl-names = "default";
44                         pinctrl-0 = <&uart0_pins_a>;
45                         status = "okay";
46                 };
47         };
48 };