xref: /rk3399_rockchip-uboot/arch/arm/dts/sun8i-h3-orangepi-pc-plus.dts (revision c6b968da78ce3fa7224c0ddf15fe170c7c05b27e)
12a5adc5bSHans de Goede/*
22a5adc5bSHans de Goede * Copyright (C) 2016 Hans de Goede <hdegoede@redhat.com>
32a5adc5bSHans de Goede *
42a5adc5bSHans de Goede * This file is dual-licensed: you can use it either under the terms
52a5adc5bSHans de Goede * of the GPL or the X11 license, at your option. Note that this dual
62a5adc5bSHans de Goede * licensing only applies to this file, and not this project as a
72a5adc5bSHans de Goede * whole.
82a5adc5bSHans de Goede *
92a5adc5bSHans de Goede *  a) This file is free software; you can redistribute it and/or
102a5adc5bSHans de Goede *     modify it under the terms of the GNU General Public License as
112a5adc5bSHans de Goede *     published by the Free Software Foundation; either version 2 of the
122a5adc5bSHans de Goede *     License, or (at your option) any later version.
132a5adc5bSHans de Goede *
142a5adc5bSHans de Goede *     This file is distributed in the hope that it will be useful,
152a5adc5bSHans de Goede *     but WITHOUT ANY WARRANTY; without even the implied warranty of
162a5adc5bSHans de Goede *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
172a5adc5bSHans de Goede *     GNU General Public License for more details.
182a5adc5bSHans de Goede *
192a5adc5bSHans de Goede * Or, alternatively,
202a5adc5bSHans de Goede *
212a5adc5bSHans de Goede *  b) Permission is hereby granted, free of charge, to any person
222a5adc5bSHans de Goede *     obtaining a copy of this software and associated documentation
232a5adc5bSHans de Goede *     files (the "Software"), to deal in the Software without
242a5adc5bSHans de Goede *     restriction, including without limitation the rights to use,
252a5adc5bSHans de Goede *     copy, modify, merge, publish, distribute, sublicense, and/or
262a5adc5bSHans de Goede *     sell copies of the Software, and to permit persons to whom the
272a5adc5bSHans de Goede *     Software is furnished to do so, subject to the following
282a5adc5bSHans de Goede *     conditions:
292a5adc5bSHans de Goede *
302a5adc5bSHans de Goede *     The above copyright notice and this permission notice shall be
312a5adc5bSHans de Goede *     included in all copies or substantial portions of the Software.
322a5adc5bSHans de Goede *
332a5adc5bSHans de Goede *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
342a5adc5bSHans de Goede *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
352a5adc5bSHans de Goede *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
362a5adc5bSHans de Goede *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
372a5adc5bSHans de Goede *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
382a5adc5bSHans de Goede *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
392a5adc5bSHans de Goede *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
402a5adc5bSHans de Goede *     OTHER DEALINGS IN THE SOFTWARE.
412a5adc5bSHans de Goede */
422a5adc5bSHans de Goede
432a5adc5bSHans de Goede/* The Orange Pi PC Plus is an extended version of the regular PC */
442a5adc5bSHans de Goede#include "sun8i-h3-orangepi-pc.dts"
452a5adc5bSHans de Goede
462a5adc5bSHans de Goede/ {
47*860fbdd4SHans de Goede	model = "Xunlong Orange Pi PC Plus";
48*860fbdd4SHans de Goede	compatible = "xunlong,orangepi-pc-plus", "allwinner,sun8i-h3";
492a5adc5bSHans de Goede
502a5adc5bSHans de Goede	aliases {
512a5adc5bSHans de Goede		/* ethernet0 is the H3 emac, defined in sun8i-h3.dtsi */
522a5adc5bSHans de Goede		ethernet1 = &rtl8189ftv;
532a5adc5bSHans de Goede	};
542a5adc5bSHans de Goede};
552a5adc5bSHans de Goede
562a5adc5bSHans de Goede&mmc1 {
572a5adc5bSHans de Goede	pinctrl-names = "default";
582a5adc5bSHans de Goede	pinctrl-0 = <&mmc1_pins_a>;
592a5adc5bSHans de Goede	vmmc-supply = <&reg_vcc3v3>;
602a5adc5bSHans de Goede	bus-width = <4>;
612a5adc5bSHans de Goede	non-removable;
622a5adc5bSHans de Goede	status = "okay";
632a5adc5bSHans de Goede
642a5adc5bSHans de Goede	/*
652a5adc5bSHans de Goede	 * Explicitly define the sdio device, so that we can add an ethernet
662a5adc5bSHans de Goede	 * alias for it (which e.g. makes u-boot set a mac-address).
672a5adc5bSHans de Goede	 */
682a5adc5bSHans de Goede	rtl8189ftv: sdio_wifi@1 {
692a5adc5bSHans de Goede		reg = <1>;
702a5adc5bSHans de Goede	};
712a5adc5bSHans de Goede};
722a5adc5bSHans de Goede
732a5adc5bSHans de Goede&mmc2 {
742a5adc5bSHans de Goede	pinctrl-names = "default";
752a5adc5bSHans de Goede	pinctrl-0 = <&mmc2_8bit_pins>;
762a5adc5bSHans de Goede	vmmc-supply = <&reg_vcc3v3>;
772a5adc5bSHans de Goede	bus-width = <8>;
782a5adc5bSHans de Goede	non-removable;
792a5adc5bSHans de Goede	cap-mmc-hw-reset;
802a5adc5bSHans de Goede	status = "okay";
812a5adc5bSHans de Goede};
822a5adc5bSHans de Goede
832a5adc5bSHans de Goede&mmc2_8bit_pins {
842a5adc5bSHans de Goede	/* Increase drive strength for DDR modes */
852a5adc5bSHans de Goede	allwinner,drive = <SUN4I_PINCTRL_40_MA>;
862a5adc5bSHans de Goede	/* eMMC is missing pull-ups */
872a5adc5bSHans de Goede	allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
882a5adc5bSHans de Goede};
89