Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8591489ybi; Tue, 9 Jul 2019 19:17:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqweiRs5Whl95pmAinjKPNAfgS++5+/JtDGoURwU52eysd1BgJolVn020yvpGZ8r7LHeQpao X-Received: by 2002:a17:90a:ff17:: with SMTP id ce23mr3684286pjb.47.1562725064735; Tue, 09 Jul 2019 19:17:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562725064; cv=none; d=google.com; s=arc-20160816; b=bzQwmOCqAT4KYewmgS4VxJoDer2Qa5BkvQ92gSzmdXkMOTybXV5CxWS8cJ9F4gnAXf +iSUSMqX1TRfqRHWA09DvH2kGvct5EdnEf8aUS1001GTlBb26O0Paqw6DWJJZshqyhE0 9NB3Eov+m78IZrtB51ndvHKrwzzV02/SgXHbEVF0ZOthmBbW3Oy72BeeeL06P56iYERr BmEy/5AooSqrCQmt9wOYe3oePbjXPNvMSkIFpORexEhHOhuLyKihJlPGRYR7OhRQWpPo 2Pw9s1Jh7d0A+5s/KtG2ocHKQ+bkozEB3U1GCSiyIC8czTlKduCWmq9Y6eLFz6alyE2T eYaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=QL/iKcky+DBal5hSRMsXARSXXCVch6Zl/oKMaiM15pA=; b=pcnqC7+9UWvtjGdADUKC+Aasi9VqZV6Az1oVrqaafD4vm543xnaKl+MaqPnCDIljFv 7ViG6GAZEE0Ec8THA5+g7ZDObOGc79/DJ1QMyjr4mj68U8YW2AdRb3BZfdZjCXgpolGt l7Yrs0gZSw+0nuJfzDwiVp/iHw2Y5LF1bdJnUj5DsHTaVLCPh+bxCJ3Y54a6FNrS4TyF mPE+OcDh719+r1i14PvbcrfMXQ9KgbywWe6hFcbRGJETv7uo/+WnWRPjnrhJ6BNcbKFc +cue3oSOvob/H/Iw36exEVNUERDQmV+7tmUIvsHdu3CzFM+Elb0z2RjhTz3Gol7ZYy91 5psw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LQXF4izt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j63si680645pgd.493.2019.07.09.19.17.28; Tue, 09 Jul 2019 19:17:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LQXF4izt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727008AbfGJCRF (ORCPT + 99 others); Tue, 9 Jul 2019 22:17:05 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:43796 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725880AbfGJCRE (ORCPT ); Tue, 9 Jul 2019 22:17:04 -0400 Received: by mail-pl1-f194.google.com with SMTP id cl9so362637plb.10 for ; Tue, 09 Jul 2019 19:17:04 -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=QL/iKcky+DBal5hSRMsXARSXXCVch6Zl/oKMaiM15pA=; b=LQXF4iztDK4WfGH3yFPHfMFpFoxRGzJ5SJsuvt8PUYKH5sMMGeff6st/EcfYxwcIzc GxhzEvZK940b7dcqpFHyB4koUyH87iv3Ful02WPZLOgp+RbNy5HxSi0QtGxb1TioliFj to6SHdkOhkaignW44UcMR8L2Lb/KPwHiPg1zI= 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=QL/iKcky+DBal5hSRMsXARSXXCVch6Zl/oKMaiM15pA=; b=RBuG1h9tETC4RZW9f7QRm1TIS9RVizQHHxV0/EpbG0rh2P/DePhK0fKx5LGF0/WjfG usa+XZVnwYIU7eG2Z+nB9+Kn4OQZpFJtVH3v1TMbwi6hbbXjL3SUfwHVx0PLG/iTWTO6 YfFHBIfjsBG9kP0c/ME5Cgv9m8HX7VeTz4EwgTsMdQ/QBJYN6PqkDpQMOLOssGC/GPJC x3gLysFSHfCDO1xRlP7mIdOLv7Jv2zhukKB59mO0bH0jCYG3wcXIzDApnnBwfvjUwIwe 2KHrpGUuzXI3IS5hMUlJiWY+Qogq8AQqjZYTJrdEeDEELRm9WFnnzW1pFZYbZbOhK4uc WFgA== X-Gm-Message-State: APjAAAVYy79XaR+JEhEBH1ToDqg1vHJbnPBYyjEa1LndZwp6O3kmS9YQ TEd0RfZPKblzUNEmfdxLtk+umygO5fg= X-Received: by 2002:a17:902:788f:: with SMTP id q15mr36510488pll.236.1562725023757; Tue, 09 Jul 2019 19:17:03 -0700 (PDT) Received: from exogeni.mtv.corp.google.com ([2620:15c:202:1:5be8:f2a6:fd7b:7459]) by smtp.gmail.com with ESMTPSA id f17sm326296pgv.16.2019.07.09.19.17.02 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 09 Jul 2019 19:17:03 -0700 (PDT) From: Derek Basehore To: linux-kernel@vger.kernel.org Cc: Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , Daniel Vetter , Thierry Reding , Sam Ravnborg , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , CK Hu , Philipp Zabel , Matthias Brugger , dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Derek Basehore Subject: [PATCH v7 0/4] Panel rotation patches Date: Tue, 9 Jul 2019 19:16:55 -0700 Message-Id: <20190710021659.177950-1-dbasehore@chromium.org> X-Mailer: git-send-email 2.22.0.410.gd8fdbe21b5-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. v7 changes: -forgot to add static inline 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(-) -- 2.22.0.410.gd8fdbe21b5-goog