Skip to content
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

Fix up rotation support for panels #6113

Merged
merged 4 commits into from
Apr 25, 2024
Merged

Commits on Apr 19, 2024

  1. drm/panel: Add and initialise an orientation field to drm_panel from OF

    "rotation" is listed as a standard property of panels in panel-common.yaml,
    therefore it would be logical to process that from within the core
    code should a panel driver not implement the get_orientation hook.
    
    Call of_drm_get_panel_orientation from
    drm_connector_set_orientation_from_panel to get that information.
    
    This removes the need for any boiler-plate in panel drivers for calling
    drm_connector_set_orientation_from_panel or
    drm_connector_set_panel_orientation.
    
    Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
    6by9 committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    6d7d4ed View commit details
    Browse the repository at this point in the history
  2. Revert "drm/panel-simple: hack ignore orientation"

    This reverts commit 1b2a736.
    6by9 committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    7b4645a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b44d092 View commit details
    Browse the repository at this point in the history
  4. drm/panel-simple: Remove custom handling of orientation

    The framework now handles reading orientation from DT, therefore
    remove the custom get_orientation hook from panel-simple.
    
    Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
    6by9 committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    769c64e View commit details
    Browse the repository at this point in the history