From patchwork Wed Jul 3 23:02:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Derek Basehore X-Patchwork-Id: 11030593 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 7682314C0 for ; Wed, 3 Jul 2019 23:02:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 670B5288AC for ; Wed, 3 Jul 2019 23:02:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5B5E1289A7; Wed, 3 Jul 2019 23:02:24 +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 0B77F288AC for ; Wed, 3 Jul 2019 23:02:24 +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=YD8I81VMs9I1YUjPpBbh38XXvembtuAIO81T/fL5Ay0=; b=eB8M/KsSWmIgS7 Zgig/AnKY1Tex6yPgrMwx50GxhKaW1ypHp77g+QDd7aSSTLXXddnih2uzOl1vXNyyOc5vlOZmQpkq uzDBQsTC2dL5uKFD8bdRXslYcWxW7LNbt+19lzB/BQskt09yNAXe5ISGuh5p1SlJxGTSiUP0zqU0v LCeVgHRAl0jmMj9OxYTIfFh/lETBjsqKpKbOqWeFeuqUYJhfKaXmDKXJjQ0XoCnINS3Flce04unaL RM6ps8aJkZSxsSVNjkt9ZHwYPUZZ/NzLXJ1CHuDQohO1E9JegLNYH5UA53szOdjVACD+dvrtKAJQt uz/dFgThhXAzMMzLBJqg==; 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 1hioGY-00071e-GF; Wed, 03 Jul 2019 23:02:18 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hioGV-00070R-Et for linux-arm-kernel@lists.infradead.org; Wed, 03 Jul 2019 23:02:16 +0000 Received: by mail-pl1-x643.google.com with SMTP id m7so1993119pls.8 for ; Wed, 03 Jul 2019 16:02:15 -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=1ZrZzCDWL8uR9GukOyNtVnJ0nmZVvvWXcGkMP18atyY=; b=mtOVyYmG2IzpmlsHOH/bFwJl21qcA8lVJRKpae+DMHwii9l1x+40yEervyi7qpqpr4 hB3hlY3oPRMK55uHK1HYswgIkYyVHxU6REHY5Rgc5rlePiDU4gDvgc2YkR5l77Prg3Cc W/Ejps3fU5hazueodIieCVdr1ZyHbm6gx14qQ= 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=1ZrZzCDWL8uR9GukOyNtVnJ0nmZVvvWXcGkMP18atyY=; b=TMaM2HAAiOZHzqf/UmwBzC2iu2QHcv7/hzDSCragsae6vfo/QATVSRLll+8HghL1u6 J3B8+qC6U0+mKZ/nZC0S467hFw/ndYykmrWbIrCtJyvssy+TbwS/WDgjgd+Ypx57UwKi 8mughjd/bh/Ku4rbEBGSlM4hCsWQLzUo7CrYXkZ0+Myv0tIofG8WU5wECFJb55fe9kIs P3L5pxL8f/MNpESOROiPPeQZtipJZweeHS6ZExJcjtmJ4gSAixekYtr/hQ3ZS6r/z910 pYUJR7Jh5tTSPfi7QcwhwsvT5Rgl00D0b7nBQNgTiIFAxteWpt42pdEBzCEQ2CCQTHVo ppoA== X-Gm-Message-State: APjAAAWsSoL17fRNTuiNxppSviT0g6glF1vI6NXjf2d9fg0K9m2g56ER VegJQRhbiNAPcgYG/Wjp5tjuCA== X-Google-Smtp-Source: APXvYqwM3KsV4pYEtclP2v6OFHEPEkTQxv4xInN46kPm5Ul21is2Kyu5NnJ0VVIbZBrV9EgR7m7IMw== X-Received: by 2002:a17:902:16f:: with SMTP id 102mr43528588plb.94.1562194934905; Wed, 03 Jul 2019 16:02:14 -0700 (PDT) Received: from exogeni.mtv.corp.google.com ([2620:15c:202:1:5be8:f2a6:fd7b:7459]) by smtp.gmail.com with ESMTPSA id t8sm4245171pfq.31.2019.07.03.16.02.13 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 03 Jul 2019 16:02:13 -0700 (PDT) From: Derek Basehore To: linux-kernel@vger.kernel.org Subject: [PATCH v5 0/4] Panel rotation patches Date: Wed, 3 Jul 2019 16:02:06 -0700 Message-Id: <20190703230210.85342-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-20190703_160215_525213_677EDAEE X-CRM114-Status: UNSURE ( 9.74 ) 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. 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(-)