14e388608SAndre Przywara/*
24e388608SAndre Przywara * Copyright (c) 2016 ARM Ltd.
34e388608SAndre Przywara *
44e388608SAndre Przywara * This file is dual-licensed: you can use it either under the terms
54e388608SAndre Przywara * of the GPL or the X11 license, at your option. Note that this dual
64e388608SAndre Przywara * licensing only applies to this file, and not this project as a
74e388608SAndre Przywara * whole.
84e388608SAndre Przywara *
94e388608SAndre Przywara *  a) This library is free software; you can redistribute it and/or
104e388608SAndre Przywara *     modify it under the terms of the GNU General Public License as
114e388608SAndre Przywara *     published by the Free Software Foundation; either version 2 of the
124e388608SAndre Przywara *     License, or (at your option) any later version.
134e388608SAndre Przywara *
144e388608SAndre Przywara *     This library is distributed in the hope that it will be useful,
154e388608SAndre Przywara *     but WITHOUT ANY WARRANTY; without even the implied warranty of
164e388608SAndre Przywara *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
174e388608SAndre Przywara *     GNU General Public License for more details.
184e388608SAndre Przywara *
194e388608SAndre Przywara * Or, alternatively,
204e388608SAndre Przywara *
214e388608SAndre Przywara *  b) Permission is hereby granted, free of charge, to any person
224e388608SAndre Przywara *     obtaining a copy of this software and associated documentation
234e388608SAndre Przywara *     files (the "Software"), to deal in the Software without
244e388608SAndre Przywara *     restriction, including without limitation the rights to use,
254e388608SAndre Przywara *     copy, modify, merge, publish, distribute, sublicense, and/or
264e388608SAndre Przywara *     sell copies of the Software, and to permit persons to whom the
274e388608SAndre Przywara *     Software is furnished to do so, subject to the following
284e388608SAndre Przywara *     conditions:
294e388608SAndre Przywara *
304e388608SAndre Przywara *     The above copyright notice and this permission notice shall be
314e388608SAndre Przywara *     included in all copies or substantial portions of the Software.
324e388608SAndre Przywara *
334e388608SAndre Przywara *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
344e388608SAndre Przywara *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
354e388608SAndre Przywara *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
364e388608SAndre Przywara *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
374e388608SAndre Przywara *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
384e388608SAndre Przywara *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
394e388608SAndre Przywara *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
404e388608SAndre Przywara *     OTHER DEALINGS IN THE SOFTWARE.
414e388608SAndre Przywara */
424e388608SAndre Przywara
434e388608SAndre Przywara/dts-v1/;
444e388608SAndre Przywara
454e388608SAndre Przywara#include "sun50i-a64.dtsi"
464e388608SAndre Przywara
47ebe3ae29SAndre Przywara#include <dt-bindings/gpio/gpio.h>
48ebe3ae29SAndre Przywara
494e388608SAndre Przywara/ {
504e388608SAndre Przywara	model = "Pine64";
514e388608SAndre Przywara	compatible = "pine64,pine64", "allwinner,sun50i-a64";
524e388608SAndre Przywara
534e388608SAndre Przywara	aliases {
544e388608SAndre Przywara		serial0 = &uart0;
55226ab099SAndreas Färber		serial1 = &uart1;
56226ab099SAndreas Färber		serial2 = &uart2;
57226ab099SAndreas Färber		serial3 = &uart3;
58226ab099SAndreas Färber		serial4 = &uart4;
594e388608SAndre Przywara	};
604e388608SAndre Przywara
614e388608SAndre Przywara	chosen {
624e388608SAndre Przywara		stdout-path = "serial0:115200n8";
634e388608SAndre Przywara	};
64ebe3ae29SAndre Przywara
65ebe3ae29SAndre Przywara	reg_vcc3v3: vcc3v3 {
66ebe3ae29SAndre Przywara		compatible = "regulator-fixed";
67ebe3ae29SAndre Przywara		regulator-name = "vcc3v3";
68ebe3ae29SAndre Przywara		regulator-min-microvolt = <3300000>;
69ebe3ae29SAndre Przywara		regulator-max-microvolt = <3300000>;
70ebe3ae29SAndre Przywara	};
714e388608SAndre Przywara};
724e388608SAndre Przywara
738543e620SIcenowy Zheng&ehci0 {
748543e620SIcenowy Zheng	status = "okay";
758543e620SIcenowy Zheng};
768543e620SIcenowy Zheng
77d49f9dbcSIcenowy Zheng&ehci1 {
78d49f9dbcSIcenowy Zheng	status = "okay";
79d49f9dbcSIcenowy Zheng};
80d49f9dbcSIcenowy Zheng
814e388608SAndre Przywara&i2c1 {
824e388608SAndre Przywara	pinctrl-names = "default";
834e388608SAndre Przywara	pinctrl-0 = <&i2c1_pins>;
844e388608SAndre Przywara	status = "okay";
854e388608SAndre Przywara};
864e388608SAndre Przywara
874e388608SAndre Przywara&i2c1_pins {
884e388608SAndre Przywara	bias-pull-up;
894e388608SAndre Przywara};
90ac93c09cSIcenowy Zheng
91ebe3ae29SAndre Przywara&mmc0 {
92ebe3ae29SAndre Przywara	pinctrl-names = "default";
93ebe3ae29SAndre Przywara	pinctrl-0 = <&mmc0_pins>;
94ebe3ae29SAndre Przywara	vmmc-supply = <&reg_vcc3v3>;
95ebe3ae29SAndre Przywara	cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>;
96ebe3ae29SAndre Przywara	cd-inverted;
97ebe3ae29SAndre Przywara	disable-wp;
98ebe3ae29SAndre Przywara	bus-width = <4>;
99ebe3ae29SAndre Przywara	status = "okay";
100ebe3ae29SAndre Przywara};
101ebe3ae29SAndre Przywara
1028543e620SIcenowy Zheng&ohci0 {
1038543e620SIcenowy Zheng	status = "okay";
1048543e620SIcenowy Zheng};
1058543e620SIcenowy Zheng
106d49f9dbcSIcenowy Zheng&ohci1 {
107d49f9dbcSIcenowy Zheng	status = "okay";
108d49f9dbcSIcenowy Zheng};
109d49f9dbcSIcenowy Zheng
110ac93c09cSIcenowy Zheng&uart0 {
111ac93c09cSIcenowy Zheng	pinctrl-names = "default";
112ac93c09cSIcenowy Zheng	pinctrl-0 = <&uart0_pins_a>;
113ac93c09cSIcenowy Zheng	status = "okay";
114ac93c09cSIcenowy Zheng};
115d49f9dbcSIcenowy Zheng
116f57e8384SIcenowy Zheng&usb_otg {
117f57e8384SIcenowy Zheng	dr_mode = "host";
118f57e8384SIcenowy Zheng	status = "okay";
119f57e8384SIcenowy Zheng};
120f57e8384SIcenowy Zheng
121d49f9dbcSIcenowy Zheng&usbphy {
122d49f9dbcSIcenowy Zheng	status = "okay";
123d49f9dbcSIcenowy Zheng};
124