Received: by 10.223.185.116 with SMTP id b49csp3840996wrg; Tue, 6 Mar 2018 05:59:53 -0800 (PST) X-Google-Smtp-Source: AG47ELuqp6jTGxxRlz5swjBTZz39XVxCUGT5vFReF7saHyJVkJWwl9ysx/TqxVqfZsoTMhgA1nxU X-Received: by 10.98.74.140 with SMTP id c12mr19300771pfj.44.1520344793164; Tue, 06 Mar 2018 05:59:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520344793; cv=none; d=google.com; s=arc-20160816; b=C3++uJWc9H9LwnaOnZ2GGGr7hs7lv0WRSzvPeU5b097CHxR/TWTwxwNtsMlUu0PtF3 wV7Db2hov6pK01JnhehXnlqL3a+54z9/JH+72VZ+Nyyd/93o2VdR9KvaoMn/BOxbG/yi fgbOCiOXcCm83J5r14gN8mspOS8EUB8WxpJ7lbkzvZvqp1c98I05QfZGw0Pz0cdtMg7O KiC3QwGjnu/aKV2gHIrybEUha+/EhVWpLBs4/498SRZppfzoHpwU2QFV80P29dmGSA0y usTlOiNz8dSwtQGJXBT+jHt7B4E7beNunCCPaaQuCBeIUKWvSNJS2X/P9axY18Wqi2fW iHGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ZD1sLhKeZlHabGtsSuPOkDhdS2bwmIpbj2xPYGYsLto=; b=hci8hz2kdpnIYR8PF93NmFYHMTk5Q5T3MRQJ0P8qNoZ4IqBexsFFbU83Xn76JbsVBY bkDAGGwIH4oEzz0paeOzQaLlQdRUyZwEc6Hl9Y1urwxBY91BYs2uPAhpd4iZk+VjNVWy 9OkpamKPJs5/KgpH7ZCZKeFjPH1mNd0ApU/VW0BhKrQQ7KZ1JSQmf2maZlS9TM76nu9a u+eNLmjrN49tqv10UMwJQAVP79CYhCRP0hBC37SX1yTS1uRI3wztQ1ISNwLn66WA4w1t VLdSoGIQ4onRyBhyKVOqoJEWvL7/dUs6JKkU2HK+DbEAWIBe/mlRvDVyjYnB/z1Divut bJxg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11-v6si10948993pls.727.2018.03.06.05.59.36; Tue, 06 Mar 2018 05:59:53 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932881AbeCFN5M (ORCPT + 99 others); Tue, 6 Mar 2018 08:57:12 -0500 Received: from mail.bootlin.com ([62.4.15.54]:34963 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932287AbeCFN5K (ORCPT ); Tue, 6 Mar 2018 08:57:10 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id A235D20713; Tue, 6 Mar 2018 14:57:07 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (unknown [185.94.189.190]) by mail.bootlin.com (Postfix) with ESMTPSA id BA7B0207DA; Tue, 6 Mar 2018 14:56:15 +0100 (CET) From: Maxime Ripard To: Thierry Reding , Chen-Yu Tsai , Maxime Ripard , Mark Rutland , Rob Herring Cc: dri-devel@lists.freedesktop.org, Gustavo Padovan , Daniel Vetter , Maarten Lankhorst , Sean Paul , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , Maxime Ripard Subject: [PATCH v3 2/7] dt-bindings: display: Add Allwinner MIPI-DSI bindings Date: Tue, 6 Mar 2018 14:55:59 +0100 Message-Id: <5f183ae295c0190369ec576ecfb10c1d78f41eb3.1520344489.git-series.maxime.ripard@bootlin.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maxime Ripard The Allwinner SoCs usually come with a DSI encoder. Add a binding for it. Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/display/sunxi/sun6i-dsi.txt | 93 +++++++- 1 file changed, 93 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/sunxi/sun6i-dsi.txt diff --git a/Documentation/devicetree/bindings/display/sunxi/sun6i-dsi.txt b/Documentation/devicetree/bindings/display/sunxi/sun6i-dsi.txt new file mode 100644 index 000000000000..6a6cf5de08b0 --- /dev/null +++ b/Documentation/devicetree/bindings/display/sunxi/sun6i-dsi.txt @@ -0,0 +1,93 @@ +Allwinner A31 DSI Encoder +========================= + +The DSI pipeline consists of two separate blocks: the DSI controller +itself, and its associated D-PHY. + +DSI Encoder +----------- + +The DSI Encoder generates the DSI signal from the TCON's. + +Required properties: + - compatible: value must be one of: + * allwinner,sun6i-a31-mipi-dsi + - reg: base address and size of memory-mapped region + - interrupts: interrupt associated to this IP + - clocks: phandles to the clocks feeding the DSI encoder + * bus: the DSI interface clock + * mod: the DSI module clock + - clock-names: the clock names mentioned above + - phys: phandle to the D-PHY + - phy-names: must be "dphy" + - resets: phandle to the reset controller driving the encoder + + - ports: A ports node with endpoint definitions as defined in + Documentation/devicetree/bindings/media/video-interfaces.txt. The + first port should be the input endpoint, usually coming from the + associated TCON. + +Any MIPI-DSI device attached to this should be described according to +the bindings defined in ../mipi-dsi-bus.txt + +D-PHY +----- + +Required properties: + - compatible: value must be one of: + * allwinner,sun6i-a31-mipi-dphy + - reg: base address and size of memory-mapped region + - clocks: phandles to the clocks feeding the DSI encoder + * bus: the DSI interface clock + * mod: the DSI module clock + - clock-names: the clock names mentioned above + - resets: phandle to the reset controller driving the encoder + +Example: + +dsi0: dsi@1ca0000 { + compatible = "allwinner,sun6i-a31-mipi-dsi"; + reg = <0x01ca0000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_BUS_MIPI_DSI>, + <&ccu CLK_DSI_SCLK>; + clock-names = "bus", "mod"; + resets = <&ccu RST_BUS_MIPI_DSI>; + phys = <&dphy0>; + phy-names = "dphy"; + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "bananapi,lhr050h41", "ilitek,ili9881c"; + reg = <0>; + power-gpios = <&pio 1 7 GPIO_ACTIVE_HIGH>; /* PB07 */ + reset-gpios = <&r_pio 0 5 GPIO_ACTIVE_LOW>; /* PL05 */ + backlight = <&pwm_bl>; + }; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + dsi0_in_tcon0: endpoint { + remote-endpoint = <&tcon0_out_dsi0>; + }; + }; + }; +}; + +dphy0: d-phy@1ca1000 { + compatible = "allwinner,sun6i-a31-mipi-dphy"; + reg = <0x01ca1000 0x1000>; + clocks = <&ccu CLK_BUS_MIPI_DSI>, + <&ccu CLK_DSI_DPHY>; + clock-names = "bus", "mod"; + resets = <&ccu RST_BUS_MIPI_DSI>; + #phy-cells = <0>; +}; -- git-series 0.9.1