185596034SKevin Hilman/* 285596034SKevin Hilman * Copyright (c) 2016 Andreas Färber 385596034SKevin Hilman * Copyright (c) 2016 BayLibre, Inc. 485596034SKevin Hilman * Author: Kevin Hilman <khilman@kernel.org> 585596034SKevin Hilman * 685596034SKevin Hilman * This file is dual-licensed: you can use it either under the terms 785596034SKevin Hilman * of the GPL or the X11 license, at your option. Note that this dual 885596034SKevin Hilman * licensing only applies to this file, and not this project as a 985596034SKevin Hilman * whole. 1085596034SKevin Hilman * 1185596034SKevin Hilman * a) This library is free software; you can redistribute it and/or 1285596034SKevin Hilman * modify it under the terms of the GNU General Public License as 1385596034SKevin Hilman * published by the Free Software Foundation; either version 2 of the 1485596034SKevin Hilman * License, or (at your option) any later version. 1585596034SKevin Hilman * 1685596034SKevin Hilman * This library is distributed in the hope that it will be useful, 1785596034SKevin Hilman * but WITHOUT ANY WARRANTY; without even the implied warranty of 1885596034SKevin Hilman * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1985596034SKevin Hilman * GNU General Public License for more details. 2085596034SKevin Hilman * 2185596034SKevin Hilman * Or, alternatively, 2285596034SKevin Hilman * 2385596034SKevin Hilman * b) Permission is hereby granted, free of charge, to any person 2485596034SKevin Hilman * obtaining a copy of this software and associated documentation 2585596034SKevin Hilman * files (the "Software"), to deal in the Software without 2685596034SKevin Hilman * restriction, including without limitation the rights to use, 2785596034SKevin Hilman * copy, modify, merge, publish, distribute, sublicense, and/or 2885596034SKevin Hilman * sell copies of the Software, and to permit persons to whom the 2985596034SKevin Hilman * Software is furnished to do so, subject to the following 3085596034SKevin Hilman * conditions: 3185596034SKevin Hilman * 3285596034SKevin Hilman * The above copyright notice and this permission notice shall be 3385596034SKevin Hilman * included in all copies or substantial portions of the Software. 3485596034SKevin Hilman * 3585596034SKevin Hilman * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 3685596034SKevin Hilman * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 3785596034SKevin Hilman * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 3885596034SKevin Hilman * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 3985596034SKevin Hilman * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 4085596034SKevin Hilman * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 4185596034SKevin Hilman * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 4285596034SKevin Hilman * OTHER DEALINGS IN THE SOFTWARE. 4385596034SKevin Hilman */ 4485596034SKevin Hilman 4585596034SKevin Hilman/dts-v1/; 4685596034SKevin Hilman 4785596034SKevin Hilman#include "meson-gxbb.dtsi" 48f40d437fSCarlo Caione#include <dt-bindings/gpio/gpio.h> 4985596034SKevin Hilman 5085596034SKevin Hilman/ { 5185596034SKevin Hilman compatible = "hardkernel,odroid-c2", "amlogic,meson-gxbb"; 5285596034SKevin Hilman model = "Hardkernel ODROID-C2"; 5385596034SKevin Hilman 5485596034SKevin Hilman aliases { 5585596034SKevin Hilman serial0 = &uart_AO; 5685596034SKevin Hilman }; 5785596034SKevin Hilman 5885596034SKevin Hilman chosen { 5985596034SKevin Hilman stdout-path = "serial0:115200n8"; 6085596034SKevin Hilman }; 6185596034SKevin Hilman 6285596034SKevin Hilman memory@0 { 6385596034SKevin Hilman device_type = "memory"; 6485596034SKevin Hilman reg = <0x0 0x0 0x0 0x80000000>; 6585596034SKevin Hilman }; 66f40d437fSCarlo Caione 675a0803bdSBrian Kim usb_otg_pwr: regulator-usb-pwrs { 685a0803bdSBrian Kim compatible = "regulator-fixed"; 695a0803bdSBrian Kim 705a0803bdSBrian Kim regulator-name = "USB_OTG_PWR"; 715a0803bdSBrian Kim 725a0803bdSBrian Kim regulator-min-microvolt = <5000000>; 735a0803bdSBrian Kim regulator-max-microvolt = <5000000>; 745a0803bdSBrian Kim 755a0803bdSBrian Kim gpio = <&gpio_ao GPIOAO_5 GPIO_ACTIVE_HIGH>; 765a0803bdSBrian Kim enable-active-high; 775a0803bdSBrian Kim }; 785a0803bdSBrian Kim 79f40d437fSCarlo Caione leds { 80f40d437fSCarlo Caione compatible = "gpio-leds"; 81f40d437fSCarlo Caione blue { 82f40d437fSCarlo Caione label = "c2:blue:alive"; 83f40d437fSCarlo Caione gpios = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_LOW>; 84f40d437fSCarlo Caione linux,default-trigger = "heartbeat"; 85f40d437fSCarlo Caione default-state = "off"; 86f40d437fSCarlo Caione }; 87f40d437fSCarlo Caione }; 8885596034SKevin Hilman}; 8985596034SKevin Hilman 9085596034SKevin Hilman&uart_AO { 9185596034SKevin Hilman status = "okay"; 92f40d437fSCarlo Caione pinctrl-0 = <&uart_ao_a_pins>; 93f40d437fSCarlo Caione pinctrl-names = "default"; 9485596034SKevin Hilman}; 958e6320ddSKevin Hilman 968c5509f0SKevin Hilmanðmac { 978c5509f0SKevin Hilman status = "okay"; 983be2d9cfSNeil Armstrong pinctrl-0 = <ð_rgmii_pins>; 998c5509f0SKevin Hilman pinctrl-names = "default"; 1008c5509f0SKevin Hilman}; 1018c5509f0SKevin Hilman 102ae89ed79SMartin Blumenstingl&ir { 103ae89ed79SMartin Blumenstingl status = "okay"; 104ae89ed79SMartin Blumenstingl pinctrl-0 = <&remote_input_ao_pins>; 105ae89ed79SMartin Blumenstingl pinctrl-names = "default"; 106ae89ed79SMartin Blumenstingl}; 107cb700f49SJerome Brunet 108cb700f49SJerome Brunet&i2c_A { 109cb700f49SJerome Brunet status = "okay"; 110cb700f49SJerome Brunet pinctrl-0 = <&i2c_a_pins>; 111cb700f49SJerome Brunet pinctrl-names = "default"; 112cb700f49SJerome Brunet}; 1135a0803bdSBrian Kim 1145a0803bdSBrian Kim&usb0_phy { 1155a0803bdSBrian Kim status = "okay"; 1165a0803bdSBrian Kim phy-supply = <&usb_otg_pwr>; 1175a0803bdSBrian Kim}; 1185a0803bdSBrian Kim 1195a0803bdSBrian Kim&usb1_phy { 1205a0803bdSBrian Kim status = "okay"; 1215a0803bdSBrian Kim}; 1225a0803bdSBrian Kim 1235a0803bdSBrian Kim&usb0 { 1245a0803bdSBrian Kim status = "okay"; 1255a0803bdSBrian Kim}; 1265a0803bdSBrian Kim 1275a0803bdSBrian Kim&usb1 { 1285a0803bdSBrian Kim status = "okay"; 1295a0803bdSBrian Kim}; 130