From patchwork Fri Apr 3 14:24:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1066 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-io1-f70.google.com (mail-io1-f70.google.com [209.85.166.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 321E63F1FE for ; Fri, 3 Apr 2020 16:25:06 +0200 (CEST) Received: by mail-io1-f70.google.com with SMTP id n15sf6135082iog.8 for ; Fri, 03 Apr 2020 07:25:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1585923904; cv=pass; d=google.com; s=arc-20160816; b=zQYNgUOcE3NSb9WO9aarKPzfKPXk5CzEzXUuVWuEoyT7t5/vUTsmxE6HqenGtuC17z Zfg98QuGE6JcnqMEne6vMc0ns8ndbd/etVbtqJ44SUcW3qqNNY4D/BsGyA5KYG+GA0kp 6cOwmsTvdndPp5ZIfxE5zcP8a+3xQLQvMMbq4zxDHBszX5b6YYkre7any621Sf58dXLC rlUiEo3l4uyJMIqVHJcDyMjPRa/cfulZjDC4AX4NlVg08mfo7Y6GDcjk6IU0t3SbGXSJ 0+8f5iO8+kO5k719Vyy2Mi+nlev8At97JNoEZbfjOO8nhyBO+QpBLvnupsebh6Yd+H+n JUXA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:message-id:date:subject:cc:to:from :mime-version:dkim-signature; bh=Uk8zTEJ1TZaONv+/g76SvE20U4GLaBdQO+arNjUDebI=; b=j6Q1cw8acFRUngiYmLDa45Fwg0uG1Vw7cBBMfE79dKF8P3mxn0HFRd6OkQcU+5Iwy7 07hoDPDXs6UrHeFOeEd9muYnDQiHcV3f7xv6ORtZp5BE354yBA3k87UJKIiosfZAW4+a 3KXxKBX7ehRFgnd59pEtnQDS2zOU0Jrnc4QgFLwWVOPZ8B+D8qHRjlO3Zbe3C57wgg2p iyCMwyNAcaIVXphwJ12lnFfPv894lXlNH0rK1tmK3nW4j8IOLSYIZND3Lz9qhAKhuYVP YK+B4iepIHQRVviadpbKYSILxtA6TOCuA9YX5Gu8EABhkyTvseWnDXj0X7x7uv80WJ6v fDZQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="ZMtQ3Z/u"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:from:to:cc:subject:date:message-id:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=Uk8zTEJ1TZaONv+/g76SvE20U4GLaBdQO+arNjUDebI=; b=KCSXSrixem8UWIOTKmDwYcc3sZazKL4rZ0G6C1TQC7Sry2jppD6s3ewhsUZrv4VIAf jHZxUw1RIshaai2Vjmu548+c2n/r6p/U9ar6MCJxRnaNYsoYwwPNwyKtBVFLKXRk8a/S NXGLsLUO0qJdebtPiBVomg30FU+XHaeyS43MM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=Uk8zTEJ1TZaONv+/g76SvE20U4GLaBdQO+arNjUDebI=; b=OoySK+d0Z5L1Wq4btFbqVSUvBcVAC/lLIAocizDzjvNQ9RpAK9k6M8GC79dwssGoOZ 9nIVJ1O7zGHFYcJlTibuR5bGrtTw/Lt9f0rl9VTysq29Z9NVQEx4dWqX7N8zQERDwB0G hyi5NZ8mwbLzqkw3uHtjEl+yjN9Lmp3vMprWWHPaR2xvFNsre6jy3fL0QCgILy7k2Zce wsPsooqynL9QCKqDqkJJMMWzNGtwmbq4QeojE9boQzvq2hJFJMM4gNqBgnB6Fao96UFm 2186OwEI5gzmft9m6woEJV+Z5pYJ4evKeGsXrFWDhRLu073v7Kjp8/aS4rzrAobiBtLa YPhA== X-Gm-Message-State: AGi0PuYaS+ABZleAYMZsTGqbzTYtVA0w/Eo+OY1C4xQxGdoKTZYrykpN U0Xcp/0DecQG4uN55Ojd4IY/3DVs X-Google-Smtp-Source: APiQypJN8aS+w0dVQDo39JUnh5/dQUUL6sUVXOMJC0sBNw6FT334pOWsUwOnI7W8vSDacQNzXJy7xw== X-Received: by 2002:a05:6638:a22:: with SMTP id 2mr8970580jao.74.1585923904258; Fri, 03 Apr 2020 07:25:04 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a92:3ccf:: with SMTP id j76ls3642000ilf.8.gmail; Fri, 03 Apr 2020 07:25:04 -0700 (PDT) X-Received: by 2002:a92:cece:: with SMTP id z14mr9182946ilq.38.1585923903792; Fri, 03 Apr 2020 07:25:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585923903; cv=none; d=google.com; s=arc-20160816; b=r4XJXzYZAkbRJNHMYOP1vXhfZW6ecPbYRCqGJb9eBbDiCM0GHKfiB6rgNnvwasXG+g YbyoazENW2IuMrW43hYcIeUc+OMgxL74+u1BP2TJq6IIMaDRxOXw8ocIYovgr9Hcx671 czmvlUSax4mqgskQL9N2kTPVsvpGnTo6UXMd/+yR+3sMMhxjriaL++aYEH7FT398uiIy QJSP4C1LFEqXw3geN0YsfZjpn3rjEwtX6zMpwe0Terie41PXzmLKkTn5gl2fyZ2UEWzN os0fF42Om6wBSpRRHRiVOLu399+sSUWMn9dDfCfsBRg4qkcYN4DYV7hNO5OomL91Pkw4 ctvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature; bh=vKBRMX/UzCOn34k/kAwE26KCgVenN+ytvHTmdWU7Okc=; b=FXM2imuh3IsgGXKz3RNHoDYl2UzZ9nDFgMa7k9AeBKC6mUAoy6ZvSA1dTbxiu88lla D4+OXTVmFsoTU7S2gVLdVSaqIKJfgSFkDchRoOumLOeHRlwq0ogx8C1IqlqfEezoPycU bFepQfF5IIM+KiiJfe25wDPd3bAbCauzicsmLP3NeNpywK0OerhZtyJPxs/Xp+UXqh42 psR+HwuiOh9RmcNK5nTDvvFYPxAjzUqLbN7h5QRg0KkhE+gFLR7lpMOVQZHz3CnMr/rm +LyEeqbnkrQ7rJsMcGURTZyjSc7eEf/REUUUYi7IXWI8/GXraOkXe0nBNZ1bT82p8NEC 7ZNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="ZMtQ3Z/u"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id s25sor9222952ild.134.2020.04.03.07.25.03 for (Google Transport Security); Fri, 03 Apr 2020 07:25:03 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:90b:3615:: with SMTP id ml21mr10361300pjb.145.1585923902916; Fri, 03 Apr 2020 07:25:02 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:9cd7:b821:2c84:e325]) by smtp.gmail.com with ESMTPSA id g75sm5857060pje.37.2020.04.03.07.24.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Apr 2020 07:25:02 -0700 (PDT) From: Jagan Teki To: Thierry Reding , Sam Ravnborg , Rob Herring Cc: David Airlie , Daniel Vetter , Mark Rutland , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v3 1/3] dt-bindings: display: panel: Convert feiyang, fy07024di26a30d to DT schema Date: Fri, 3 Apr 2020 19:54:51 +0530 Message-Id: <20200403142453.25307-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="ZMtQ3Z/u"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Convert the feiyang,fy07024di26a30d panel bindings to DT schema. Signed-off-by: Jagan Teki --- Changes for v3: - update the licence, used (GPL-2.0-only OR BSD-2-Clause) since I'm the author for old binding - use panel-common.yaml - mark true for common properties - use maxItems: 1 for reg - update example Changes for v2: - fix dt_binding_check .../display/panel/feiyang,fy07024di26a30d.txt | 20 ------- .../panel/feiyang,fy07024di26a30d.yaml | 58 +++++++++++++++++++ 2 files changed, 58 insertions(+), 20 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/feiyang,fy07024di26a30d.txt create mode 100644 Documentation/devicetree/bindings/display/panel/feiyang,fy07024di26a30d.yaml diff --git a/Documentation/devicetree/bindings/display/panel/feiyang,fy07024di26a30d.txt b/Documentation/devicetree/bindings/display/panel/feiyang,fy07024di26a30d.txt deleted file mode 100644 index 82caa7b65ae8..000000000000 --- a/Documentation/devicetree/bindings/display/panel/feiyang,fy07024di26a30d.txt +++ /dev/null @@ -1,20 +0,0 @@ -Feiyang FY07024DI26A30-D 7" MIPI-DSI LCD Panel - -Required properties: -- compatible: must be "feiyang,fy07024di26a30d" -- reg: DSI virtual channel used by that screen -- avdd-supply: analog regulator dc1 switch -- dvdd-supply: 3v3 digital regulator -- reset-gpios: a GPIO phandle for the reset pin - -Optional properties: -- backlight: phandle for the backlight control. - -panel@0 { - compatible = "feiyang,fy07024di26a30d"; - reg = <0>; - avdd-supply = <®_dc1sw>; - dvdd-supply = <®_dldo2>; - reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD24 */ - backlight = <&backlight>; -}; diff --git a/Documentation/devicetree/bindings/display/panel/feiyang,fy07024di26a30d.yaml b/Documentation/devicetree/bindings/display/panel/feiyang,fy07024di26a30d.yaml new file mode 100644 index 000000000000..95acf9e96f1c --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/feiyang,fy07024di26a30d.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/feiyang,fy07024di26a30d.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Feiyang FY07024DI26A30-D 7" MIPI-DSI LCD Panel + +maintainers: + - Jagan Teki + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: feiyang,fy07024di26a30d + + reg: + description: DSI virtual channel used by that screen + maxItems: 1 + + avdd-supply: + description: analog regulator dc1 switch + + dvdd-supply: + description: 3v3 digital regulator + + reset-gpios: true + + backlight: true + +required: + - compatible + - reg + - avdd-supply + - dvdd-supply + - reset-gpios + +additionalProperties: false + +examples: + - | + #include + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "feiyang,fy07024di26a30d"; + reg = <0>; + avdd-supply = <®_dc1sw>; + dvdd-supply = <®_dldo2>; + reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD24 */ + backlight = <&backlight>; + }; + };