Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp141241ybi; Tue, 2 Jul 2019 17:52:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGBZeXVXlR5WW3OIzB02u9fUBh9tm8cGQQGFn8DnRYS8YnbI/ToI0PovBWjSjMjgrL/q4P X-Received: by 2002:a63:ad07:: with SMTP id g7mr31347624pgf.405.1562115140850; Tue, 02 Jul 2019 17:52:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562115140; cv=none; d=google.com; s=arc-20160816; b=jhZtlai7ABjflfkDs7AF9fR2AAsoq3v8k5jpH0SKX8OkhyEyX1OAAeeipojkpu8GcL gDqxYacer4/FTNfg12VUsEl/z7EeaGNZfuYvIXW6PoT+JbQXc2Apznu//abRLKHR16qv ghYrFAgeKNoOyLrXw8Nj8/+APkq0RVyuvv5q5+eoVUUmL4nAlxnnazwHfC2QYUoyNmNd C9bGMm5x4HCmj4zCTn5C9jgJ4VtVQ46WEFNjKSzNxaxaJoxJqUvgKKJRQh/0HoR4RXXM OG8eyxik9KoMxFOBoXu02a2VHzxx3jCaaneXbPC7GCQR13c7Q/yFdx4QmoE1jUMSlrMb QaAw== 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=BbKEAFwQNgdJMuzfiYPMlyXAsoNdsnEp4Uok88ypekU=; b=oCPaZC68bL7v3Cs83nRytBY3+Bmysiz3oTYaFTwPXAwNIQeHOGCMWodoND1TV3kXD8 mL59kcH4WamsWxcJcgUW9KFWbHMQ0EtaFmCBcrS4dSCkfyUFRId/v0TkbPXkkQDr39Vz /qDE0yhC5KKUO8geZSCBz9GTCaAkkOW21p6cYIREuxmaAreOkc/kfyQmAuOL3To78jw5 fKl+CR+4QuoA9sWf2E4gtJIVzRv7+sPiPbp531N0Ze8mDibPuPbjU7PV1BTXe+j2oWep /zhyBPYIzBAAaPB93X7X1xcaiMvHm2RUS5oKBLbvszCQQ034LHVbt6lqLksGQj6TG4W1 hLIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dzRWt1d0; 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 i20si367626pgg.190.2019.07.02.17.52.05; Tue, 02 Jul 2019 17:52:20 -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=dzRWt1d0; 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 S1727331AbfGCAvp (ORCPT + 99 others); Tue, 2 Jul 2019 20:51:45 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:43163 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726430AbfGCAvp (ORCPT ); Tue, 2 Jul 2019 20:51:45 -0400 Received: by mail-pf1-f194.google.com with SMTP id i189so288765pfg.10 for ; Tue, 02 Jul 2019 17:51:44 -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=BbKEAFwQNgdJMuzfiYPMlyXAsoNdsnEp4Uok88ypekU=; b=dzRWt1d0cH9OT8aIY2cfNcZP1PY8roOuwd7uTGeLkG0cZl8zRBQFiUDispqLSA/UuQ 7qtogcL/XgZ4GiHoPPdi2jdl9O8tG/VgyjT9Dvw6mhdOaxNhTFFazxDQ55AxHlhv/wMv Zs28goiGB3utYWKBKTNH2WzG18bLyrlTHqcBQ= 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=BbKEAFwQNgdJMuzfiYPMlyXAsoNdsnEp4Uok88ypekU=; b=PFeIkvy9uKLgE9w7SUN0roTqL2GAkCwc/AfEW8j3qq7nSZK5QoMGfBSFAHumvUTk// unAbgAJgXv9jot8M7hcgclYibdbo0pFghsC8uSg7XH/BLiDnlLo/ep/H6BaZlZUvQV/N gipb2WI++Gf+JrydTzfdoyYKIgkRUnqjgsynYafApmeZjHPWiTi7Ui8p3IZ5ESa7U9OZ Otav/ncLfNZZIZ/KkfKTxDPUQDKKVr/LUU23k9h+2Z59AZwmIcBekYGebrnd50/Bw2a9 IWEHitxsHDkBqUtO4L2GkwM84bzsB/rsfTVKWezcVkpSTtUWxMEaHlwr58kaksSFdyYw lD7A== X-Gm-Message-State: APjAAAWTg7dePgOyVktM8ROyVO0mCeEQSmWoqXp+XZKqRoYIdD9MaD34 CbZRAKkhibhbyDZaM1cUXULIO5X4EOE= X-Received: by 2002:a17:90a:32c7:: with SMTP id l65mr8573547pjb.1.1562110982720; Tue, 02 Jul 2019 16:43:02 -0700 (PDT) Received: from exogeni.mtv.corp.google.com ([2620:15c:202:1:5be8:f2a6:fd7b:7459]) by smtp.gmail.com with ESMTPSA id c26sm167611pfr.172.2019.07.02.16.43.00 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 02 Jul 2019 16:43:01 -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 v4 0/4] Panel rotation patches Date: Tue, 2 Jul 2019 16:42:54 -0700 Message-Id: <20190702234258.136349-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. 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