Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7027683ybi; Thu, 13 Jun 2019 08:22:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqxOr4nonXjf1dDHw4+fo3x+9w6Ty/kEfa8Gwa6CkhxCp2undRFrfAVrAd6lFJ8H/IKS3UFK X-Received: by 2002:a63:9502:: with SMTP id p2mr9107369pgd.12.1560439325830; Thu, 13 Jun 2019 08:22:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560439325; cv=none; d=google.com; s=arc-20160816; b=whlRLsmqpS/CnPxAoUCO0dPFJJAH68fAefDh3GNn6/cBEELxa9pDYo0h3orPSPMIOk l8ETMXJBhO8WobAVgnQRv8UJcHIsbWxLaEwknlx1R61ac33ag4b8zU9zLzs9xkfjbPSU 3I2qeNdIM9cxdG5TRTyac4HJQZUqjN4VePGRxebR+JUEs+z8luRJZXWX1njLUSig1Fa/ d9DyKq1qFr9yH282P4w03J2DZpW+gwmyZVw4bWnrFHpEEpgP/EovbfRbJp52IO8c0rpX RD2v5uR1Nh95Ns9c+tvRE0tvpbCTwMcN6lHhqWMyPr9EsqYgkb+h34ecunfqyzOOVS/9 SwYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=zOOux42SpNx9bSkH2F7RULOsWajS+Ey13piL1phjeQ4=; b=pubgRZ1O8qTSx5U7FXMnQp6srWPx7HjEduz7lFrAor0TlIpAe5HaplcbKmWJeYeLjZ OIhQZKI7e+nd8tLEuMBzlaFKb0JikgQ8khOtVefAfNRMGzh2upsTn2vqbCdcmj5AjDcY Df58aYtEy0eIaC0IIuq/9RFm8j5QN660gjh2uKsJ+/++Yiw0tIehZBjoMnbjBUeto1If 1Q86UmN9Zrtb4UsFpBnw/bQW1pHSXCyOsqV32Ly1C1GqNTRw1R8MVeiuBP1afg+jtaOK 1+83ktLh9zhNZu+5pQTEYWBdR1FWXtUDtgMvRAna1pArZRKfd91gaaUOmkve3WmRIfft /55g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wTbq5CEl; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k7si3242256pls.164.2019.06.13.08.21.41; Thu, 13 Jun 2019 08:22:05 -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=@kernel.org header.s=default header.b=wTbq5CEl; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732033AbfFMPUn (ORCPT + 99 others); Thu, 13 Jun 2019 11:20:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:34812 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732015AbfFMMwG (ORCPT ); Thu, 13 Jun 2019 08:52:06 -0400 Received: from mail-qt1-f174.google.com (mail-qt1-f174.google.com [209.85.160.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8B79F217F5; Thu, 13 Jun 2019 12:52:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560430325; bh=hGTL0UDB9YcWjm74Ir6wQQkX+JwdFyiJOCXF2M+5evU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=wTbq5CEloa5SHhkjgeBYGYhL8+3cX1A9KNfN+w4wcEsou4uoK3R8GYYknSIbC0XIw yMulQoFX7Op9+tmF1uisRQ1zdrMdT6oHMrM5jwVwc6ZR0HX/6KT6sJuFaqhby7RTL4 hoqPqr8M2vylF39fcb7bXFgXZLZDkOMCY3ZSYu+A= Received: by mail-qt1-f174.google.com with SMTP id z24so9121577qtj.10; Thu, 13 Jun 2019 05:52:05 -0700 (PDT) X-Gm-Message-State: APjAAAUZdZeBp7EFAIhRQCVQ3CEwI66QPvqMbp/wqw8y7ssY8VH5oBhV /7KDepjn2vLfHDRQO8BxR/1RuS0VkvSJpb/c7Q== X-Received: by 2002:a0c:b786:: with SMTP id l6mr3426471qve.148.1560430324645; Thu, 13 Jun 2019 05:52:04 -0700 (PDT) MIME-Version: 1.0 References: <20190611040350.90064-1-dbasehore@chromium.org> <20190611040350.90064-3-dbasehore@chromium.org> In-Reply-To: From: Rob Herring Date: Thu, 13 Jun 2019 06:51:52 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/5] dt-bindings: display/panel: Expand rotation documentation To: "dbasehore ." Cc: "linux-kernel@vger.kernel.org" , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Mark Rutland , Maarten Lankhorst , Maxime Ripard , Sean Paul , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , CK Hu , Philipp Zabel , Matthias Brugger , dri-devel , devicetree@vger.kernel.org, Intel Graphics , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "moderated list:ARM/Mediatek SoC support" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 11, 2019 at 4:02 PM dbasehore . wrote: > > On Tue, Jun 11, 2019 at 8:25 AM Rob Herring wrote: > > > > On Mon, Jun 10, 2019 at 10:03 PM Derek Basehore wrote: > > > > > > This adds to the rotation documentation to explain how drivers should > > > use the property and gives an example of the property in a devicetree > > > node. > > > > > > Signed-off-by: Derek Basehore > > > --- > > > .../bindings/display/panel/panel.txt | 32 +++++++++++++++++++ > > > 1 file changed, 32 insertions(+) > > > > > > diff --git a/Documentation/devicetree/bindings/display/panel/panel.txt b/Documentation/devicetree/bindings/display/panel/panel.txt > > > index e2e6867852b8..f35d62d933fc 100644 > > > --- a/Documentation/devicetree/bindings/display/panel/panel.txt > > > +++ b/Documentation/devicetree/bindings/display/panel/panel.txt > > > @@ -2,3 +2,35 @@ Common display properties > > > ------------------------- > > > > > > - rotation: Display rotation in degrees counter clockwise (0,90,180,270) > > > + > > > +Property read from the device tree using of of_drm_get_panel_orientation > > > > Don't put kernel specifics into bindings. > > Will remove that. I'll clean up the documentation to indicate that > this binding creates a panel orientation property unless the rotation > is handled in the Timing Controller on the panel if that sounds fine. Even if the timing ctrlr handles it, don't you still need to know what the native orientation is? > > > + > > > +The panel driver may apply the rotation at the TCON level, which will > > > > What's TCON? Something Mediatek specific IIRC. > > The TCON is the Timing controller, which is on the panel. Every panel > has one. I'll add to the doc that the TCON is in the panel, etc. > > > > > > +make the panel look like it isn't rotated to the kernel and any other > > > +software. > > > + > > > +If not, a panel orientation property should be added through the SoC > > > +vendor DRM code using the drm_connector_init_panel_orientation_property > > > +function. > > > > The 'rotation' property should be defined purely based on how the > > panel is mounted relative to a device's orientation. If the display > > pipeline has some ability to handle rotation, that's a feature of the > > display pipeline and not the panel. > > This is how the panel orientation property is already handled in the > kernel. See drivers/gpu/drm/i915/vlv_dsi.c for more details. The point is your description is all about the kernel. This is a binding which is not kernel specific. > > > + > > > +Example: > > > > This file is a collection of common properties. It shouldn't have an > > example especially as this example is mostly non-common properties. > > Just copied one of our DTS entries that uses the property. I'll remove > everything under compatible except for rotation and status. Just remove the example or add what you want to the "boe,himax8279d8p" binding doc. We are moving towards examples being compiled and validated, so incomplete ones won't work. Rob