drm/simpledrm: Allow physical width and height configuration via panel node
authorRayyan Ansari <rayyan@ansari.sh>
Thu, 26 Jan 2023 18:24:34 +0000 (18:24 +0000)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 31 Jan 2023 09:38:59 +0000 (10:38 +0100)
commit2a6d731a8f16192ece8e1649ca13e55d80561594
tree9c81e331734944ca14d63d4d4344aa6e49e34678
parent3524c96a121952f214271622bb372661ced86101
drm/simpledrm: Allow physical width and height configuration via panel node

Parse the width-mm and height-mm devicetree properties of the panel node,
and use this to set the DRM Display Mode instead of calculating it
based on a hardcoded DPI.

Signed-off-by: Rayyan Ansari <rayyan@ansari.sh>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20230126182435.70544-2-rayyan@ansari.sh
drivers/gpu/drm/tiny/simpledrm.c