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