Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Copyright 2015 Hans de Goede <[email protected]>
- *
- * This file is dual-licensed: you can use it either under the terms
- * of the GPL or the X11 license, at your option. Note that this dual
- * licensing only applies to this file, and not this project as a
- * whole.
- *
- * a) This file is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of the
- * License, or (at your option) any later version.
- *
- * This file is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * Or, alternatively,
- *
- * b) Permission is hereby granted, free of charge, to any person
- * obtaining a copy of this software and associated documentation
- * files (the "Software"), to deal in the Software without
- * restriction, including without limitation the rights to use,
- * copy, modify, merge, publish, distribute, sublicense, and/or
- * sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following
- * conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
- * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- * OTHER DEALINGS IN THE SOFTWARE.
- */
- /dts-v1/;
- #include "sun8i-a33.dtsi"
- #include "sun8i-q8-common.dtsi"
- / {
- model = "Q8 A33 Tablet";
- compatible = "allwinner,q8-a33", "allwinner,sun8i-a33";
- pwm_bl: backlight {
- compatible = "pwm-backlight";
- pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
- brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
- default-brightness-level = <1>;
- enable-gpios = <&pio 7 6 GPIO_ACTIVE_HIGH>; /* PH6 */
- };
- };
- &de {
- status = "okay";
- };
- &dphy {
- status = "okay";
- };
- &tcon0 {
- pinctrl-names = "default";
- pinctrl-0 = <&lcd_rgb666_pins>;
- status = "okay";
- };
- &tcon0_out {
- tcon0_out_lcd: endpoint@0 {
- reg = <0>;
- remote-endpoint = <&panel_input>;
- };
- };
- &dsi {
- vcc-dsi-supply = <®_dldo1>;
- status = "okay";
- panel@0 {
- compatible = "feixin,k101-im2ba02";
- reg = <0>;
- avdd-supply = <®_dc1sw>;
- dvdd-supply = <®_dc1sw>;
- cvdd-supply = <®_ldo_io1>;
- reset-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH07 */
- backlight = <&pwm_bl>;
- };
- };
- &codec {
- status = "okay";
- };
- &sound {
- status = "okay";
- simple-audio-card,aux-devs = <&codec_analog>;
- link_codec: simple-audio-card,codec {
- sound-dai = <&codec>;
- };
- };
- &dai {
- status = "okay";
- };
- &ac_power_supply {
- status = "okay";
- };
- &battery_power_supply {
- status = "okay";
- };
- &ehci0 {
- status = "okay";
- };
- &ohci0 {
- status = "okay";
- };
- &usb_otg {
- dr_mode = "otg";
- status = "okay";
- };
- &usb_power_supply {
- status = "okay";
- };
- &usbphy {
- pinctrl-names = "default";
- //pinctrl-0 = <&usb0_id_detect_pin>;
- usb0_id_det-gpios = <&pio 7 8 GPIO_ACTIVE_HIGH>; /* PH8 */
- usb0_vbus_power-supply = <&usb_power_supply>;
- usb0_vbus-supply = <®_drivevbus>;
- status = "okay";
- };
- &r_rsb {
- status = "okay";
- };
- &touchscreen {
- reg = <0x40>;
- compatible = "silead,gsl3675";
- firmware-name = "gsl3676_1280800_ogs_dz.fw";
- touchscreen-size-x = <800>;
- touchscreen-size-y = <1280>;
- touchscreen-inverted-x;
- touchscreen-inverted-y;
- vddio-supply = <®_ldo_io1>;
- status = "okay";
- };
- &mmc1 {
- pinctrl-names = "default";
- pinctrl-0 = <&mmc1_pg_pins>;
- vmmc-supply = <®_dldo1>;
- mmc-pwrseq = <&wifi_pwrseq>;
- bus-width = <4>;
- non-removable;
- status = "okay";
- };
- &i2c1 {
- status = "okay";
- bma223: accelerometer@19 {
- compatible = "bosch,bma222e";
- reg = <0x19>;
- interrupt-parent = <&pio>;
- interrupts = <1 6 IRQ_TYPE_EDGE_RISING>; /* PB06 / EINT6 */
- };
- };
- &pwm {
- status = "okay";
- };
Advertisement
Add Comment
Please, Sign In to add comment