Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1438227ybi; Wed, 3 Jul 2019 16:02:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzaEyW1lzULFvtmbPdGXLpIAIa32ENc8IFfl7heX8vEQL6G+/p3D9S3RQoEax3c9/6rspAZ X-Received: by 2002:a65:6541:: with SMTP id a1mr39100365pgw.409.1562194972075; Wed, 03 Jul 2019 16:02:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562194972; cv=none; d=google.com; s=arc-20160816; b=Uev8e6VuePq+X+XNlmqOeyC+6ZRKQqAA+i6MQkcZbvh/mwErFrG77U7UQ5yD7ZpCS1 0KJgDeui/EGY/KhajTtrGmp/Om54yNIU5Ew0SbXDTRXQBZ9ckeHRKG8zfa9oS77XKjRq mpepP8jww0dJM+g0WINigfSE3dMlGopaEBlIiS3aiaFj2Qo1pRqDdKglQOVj56Q84VCA LiTo8YpMoz46koTaBpewWbK2B4IoDseHOGrFV2YAgaoOpiT/HXHTYbiaPsaxA4boK0gq fcUyY4MKfgRxPCw23h3cRJgnUjdXt+w8hr4WlKToUHtnQjm89Lk9qajK5TDSkoeDPS4u clgQ== 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=1ZrZzCDWL8uR9GukOyNtVnJ0nmZVvvWXcGkMP18atyY=; b=Ml3O992FUirgpU6K9snJta9f+RUONqtirmzeblH599EaRQK6W7U6JmeSWRl8fg/SVo u1hANg902ZET4V/ZEiGdaKnjkgJGmVeJ/8SycoHW+XpRMXm9+0Rrgk0ckCEqadaOgUEJ +4lHzkPYXotw4M0SqAvGWLitMpLHXpOjLrVqU1Xf3gDoTAy8EqiuecVtv8hfPwSYRlgn pnTbSwh4ZvYuviA40qrQBbj0raqPC3NdnXy6yPPE5SHN8hzVJphoay7qykzxVz8759WF 2tTc9XQyyN42glaU6fW4o8lTERmY3KJOPEij3FvWxI0Ob/wQym6wlGSp3ugnAcC/xZTx HHRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mtOVyYmG; 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 c139si3640135pfb.140.2019.07.03.16.02.36; Wed, 03 Jul 2019 16:02:52 -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=mtOVyYmG; 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 S1727262AbfGCXCQ (ORCPT + 99 others); Wed, 3 Jul 2019 19:02:16 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:44175 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726902AbfGCXCP (ORCPT ); Wed, 3 Jul 2019 19:02:15 -0400 Received: by mail-pl1-f193.google.com with SMTP id t7so1993411plr.11 for ; Wed, 03 Jul 2019 16:02:15 -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=1ZrZzCDWL8uR9GukOyNtVnJ0nmZVvvWXcGkMP18atyY=; b=mtOVyYmG2IzpmlsHOH/bFwJl21qcA8lVJRKpae+DMHwii9l1x+40yEervyi7qpqpr4 hB3hlY3oPRMK55uHK1HYswgIkYyVHxU6REHY5Rgc5rlePiDU4gDvgc2YkR5l77Prg3Cc W/Ejps3fU5hazueodIieCVdr1ZyHbm6gx14qQ= 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=1ZrZzCDWL8uR9GukOyNtVnJ0nmZVvvWXcGkMP18atyY=; b=pFUuXeogIap8gFSr5T40NBiRBSbCDrIq9c4Oo9bflbcJNOmRd3wFszdnbzyiZOmmhv 1hF5K+MU4ejBu59kuzjd5WYDI22pNozrtWo6u2QTXDeIl9SytjK4euunj0fxOMdnAbFE MZ9pPEIYLfNX7jb/wjfoq5ueordh2bkwZ23jfxVeIo/YyG6cPMsuCqeFmieE3y6ueWx8 5RH2lfBJ6l9V/EST95eDbpnPSmMaioENes9vk9ZsjjhsXJoxhOFBipS2asWAOVP4aflD VwkihtKD8LYRTMG9NE75FCCezbug1Agt9gpdxgwzdWBz8NqG494KGgXdm9GDDgngiqHQ vLJA== X-Gm-Message-State: APjAAAUwtabbaM5vG/mVvfpNoYfc4w7o66T2TW5LYJYnh0r+Fcr077c7 RxgnGAGeQZBe6R3DxU44c8dbCOYo2xU= X-Received: by 2002:a17:902:16f:: with SMTP id 102mr43528588plb.94.1562194934905; Wed, 03 Jul 2019 16:02:14 -0700 (PDT) Received: from exogeni.mtv.corp.google.com ([2620:15c:202:1:5be8:f2a6:fd7b:7459]) by smtp.gmail.com with ESMTPSA id t8sm4245171pfq.31.2019.07.03.16.02.13 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 03 Jul 2019 16:02:13 -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 v5 0/4] Panel rotation patches Date: Wed, 3 Jul 2019 16:02:06 -0700 Message-Id: <20190703230210.85342-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. 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