Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8439889ybi; Tue, 9 Jul 2019 15:59:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxhX9WWva1xIwhcdeSorrEDbW+RGDxY9uYYsWImis1OT5IPmfWP2jQxA5s9a3L5weISJuj6 X-Received: by 2002:a65:6497:: with SMTP id e23mr32010431pgv.89.1562713168735; Tue, 09 Jul 2019 15:59:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562713168; cv=none; d=google.com; s=arc-20160816; b=yFkGzyfLp5etfa4d0sDGcsD9N2HDF+qiJeNo7qiZQRCy1yZuiXshBJ1c4znnzuDaLP D5qvCiHhGCEBdmMSR+FDZ97rcdQZzc5HWil5Zx3mmVwI0QZ6LNXZzUFae3tJyReUqs38 YqBhtrrY+tD6+JgkbefEm4O9OkJnvi2d/Hfikhr0IOLIerjd9JqcNp0i4kSAjGCoW5hb xcAIvkNuAx9VlNqxyF5M02d9yBabRPm6u8FSP3ZGjNyq7vE0kFscdkecbTY0gRoVhiid ph3swKA1XUbXgD/zflUqTvkBaAtdjZNc6n0x9FOD+hpxGceW31wFkrqUYXvxWvNq/CGu 9QtQ== 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=VfBNRjMW96lNOTO1+wc8G+mqG3/RxD26VY8ohNb7l7s=; b=muyF+Zk8QvB3AWW3CQCWiEovoXh+AjpC5shnWgVtQWZmD581l/r2QgFuLjvlfB2fcK J/AtDkqQJ4TAonOhErpGPdHAaStHtblRWdKBtkCebK8kjuUyY63WCDAQTWVPlrJ4I5V7 e6n0fKpiYMZPcGfTQRazwd307hgDVdEhzDjYRbbijqBwCauHhfse3R4bK4y5/fzoj125 vXqjus0R3fFCpIAXUNO9SZwtb8NI2J3Faoc3MW4GcTsJ9fixLp1/qg97bDnqYOKLOIK3 5a6BdDMRgmEK5Z6Cco62lB03bzbOHBuPxp5PizM8rBAutA8dVnPzYmjjUwp2I0q8enB9 kbCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=g+2aDXwa; 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 y15si262115pfe.199.2019.07.09.15.59.13; Tue, 09 Jul 2019 15:59:28 -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=g+2aDXwa; 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 S1726989AbfGIW6q (ORCPT + 99 others); Tue, 9 Jul 2019 18:58:46 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:46489 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726218AbfGIW6q (ORCPT ); Tue, 9 Jul 2019 18:58:46 -0400 Received: by mail-pg1-f193.google.com with SMTP id i8so170894pgm.13 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=JQ4d+RBAKrxl0xYU4qxMdR8Bhiat5EriEOsQvrGpCQt9nn/UyRh2NWsA73fzRXxAHC +9iSOLiw8LiDfjgOa5Jv94swbnpd9gdLRMQ+ipkitXWHdmPEQB1vE4b0NoQH7S0ujXf4 A+HZQZo2fPorvz/sl87A9EnuQ0jbEehgEef53bsS66WK13IMjhqeU6eLOiUDFmxs0pcK nnLcieywFn2WQVqHVQaYjq+f4hDyaKgAjsQ6VQCKtiny7627pdSz0gOJyiPPb86DhAEx mJvhbU6RUjpBGlaFHBMXXTRoU074skz0dcpCgGan5YQfBXIAHHjdAiFSbjxpU9TGyDXc xExg== X-Gm-Message-State: APjAAAXSqxzOGxDB+gQTavJqxPJRSalYHB0y1+N7dqRvW3Vs5V8/tcsr NexBAjFhJ0wTMU7YGP+Zde9d4rEGTGg= 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 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 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 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. 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