156f5eb40SHans de Goede/*
256f5eb40SHans de Goede * Copyright 2015 Hans de Goede <hdegoede@redhat.com>
356f5eb40SHans de Goede *
456f5eb40SHans de Goede * This file is dual-licensed: you can use it either under the terms
556f5eb40SHans de Goede * of the GPL or the X11 license, at your option. Note that this dual
656f5eb40SHans de Goede * licensing only applies to this file, and not this project as a
756f5eb40SHans de Goede * whole.
856f5eb40SHans de Goede *
956f5eb40SHans de Goede *  a) This file is free software; you can redistribute it and/or
1056f5eb40SHans de Goede *     modify it under the terms of the GNU General Public License as
1156f5eb40SHans de Goede *     published by the Free Software Foundation; either version 2 of the
1256f5eb40SHans de Goede *     License, or (at your option) any later version.
1356f5eb40SHans de Goede *
1456f5eb40SHans de Goede *     This file is distributed in the hope that it will be useful,
1556f5eb40SHans de Goede *     but WITHOUT ANY WARRANTY; without even the implied warranty of
1656f5eb40SHans de Goede *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1756f5eb40SHans de Goede *     GNU General Public License for more details.
1856f5eb40SHans de Goede *
1956f5eb40SHans de Goede * Or, alternatively,
2056f5eb40SHans de Goede *
2156f5eb40SHans de Goede *  b) Permission is hereby granted, free of charge, to any person
2256f5eb40SHans de Goede *     obtaining a copy of this software and associated documentation
2356f5eb40SHans de Goede *     files (the "Software"), to deal in the Software without
2456f5eb40SHans de Goede *     restriction, including without limitation the rights to use,
2556f5eb40SHans de Goede *     copy, modify, merge, publish, distribute, sublicense, and/or
2656f5eb40SHans de Goede *     sell copies of the Software, and to permit persons to whom the
2756f5eb40SHans de Goede *     Software is furnished to do so, subject to the following
2856f5eb40SHans de Goede *     conditions:
2956f5eb40SHans de Goede *
3056f5eb40SHans de Goede *     The above copyright notice and this permission notice shall be
3156f5eb40SHans de Goede *     included in all copies or substantial portions of the Software.
3256f5eb40SHans de Goede *
3356f5eb40SHans de Goede *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
3456f5eb40SHans de Goede *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
3556f5eb40SHans de Goede *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
3656f5eb40SHans de Goede *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
3756f5eb40SHans de Goede *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
3856f5eb40SHans de Goede *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
3956f5eb40SHans de Goede *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
4056f5eb40SHans de Goede *     OTHER DEALINGS IN THE SOFTWARE.
4156f5eb40SHans de Goede */
4256f5eb40SHans de Goede
4356f5eb40SHans de Goede/dts-v1/;
4456f5eb40SHans de Goede#include "sun5i-a13.dtsi"
45*860fbdd4SHans de Goede#include "sun5i-reference-design-tablet.dtsi"
4656f5eb40SHans de Goede
4756f5eb40SHans de Goede/ {
4856f5eb40SHans de Goede	model = "Q8 A13 Tablet";
4956f5eb40SHans de Goede	compatible = "allwinner,q8-a13", "allwinner,sun5i-a13";
50*860fbdd4SHans de Goede
51*860fbdd4SHans de Goede	panel: panel {
52*860fbdd4SHans de Goede		compatible = "urt,umsh-8596md-t", "simple-panel";
53*860fbdd4SHans de Goede		#address-cells = <1>;
54*860fbdd4SHans de Goede		#size-cells = <0>;
55*860fbdd4SHans de Goede
56*860fbdd4SHans de Goede		port@0 {
57*860fbdd4SHans de Goede			reg = <0>;
58*860fbdd4SHans de Goede			/* TODO: lcd panel uses axp gpio0 as enable pin */
59*860fbdd4SHans de Goede			backlight = <&backlight>;
60*860fbdd4SHans de Goede			#address-cells = <1>;
61*860fbdd4SHans de Goede			#size-cells = <0>;
62*860fbdd4SHans de Goede
63*860fbdd4SHans de Goede			panel_input: endpoint@0 {
64*860fbdd4SHans de Goede				reg = <0>;
65*860fbdd4SHans de Goede				remote-endpoint = <&tcon0_out_lcd>;
66*860fbdd4SHans de Goede			};
67*860fbdd4SHans de Goede		};
68*860fbdd4SHans de Goede	};
6956f5eb40SHans de Goede};
7056f5eb40SHans de Goede
71*860fbdd4SHans de Goede&be0 {
72*860fbdd4SHans de Goede	status = "okay";
7356f5eb40SHans de Goede};
7456f5eb40SHans de Goede
75*860fbdd4SHans de Goede&tcon0 {
76*860fbdd4SHans de Goede	pinctrl-names = "default";
77*860fbdd4SHans de Goede	pinctrl-0 = <&lcd_rgb666_pins>;
78*860fbdd4SHans de Goede	status = "okay";
79*860fbdd4SHans de Goede};
80*860fbdd4SHans de Goede
81*860fbdd4SHans de Goede&tcon0_out {
82*860fbdd4SHans de Goede	tcon0_out_lcd: endpoint@0 {
83*860fbdd4SHans de Goede		reg = <0>;
84*860fbdd4SHans de Goede		remote-endpoint = <&panel_input>;
85*860fbdd4SHans de Goede	};
8656f5eb40SHans de Goede};
87