Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Copyright 2021 Jacek Pruciak <[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 "sun6i-a31s.dtsi"
- #include "sun6i-reference-design-tablet.dtsi"
- //#include <dt-bindings/pwm/pwm.h>
- / {
- model = "GoClever Orion 70L";
- compatible = "goclever,gcta741l", "allwinner,sun6i-a31s";
- panel {
- compatible = "hannstar,tqtm070cb501";
- power-supply = <®_dc1sw>;
- // backlight = <&backlight>;
- port {
- panel_input: endpoint {
- remote-endpoint = <&tcon0_out_lcd>;
- };
- };
- };
- // PWM not supported by sun6i at the moment
- //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 = <8>;
- // enable-gpios = <&pio 0 25 GPIO_ACTIVE_HIGH>; /* PA25 */
- //};
- };
- &usb_otg {
- dr_mode = "otg";
- };
- &battery_power_supply {
- status = "okay";
- };
- &lradc {
- vref-supply = <®_aldo3>;
- status = "okay";
- button-1000 {
- label = "Home";
- linux,code = <KEY_HOMEPAGE>;
- channel = <0>;
- voltage = <1000000>;
- };
- };
- &i2c2 {
- status = "okay";
- accelerometer@4c {
- compatible = "fsl,mma7660";
- reg = <0x4c>;
- interrupt-parent = <&pio>;
- interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH>; /* PA9 */
- mount-matrix = "0", "1", "0",
- "1", "0", "0",
- "0", "0", "1";
- };
- };
- &tcon0 {
- pinctrl-names = "default";
- pinctrl-0 = <&lcd0_rgb888_pins>;
- status = "okay";
- };
- &tcon0_out {
- tcon0_out_lcd: endpoint@0 {
- reg = <0>;
- remote-endpoint = <&panel_input>;
- };
- };
- &de {
- status = "okay";
- };
- &simplefb_lcd {
- status = "okay";
- };
- /*
- Audio pins on the SoC:
- "HP"
- "HPCOM" hp amplifier
- "LINEIN" (not on sun8i-v3s)
- "LINEOUT" (not on sun8i-a23 or sun8i-v3s)
- "MIC1"
- "MIC2" (not on sun8i-v3s)
- "MIC3" (sun6i-a31 only)
- Microphone biases from the SoC:
- "HBIAS"
- "MBIAS" (not on sun8i-v3s)
- Board connectors:
- "Headphone"
- "Headset Mic"
- "Line In"
- "Line Out"
- "Mic"
- "Speaker"
- */
- &codec {
- allwinner,audio-routing =
- /* sink, source */
- "Headphone", "HPCOM",
- "Speaker", "LINEOUT",
- "MIC1", "Mic",
- "MIC2", "Headset Mic",
- "Mic", "MBIAS",
- "Headset Mic", "HBIAS";
- allwinner,pa-gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
- //allwinner,pa-gpios = <&pio 7 22 GPIO_ACTIVE_HIGH>; /* PH22 */
- status = "okay";
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement