Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- commit 516b2eecd12b855859c3c11757a2a15e2cc1b90e
- Author: Icenowy Zheng <icenowy@aosc.xyz>
- Date: Mon Sep 5 10:09:40 2016 +0800
- UGLY: test q8
- diff --git a/arch/arm/boot/dts/sun8i-a33-q8-tablet.dts b/arch/arm/boot/dts/sun8i-a33-q8-tablet.dts
- index b0bc236..10526a1 100644
- --- a/arch/arm/boot/dts/sun8i-a33-q8-tablet.dts
- +++ b/arch/arm/boot/dts/sun8i-a33-q8-tablet.dts
- @@ -47,4 +47,38 @@
- / {
- model = "Q8 A33 Tablet";
- compatible = "allwinner,q8-a33", "allwinner,sun8i-a33";
- +
- + panel {
- + compatible = "allwinner,q8-800x480";
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + port@0 {
- + reg = <0>;
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + panel_input: endpoint@0 {
- + reg = <0>;
- + remote-endpoint = <&tcon0_out_panel>;
- + };
- + };
- + };
- +};
- +
- +&de {
- + status = "okay";
- +};
- +
- +&tcon0 {
- + pinctrl-names = "default";
- + pinctrl-0 = <&tcon0_rgb666_pins_a>;
- + status = "okay";
- +};
- +
- +&tcon0_out {
- + tcon0_out_panel: endpoint@0 {
- + reg = <0>;
- + remote-endpoint = <&panel_input>;
- + };
- };
- diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
- index af142e8..0e416bb 100644
- --- a/drivers/gpu/drm/panel/panel-simple.c
- +++ b/drivers/gpu/drm/panel/panel-simple.c
- @@ -1432,6 +1432,29 @@ static const struct panel_desc sinlinx_sina33_lcd_7 = {
- .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
- };
- +static const struct drm_display_mode allwinner_q8_800480_mode = {
- + .clock = 33000,
- + .hdisplay = 800,
- + .hsync_start = 800 + 87,
- + .hsync_end = 800 + 87 + 167,
- + .htotal = 800 + 87 + 167 + 1,
- + .vdisplay = 480,
- + .vsync_start = 480 + 31,
- + .vsync_end = 480 + 31 + 13,
- + .vtotal = 480 + 31 + 13 + 1,
- + .vrefresh = 60,
- +};
- +
- +static const struct panel_desc allwinner_q8_800480 = {
- + .modes = &allwinner_q8_800480_mode,
- + .num_modes = 1,
- + .size = {
- + .width = 154,
- + .height = 87,
- + },
- + .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
- +};
- +
- static const struct drm_display_mode starry_kr122ea0sra_mode = {
- .clock = 147000,
- .hdisplay = 1920,
- @@ -1541,6 +1564,9 @@ static const struct of_device_id platform_of_match[] = {
- .compatible = "ampire,am800480r3tmqwa1h",
- .data = &ire_am800480r3tmqwa1h,
- }, {
- + .compatible = "allwinner,q8-800x480",
- + .data = &allwinner_q8_800480,
- + }, {
- .compatible = "auo,b101aw03",
- .data = &auo_b101aw03,
- }, {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement