Hello, during my quest on a working LCD panel DRM setup, i think i spotted 
a typo here:
 
https://github.com/linux-sunxi/linux-sunxi/blob/sunxi-next/arch/arm/boot/dts/sun7i-a20.dtsi#L1357
 ?

the remote-endpoint should be, for symmetry, "tcon0_in_be1" instead of 
currently "tcon1_in_be0"

is this right? should i send a patch for this minor fix?

with regard to DTS test for panel, i've tried this patch too 
<https://groups.google.com/forum/#!topic/linux-sunxi/6dZVBtNgh5Q> but it 
doesn't "trigger" the DRI card! " ARM: dts: sun8i: enable LCD panel of 
Lichee Pi Zero"

 arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts | 36 
+++++++++++++++++++++++++++ 
 1 file changed, 36 insertions(+) 

diff --git a/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts 
b/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts 
index 387fc2aa546d..7ae72bf63cd0 100644 
--- a/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts 
+++ b/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts 
@@ -75,6 +75,28 @@ 
                         gpios = <&pio 6 2 GPIO_ACTIVE_LOW>; /* PG2 */ 
                 }; 
         }; 
+ 
+        panel: panel { 
+                compatible = "qiaodian,qd43003c0-40", "simple-panel"; 
+                enable-gpios = <&pio 1 4 GPIO_ACTIVE_HIGH>; /* Should be 
backlight */ 
+                #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_lcd>; 
+                        }; 
+                }; 
+        }; 
+}; 
+ 
+&de { 
+        status = "okay"; 
 }; 
  
 &mmc0 { 
@@ -86,6 +108,20 @@ 
         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>; 
+        }; 
+}; 
+ 
 &uart0 { 
         pinctrl-0 = <&uart0_pins_a>; 
         pinctrl-names = "default"; 
-- 
2.12.0 

the dmesg log says:

...
[    0.698093] calling  of_platform_serial_driver_init+0x0/0x28 @ 1
[    0.698600] initcall of_platform_serial_driver_init+0x0/0x28 returned 0 
after 482 usecs
[    0.698611] calling  drm_kms_helper_init+0x0/0x20 @ 1
[    0.698622] initcall drm_kms_helper_init+0x0/0x20 returned 0 after 0 
usecs
[    0.698631] calling  drm_core_init+0x0/0x108 @ 1
[    0.698702] [drm:drm_core_init] Initialized
[    0.698714] initcall drm_core_init+0x0/0x108 returned 0 after 70 usecs
[    0.698724] calling  sun4i_drv_platform_driver_init+0x0/0x28 @ 1
[    0.699035] [drm:sun4i_drv_probe] Adding component 
/soc@1c00000/display-backend@1e60000
[    0.699089] [drm:sun4i_drv_probe] Adding component 
/soc@1c00000/display-backend@1e40000
[    0.699133] [drm:sun4i_drv_probe] Adding component 
/soc@1c00000/display-backend@1e60000
[    0.699174] [drm:sun4i_drv_probe] Adding component 
/soc@1c00000/display-backend@1e40000
[    0.699216] [drm:sun4i_drv_probe] Adding component 
/soc@1c00000/lcd-controller@1c0c000
[    0.699262] [drm:sun4i_drv_probe] Endpoint is our panel... skipping
[    0.699282] [drm:sun4i_drv_probe] Adding component 
/soc@1c00000/lcd-controller@1c0d000
[    0.699318] [drm:sun4i_drv_probe] Adding component 
/soc@1c00000/lcd-controller@1c0c000
[    0.699358] [drm:sun4i_drv_probe] Endpoint is our panel... skipping
[    0.699376] [drm:sun4i_drv_probe] Adding component 
/soc@1c00000/lcd-controller@1c0d000
[    0.699410] [drm:sun4i_drv_probe] Adding component 
/soc@1c00000/lcd-controller@1c0c000
[    0.699448] [drm:sun4i_drv_probe] Endpoint is our panel... skipping
[    0.699467] [drm:sun4i_drv_probe] Adding component 
/soc@1c00000/lcd-controller@1c0d000
[    0.699501] [drm:sun4i_drv_probe] Adding component 
/soc@1c00000/lcd-controller@1c0c000
[    0.699539] [drm:sun4i_drv_probe] Endpoint is our panel... skipping
[    0.699558] [drm:sun4i_drv_probe] Adding component 
/soc@1c00000/lcd-controller@1c0d000
[    0.700055] initcall sun4i_drv_platform_driver_init+0x0/0x28 returned 0 
after 1280 usecs
[    0.700066] calling  sun4i_tcon_platform_driver_init+0x0/0x28 @ 1
[    0.700877] [drm:compare_of] Comparing of node 
/soc@1c00000/lcd-controller@1c0d000 with 
/soc@1c00000/display-backend@1e60000
[    0.701221] initcall sun4i_tcon_platform_driver_init+0x0/0x28 returned 0 
after 1114 usecs
[    0.701234] calling  sun4i_tv_platform_driver_init+0x0/0x28 @ 1
[    0.701373] initcall sun4i_tv_platform_driver_init+0x0/0x28 returned 0 
after 124 usecs
[    0.701383] calling  sun6i_drc_platform_driver_init+0x0/0x28 @ 1
[    0.701575] initcall sun6i_drc_platform_driver_init+0x0/0x28 returned 0 
after 177 usecs
[    0.701585] calling  sun4i_backend_platform_driver_init+0x0/0x28 @ 1
[    0.701829] [drm:compare_of] Comparing of node 
/soc@1c00000/lcd-controller@1c0d000 with 
/soc@1c00000/display-backend@1e60000
[    0.701841] [drm:compare_of] Comparing of node 
/soc@1c00000/display-backend@1e40000 with 
/soc@1c00000/display-backend@1e60000
[    0.701918] [drm:compare_of] Comparing of node 
/soc@1c00000/lcd-controller@1c0d000 with 
/soc@1c00000/display-backend@1e60000
[    0.701929] [drm:compare_of] Comparing of node 
/soc@1c00000/display-backend@1e40000 with 
/soc@1c00000/display-backend@1e60000
[    0.701940] [drm:compare_of] Comparing of node 
/soc@1c00000/display-backend@1e60000 with 
/soc@1c00000/display-backend@1e60000
[    0.701950] [drm:compare_of] Comparing of node 
/soc@1c00000/lcd-controller@1c0d000 with 
/soc@1c00000/display-backend@1e40000
[    0.701960] [drm:compare_of] Comparing of node 
/soc@1c00000/display-backend@1e40000 with 
/soc@1c00000/display-backend@1e40000
[    0.701970] [drm:compare_of] Comparing of node 
/soc@1c00000/lcd-controller@1c0d000 with 
/soc@1c00000/display-backend@1e60000
[    0.701980] [drm:compare_of] Comparing of node 
/soc@1c00000/display-backend@1e40000 with 
/soc@1c00000/display-backend@1e60000
[    0.701991] [drm:compare_of] Comparing of node 
/soc@1c00000/display-backend@1e60000 with 
/soc@1c00000/display-backend@1e60000
[    0.702001] [drm:compare_of] Comparing of node 
/soc@1c00000/lcd-controller@1c0d000 with 
/soc@1c00000/display-backend@1e40000
[    0.702011] [drm:compare_of] Comparing of node 
/soc@1c00000/display-backend@1e40000 with 
/soc@1c00000/display-backend@1e40000
[    0.702021] [drm:compare_of] Comparing of node 
/soc@1c00000/lcd-controller@1c0d000 with /soc@1c00000/lcd-controller@1c0c000
[    0.702031] [drm:compare_of] Comparing of node 
/soc@1c00000/display-backend@1e40000 with 
/soc@1c00000/lcd-controller@1c0c000
[    0.702041] [drm:compare_of] Comparing of node 
/soc@1c00000/display-backend@1e60000 with 
/soc@1c00000/lcd-controller@1c0c000
[    0.702143] initcall sun4i_backend_platform_driver_init+0x0/0x28 
returned 0 after 532 usecs
[    0.702153] calling  sun4i_hdmi_driver_init+0x0/0x28 @ 1
[    0.702355] initcall sun4i_hdmi_driver_init+0x0/0x28 returned 0 after 
184 usecs
[    0.702365] calling  sun8i_mixer_platform_driver_init+0x0/0x28 @ 1
[    0.702505] initcall sun8i_mixer_platform_driver_init+0x0/0x28 returned 
0 after 122 usecs
[    0.702514] calling  dumb_vga_driver_init+0x0/0x28 @ 1
[    0.702670] initcall dumb_vga_driver_init+0x0/0x28 returned 0 after 140 
usecs
[    0.702682] calling  topology_sysfs_init+0x0/0x50 @ 1
...

i fail to find a "kwnon working" DTS DRM cfg for or panel.. anyone?

how can i improve the debugging of DRM init steps? what am i missing?


Il giorno mercoledì 20 dicembre 2017 13:01:14 UTC+1, Andrea Venturi ha 
scritto:
>
> hello,
>
> i've just checked sunxi-next git kernel tree and i didn't found any DTS 
> for sun7i A20 tablets with LCD+HDMI support.. does anyone knows if there 
> are samples on other trees?
>
> bye
>
> andrea
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to