From patchwork Sun Mar 15 13:43:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 203297 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15ED6C10DCE for ; Sun, 15 Mar 2020 13:44:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E170620674 for ; Sun, 15 Mar 2020 13:44:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YSDzbdm4" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728659AbgCONos (ORCPT ); Sun, 15 Mar 2020 09:44:48 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:42477 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728658AbgCONos (ORCPT ); Sun, 15 Mar 2020 09:44:48 -0400 Received: by mail-lf1-f66.google.com with SMTP id t21so11694178lfe.9; Sun, 15 Mar 2020 06:44:46 -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=OWdCcK1waThtoepd7BYaq8MoQGbRPjR7ssIGl9jD1xY=; b=YSDzbdm4qZdmbd9LTRerOaVNxCvdNWkRyn/yU3TbuIPImFjaM6FXupe/cBOTPgfatz ci66uHuB16rB+LKkyoRJlDaheIF3gaVQIk2rW+wtqmrIcj3s+LoLf7BXvY22wI3Ue02U 9Xq8YK1Xc8E0Ppac1XGbHpoK9keUbfb0G3zs+cehLapMQT+I/maKaPKWMLcrYYr0XpDK MxHaTxvpC/oxqq29BwiXfTNBLkm2N179/isspU3vWjuxeJn263d0d96zPH4K+N07zBix CyAZBPVAPXO92Kpha7Ri2zuWPjgRKHC4PnNB5hFk2WmfZP5IibycdLeuMXsYyQ6ySjwm Zu0w== 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=OWdCcK1waThtoepd7BYaq8MoQGbRPjR7ssIGl9jD1xY=; b=F/EYKmjVNVCZCtoFyrfKhix+AotVX/HhxghEsQl3fg/v8JwkKxsRyHOlsNSybbYtKR owauEX3G8+4O6u27SoQJZ7jTr6XF4nhHSpj3Rr2rIMhkcPIKaVQM8ISnu7JoZHD8+6kn OCkeU56vPO0hesYjtyCpk+cstx+0WYJ60/OAZq3gbnuvcnNo4BWkNnBDIRTAHJoKNv9d ZUdSM7GTV+UiPXEzxwTAsBpI9ZveoojNY6DEWkAaYwQyz/PzBZEk7lCdRtdCkufk81Cw PzaPe6EpXBwAAp+SxglUIDqvxhr1q5lklH1+rHFmAOaiFGoW2UG4mMoJlkc44KOvi4df J+wg== X-Gm-Message-State: ANhLgQ2FPEk8owTCL/fIZeGVsnOM+M0Ook2ph3FuJRvc2gitNZoSIo7R 5py2hKoFvRgm78eNDTAGPiI= X-Google-Smtp-Source: ADFU+vvMNL4/OCBcGRfP86JCNs0Uu0s4FaODwXFU6z2OwE94xN979qCQv/xlOUmU0/daCIjp3W2TBQ== X-Received: by 2002:a19:80e:: with SMTP id 14mr13714096lfi.206.1584279885499; Sun, 15 Mar 2020 06:44:45 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id a9sm23025212lfb.21.2020.03.15.06.44.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2020 06:44:45 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, Thierry Reding , Rob Herring , devicetree@vger.kernel.org Cc: Alexandre Courbot , Andrzej Hajda , Brian Masney , Chris Zhong , Douglas Anderson , Guido Gunther , Heiko Schocher , Nikolaus Schaller , Hoegeun Kwon , Jagan Teki , Jerry Han , Jonathan Bakker , Laurent Pinchart , Lin Huang , Linus Walleij , linux-spi@vger.kernel.org, Marco Franchi , Marek Belisko , Mark Brown , Maxime Ripard , Maxime Ripard , Nickey Yang , Paul Cercueil , Peter Rosin , Peter Ujfalusi , Purism Kernel Team , Robert Chiras , Sam Ravnborg , Sandeep Panda , Stefan Mavrodiev , Tomi Valkeinen , Tony Lindgren , Vinay Simha BN , Werner Johansson Subject: [PATCH v1 08/36] dt-bindings: display: convert feiyang, fy07024di26a30d to DT Schema Date: Sun, 15 Mar 2020 14:43:48 +0100 Message-Id: <20200315134416.16527-9-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200315134416.16527-1-sam@ravnborg.org> References: <20200315134416.16527-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 Signed-off-by: Sam Ravnborg Cc: Jagan Teki Cc: Thierry Reding Cc: Sam Ravnborg --- .../display/panel/feiyang,fy07024di26a30d.txt | 20 ------- .../panel/feiyang,fy07024di26a30d.yaml | 56 +++++++++++++++++++ 2 files changed, 56 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..4bf4498d007a --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/feiyang,fy07024di26a30d.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: GPL-2.0 +%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 + + backlight: true + reg : true + reset-gpios: true + + avdd-supply: + description: analog regulator dc1 switch + + dvdd-supply: + description: 3v3 digital regulator + +required: + - compatible + - reg + - reset-gpios + - avdd-supply + - dvdd-supply + +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>; + }; + }; + +...