Received: by 10.223.185.116 with SMTP id b49csp7957009wrg; Thu, 1 Mar 2018 14:16:46 -0800 (PST) X-Google-Smtp-Source: AG47ELvChFQQ11iIQXXyYm4PTUF1hjbKjlRF1Y2fA4uPTaqz5z3TRX/RbCMb2yuR1JDQHMb21XoX X-Received: by 2002:a17:902:4643:: with SMTP id o61-v6mr3332864pld.103.1519942606252; Thu, 01 Mar 2018 14:16:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519942606; cv=none; d=google.com; s=arc-20160816; b=mZNkCls2yaNOTHYUxjwhHL5CKvVx2qnhI5l/RdXjKn5mfRDz6poTEWcCm89TcAOAzU PtkhVuLm5zehDDyUuN0ts31gcX7B4bwTn4AJ4IrwgG1iEwMgmmCSnsg2exkbcBJyjcbv 1S+ycRxGL1WEo69/uNwiyW5uczLs0pHB8xA6XMPm9G6/LKR1quJRZvOxZnfXnJceshyR 13zyWTQra2NRnn77KnF6beyBVgNyNzj0scC9fnEgY217bt4Da8N3okVstkTxTrG90vvG 8Qm15xcSKr/y0xALtcKinSgvE5LmdBYFgCWfWDZxtndbfUplNhL1oEXo1oLhAtRXsoHQ xjxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=qnRMBrC/PR8OggFj0f0XWYfEFtYzAKo4k/ZljNT9hd8=; b=OZluYHU7UuBevbKL90d0URetzcYuKww9T2xJ3HWEaE7IYxpwqjbJK8bKtu1a/pXHcG EWN+IY3u3ND+RyfEh1IFXnw/Kz2AVfjujQirhQj8leNMoR2nTPKG5LKZH59bQbFp4RhC rJpjJ39eHI85I9XBM45ZFIcRzRtD+IC1IpGexeoguO6SA05ZuusDp9X7zvhy7fAeB7Wa NuMVimvIxK8h7XuJMhHPcxIUkMJm7ynPRPpyBgPgezIE0d7eXmvisOnzPSXIC5YJrNch dfRsAhaTMDY0qJ8uafKnHgXgOyheHE1IHoCL/Ru9AVpkExxf333oKwkyFn7iDnxHOnzG StbA== 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 f15si2954243pgu.742.2018.03.01.14.16.30; Thu, 01 Mar 2018 14:16:46 -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 S1162537AbeCAWPr (ORCPT + 99 others); Thu, 1 Mar 2018 17:15:47 -0500 Received: from mail-ot0-f195.google.com ([74.125.82.195]:43177 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1162460AbeCAWPp (ORCPT ); Thu, 1 Mar 2018 17:15:45 -0500 Received: by mail-ot0-f195.google.com with SMTP id m22so7054718otf.10; Thu, 01 Mar 2018 14:15:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=qnRMBrC/PR8OggFj0f0XWYfEFtYzAKo4k/ZljNT9hd8=; b=jDQq0l5o9y9Wsm1GAhdhtAC6/qIceOzCl+Bl0AJIHnfenujIbvuVgEFnhbq55g6p2R FVmWaVgDBRzDiBnJYuV08nV0mPj8EaDn7PqKco1eN72cpOrjWpqwyi6a6Befmrbzrl7D w340sQr5n4HyFymcRDzmtTHFwuA5GVHpghiZmKTCxcWSDkUQw5SHV8t89/D7/ey1HNmn 287jrqITtHliPGVv4D228e2mNLuuVSsFIopkm6/mj+w35z3XxMfhb6dZ7Hh6ntUN48X1 ZfdKlWfRajq9vSxxFHtjkE0kSpeXtl86GUhp5VIC/EOQ2EAVvwbSL/jL7xdbQNU0ZZ54 RG3Q== X-Gm-Message-State: AElRT7HUXyOUkp/cWJZxeObt61C0cq6guV8DDRh+sSk2O8E70XDJpHFm wb3JZT+huCPWWiswIlliFQ== X-Received: by 10.157.56.9 with SMTP id i9mr2756570otc.90.1519942544957; Thu, 01 Mar 2018 14:15:44 -0800 (PST) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id f28sm2732769otj.49.2018.03.01.14.15.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Mar 2018 14:15:44 -0800 (PST) Date: Thu, 1 Mar 2018 16:15:43 -0600 From: Rob Herring To: Maxime Ripard Cc: Mark Brown , Thierry Reding , Chen-Yu Tsai , Mark Rutland , 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: Re: [PATCH v2 04/10] dt-bindings: display: Add Allwinner MIPI-DSI bindings Message-ID: <20180301221543.szhh75wplyq4rvhd@rob-hp-laptop> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 21, 2018 at 10:20:28AM +0100, Maxime Ripard wrote: > 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 | 84 +++++++- > 1 file changed, 84 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..cbcc673b9bcc > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/sunxi/sun6i-dsi.txt > @@ -0,0 +1,84 @@ > +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 > + 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 = "huarui,lhr050h41"; > + reg = <0>; > + power-gpios = <&pio 1 7 GPIO_ACTIVE_HIGH>; /* PB07 */ > + reset-gpios = <&r_pio 0 5 GPIO_ACTIVE_LOW>; /* PL05 */ > + backlight = <&pwm_bl>; > + }; > + > + port { > + dsi0_in_tcon0: endpoint { > + remote-endpoint = <&tcon0_out_dsi0>; > + }; > + }; Kind of odd to have a mixture of panel and port. I guess that's valid though. I'd recommend you put port under ports node so if you ever have another port you are not mixing unit-address spaces. With that, Reviewed-by: Rob Herring > +}; > + > +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