1724ba675SRob Herring/* 2724ba675SRob Herring * Copyright 2015 Hans de Goede <hdegoede@redhat.com> 3724ba675SRob Herring * Copyright 2016 Icenowy Zheng <icenowy@aosc.xyz> 4724ba675SRob Herring * 5724ba675SRob Herring * This file is dual-licensed: you can use it either under the terms 6724ba675SRob Herring * of the GPL or the X11 license, at your option. Note that this dual 7724ba675SRob Herring * licensing only applies to this file, and not this project as a 8724ba675SRob Herring * whole. 9724ba675SRob Herring * 10724ba675SRob Herring * a) This file is free software; you can redistribute it and/or 11724ba675SRob Herring * modify it under the terms of the GNU General Public License as 12724ba675SRob Herring * published by the Free Software Foundation; either version 2 of the 13724ba675SRob Herring * License, or (at your option) any later version. 14724ba675SRob Herring * 15724ba675SRob Herring * This file is distributed in the hope that it will be useful, 16724ba675SRob Herring * but WITHOUT ANY WARRANTY; without even the implied warranty of 17724ba675SRob Herring * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18724ba675SRob Herring * GNU General Public License for more details. 19724ba675SRob Herring * 20724ba675SRob Herring * Or, alternatively, 21724ba675SRob Herring * 22724ba675SRob Herring * b) Permission is hereby granted, free of charge, to any person 23724ba675SRob Herring * obtaining a copy of this software and associated documentation 24724ba675SRob Herring * files (the "Software"), to deal in the Software without 25724ba675SRob Herring * restriction, including without limitation the rights to use, 26724ba675SRob Herring * copy, modify, merge, publish, distribute, sublicense, and/or 27724ba675SRob Herring * sell copies of the Software, and to permit persons to whom the 28724ba675SRob Herring * Software is furnished to do so, subject to the following 29724ba675SRob Herring * conditions: 30724ba675SRob Herring * 31724ba675SRob Herring * The above copyright notice and this permission notice shall be 32724ba675SRob Herring * included in all copies or substantial portions of the Software. 33724ba675SRob Herring * 34724ba675SRob Herring * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 35724ba675SRob Herring * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 36724ba675SRob Herring * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 37724ba675SRob Herring * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 38724ba675SRob Herring * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 39724ba675SRob Herring * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 40724ba675SRob Herring * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 41724ba675SRob Herring * OTHER DEALINGS IN THE SOFTWARE. 42724ba675SRob Herring */ 43724ba675SRob Herring 44724ba675SRob Herring/dts-v1/; 45724ba675SRob Herring#include "sun8i-a33.dtsi" 46724ba675SRob Herring#include "sun8i-reference-design-tablet.dtsi" 47724ba675SRob Herring 48724ba675SRob Herring/ { 49724ba675SRob Herring model = "INet-D978 Rev 02"; 50724ba675SRob Herring compatible = "primux,inet-d978-rev2", "allwinner,sun8i-a33"; 51724ba675SRob Herring 52724ba675SRob Herring aliases { 53724ba675SRob Herring serial0 = &uart1; 54724ba675SRob Herring }; 55724ba675SRob Herring 56724ba675SRob Herring chosen { 57724ba675SRob Herring /* Delete debug UART as serial0 is the UART for bluetooth */ 58724ba675SRob Herring /delete-property/stdout-path; 59724ba675SRob Herring }; 60724ba675SRob Herring 61724ba675SRob Herring leds { 62724ba675SRob Herring compatible = "gpio-leds"; 63724ba675SRob Herring pinctrl-names = "default"; 64724ba675SRob Herring pinctrl-0 = <&led_pin_d978>; 65724ba675SRob Herring 66724ba675SRob Herring led { 67724ba675SRob Herring label = "d978:blue:home"; 68724ba675SRob Herring gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */ 69724ba675SRob Herring }; 70724ba675SRob Herring }; 71724ba675SRob Herring}; 72724ba675SRob Herring 73724ba675SRob Herring&mmc1 { 74724ba675SRob Herring pinctrl-names = "default"; 75724ba675SRob Herring pinctrl-0 = <&mmc1_pg_pins>; 76724ba675SRob Herring vmmc-supply = <®_dldo1>; 77724ba675SRob Herring bus-width = <4>; 78724ba675SRob Herring non-removable; 79724ba675SRob Herring status = "okay"; 80724ba675SRob Herring 81*0f47ef3fSKrzysztof Kozlowski rtl8723bs: wifi@1 { 82724ba675SRob Herring reg = <1>; 83724ba675SRob Herring }; 84724ba675SRob Herring}; 85724ba675SRob Herring 86724ba675SRob Herring&r_pio { 87724ba675SRob Herring led_pin_d978: led-pin { 88724ba675SRob Herring pins = "PL5"; 89724ba675SRob Herring function = "gpio_out"; 90724ba675SRob Herring drive-strength = <20>; 91724ba675SRob Herring }; 92724ba675SRob Herring}; 93724ba675SRob Herring 94724ba675SRob Herring&r_uart { 95724ba675SRob Herring status = "disabled"; 96724ba675SRob Herring}; 97724ba675SRob Herring 98724ba675SRob Herring&uart1 { 99724ba675SRob Herring pinctrl-names = "default"; 100724ba675SRob Herring pinctrl-0 = <&uart1_pg_pins>, 101724ba675SRob Herring <&uart1_cts_rts_pg_pins>; 102724ba675SRob Herring status = "okay"; 103724ba675SRob Herring}; 104