1*8e71a7ebSIcenowy Zheng/* 2*8e71a7ebSIcenowy Zheng * Copyright 2015 Hans de Goede <hdegoede@redhat.com> 3*8e71a7ebSIcenowy Zheng * Copyright 2016 Icenowy Zheng <icenowy@aosc.xyz> 4*8e71a7ebSIcenowy Zheng * 5*8e71a7ebSIcenowy Zheng * This file is dual-licensed: you can use it either under the terms 6*8e71a7ebSIcenowy Zheng * of the GPL or the X11 license, at your option. Note that this dual 7*8e71a7ebSIcenowy Zheng * licensing only applies to this file, and not this project as a 8*8e71a7ebSIcenowy Zheng * whole. 9*8e71a7ebSIcenowy Zheng * 10*8e71a7ebSIcenowy Zheng * a) This file is free software; you can redistribute it and/or 11*8e71a7ebSIcenowy Zheng * modify it under the terms of the GNU General Public License as 12*8e71a7ebSIcenowy Zheng * published by the Free Software Foundation; either version 2 of the 13*8e71a7ebSIcenowy Zheng * License, or (at your option) any later version. 14*8e71a7ebSIcenowy Zheng * 15*8e71a7ebSIcenowy Zheng * This file is distributed in the hope that it will be useful, 16*8e71a7ebSIcenowy Zheng * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*8e71a7ebSIcenowy Zheng * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*8e71a7ebSIcenowy Zheng * GNU General Public License for more details. 19*8e71a7ebSIcenowy Zheng * 20*8e71a7ebSIcenowy Zheng * Or, alternatively, 21*8e71a7ebSIcenowy Zheng * 22*8e71a7ebSIcenowy Zheng * b) Permission is hereby granted, free of charge, to any person 23*8e71a7ebSIcenowy Zheng * obtaining a copy of this software and associated documentation 24*8e71a7ebSIcenowy Zheng * files (the "Software"), to deal in the Software without 25*8e71a7ebSIcenowy Zheng * restriction, including without limitation the rights to use, 26*8e71a7ebSIcenowy Zheng * copy, modify, merge, publish, distribute, sublicense, and/or 27*8e71a7ebSIcenowy Zheng * sell copies of the Software, and to permit persons to whom the 28*8e71a7ebSIcenowy Zheng * Software is furnished to do so, subject to the following 29*8e71a7ebSIcenowy Zheng * conditions: 30*8e71a7ebSIcenowy Zheng * 31*8e71a7ebSIcenowy Zheng * The above copyright notice and this permission notice shall be 32*8e71a7ebSIcenowy Zheng * included in all copies or substantial portions of the Software. 33*8e71a7ebSIcenowy Zheng * 34*8e71a7ebSIcenowy Zheng * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 35*8e71a7ebSIcenowy Zheng * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 36*8e71a7ebSIcenowy Zheng * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 37*8e71a7ebSIcenowy Zheng * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 38*8e71a7ebSIcenowy Zheng * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 39*8e71a7ebSIcenowy Zheng * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 40*8e71a7ebSIcenowy Zheng * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 41*8e71a7ebSIcenowy Zheng * OTHER DEALINGS IN THE SOFTWARE. 42*8e71a7ebSIcenowy Zheng */ 43*8e71a7ebSIcenowy Zheng 44*8e71a7ebSIcenowy Zheng/dts-v1/; 45*8e71a7ebSIcenowy Zheng#include "sun8i-a33.dtsi" 46*8e71a7ebSIcenowy Zheng#include "sun8i-reference-design-tablet.dtsi" 47*8e71a7ebSIcenowy Zheng 48*8e71a7ebSIcenowy Zheng/ { 49*8e71a7ebSIcenowy Zheng model = "INet-D978 Rev 02"; 50*8e71a7ebSIcenowy Zheng compatible = "primux,inet-d978-rev2", "allwinner,sun8i-a33"; 51*8e71a7ebSIcenowy Zheng 52*8e71a7ebSIcenowy Zheng leds { 53*8e71a7ebSIcenowy Zheng compatible = "gpio-leds"; 54*8e71a7ebSIcenowy Zheng pinctrl-names = "default"; 55*8e71a7ebSIcenowy Zheng pinctrl-0 = <&led_pin_d978>; 56*8e71a7ebSIcenowy Zheng 57*8e71a7ebSIcenowy Zheng home { 58*8e71a7ebSIcenowy Zheng label = "d978:blue:home"; 59*8e71a7ebSIcenowy Zheng gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */ 60*8e71a7ebSIcenowy Zheng }; 61*8e71a7ebSIcenowy Zheng }; 62*8e71a7ebSIcenowy Zheng}; 63*8e71a7ebSIcenowy Zheng 64*8e71a7ebSIcenowy Zheng&mmc1_pins_a { 65*8e71a7ebSIcenowy Zheng allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; 66*8e71a7ebSIcenowy Zheng}; 67*8e71a7ebSIcenowy Zheng 68*8e71a7ebSIcenowy Zheng&mmc1 { 69*8e71a7ebSIcenowy Zheng pinctrl-names = "default"; 70*8e71a7ebSIcenowy Zheng pinctrl-0 = <&mmc1_pins_a>; 71*8e71a7ebSIcenowy Zheng vmmc-supply = <®_dldo1>; 72*8e71a7ebSIcenowy Zheng bus-width = <4>; 73*8e71a7ebSIcenowy Zheng non-removable; 74*8e71a7ebSIcenowy Zheng status = "okay"; 75*8e71a7ebSIcenowy Zheng 76*8e71a7ebSIcenowy Zheng rtl8723bs: sdio_wifi@1 { 77*8e71a7ebSIcenowy Zheng reg = <1>; 78*8e71a7ebSIcenowy Zheng }; 79*8e71a7ebSIcenowy Zheng}; 80*8e71a7ebSIcenowy Zheng 81*8e71a7ebSIcenowy Zheng&r_pio { 82*8e71a7ebSIcenowy Zheng led_pin_d978: led_pin_d978@0 { 83*8e71a7ebSIcenowy Zheng allwinner,pins = "PL5"; 84*8e71a7ebSIcenowy Zheng allwinner,function = "gpio_out"; 85*8e71a7ebSIcenowy Zheng allwinner,drive = <SUN4I_PINCTRL_20_MA>; 86*8e71a7ebSIcenowy Zheng allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; 87*8e71a7ebSIcenowy Zheng }; 88*8e71a7ebSIcenowy Zheng}; 89