Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3943146ybi; Mon, 10 Jun 2019 21:04:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqyLdOCY/SBf78aQRSM5pI5K/7nQovC/g81oKGGVzTlea6tHTIRUAzhCinHCzOXJp98VGkOZ X-Received: by 2002:a63:2b92:: with SMTP id r140mr18767312pgr.363.1560225864265; Mon, 10 Jun 2019 21:04:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560225864; cv=none; d=google.com; s=arc-20160816; b=c+u2gL85z9K2LSFyQ2fJbFUBWd3wCzRdAvqAfG7ofQSHkXUVc47N/t6HI7aXmwnkNG +FeW03zw6mn3sJW1f4APnibcLTzGex7OWb0bkOgvKMqLWC6fFOtvn3EZtHK09pOd4lCQ VsfSDXa2G2S8H0imugLlwADF12f09yB7diY6N9fx4Bcwjg2uQ/KquCx6RgYfoTKdu9xG nP6NRrojqvT/ab9XHvL22OUZcJdOgAKCtLpc5cU9uU63u6eBAj3KFq2eHJcafCreoMzP fHG3qiq+sle7PvRUXc3ajp9v/vuQL3LKcZS0r2QrLUrdiPOh2hGaGijXpRkOF0+59n6R u0zg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ys0DSil+WvCMaDGevz2dSiLwFPZR4jwAs4InRe1vZNA=; b=0xLLwp5YS79iQfSemQVO1ICpwNNInJ5J711kQ5+7pgGOumlLVSR/JOUV2B89kQwQ3A BX7BQ8A/fAmmyxAN/ysch3ksAOSE7J2TIlVXIyw8JXsZFqpC7gAHqeSS6ww9zYouFUog Nt8CaoMK9M4bfr2mRpDZwVqVc7HR566YDuOu+D2pJiq/lIa/tA/2AgSeN0t9y6IIvCNo Qhmc8Pyo1d75BeOcMdTXHDfna/AJ9gfNTLgfHoqzs9JhFiOYGohZAcX5UJEDaq+7avuK R7sXJz0I2OmdgmJTdZbdFSk+UohkY/+nHX4a5aCg0Ghq1FyFzaChnyb92N9Y7gS0Cwjq Kpfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NpIiYZAZ; 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 68si6666970plc.269.2019.06.10.21.04.08; Mon, 10 Jun 2019 21:04:24 -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=NpIiYZAZ; 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 S2389582AbfFKEEB (ORCPT + 99 others); Tue, 11 Jun 2019 00:04:01 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:39124 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728821AbfFKED6 (ORCPT ); Tue, 11 Jun 2019 00:03:58 -0400 Received: by mail-pf1-f193.google.com with SMTP id j2so6535865pfe.6 for ; Mon, 10 Jun 2019 21:03:58 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=ys0DSil+WvCMaDGevz2dSiLwFPZR4jwAs4InRe1vZNA=; b=NpIiYZAZ293e5siqen5Oz27pVJuQEiqx/skxzzgF9MmBRxj1DCy5igwLq3xQY5fLt4 6ijSQMHl5nqD2CEkVoKO7bNwFt2FMABbPicsIoQ+6XGy1CrK43ONHRMIiygoP/GBi1Tx mpT3cNIEtjV+ei2btpQJ+tOS5TF+m8OjwvjZ4= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=ys0DSil+WvCMaDGevz2dSiLwFPZR4jwAs4InRe1vZNA=; b=Z4P9dbkxwBNJA/qKFjFDmVDevtGla6a8+14GBVmUsDFplMBFI2PjLmZIhbLCYW9rz5 zaFuCHQH8ALe5rVm0VXweSpAWDvsoZZAY2rszYw0KQvSPGLyd6bx91/epxVOzMqnOG+3 I4njrT8L6nhTJVqdJx5AQVSeOm6Luv13L1q1pRH/eAbyU9wiRiR0C9AtR3wt87TG4OXK cJ7i8n+ZHqH+w1iz5N/UV1eqpS8t18xuDJJcVheraC40RHxqqs614PRylUPoDPxzJvLl A15y44yHOZ14y6fzG9DMLLhCbK0WtqXYwk6+l/tpjENarxsuaWyHPxXqk7sE225c1NCU H7SQ== X-Gm-Message-State: APjAAAW8vMfshVgD8rIRKBlsvyNElILkNw/wIjATJXJMwz2E551niWTw ThT6zCxrTrpJdlnQpzcrktHCMbi1FoQ= X-Received: by 2002:aa7:825a:: with SMTP id e26mr79303252pfn.255.1560225837698; Mon, 10 Jun 2019 21:03:57 -0700 (PDT) Received: from exogeni.mtv.corp.google.com ([2620:15c:202:1:5be8:f2a6:fd7b:7459]) by smtp.gmail.com with ESMTPSA id y133sm13301185pfb.28.2019.06.10.21.03.56 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 10 Jun 2019 21:03:57 -0700 (PDT) From: Derek Basehore To: linux-kernel@vger.kernel.org Cc: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Maarten Lankhorst , Maxime Ripard , Sean Paul , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , CK Hu , Philipp Zabel , Matthias Brugger , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, intel-gfx@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Derek Basehore Subject: [PATCH 2/5] dt-bindings: display/panel: Expand rotation documentation Date: Mon, 10 Jun 2019 21:03:47 -0700 Message-Id: <20190611040350.90064-3-dbasehore@chromium.org> X-Mailer: git-send-email 2.22.0.rc2.383.gf4fbbf30c2-goog In-Reply-To: <20190611040350.90064-1-dbasehore@chromium.org> References: <20190611040350.90064-1-dbasehore@chromium.org> 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 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 + +The panel driver may apply the rotation at the TCON level, which will +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. + +Example: + panel: panel@0 { + compatible = "boe,himax8279d8p"; + reg = <0>; + enable-gpios = <&pio 45 0>; + pp33-gpios = <&pio 35 0>; + pp18-gpios = <&pio 36 0>; + pinctrl-names = "default", "state_3300mv", "state_1800mv"; + pinctrl-0 = <&panel_pins_default>; + pinctrl-1 = <&panel_pins_3300mv>; + pinctrl-2 = <&panel_pins_1800mv>; + backlight = <&backlight_lcd0>; + rotation = <180>; + status = "okay"; + + port { + panel_in: endpoint { + remote-endpoint = <&dsi_out>; + }; + }; + }; -- 2.22.0.rc2.383.gf4fbbf30c2-goog