From patchwork Tue Jun 11 04:03:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Derek Basehore X-Patchwork-Id: 10985851 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 3687614C0 for ; Tue, 11 Jun 2019 04:04:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2720627F54 for ; Tue, 11 Jun 2019 04:04:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1A5F8286C1; Tue, 11 Jun 2019 04:04:07 +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 BF93A27F54 for ; Tue, 11 Jun 2019 04:04:06 +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=KV16Yol1uqVQroMbvAnb3xsfUAskm6SxKUd0DADS9Gg=; b=kbHy6mRf2rGtVr zhYh/1/fP/hw61zT3qNxKvYKrSWgJZ4vrkiY8M9qvL38Jew2f5lVzRGxBtyka4njNTU9/Qfohofuz Fw7ItOoD56hAM+JrS/XQDHNFpyYLW8Cl1k6cBse5ye6OEFp5rnWnyw7SUjBcxlCr9owcNupRyQkzF Iy2oLwJZwo0rHH/X1UB+3/HwyV5tSmBkq3/F/6hPhBWeyAT/fLiLJ6O8H4RAkAmW9pieV8rZbJPHr NSMgACsQ4Du3lakbLpnjitzNyEz3N3pezYHxOoI0IrL1+CGpnkaRMnSfX0uG2M1RGwlf8gNRoh8LA zSb2inXfsuDQ+qWMivew==; 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 1haY0u-0005jv-U9; Tue, 11 Jun 2019 04:04:00 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1haY0q-0005g1-67 for linux-arm-kernel@lists.infradead.org; Tue, 11 Jun 2019 04:03:57 +0000 Received: by mail-pf1-x441.google.com with SMTP id t16so6522174pfe.11 for ; Mon, 10 Jun 2019 21:03:55 -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=ep5PT5nJYpz/Bj3Iz+6dAuGsY6URZpg14AnULVjTGA0=; b=BPeWijeb5HdxjyxppQb40ApVn/nxLgHSyp0AL/ASYmRCiKlPLM1ddJO4q+5DVFlKJo M/6tW2VGGMmJt5p6uRnJYncIATIm7J5usdTrrpfDSsoiEwZOhO6s75rGbFLm+gF0M/Zu OXBZxzrusRa5BRO0jGY04Rtc4em07eeQ66PnQ= 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=ep5PT5nJYpz/Bj3Iz+6dAuGsY6URZpg14AnULVjTGA0=; b=bG3OF/TGrbWeG0g9YbMz3BzVEUyC/2M9Zzv/UbeFWXPqsvePhyGcj9evLNtrWOrXhB 4EdtZIvEkifU5Z/loFZ70lxVRjoPPsGPU0VEkNdBAvL2BcDLkSktgYzM+gdZNeYWEmQt zpOSQxQTQRu3D024M1EPbWgmYcJ/P1CLVkxswQVM0Jb7r1iRGLelvsVf5zjef9qmz5H8 BTwPsQlFuYi/nMTsMiMIZCl9snIFoY6zlFnn22Dauo2Xm6acGANM80VleztCNhN+O+u5 bycWxcHNlYdwFxzeYrfka5uH8lq4m0JOX9guem8OWi/GtFWPKW70XYw4BO3xL+f2ZfQr S/YQ== X-Gm-Message-State: APjAAAVrBl2k75cyhTODIza5JUqIvPO5CDe6sqWuuoZX74yGCD0asVmy Y+sBztBh392/csNncz/CLdn0xA== X-Google-Smtp-Source: APXvYqwomU3EkmGbmD6lmNUwogikv7z13A3K3b0++X/UrjCKXAXsfZu9Zj3Dxfvxg4ZWCL337q4OtA== X-Received: by 2002:a62:e0c2:: with SMTP id d63mr21262331pfm.60.1560225835215; Mon, 10 Jun 2019 21:03:55 -0700 (PDT) Received: from exogeni.mtv.corp.google.com ([2620:15c:202:1:5be8:f2a6:fd7b:7459]) by smtp.gmail.com with ESMTPSA id y133sm13301185pfb.28.2019.06.10.21.03.53 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 10 Jun 2019 21:03:54 -0700 (PDT) From: Derek Basehore To: linux-kernel@vger.kernel.org Subject: [PATCH v2 0/5] Panel rotation patches Date: Mon, 10 Jun 2019 21:03:45 -0700 Message-Id: <20190611040350.90064-1-dbasehore@chromium.org> X-Mailer: git-send-email 2.22.0.rc2.383.gf4fbbf30c2-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190610_210356_256161_1FEAFA02 X-CRM114-Status: GOOD ( 10.02 ) 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: Mark Rutland , devicetree@vger.kernel.org, Derek Basehore , Philipp Zabel , David Airlie , Sean Paul , intel-gfx@lists.freedesktop.org, Joonas Lahtinen , Maarten Lankhorst , Jani Nikula , Maxime Ripard , Rob Herring , Thierry Reding , dri-devel@lists.freedesktop.org, Daniel Vetter , Rodrigo Vivi , CK Hu , linux-mediatek@lists.infradead.org, Sam Ravnborg , linux-arm-kernel@lists.infradead.org, Matthias Brugger 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. v2 changes: fixed build errors in i915 Derek Basehore (5): drm/panel: Add helper for reading DT rotation dt-bindings: display/panel: Expand rotation documentation drm/panel: Add attach/detach callbacks drm/connector: Split out orientation quirk detection drm/mtk: add panel orientation property .../bindings/display/panel/panel.txt | 32 +++++++++++ drivers/gpu/drm/drm_connector.c | 16 ++---- drivers/gpu/drm/drm_panel.c | 55 +++++++++++++++++++ drivers/gpu/drm/i915/vlv_dsi.c | 13 +++-- drivers/gpu/drm/mediatek/mtk_dsi.c | 8 +++ include/drm/drm_connector.h | 2 +- include/drm/drm_panel.h | 11 ++++ 7 files changed, 120 insertions(+), 17 deletions(-)