Received: by 10.213.65.68 with SMTP id h4csp539393imn; Wed, 4 Apr 2018 03:01:11 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/fu4xzfeoHRGU12kQmBULZd8lKRHZLSgQAoUEujPm2EOAbcf4TSgPeLDUWLSMaMggRhZPg X-Received: by 2002:a17:902:6e8c:: with SMTP id v12-v6mr17680745plk.24.1522836071924; Wed, 04 Apr 2018 03:01:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522836071; cv=none; d=google.com; s=arc-20160816; b=qRpTQS47JijAYCiIXSuboYlBVecEoqwFHcYUcaPg5yBJq/GK9Md625TVAd4AnuGLLE EjQWvTx21FLxDUdyoNF4Qy1/PbXaozmifW+d5G6UTPr4Y9sjZG3ptpHoEdQnsFvtDZ4T CvKG86n/AVYRR4ceBfyPs8JPSvv7jkDekp3YgRQWJyPWOx80VU0onetmqQmWVQfbxbZa LQpXn/OliCgv6uSqaC2aYwEXGbeGoNNpM9ajuW3wMdPIsmTjw8N26acieMi2RoSHcK1G icdBmXYCzej619c7SkwZX3Z4fofCiQTs8dOKHdRNc91i6gjJp+a/S6evNkGUXrfQYJVc h4XQ== 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=Zd2iLWOsB10wM4B4Gkrqms9dK5ZZDtKGkesa+juAwlk=; b=XF6M4FUs+bWNNoVhPnLyNqtpPOORn+KZ57r1Rt1vyskp1QDDeEMdQ4SFyqSBW3dGhr TfqWtNkAzZ35nJNv652RbnLdN7BRg0H2q+9Mq6JG/r/Isw+np4VL6FavWOGFZ7Vflbq9 +CTHOWPAlYqNandS9QgLxcFwuNeZUJPhYWZMvt7ZkFE7pV9TvjD9laDe4VNii7BnwPcz NcRU3q0aayhrRw7dNiwm5FinQDIsd/umBViwEgbRcbmvlduKetOXvW3yVV5wjtprO8NY 5v60Rk7pZa2pth82eZ/S/wBTMxffgk03aNxb6nwnZurbJr1UXkMlP+nPP3Gzq2DuJo+u Or9g== 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 v12-v6si2769378plk.615.2018.04.04.03.00.57; Wed, 04 Apr 2018 03:01:11 -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; 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 S1751528AbeDDJ7V (ORCPT + 99 others); Wed, 4 Apr 2018 05:59:21 -0400 Received: from mail.bootlin.com ([62.4.15.54]:42922 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751244AbeDDJ5d (ORCPT ); Wed, 4 Apr 2018 05:57:33 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 9828B20898; Wed, 4 Apr 2018 11:57:31 +0200 (CEST) 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 (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id 654AF2071E; Wed, 4 Apr 2018 11:57:21 +0200 (CEST) From: Maxime Ripard To: Thierry Reding , Chen-Yu Tsai , Maxime Ripard , Mark Rutland , Rob Herring , Frank Rowand 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 Subject: [PATCH v4 2/8] dt-bindings: display: Add Allwinner MIPI-DSI bindings Date: Wed, 4 Apr 2018 11:57:10 +0200 Message-Id: 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 The Allwinner SoCs usually come with a DSI encoder. Add a binding for it. Reviewed-by: Rob Herring 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