Repository navigation
DPI panel configuration #4753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
DPI panel configuration #4753
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
dd2b802
drm/panel-simple: Populate bpc when using panel-dpi
6by9 ea2349b
drm/panel-simple: When using panel-dpi, update desc
6by9 3a5a6cd
drm/panel-simple: Allow the bus format to be read from DT for panel-dpi
6by9 39861f5
drm/vc4: dpi: Add option for inverting pixel clock and output enable
6by9 5f21da9
drm/vc4: dpi: Ensure a default format is selected
6by9 c569c59
dt: bcm270x: Add GPIO defines for RGB565 DPI output modes
6by9 076179d
dtoverlays: Add a generic DPI panel overlay for KMS
6by9 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92 changes: 92 additions & 0 deletions
92
arch/arm/boot/dts/overlays/vc4-kms-dpi-generic-overlay.dts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,92 @@ | ||
| /* | ||
| * vc4-kms-dpi-at056tn53v1-overlay.dts | ||
| */ | ||
|
|
||
| /dts-v1/; | ||
| /plugin/; | ||
|
|
||
| #include <dt-bindings/gpio/gpio.h> | ||
| #include <dt-bindings/pinctrl/bcm2835.h> | ||
|
|
||
| / { | ||
| compatible = "brcm,bcm2835"; | ||
|
|
||
| fragment@0 { | ||
| target-path = "/"; | ||
| __overlay__ { | ||
| panel: panel { | ||
| compatible = "panel-dpi"; | ||
|
|
||
| width-mm = <154>; | ||
| height-mm = <83>; | ||
| bus-format = <0x1009>; | ||
|
|
||
| timing: panel-timing { | ||
| clock-frequency = <29500000>; | ||
| hactive = <800>; | ||
| hfront-porch = <24>; | ||
| hsync-len = <72>; | ||
| hback-porch = <96>; | ||
| hsync-active = <0>; | ||
| vactive = <480>; | ||
| vfront-porch = <3>; | ||
| vsync-len = <10>; | ||
| vback-porch = <7>; | ||
| vsync-active = <0>; | ||
|
|
||
| de-active = <1>; | ||
| pixelclk-active = <1>; | ||
| }; | ||
|
|
||
| port { | ||
| panel_in: endpoint { | ||
| remote-endpoint = <&dpi_out>; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| fragment@1 { | ||
| target = <&dpi>; | ||
| dpi_node: __overlay__ { | ||
| status = "okay"; | ||
|
|
||
| pinctrl-names = "default"; | ||
| pinctrl-0 = <&dpi_18bit_gpio0>; | ||
|
|
||
| port { | ||
| dpi_out: endpoint { | ||
| remote-endpoint = <&panel_in>; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| __overrides__ { | ||
| clock-frequency = <&timing>, "clock-frequency:0"; | ||
| hactive = <&timing>, "hactive:0"; | ||
| hfp = <&timing>, "hfront-porch:0"; | ||
| hsync = <&timing>, "hsync-len:0"; | ||
| hbp = <&timing>, "hback-porch:0"; | ||
| vactive = <&timing>, "vactive:0"; | ||
| vfp = <&timing>, "vfront-porch:0"; | ||
| vsync = <&timing>, "vsync-len:0"; | ||
| vbp = <&timing>, "vback-porch:0"; | ||
| hsync-invert = <&timing>, "hsync-active:0=0"; | ||
| vsync-invert = <&timing>, "vsync-active:0=0"; | ||
| de-invert = <&timing>, "de-active:0=0"; | ||
| pixclk-invert = <&timing>, "pixelclk-active:0=0"; | ||
|
|
||
| width-mm = <&panel>, "width-mm:0"; | ||
| height-mm = <&panel>, "height-mm:0"; | ||
|
|
||
| rgb565 = <&panel>, "bus-format:0=0x1017", | ||
| <&dpi_node>, "pinctrl-0:0=",<&dpi_16bit_gpio0>; | ||
| rgb666-padhi = <&panel>, "bus-format:0=0x1015", | ||
| <&dpi_node>, "pinctrl-0:0=",<&dpi_18bit_cpadhi_gpio0>; | ||
| rgb888 = <&panel>, "bus-format:0=0x100a", | ||
| <&dpi_node>, "pinctrl-0:0=",<&dpi_gpio0>; | ||
| bus-format = <&panel>, "bus-format:0"; | ||
| }; | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.