1*46f166caSHans de Goede/*
2*46f166caSHans de Goede * Copyright 2015 Hans de Goede <hdegoede@redhat.com>
3*46f166caSHans de Goede *
4*46f166caSHans de Goede * This file is dual-licensed: you can use it either under the terms
5*46f166caSHans de Goede * of the GPL or the X11 license, at your option. Note that this dual
6*46f166caSHans de Goede * licensing only applies to this file, and not this project as a
7*46f166caSHans de Goede * whole.
8*46f166caSHans de Goede *
9*46f166caSHans de Goede *  a) This file is free software; you can redistribute it and/or
10*46f166caSHans de Goede *     modify it under the terms of the GNU General Public License as
11*46f166caSHans de Goede *     published by the Free Software Foundation; either version 2 of the
12*46f166caSHans de Goede *     License, or (at your option) any later version.
13*46f166caSHans de Goede *
14*46f166caSHans de Goede *     This file is distributed in the hope that it will be useful,
15*46f166caSHans de Goede *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16*46f166caSHans de Goede *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17*46f166caSHans de Goede *     GNU General Public License for more details.
18*46f166caSHans de Goede *
19*46f166caSHans de Goede * Or, alternatively,
20*46f166caSHans de Goede *
21*46f166caSHans de Goede *  b) Permission is hereby granted, free of charge, to any person
22*46f166caSHans de Goede *     obtaining a copy of this software and associated documentation
23*46f166caSHans de Goede *     files (the "Software"), to deal in the Software without
24*46f166caSHans de Goede *     restriction, including without limitation the rights to use,
25*46f166caSHans de Goede *     copy, modify, merge, publish, distribute, sublicense, and/or
26*46f166caSHans de Goede *     sell copies of the Software, and to permit persons to whom the
27*46f166caSHans de Goede *     Software is furnished to do so, subject to the following
28*46f166caSHans de Goede *     conditions:
29*46f166caSHans de Goede *
30*46f166caSHans de Goede *     The above copyright notice and this permission notice shall be
31*46f166caSHans de Goede *     included in all copies or substantial portions of the Software.
32*46f166caSHans de Goede *
33*46f166caSHans de Goede *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34*46f166caSHans de Goede *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35*46f166caSHans de Goede *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36*46f166caSHans de Goede *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37*46f166caSHans de Goede *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38*46f166caSHans de Goede *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39*46f166caSHans de Goede *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40*46f166caSHans de Goede *     OTHER DEALINGS IN THE SOFTWARE.
41*46f166caSHans de Goede */
42*46f166caSHans de Goede#include "sunxi-q8-common.dtsi"
43*46f166caSHans de Goede
44*46f166caSHans de Goede/ {
45*46f166caSHans de Goede	aliases {
46*46f166caSHans de Goede		serial0 = &r_uart;
47*46f166caSHans de Goede	};
48*46f166caSHans de Goede
49*46f166caSHans de Goede	chosen {
50*46f166caSHans de Goede		stdout-path = "serial0:115200n8";
51*46f166caSHans de Goede	};
52*46f166caSHans de Goede};
53*46f166caSHans de Goede
54*46f166caSHans de Goede&mmc0 {
55*46f166caSHans de Goede	pinctrl-names = "default";
56*46f166caSHans de Goede	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_q8>;
57*46f166caSHans de Goede	vmmc-supply = <&reg_vcc3v0>;
58*46f166caSHans de Goede	bus-width = <4>;
59*46f166caSHans de Goede	cd-gpios = <&pio 1 4 GPIO_ACTIVE_HIGH>; /* PB4 */
60*46f166caSHans de Goede	cd-inverted;
61*46f166caSHans de Goede	status = "okay";
62*46f166caSHans de Goede};
63*46f166caSHans de Goede
64*46f166caSHans de Goede&pio {
65*46f166caSHans de Goede	bl_en_pin_q8: bl_en_pin@0 {
66*46f166caSHans de Goede		allwinner,pins = "PH6";
67*46f166caSHans de Goede		allwinner,function = "gpio_in";
68*46f166caSHans de Goede		allwinner,drive = <SUN4I_PINCTRL_10_MA>;
69*46f166caSHans de Goede		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
70*46f166caSHans de Goede	};
71*46f166caSHans de Goede
72*46f166caSHans de Goede	mmc0_cd_pin_q8: mmc0_cd_pin@0 {
73*46f166caSHans de Goede		allwinner,pins = "PB4";
74*46f166caSHans de Goede		allwinner,function = "gpio_in";
75*46f166caSHans de Goede		allwinner,drive = <SUN4I_PINCTRL_10_MA>;
76*46f166caSHans de Goede		allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
77*46f166caSHans de Goede	};
78*46f166caSHans de Goede};
79*46f166caSHans de Goede
80*46f166caSHans de Goede&r_uart {
81*46f166caSHans de Goede	pinctrl-names = "default";
82*46f166caSHans de Goede	pinctrl-0 = <&r_uart_pins_a>;
83*46f166caSHans de Goede	status = "okay";
84*46f166caSHans de Goede};
85