0001 /*
0002 * Copyright 2015 Hans de Goede <hdegoede@redhat.com>
0003 * Copyright 2016 Icenowy Zheng <icenowy@aosc.xyz>
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-a33.dtsi"
0046 #include "sun8i-reference-design-tablet.dtsi"
0047
0048 / {
0049 model = "INet-D978 Rev 02";
0050 compatible = "primux,inet-d978-rev2", "allwinner,sun8i-a33";
0051
0052 aliases {
0053 serial0 = &uart1;
0054 };
0055
0056 chosen {
0057 /* Delete debug UART as serial0 is the UART for bluetooth */
0058 /delete-property/stdout-path;
0059 };
0060
0061 leds {
0062 compatible = "gpio-leds";
0063 pinctrl-names = "default";
0064 pinctrl-0 = <&led_pin_d978>;
0065
0066 led {
0067 label = "d978:blue:home";
0068 gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */
0069 };
0070 };
0071 };
0072
0073 &mmc1 {
0074 pinctrl-names = "default";
0075 pinctrl-0 = <&mmc1_pg_pins>;
0076 vmmc-supply = <®_dldo1>;
0077 bus-width = <4>;
0078 non-removable;
0079 status = "okay";
0080
0081 rtl8723bs: sdio_wifi@1 {
0082 reg = <1>;
0083 };
0084 };
0085
0086 &r_pio {
0087 led_pin_d978: led-pin {
0088 pins = "PL5";
0089 function = "gpio_out";
0090 drive-strength = <20>;
0091 };
0092 };
0093
0094 &r_uart {
0095 status = "disabled";
0096 };
0097
0098 &uart1 {
0099 pinctrl-names = "default";
0100 pinctrl-0 = <&uart1_pg_pins>,
0101 <&uart1_cts_rts_pg_pins>;
0102 status = "okay";
0103 };