From patchwork Tue Jul 9 22:58:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Derek Basehore X-Patchwork-Id: 11037543 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6B29C14C0 for ; Tue, 9 Jul 2019 22:58:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A898288BF for ; Tue, 9 Jul 2019 22:58:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4E2C6288CF; Tue, 9 Jul 2019 22:58:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F2B07288BF for ; Tue, 9 Jul 2019 22:58:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=60Pf74iG0CEaNTqgejBERkBWKb/RMTudVXV8Xh1IZTg=; b=OG/4UAz+dtXdJd SK89ZXsI5+i/iRl2q8X9MX7sDQ/eBwA9zWz/h8B6SImGX0Utkl7TNJyKwN7dhntAh/4rLfw8/NDzO 4vHOZElGnMltNYVAb9YKgaiAl/X9I3PnotHxINpSe5jxf1Avjd/bMPWIxEHESCTwV/Eyj3up+38Ca lIlLsNJEVmK1PAw9UHKDc0s7qfyUPsGtxt6JPInG06XGrfj0oaZZrXTYj39mY0oGvWdG3dx4iJD2/ 2ciqWdY/o1KdIM6j4PfYq566AiG72cQO8yKloqyDSn0Q0UpALQiOXbActSTgBnT01EumXFHHfCbCX 4/CxBbHeK+2EPPQs7mDw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hkz4V-0001q6-8K; Tue, 09 Jul 2019 22:58:51 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hkz4Q-0001o1-Fq for linux-arm-kernel@lists.infradead.org; Tue, 09 Jul 2019 22:58:47 +0000 Received: by mail-pg1-x542.google.com with SMTP id m4so203082pgk.0 for ; Tue, 09 Jul 2019 15:58:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VfBNRjMW96lNOTO1+wc8G+mqG3/RxD26VY8ohNb7l7s=; b=g+2aDXwaj0DzsFicoZrXvoungL+MWOPC0VtEH2gPXuj8zlNnwwgyIhkxF0bkqpoWcm 8TboO6bKfQEBXG8g8wp2IMRGW/TvAviOydq287DyBpvxHMXEz6+WOc0/hqAIcJYCcTju BoRstaqm8JPuzjtT4y8KqxFrOGp53xRR93cJ8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VfBNRjMW96lNOTO1+wc8G+mqG3/RxD26VY8ohNb7l7s=; b=fhkthFL7M2agR38NCK7VFOngtyeMzQ0iyCSp3lCRKzLmZMFYvkMRt/Ty2w8Z6Pkk89 udyajNqrJ4z7Rne97KmyFA/tYI2q4Por5ri++/KaLgZcSpv6cowUuqmkd1hxI8BVNjsc Z4Kf8wsrnRGwie+5CVLjoGk2fAG4clXq6mj4z1wVmOd8gSZP/ZcfUAQHgThrAp8NoXXW JTjGO7U2kpfw+W1kETFEbyNO7Cq/cl+4t+sUhOXkcELr25zEFTp1aEp8+40UK88fALvi UxYbO6YUdzuo0XivB2m9pgMfKQbkpxfnPqMKzij2LpD+gIdAal9zO8oAkl2UBIOffCiv 1iJQ== X-Gm-Message-State: APjAAAVIeHCBOc3RZ5KFYNYSjOgwwr3J1P17I+HG+/DtGKPK3O47yHvt AHJzcdeE0y3aFJ6S16GGGj2tRxU+Eno= X-Google-Smtp-Source: APXvYqzHCjdRgs8T2Gzw/2FP8RssoOjRLpdQrKxiGCNwSt8p03lTof0IAKIZqNN5ejjfFbu9SwHkpQ== X-Received: by 2002:a17:90a:20c6:: with SMTP id f64mr2812506pjg.57.1562713125358; Tue, 09 Jul 2019 15:58:45 -0700 (PDT) Received: from exogeni.mtv.corp.google.com ([2620:15c:202:1:5be8:f2a6:fd7b:7459]) by smtp.gmail.com with ESMTPSA id 201sm152939pfz.24.2019.07.09.15.58.43 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 09 Jul 2019 15:58:44 -0700 (PDT) From: Derek Basehore To: linux-kernel@vger.kernel.org Subject: [PATCH v6 0/4] Panel rotation patches Date: Tue, 9 Jul 2019 15:58:36 -0700 Message-Id: <20190709225840.144038-1-dbasehore@chromium.org> X-Mailer: git-send-email 2.22.0.410.gd8fdbe21b5-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190709_155846_551263_29AE0EA1 X-CRM114-Status: UNSURE ( 9.60 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Derek Basehore , Philipp Zabel , Maxime Ripard , Sam Ravnborg , intel-gfx@lists.freedesktop.org, Joonas Lahtinen , Maarten Lankhorst , Jani Nikula , David Airlie , Thierry Reding , Matthias Brugger , dri-devel@lists.freedesktop.org, Daniel Vetter , Rodrigo Vivi , CK Hu , linux-mediatek@lists.infradead.org, Sean Paul , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This adds the plumbing for reading panel rotation from the devicetree and sets up adding a panel property for the panel orientation on Mediatek SoCs when a rotation is present. v6 changes: -added enum declaration to drm_panel.h header v5 changes: -rebased v4 changes: -fixed some changes made to the i915 driver -clarified comments on of orientation helper v3 changes: -changed from attach/detach callbacks to directly setting fixed panel values in drm_panel_attach -removed update to Documentation -added separate function for quirked panel orientation property init v2 changes: fixed build errors in i915 Derek Basehore (4): drm/panel: Add helper for reading DT rotation drm/panel: set display info in panel attach drm/connector: Split out orientation quirk detection drm/mtk: add panel orientation property drivers/gpu/drm/drm_connector.c | 45 ++++++++++++++----- drivers/gpu/drm/drm_panel.c | 70 ++++++++++++++++++++++++++++++ drivers/gpu/drm/i915/intel_dp.c | 4 +- drivers/gpu/drm/i915/vlv_dsi.c | 5 +-- drivers/gpu/drm/mediatek/mtk_dsi.c | 8 ++++ include/drm/drm_connector.h | 2 + include/drm/drm_panel.h | 21 +++++++++ 7 files changed, 138 insertions(+), 17 deletions(-)