From patchwork Sat Jul 4 10:28:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 1322739 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ravnborg.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=LbV/lzm9; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 49zShy4V5zz9sR4 for ; Sat, 4 Jul 2020 20:28:18 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726794AbgGDK2S (ORCPT ); Sat, 4 Jul 2020 06:28:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726178AbgGDK2R (ORCPT ); Sat, 4 Jul 2020 06:28:17 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41F37C061794 for ; Sat, 4 Jul 2020 03:28:17 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id s9so39727784ljm.11 for ; Sat, 04 Jul 2020 03:28:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dH3Z+kl6o2dfyL4qa34soh2RFGX0Yk+95gG53PZ+Qhc=; b=LbV/lzm9Up0Af/PHNmdJb1SKGNfb9UGu3e2qs9Di60vbsRUnOy0HPKp8LZ6Vjrkacd XMyEwV7tyMOozy4z2EaLghCwhIPGmciDcyI/OlC++BSPJhciHz1R6dez8cxfpKE/d122 DMSWCBt7+epuwby5iA9Ur8WUK77oGH7zJCoQHWFHsmgQKsD+UzgTxjkM84GYgDCMyjlS 72bBw4uipL+K68cA3zem3Y4gFq1YD2VH6h/R86tu3ogDpxT3h8igJdA/JXOAKRWEj+5g qDxvmca3pDcCCDAFCX9MBxJg0j7U9upwLiI/+xH+rVrCTabKv40FSk5oPkOUaGQD6pI6 bdXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=dH3Z+kl6o2dfyL4qa34soh2RFGX0Yk+95gG53PZ+Qhc=; b=AeJSOzVoEMjJDxihHiTJrlSiFdt/dIg+OY1Tu1spPKSrrnsTfB211rk79kjn7MFq8E f6ZFHGUjhpdoCAGGnxOysP5wnhWBfEWlnJ2aiRC9uUc3tv7qiklUwckxaTvSVzXmiGf8 jRirTlEd8bWbxyZcb0fEyYYCKIOPNo+bsFXd38+VxYKHboDCqB7+F2+mnijEFCIiQfko yyObHVkSNOIk4P3uzf5qdx40GeCbw6D/2QpauKc15IlJtb4SLW+1GEMOOxywpAd3JjA+ PVdf1O4B2CV19xMLeTPPyqq+L2qreuPh6y8D93vl055HRrBdQMq9lQk6S8lxKL7mhx/z czDA== X-Gm-Message-State: AOAM531+lgRHXKNkPkOgV327o0Offl7nwRqBkHcbAkpfkmBwtsPM+qb3 O6BrlQmXu9OBL9QiCiEY6pU= X-Google-Smtp-Source: ABdhPJzI3dJJQeiYqiDo0ihYX8hL5jZulRnJVw1oAb0UE5nqMPJFhton/eIHFX/lTwvHSYpTjKI5qA== X-Received: by 2002:a2e:4812:: with SMTP id v18mr22742267lja.353.1593858495778; Sat, 04 Jul 2020 03:28:15 -0700 (PDT) Received: from saturn.lan ([2a00:fd00:805f:db00:4025:a614:1d5c:b7bc]) by smtp.gmail.com with ESMTPSA id z23sm5366913ljz.3.2020.07.04.03.28.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jul 2020 03:28:15 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, Rob Herring Cc: Andrzej Hajda , Chris Zhong , Sam Ravnborg , Thierry Reding , Sebastian Reichel Subject: [PATCH v3 1/3] dt-bindings: display: convert innolux,p079zca to DT Schema Date: Sat, 4 Jul 2020 12:28:04 +0200 Message-Id: <20200704102806.735713-2-sam@ravnborg.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200704102806.735713-1-sam@ravnborg.org> References: <20200704102806.735713-1-sam@ravnborg.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org As the binding matches panel-simple-dsi, added the compatible to the panel-simple-dsi list. With this change enable-gpios is now optional. v2: - It is a DSI panel, add it to panel-simple-dsi (Rob) Signed-off-by: Sam Ravnborg Cc: Rob Herring Cc: Chris Zhong Cc: Thierry Reding Cc: Sam Ravnborg Reviewed-by: Rob Herring --- .../display/panel/innolux,p079zca.txt | 22 ------------------- .../display/panel/panel-simple-dsi.yaml | 2 ++ 2 files changed, 2 insertions(+), 22 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/innolux,p079zca.txt diff --git a/Documentation/devicetree/bindings/display/panel/innolux,p079zca.txt b/Documentation/devicetree/bindings/display/panel/innolux,p079zca.txt deleted file mode 100644 index 3ab8c7412cf6..000000000000 --- a/Documentation/devicetree/bindings/display/panel/innolux,p079zca.txt +++ /dev/null @@ -1,22 +0,0 @@ -Innolux P079ZCA 7.85" 768x1024 TFT LCD panel - -Required properties: -- compatible: should be "innolux,p079zca" -- reg: DSI virtual channel of the peripheral -- power-supply: phandle of the regulator that provides the supply voltage -- enable-gpios: panel enable gpio - -Optional properties: -- backlight: phandle of the backlight device attached to the panel - -Example: - - &mipi_dsi { - panel@0 { - compatible = "innolux,p079zca"; - reg = <0>; - power-supply = <...>; - backlight = <&backlight>; - enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>; - }; - }; diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml index 16778ce782fc..c0dd9fa29f1d 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml @@ -33,6 +33,8 @@ properties: - auo,b080uan01 # Boe Corporation 8.0" WUXGA TFT LCD panel - boe,tv080wum-nl0 + # Innolux P079ZCA 7.85" 768x1024 TFT LCD panel + - innolux,p079zca # Kingdisplay KD097D04 9.7" 1536x2048 TFT LCD panel - kingdisplay,kd097d04 # LG ACX467AKM-7 4.95" 1080×1920 LCD Panel From patchwork Sat Jul 4 10:28:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 1322740 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ravnborg.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=hsKozLej; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 49zSj03njfz9sR4 for ; Sat, 4 Jul 2020 20:28:20 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726895AbgGDK2U (ORCPT ); Sat, 4 Jul 2020 06:28:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726178AbgGDK2T (ORCPT ); Sat, 4 Jul 2020 06:28:19 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46E5AC061794 for ; Sat, 4 Jul 2020 03:28:19 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id q7so26537452ljm.1 for ; Sat, 04 Jul 2020 03:28:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=egNFN6wJrz0fv/icBKiyuH1pCdcaQPddX7ketsRVnQg=; b=hsKozLejW0y6oPXqOwCX5ttyKK6gpKN6Gl+ycH9VzvqOme6O0vjxw2/BzOATxx1WDW bGpSGu+ZcTSU7+VOP6tLEJ4F+z96ZUh6kCkGebwAn3eFaqz42kF9Lt8EqvzUmlKp+x1N Wv8NPj6SYKwLzbzcdLyqq6Pthloo2iqbDPMDqgYBT3V+T9q1Yd6z4DTfZR9/c3Y6G580 3LDtL0B/vpTnmN55gGAaE7dPiX1USrKvaUTz2SNdzmzKcJJnloaPhVBo7d7DLb00QBK3 VJc00Tou3qCsYaZYQuX9cXReQzfM+IZ2nhmG5w8GFHMEG+njhEB51OVG9lL+4s1IgOXr yrtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=egNFN6wJrz0fv/icBKiyuH1pCdcaQPddX7ketsRVnQg=; b=X18AKHJAxAqFD0VwmuW/2wegKPnPrwVi2jV0Lvn+qC2BwIayZ+0rV2HoHgkRJKO5Bg PGB9GPRozQq9qLicMfWwkmD+gfS4vhx6WEzuhuFZFNMZJbdy2LVm+RGzFq5XsRnoWUIN l+R0syqP5qKdRbNSs0SG4s2WAbZDHoYM77BClFXDhFcLtmlfQU9exGfPpqomhXW/DZiy O1nr4W0oMB1hYNSYPd+p7kBho7qa+dzCy65yDTylqm7J4h39kotOhkgxP8/GkqDDgwsB j7emoAf+mj4rt9TuMdyfTPMtm916EcypucBXtcbnF7AEiJp9rt1PchWANS6sFhdkx+iB VWVw== X-Gm-Message-State: AOAM532Qas+HcyiCkVQeTPTB1PFzxoEEwGOezDLhzkJh5u3iggHrYFOj 8miHwZjil/lZHqtqpqXI4SQ= X-Google-Smtp-Source: ABdhPJxSL2bWyY24MD/8MmpUA0uTMWzddwS25odkoGDYFZTW0NB6X94wPllX9qd9L92eRx6TGueG9g== X-Received: by 2002:a2e:a54a:: with SMTP id e10mr22733699ljn.198.1593858497688; Sat, 04 Jul 2020 03:28:17 -0700 (PDT) Received: from saturn.lan ([2a00:fd00:805f:db00:4025:a614:1d5c:b7bc]) by smtp.gmail.com with ESMTPSA id z23sm5366913ljz.3.2020.07.04.03.28.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jul 2020 03:28:17 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, Rob Herring Cc: Andrzej Hajda , Chris Zhong , Sam Ravnborg , Thierry Reding , Sebastian Reichel Subject: [PATCH v3 2/3] dt-bindings: display: convert samsung,s6e8aa0 to DT Schema Date: Sat, 4 Jul 2020 12:28:05 +0200 Message-Id: <20200704102806.735713-3-sam@ravnborg.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200704102806.735713-1-sam@ravnborg.org> References: <20200704102806.735713-1-sam@ravnborg.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org v2: - Add missing types (Rob) - Fix example to specify panel@0 (Rob) Signed-off-by: Sam Ravnborg Cc: Rob Herring Cc: Andrzej Hajda Cc: Thierry Reding Cc: Sam Ravnborg Reviewed-by: Rob Herring --- .../display/panel/samsung,s6e8aa0.txt | 56 ---------- .../display/panel/samsung,s6e8aa0.yaml | 100 ++++++++++++++++++ 2 files changed, 100 insertions(+), 56 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6e8aa0.txt create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6e8aa0.yaml diff --git a/Documentation/devicetree/bindings/display/panel/samsung,s6e8aa0.txt b/Documentation/devicetree/bindings/display/panel/samsung,s6e8aa0.txt deleted file mode 100644 index 9e766c5f86da..000000000000 --- a/Documentation/devicetree/bindings/display/panel/samsung,s6e8aa0.txt +++ /dev/null @@ -1,56 +0,0 @@ -Samsung S6E8AA0 AMOLED LCD 5.3 inch panel - -Required properties: - - compatible: "samsung,s6e8aa0" - - reg: the virtual channel number of a DSI peripheral - - vdd3-supply: core voltage supply - - vci-supply: voltage supply for analog circuits - - reset-gpios: a GPIO spec for the reset pin - - display-timings: timings for the connected panel as described by [1] - -Optional properties: - - power-on-delay: delay after turning regulators on [ms] - - reset-delay: delay after reset sequence [ms] - - init-delay: delay after initialization sequence [ms] - - panel-width-mm: physical panel width [mm] - - panel-height-mm: physical panel height [mm] - - flip-horizontal: boolean to flip image horizontally - - flip-vertical: boolean to flip image vertically - -The device node can contain one 'port' child node with one child -'endpoint' node, according to the bindings defined in [2]. This -node should describe panel's video bus. - -[1]: Documentation/devicetree/bindings/display/panel/display-timing.txt -[2]: Documentation/devicetree/bindings/media/video-interfaces.txt - -Example: - - panel { - compatible = "samsung,s6e8aa0"; - reg = <0>; - vdd3-supply = <&vcclcd_reg>; - vci-supply = <&vlcd_reg>; - reset-gpios = <&gpy4 5 0>; - power-on-delay= <50>; - reset-delay = <100>; - init-delay = <100>; - panel-width-mm = <58>; - panel-height-mm = <103>; - flip-horizontal; - flip-vertical; - - display-timings { - timing0: timing-0 { - clock-frequency = <57153600>; - hactive = <720>; - vactive = <1280>; - hfront-porch = <5>; - hback-porch = <5>; - hsync-len = <5>; - vfront-porch = <13>; - vback-porch = <1>; - vsync-len = <2>; - }; - }; - }; diff --git a/Documentation/devicetree/bindings/display/panel/samsung,s6e8aa0.yaml b/Documentation/devicetree/bindings/display/panel/samsung,s6e8aa0.yaml new file mode 100644 index 000000000000..f155074726d2 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/samsung,s6e8aa0.yaml @@ -0,0 +1,100 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/samsung,s6e8aa0.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung S6E8AA0 AMOLED LCD 5.3 inch panel + +maintainers: + - Andrzej Hajda + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: samsung,s6e8aa0 + + reg: true + reset-gpios: true + display-timings: true + + vdd3-supply: + description: core voltage supply + + vci-supply: + description: voltage supply for analog circuits + + power-on-delay: + description: delay after turning regulators on [ms] + $ref: /schemas/types.yaml#/definitions/uint32 + + reset-delay: + description: delay after reset sequence [ms] + $ref: /schemas/types.yaml#/definitions/uint32 + + init-delay: + description: delay after initialization sequence [ms] + + panel-width-mm: + description: physical panel width [mm] + + panel-height-mm: + description: physical panel height [mm] + + flip-horizontal: + description: boolean to flip image horizontally + type: boolean + + flip-vertical: + description: boolean to flip image vertically + type: boolean + +required: + - compatible + - reg + - vdd3-supply + - vci-supply + - reset-gpios + - display-timings + +additionalProperties: false + +examples: + - | + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "samsung,s6e8aa0"; + reg = <0>; + vdd3-supply = <&vcclcd_reg>; + vci-supply = <&vlcd_reg>; + reset-gpios = <&gpy4 5 0>; + power-on-delay= <50>; + reset-delay = <100>; + init-delay = <100>; + panel-width-mm = <58>; + panel-height-mm = <103>; + flip-horizontal; + flip-vertical; + + display-timings { + timing0: timing-0 { + clock-frequency = <57153600>; + hactive = <720>; + vactive = <1280>; + hfront-porch = <5>; + hback-porch = <5>; + hsync-len = <5>; + vfront-porch = <13>; + vback-porch = <1>; + vsync-len = <2>; + }; + }; + }; + }; + +... From patchwork Sat Jul 4 10:28:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 1322741 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ravnborg.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=XIRqKQYC; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 49zSj22V35z9sR4 for ; Sat, 4 Jul 2020 20:28:22 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726934AbgGDK2V (ORCPT ); Sat, 4 Jul 2020 06:28:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726178AbgGDK2V (ORCPT ); Sat, 4 Jul 2020 06:28:21 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FFE7C061794 for ; Sat, 4 Jul 2020 03:28:21 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id s9so39727873ljm.11 for ; Sat, 04 Jul 2020 03:28:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=C5wlEjaiimAhiMOgTbXBv9o5NagLYnP7pgeN7/QqAPI=; b=XIRqKQYCa/UTfgcJDFZRIe4yREdW/CHWiTGba7Bnh3IcBNSXGOUQkxMkK8HVkH13x7 xwHitVh+KadAxHMhKBUcorAEE9JqtsM+3ngLePr5u/MlDZtVRt645TTTuTvrYExn+sW+ Q1Hx3FpofOoLiizDcui+ljwymGJDshvQfwFleIYiPbeQWbyJX31Io3YdJmPVJWFerrz0 8Xzh54cz7NjFiKxGjasV4ABRnrvw8IrMUnRwnJCt4cC3LBTvErvYfWJnvt3WAfoWkhww BZWYlNb63ODsDET+VnqY/UMnq8IC+HSSYQXFXE2HBmzFrACPC6bDWyjyAdrLvY7ewdKN pvbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=C5wlEjaiimAhiMOgTbXBv9o5NagLYnP7pgeN7/QqAPI=; b=jdGbEPrmI2Y42Kv+1yVn0EFadKMZrnBVLp8iZpuq3iZG1SUApg9yCMNBoXFKbl3eK8 +Jdb7dT9XvoKyI6j3Do5nzsZmHibwoEitDpaM3mgQj0A1IJlgjDmZ7p9W/+BBxvUlc2z BXLsjxvwyVqWWIYuzLZkh3yfURJEDRFbP+HiptI9pKR68Jb3OZL9mQ04GRAGUFdHeDfC rPMR+MEncwTjKJCHsvC/ZLk7KYd6XY5toOt49deCsHkDtGL/Eml31bNe+YqkXhmaww93 d4HguJ56oSz2wUFr/UAzrAlnnvLApjfNk2y+RBgA8UtWlqA6YTZGKXrwbsgo2xDsPxUD +adA== X-Gm-Message-State: AOAM533a5W/6vtK1D+CUYFWPG6Yj5iBX9t5F+GSIV0L+FfRmU/wXp7Ef 0MVcEh+pqg8o5Xo27tSWEas= X-Google-Smtp-Source: ABdhPJw2pRII2hvQP7haETvakQpHBTmpwpIYi/7LgPEz9zqy+9Jw3cTCHDnz4eryWRMsjHO5nPd4oQ== X-Received: by 2002:a2e:9611:: with SMTP id v17mr10006033ljh.110.1593858499494; Sat, 04 Jul 2020 03:28:19 -0700 (PDT) Received: from saturn.lan ([2a00:fd00:805f:db00:4025:a614:1d5c:b7bc]) by smtp.gmail.com with ESMTPSA id z23sm5366913ljz.3.2020.07.04.03.28.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jul 2020 03:28:19 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, Rob Herring Cc: Andrzej Hajda , Chris Zhong , Sam Ravnborg , Thierry Reding , Sebastian Reichel Subject: [PATCH v3 3/3] dt-bindings: display: convert sharp,lq101r1sx01 to DT Schema Date: Sat, 4 Jul 2020 12:28:06 +0200 Message-Id: <20200704102806.735713-4-sam@ravnborg.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200704102806.735713-1-sam@ravnborg.org> References: <20200704102806.735713-1-sam@ravnborg.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This binding describes a panel with a secondary channel. v3: - Add reg property and unit-address to dsi nodes (Rob) v2: - add check for required properties if link2 is present (Rob) Signed-off-by: Sam Ravnborg Reviewed-by: Rob Herring Cc: Rob Herring Cc: Thierry Reding Cc: Sam Ravnborg --- .../display/panel/sharp,lq101r1sx01.txt | 49 ----------- .../display/panel/sharp,lq101r1sx01.yaml | 87 +++++++++++++++++++ 2 files changed, 87 insertions(+), 49 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/sharp,lq101r1sx01.txt create mode 100644 Documentation/devicetree/bindings/display/panel/sharp,lq101r1sx01.yaml diff --git a/Documentation/devicetree/bindings/display/panel/sharp,lq101r1sx01.txt b/Documentation/devicetree/bindings/display/panel/sharp,lq101r1sx01.txt deleted file mode 100644 index f522bb8e47e1..000000000000 --- a/Documentation/devicetree/bindings/display/panel/sharp,lq101r1sx01.txt +++ /dev/null @@ -1,49 +0,0 @@ -Sharp Microelectronics 10.1" WQXGA TFT LCD panel - -This panel requires a dual-channel DSI host to operate. It supports two modes: -- left-right: each channel drives the left or right half of the screen -- even-odd: each channel drives the even or odd lines of the screen - -Each of the DSI channels controls a separate DSI peripheral. The peripheral -driven by the first link (DSI-LINK1), left or even, is considered the primary -peripheral and controls the device. The 'link2' property contains a phandle -to the peripheral driven by the second link (DSI-LINK2, right or odd). - -Note that in video mode the DSI-LINK1 interface always provides the left/even -pixels and DSI-LINK2 always provides the right/odd pixels. In command mode it -is possible to program either link to drive the left/even or right/odd pixels -but for the sake of consistency this binding assumes that the same assignment -is chosen as for video mode. - -Required properties: -- compatible: should be "sharp,lq101r1sx01" -- reg: DSI virtual channel of the peripheral - -Required properties (for DSI-LINK1 only): -- link2: phandle to the DSI peripheral on the secondary link. Note that the - presence of this property marks the containing node as DSI-LINK1. -- power-supply: phandle of the regulator that provides the supply voltage - -Optional properties (for DSI-LINK1 only): -- backlight: phandle of the backlight device attached to the panel - -Example: - - dsi@54300000 { - panel: panel@0 { - compatible = "sharp,lq101r1sx01"; - reg = <0>; - - link2 = <&secondary>; - - power-supply = <...>; - backlight = <...>; - }; - }; - - dsi@54400000 { - secondary: panel@0 { - compatible = "sharp,lq101r1sx01"; - reg = <0>; - }; - }; diff --git a/Documentation/devicetree/bindings/display/panel/sharp,lq101r1sx01.yaml b/Documentation/devicetree/bindings/display/panel/sharp,lq101r1sx01.yaml new file mode 100644 index 000000000000..a679d3647dbd --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/sharp,lq101r1sx01.yaml @@ -0,0 +1,87 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/sharp,lq101r1sx01.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sharp Microelectronics 10.1" WQXGA TFT LCD panel + +maintainers: + - Thierry Reding + +description: | + This panel requires a dual-channel DSI host to operate. It supports two modes: + - left-right: each channel drives the left or right half of the screen + - even-odd: each channel drives the even or odd lines of the screen + + Each of the DSI channels controls a separate DSI peripheral. The peripheral + driven by the first link (DSI-LINK1), left or even, is considered the primary + peripheral and controls the device. The 'link2' property contains a phandle + to the peripheral driven by the second link (DSI-LINK2, right or odd). + + Note that in video mode the DSI-LINK1 interface always provides the left/even + pixels and DSI-LINK2 always provides the right/odd pixels. In command mode it + is possible to program either link to drive the left/even or right/odd pixels + but for the sake of consistency this binding assumes that the same assignment + is chosen as for video mode. + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: sharp,lq101r1sx01 + + reg: true + power-supply: true + backlight: true + + link2: + $ref: /schemas/types.yaml#/definitions/phandle + description: | + phandle to the DSI peripheral on the secondary link. Note that the + presence of this property marks the containing node as DSI-LINK1 + +required: + - compatible + - reg + +if: + required: + - link2 +then: + required: + - power-supply + +additionalProperties: false + +examples: + - | + dsi0: dsi@fd922800 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0xfd922800 0x200>; + + panel: panel@0 { + compatible = "sharp,lq101r1sx01"; + reg = <0>; + + link2 = <&secondary>; + + power-supply = <&power>; + backlight = <&backlight>; + }; + }; + + dsi1: dsi@fd922a00 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0xfd922a00 0x200>; + + secondary: panel@0 { + compatible = "sharp,lq101r1sx01"; + reg = <0>; + }; + }; + +...