Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp918114ima; Wed, 24 Oct 2018 11:13:01 -0700 (PDT) X-Google-Smtp-Source: AJdET5dsJcF6DCjmY7rhIBWHyBIeUmp9l2mJvOJJoMPgG1G0VTLkZqCFq71taTGRv7eHAEBYpw9q X-Received: by 2002:a65:5cc3:: with SMTP id b3-v6mr3486026pgt.277.1540404781943; Wed, 24 Oct 2018 11:13:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540404781; cv=none; d=google.com; s=arc-20160816; b=e7kVRdR+ejWr1Om/Io44SssLUois7S8+hmGagj7py4mbacXJ5MG7q0PilmmxIXJeXX cwjZCJOQ55DBLIezhuzHMu3LFbvhDfZJ98KeQMm72iijyTOeDFBe7h31myhMl8ak7PRG snJZhBo7lFEE1rv/opa3jtqiO0UbqJPBJYs1KRbDI1jGPj2qAUqrop7aJmVTeRcOhBzh C5g6ya5deS9jHT8zNJKnSvhw1r7oByXvDmV3dZwL/66aYCxSqrq5keVZxR/c2qcioyHI zp4hMkFgKPvrU1gh/3+4R2aq0nJKdihjJT26jmCVI4MhZu9p6tvjcoJ33do/CmkFxGM9 ICNQ== 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; bh=rButJcgabhJYT7pxgUgWVghuo1o12Jz+r5vlb1UD9jY=; b=JAr4HmVEQXvM8M1hxAWJmIbANbnY/122BpVcumJAdQBD+vcEOtS/uOSmeKreGf094w 2BAhBpuf4svN2S73hzT+kZ+Er5e+kvATfaLplU99C9It51SSN+MJHOSS9vWJ4+F0A3j7 ng2tRmdbV1NT3j3rJ+qAE+iYjnPd5PYtbFp5r5bh/VGn5BmKtNC7XyYVxfragRYmTfit eYnUL1MUqvOGD6ZBuhsOolcy36OQ0qx/tbrBuXzRjSp4gOsAIgT5HP2DW56/j69noWBw 99K92aA12LvihE4mWbs02AtZqVTnlfPszNjf75QGwzfsbAFj3FevMx7eOPebL8UfbXGc oJFg== 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 go1si5095924plb.242.2018.10.24.11.12.45; Wed, 24 Oct 2018 11:13:01 -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 S1727226AbeJYCkE (ORCPT + 99 others); Wed, 24 Oct 2018 22:40:04 -0400 Received: from mail.bootlin.com ([62.4.15.54]:52550 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726433AbeJYCkE (ORCPT ); Wed, 24 Oct 2018 22:40:04 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id BB62E20890; Wed, 24 Oct 2018 20:10:58 +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 (unknown [2.223.63.88]) by mail.bootlin.com (Postfix) with ESMTPSA id 76A4E20890; Wed, 24 Oct 2018 20:10:48 +0200 (CEST) Date: Wed, 24 Oct 2018 19:10:48 +0100 From: Maxime Ripard To: Jagan Teki Cc: Chen-Yu Tsai , Icenowy Zheng , Jernej Skrabec , Vasily Khoruzhick , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , David Airlie , dri-devel@lists.freedesktop.org, Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, Michael Trimarchi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: Re: [PATCH v2 14/15] arm64: dts: allwinner: a64: Add DSI pipeline Message-ID: <20181024181048.w4iwebtac6wzmgt4@flea> References: <20181023155035.9101-1-jagan@amarulasolutions.com> <20181023155035.9101-15-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ce5b5wkoh6xeauxh" Content-Disposition: inline In-Reply-To: <20181023155035.9101-15-jagan@amarulasolutions.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ce5b5wkoh6xeauxh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 23, 2018 at 09:20:34PM +0530, Jagan Teki wrote: > The A64 has a MIPI-DSI block which is similar to A31 > without mod clock. >=20 > So, add dsi node with A64 compatible, dphy node with > A31 compatible and finally connect dsi to tcon0 to > make proper DSI pipeline. >=20 > Signed-off-by: Jagan Teki > --- > Changes for v2: > - use A64 dphy compatible >=20 > arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 45 +++++++++++++++++++ > 1 file changed, 45 insertions(+) >=20 > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/b= oot/dts/allwinner/sun50i-a64.dtsi > index f3a66f888205..f82e6b165d57 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi > @@ -320,6 +320,11 @@ > #address-cells =3D <1>; > #size-cells =3D <0>; > reg =3D <1>; > + > + tcon0_out_dsi: endpoint@1 { > + reg =3D <1>; > + remote-endpoint =3D <&dsi_in_tcon0>; You need to set the allwinner,channel property there. > + }; > }; > }; > }; > @@ -818,6 +823,46 @@ > #interrupt-cells =3D <3>; > }; > =20 > + > + dsi: dsi@1ca0000 { > + compatible =3D "allwinner,sun50i-a64-mipi-dsi"; > + reg =3D <0x01ca0000 0x1000>; > + interrupts =3D ; > + clocks =3D <&ccu CLK_BUS_MIPI_DSI>; > + clock-names =3D "bus"; > + resets =3D <&ccu RST_BUS_MIPI_DSI>; > + phys =3D <&dphy>; > + phy-names =3D "dphy"; > + status =3D "disabled"; > + > + ports { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + port@0 { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + reg =3D <0>; > + > + dsi_in_tcon0: endpoint { > + remote-endpoint =3D <&tcon0_out_dsi>; > + }; > + }; > + }; > + }; > + > + dphy: d-phy@1ca1000 { > + compatible =3D "allwinner,sun50i-a64-mipi-dphy", > + "allwinner,sun6i-a31-mipi-dphy"; > + reg =3D <0x01ca1000 0x1000>; > + clocks =3D <&ccu CLK_BUS_MIPI_DSI>, > + <&ccu CLK_DSI_DPHY>; > + clock-names =3D "bus", "mod"; > + resets =3D <&ccu RST_BUS_MIPI_DSI>; > + status =3D "disabled"; > + #phy-cells =3D <0>; > + }; > + You have to order the nodes per ascending physical address ordering. Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --ce5b5wkoh6xeauxh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCW9C1qAAKCRDj7w1vZxhR xbjoAQCwjTtVKrcvRAMS44EuWEae1MmEN5c2t2CAe3+QicWY+wEA+Re13Dn09dUh +xVIR7pJUz0RqK4drnZyTSjbPy+UeQg= =pPcm -----END PGP SIGNATURE----- --ce5b5wkoh6xeauxh--