0001 /*
0002 * Copyright (C) 2016 James Pettigrew <james@innovum.com.au>
0003 * Copyright (C) 2016 Milo Kim <woogyom.kim@gmail.com>
0004 *
0005 * This file is dual-licensed: you can use it either under the terms
0006 * of the GPL or the X11 license, at your option. Note that this dual
0007 * licensing only applies to this file, and not this project as a
0008 * whole.
0009 *
0010 * a) This file is free software; you can redistribute it and/or
0011 * modify it under the terms of the GNU General Public License as
0012 * published by the Free Software Foundation; either version 2 of the
0013 * License, or (at your option) any later version.
0014 *
0015 * This file is distributed in the hope that it will be useful,
0016 * but WITHOUT ANY WARRANTY; without even the implied warranty of
0017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0018 * GNU General Public License for more details.
0019 *
0020 * Or, alternatively,
0021 *
0022 * b) Permission is hereby granted, free of charge, to any person
0023 * obtaining a copy of this software and associated documentation
0024 * files (the "Software"), to deal in the Software without
0025 * restriction, including without limitation the rights to use,
0026 * copy, modify, merge, publish, distribute, sublicense, and/or
0027 * sell copies of the Software, and to permit persons to whom the
0028 * Software is furnished to do so, subject to the following
0029 * conditions:
0030 *
0031 * The above copyright notice and this permission notice shall be
0032 * included in all copies or substantial portions of the Software.
0033 *
0034 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
0035 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
0036 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
0037 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
0038 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
0039 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0040 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0041 * OTHER DEALINGS IN THE SOFTWARE.
0042 */
0043
0044 /dts-v1/;
0045 #include "sun8i-h3.dtsi"
0046 #include "sunxi-common-regulators.dtsi"
0047
0048 #include <dt-bindings/gpio/gpio.h>
0049 #include <dt-bindings/input/input.h>
0050
0051 / {
0052 aliases {
0053 serial0 = &uart0;
0054 };
0055
0056 chosen {
0057 stdout-path = "serial0:115200n8";
0058 };
0059
0060 leds {
0061 compatible = "gpio-leds";
0062
0063 led-0 {
0064 label = "nanopi:blue:status";
0065 gpios = <&pio 0 10 GPIO_ACTIVE_HIGH>;
0066 linux,default-trigger = "heartbeat";
0067 };
0068
0069 led-1 {
0070 label = "nanopi:green:pwr";
0071 gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>;
0072 default-state = "on";
0073 };
0074 };
0075
0076 gpio-keys {
0077 compatible = "gpio-keys";
0078
0079 key-0 {
0080 label = "k1";
0081 linux,code = <KEY_POWER>;
0082 gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
0083 wakeup-source;
0084 };
0085 };
0086 };
0087
0088 &ehci3 {
0089 status = "okay";
0090 };
0091
0092 &mmc0 {
0093 bus-width = <4>;
0094 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
0095 status = "okay";
0096 vmmc-supply = <®_vcc3v3>;
0097 };
0098
0099 &ohci3 {
0100 status = "okay";
0101 };
0102
0103 &uart0 {
0104 pinctrl-names = "default";
0105 pinctrl-0 = <&uart0_pa_pins>;
0106 status = "okay";
0107 };
0108
0109 &usbphy {
0110 status = "okay";
0111 };