本帖最后由 lxz 于 2018-9-12 15:48 编辑
7.1的系统显示框架发生了变化,现在使用的drm。没有使用你上面提到的那种dtsi文件方式,官方默认代码已经支持10.1寸屏幕了,请查看git提交记录。请参考以下的配置文件:支持edp的x3399-development-board.dts文件。- /*
- * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd
- *
- * 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 <dt-bindings/input/input.h>
- #include "x3399-baseboard.dtsi"
- #include "rk3399-android.dtsi"
- #include "rk3399-vop-clk-set.dtsi"
- / {
- model = "9tripod RK3399 Development Board";
- compatible = "rockchip,android", "9tripod,x3399-development-board", "rockchip,rk3399";
- edp_panel: edp-panel {
- compatible = "samsung,ltl101dl03", "panel-simple";
- backlight = <&backlight>;
- power-supply = <&vcc3v3_s0>;
- enable-gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>;
- ports {
- panel_in_edp: endpoint {
- remote-endpoint = <&edp_out_panel>;
- };
- };
- };
- test-power {
- status = "okay";
- };
- rt5651 {
- status = "okay";
- };
- };
- &backlight {
- status = "okay";
- };
- &edp {
- status = "okay";
- ports {
- edp_out: port@1 {
- reg = <1>;
- #address-cells = <1>;
- #size-cells = <0>;
- edp_out_panel: endpoint@0 {
- reg = <0>;
- remote-endpoint = <&panel_in_edp>;
- };
- };
- };
- };
- &edp_in_vopl {
- status = "disabled";
- };
- &route_edp {
- status = "okay";
- };
- /*
- &mipi_dsi {
- status = "okay";
- panel {
- compatible ="simple-panel-dsi";
- reg = <0>;
- backlight = <&backlight>;
- enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
- dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
- MIPI_DSI_MODE_VIDEO_SYNC_PULSE)>;
- dsi,format = <MIPI_DSI_FMT_RGB888>;
- dsi,lanes = <4>;
- status = "okay";
- display-timings {
- native-mode = <&timing0>;
- timing0: timing0 {
- clock-frequency = <70000000>;
- hactive = <1024>;
- vactive = <600>;
- hback-porch = <80>;
- hfront-porch = <80>;
- vback-porch = <20>;
- vfront-porch = <12>;
- hsync-len = <2>;
- vsync-len = <3>;
- hsync-active = <0>;
- vsync-active = <0>;
- de-active = <0>;
- pixelclk-active = <0>;
- };
- };
- };
- };
- &mipi_in_vopl {
- status = "disabled";
- };
- &route_mipi {
- status = "okay";
- };
- */
- &cdn_dp {
- status = "okay";
- extcon = <&fusb0>;
- phys = <&tcphy0_dp>;
- };
- &dp_in_vopb {
- status = "okay";
- };
- &hdmi {
- status = "okay";
- };
- &hdmi_in_vopb {
- status = "disabled";
- };
- &hdmi_sound {
- status = "okay";
- };
- &i2s2 {
- status = "okay";
- };
- &i2c1 {
- status = "okay";
- gt9xx: gt9xx@14 {
- compatible = "goodix,gt9xx";
- reg = <0x14>;
- touch-gpio = <&gpio1 20 IRQ_TYPE_EDGE_RISING>;
- reset-gpio = <&gpio1 9 GPIO_ACTIVE_LOW>;
- max-x = <2560>;
- max-y = <1600>;
- tp-size = <101>;
- };
- /*
- gslx680@40 {
- compatible = "9tripod,gslx680";
- reg = <0x40>;
- touch-gpio = <&gpio1 20 IRQ_TYPE_EDGE_RISING>;
- reset-gpio = <&gpio1 9 GPIO_ACTIVE_LOW>;
- max-x = <1024>;
- max-y = <600>; */
- };
- };
- &pwm3 {
- status = "okay";
- interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH 0>;
- compatible = "rockchip,remotectl-pwm";
- remote_pwm_id = <3>;
- handle_cpu_id = <0>;
- ir_key0 {
- rockchip,usercode = <0xff40>;
- rockchip,key_table =
- <0xb2 KEY_POWER>,
- <0xe5 KEY_HOME>,
- <0xbd KEY_BACK>,
- <0xba KEY_MENU>,
- <0xf4 KEY_UP>,
- <0xf1 KEY_DOWN>,
- <0xef KEY_LEFT>,
- <0xee KEY_RIGHT>,
- <0xf2 KEY_ENTER>,
- <0xf0 KEY_REPLY>,
- <0xea KEY_VOLUMEUP>,
- <0xe3 KEY_VOLUMEDOWN>,
- <0xbc KEY_MUTE>,
- <0xfe KEY_1>,
- <0xfd KEY_2>,
- <0xfc KEY_3>,
- <0xfb KEY_4>,
- <0xfa KEY_5>,
- <0xf9 KEY_6>,
- <0xf8 KEY_7>,
- <0xf7 KEY_8>,
- <0xb6 KEY_9>,
- <0xff KEY_0>,
- <0xed KEY_BACKSPACE>,
- <0xaf KEY_POWER>,
- <0x8b KEY_VOLUMEUP>,
- <0xb9 KEY_VOLUMEDOWN>;
- };
- };
- &vopb {
- assigned-clocks = <&cru DCLK_VOP0_DIV>;
- assigned-clock-parents = <&cru PLL_CPLL>;
- };
- &vopl {
- assigned-clocks = <&cru DCLK_VOP1_DIV>;
- assigned-clock-parents = <&cru PLL_VPLL>;
- };
- &isp0 {
- status = "okay";
- };
- &isp1 {
- status = "okay";
- };
- &isp0_mmu {
- status = "okay";
- };
- &isp1_mmu {
- status = "okay";
- };
- &pinctrl {
- lcd-panel {
- lcd_panel_reset: lcd-panel-reset {
- rockchip,pins = <4 30 RK_FUNC_GPIO &pcfg_pull_up>;
- };
- };
- };
复制代码
|