0001 /*
0002 * Copyright 2015 Hans de Goede <hdegoede@redhat.com>
0003 *
0004 * This file is dual-licensed: you can use it either under the terms
0005 * of the GPL or the X11 license, at your option. Note that this dual
0006 * licensing only applies to this file, and not this project as a
0007 * whole.
0008 *
0009 * a) This file is free software; you can redistribute it and/or
0010 * modify it under the terms of the GNU General Public License as
0011 * published by the Free Software Foundation; either version 2 of the
0012 * License, or (at your option) any later version.
0013 *
0014 * This file is distributed in the hope that it will be useful,
0015 * but WITHOUT ANY WARRANTY; without even the implied warranty of
0016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0017 * GNU General Public License for more details.
0018 *
0019 * Or, alternatively,
0020 *
0021 * b) Permission is hereby granted, free of charge, to any person
0022 * obtaining a copy of this software and associated documentation
0023 * files (the "Software"), to deal in the Software without
0024 * restriction, including without limitation the rights to use,
0025 * copy, modify, merge, publish, distribute, sublicense, and/or
0026 * sell copies of the Software, and to permit persons to whom the
0027 * Software is furnished to do so, subject to the following
0028 * conditions:
0029 *
0030 * The above copyright notice and this permission notice shall be
0031 * included in all copies or substantial portions of the Software.
0032 *
0033 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
0034 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
0035 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
0036 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
0037 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
0038 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0039 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0040 * OTHER DEALINGS IN THE SOFTWARE.
0041 */
0042 #include "sunxi-reference-design-tablet.dtsi"
0043 #include "sun8i-reference-design-tablet.dtsi"
0044
0045 / {
0046 aliases {
0047 serial0 = &r_uart;
0048 /* Make u-boot set mac-address for wifi without an eeprom */
0049 ethernet0 = &sdio_wifi;
0050 };
0051
0052 panel: panel {
0053 /* Tablet dts should provide panel compatible */
0054 backlight = <&backlight>;
0055 enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */
0056 power-supply = <®_dc1sw>;
0057
0058 port {
0059 panel_input: endpoint {
0060 remote-endpoint = <&tcon0_out_lcd>;
0061 };
0062 };
0063 };
0064
0065 wifi_pwrseq: wifi_pwrseq {
0066 compatible = "mmc-pwrseq-simple";
0067 /*
0068 * Q8 boards use various PL# pins as wifi-en. On other boards
0069 * these may be connected to a wifi module output pin. To avoid
0070 * short-circuits we configure these as inputs with pull-ups via
0071 * pinctrl, instead of listing them as active-low reset-gpios.
0072 */
0073 pinctrl-names = "default";
0074 pinctrl-0 = <&wifi_pwrseq_pin_q8>;
0075 /* The esp8089 needs 200 ms after driving wifi-en high */
0076 post-power-on-delay-ms = <200>;
0077 };
0078 };
0079
0080 &de {
0081 status = "okay";
0082 };
0083
0084 &ehci0 {
0085 status = "okay";
0086 };
0087
0088 &mmc1 {
0089 pinctrl-names = "default";
0090 pinctrl-0 = <&mmc1_pg_pins>;
0091 vmmc-supply = <®_dldo1>;
0092 mmc-pwrseq = <&wifi_pwrseq>;
0093 bus-width = <4>;
0094 non-removable;
0095 status = "okay";
0096
0097 sdio_wifi: sdio_wifi@1 {
0098 reg = <1>;
0099 };
0100 };
0101
0102 &r_pio {
0103 wifi_pwrseq_pin_q8: wifi-pwrseq-pins {
0104 pins = "PL6", "PL7", "PL11";
0105 function = "gpio_in";
0106 bias-pull-up;
0107 };
0108 };
0109
0110 &tcon0 {
0111 pinctrl-names = "default";
0112 pinctrl-0 = <&lcd_rgb666_pins>;
0113 status = "okay";
0114 };
0115
0116 &usbphy {
0117 usb1_vbus-supply = <®_dldo1>;
0118 };