Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1841566ybn; Thu, 26 Sep 2019 03:04:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQxJ/8aGlsPN6UrVRQ9jAk5Lxt/psrEW1as6TG8k16zIo7cYo2UDBd+5k5gPod4zBp/meX X-Received: by 2002:aa7:df8e:: with SMTP id b14mr2595062edy.65.1569492253700; Thu, 26 Sep 2019 03:04:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569492253; cv=none; d=google.com; s=arc-20160816; b=ce0SZ+nDQtx/zqO/R07kplRYoG9w+z0ZhDmIvr84JMzuJMQlCZ5T+Aqz/NKmYLCDPI v1qxBnecEjXbghAth3wpIrY18FElW+qcRD71GnleMM081LMdAVHVG6GTYCvKF/IicCIv OwbWBFFOB6eVV5xys930bhY1A0hXdLZEsJaq7er26A7zVKw6VSls2b4HuyzVZn+78rww M5NWtYDIcd+3gwghGRCVU2p4ZpKOGr5/3vSktAfJ2GOvpfg5Ww/3/YRyZUznLv7uv12p 1sofRSMM5ycKqJHbCUllONVTkCboUdtPqa4eLiqOxzo+DOAlUV5COnqAoHfjqcwbWHE9 IECQ== 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=OBfAYVzrUaZx8A81lQKWZtaimNSs6Q4Prkr1zyCu8Sk=; b=q/ChckS7nxb8lm7TSEIlUiz21y0K+gkxrZ+xC802VUdvT+e13dItQu1r4jiDcRFrhk gvVq9QOY2KNAB/wqhoNk9CIwZyzuUzP7cEkVI6FtEjKUj2EWjnDMWyn0vb1s0CS2pZWP Aaqf5B7pdKR8LQz5UAJCoQoy5ODaz5MGae3OZuCqIcG5cNS7abQxfkcSnWN2s9UBtv7v KtYKATlxm7wQ2Vg0UumbJ7rTuWT7cEEYBQq3zfErzH/A3I6I5Hg0RV2qNhAgdyHtQ7FE GL097HJgqO1GowgzcGp9vamsWL8efW6/8BCEDijwjIMzu+Iqrv9oWQ63HNkdjrlp8sUP jmKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=lnwzlxaO; 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 s41si958641edm.412.2019.09.26.03.03.49; Thu, 26 Sep 2019 03:04:13 -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=lnwzlxaO; 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 S1730126AbfIYW6k (ORCPT + 99 others); Wed, 25 Sep 2019 18:58:40 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:37685 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729638AbfIYW6k (ORCPT ); Wed, 25 Sep 2019 18:58:40 -0400 Received: by mail-pg1-f196.google.com with SMTP id c17so209968pgg.4 for ; Wed, 25 Sep 2019 15:58:39 -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=OBfAYVzrUaZx8A81lQKWZtaimNSs6Q4Prkr1zyCu8Sk=; b=lnwzlxaOGXON5kJ+mJtUQcGIZKlxrNequk5F3hmYazLKV6g7hVjA4zue24ICSCflnJ TKbxKfS27WL3LmgHu6tGZzEsOKLplx7ahSTC12La2RWxtT71Bg5QSABWFvbHMg+cKhUb Z23L/NT/IQHnf3aCqP6reQvCq6mvnOL9t8NLk= 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=OBfAYVzrUaZx8A81lQKWZtaimNSs6Q4Prkr1zyCu8Sk=; b=adFnn67SkRSMJrgSYbA01vPn1kw3GAMYIyC/qi0iFALkZnD2MovGWX33ZSv7lvkbF+ WdT6bzEnA8sWWp8ETAIU0XrgXqwq+2MlNB6Rx7WZ3YmlYUqU2Jm/GyFD4rUtBiTkBEQr 6dLKKUbUoKP3d+5gEy/bP+xJ8mhaJ9I9ktcJXwemht8UR4q6nGG2aGsCbDwBQqRjS3KL htimvZqpNs+rI4xnk38mo6Kag4thiisaK3SSXrpvOpWao5hXYDAdVfkdLVqELmL+2yqS b+USaaFTuF+plhuB4VAcLlw1xD/xupMun6ciuu8AJ+b46Q5CF2CvzZ9eGnAePi45IT4P xaCg== X-Gm-Message-State: APjAAAVGOFIQCDXjcMITEUFUXnkzUqgA/Lhq56/7BAGO/U0WrhHgl6gv qnP41d4N9et3RwIsB3wulKVcVvbjFjI= X-Received: by 2002:a65:420d:: with SMTP id c13mr260391pgq.293.1569452318669; Wed, 25 Sep 2019 15:58:38 -0700 (PDT) Received: from exogeni.mtv.corp.google.com ([2620:15c:202:1:5be8:f2a6:fd7b:7459]) by smtp.gmail.com with ESMTPSA id j24sm76185pff.71.2019.09.25.15.58.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2019 15:58:37 -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 v8 0/4] Panel rotation patches Date: Wed, 25 Sep 2019 15:58:29 -0700 Message-Id: <20190925225833.7310-1-dbasehore@chromium.org> X-Mailer: git-send-email 2.23.0.351.gc4317032e6-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. v8 changes: -added reviewed-by tags -fixed conflict with i915 patch that recently landed -Added additional documentation 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