From patchwork Fri Oct 26 14:43:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10657551 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3AD6713BF for ; Fri, 26 Oct 2018 15:03:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 242DF2C97D for ; Fri, 26 Oct 2018 15:03:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 165FC2C989; Fri, 26 Oct 2018 15:03:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8435A2C97D for ; Fri, 26 Oct 2018 15:03:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kpDv04TbudOICZ5uS4YZkfxcTdBP+P+Uzu5fC+vrq2g=; b=eiCXrgCMzGtBOT 5QzAfnubgzenXAsJf5aeYSIfzcJCuoIg+se62gqOFe859xOUfn2vyzcuxTReyfqQaHfaKwrqbd9hp 6b+ZgqwpFKzYmq500U/ZF7mOiCqQBKp5CbbeLiAoM69YQVO+cC9FtjXlZdQbekJDNEsOaF9agna9W WGpbK0UVydLyXAls5k1ovx9AAIz/DgtwpWskEFUB+ucnQAiFW856ULPNRZEVI4ilbZ4N8zjE9QLB5 ndRqR+g0A5Vfn9rz8YmGkVlXJJkjzRh1RG2RreefrzmBd5aXKuAiuOTq39hLR9Lknauj+ltRww8rY P7j02AdM4woqQrLWuylA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gG3dc-00035s-Ht; Fri, 26 Oct 2018 15:03:00 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gG3bc-0001uc-1T for linux-arm-kernel@bombadil.infradead.org; Fri, 26 Oct 2018 15:00:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=1UIfZkOCW86vmEfbDReHGNULNL3CxxC1cQh+1lPeF98=; b=VY8OZUfyd4O6vSyNm5oL6MYOrV Y7MDHS7OWupHGcisb0ru9vuCmK8XhzZ0oEvv9OplOtNDOxBJOvZK8oc+E3cl2x4Q6RVd/IkMxNP9Z lFow4qgiE6HqCVfzzz1FV4P5EcQLh93acvPi6ODAdDhvnQoGAKL3aGwwAP0USmaM4w4x88n8Of6e4 3b29SW9U3g7AmQdOt1ep0Gc80kp5MWZusedyx/YOztrB2pzdjqNcN/2MadhsF+4I1WZqYKh+EfIsk Yi+6rGQFvYOjtUv1gHyyN6lNusmdsFVxpFZJ5rfw9fxjRmY84JsRBTX6unPbhN8py48zM/GRsqY0X DAGqCS0g==; Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gG3Ni-0008PE-4k for linux-arm-kernel@lists.infradead.org; Fri, 26 Oct 2018 14:46:36 +0000 Received: by mail-pg1-x543.google.com with SMTP id z17-v6so652758pgv.3 for ; Fri, 26 Oct 2018 07:46:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1UIfZkOCW86vmEfbDReHGNULNL3CxxC1cQh+1lPeF98=; b=ccIoRDYIlAA7z2KUEaU/mgEhe7ssvwJKOWidHhYo/8uuEC5VIfNY/qI3H6W33HCUPx h15bbHzPXuVJxTn0Vtas9iP/oSkfs6WqAAOLREX5PHmCjKfQ74UdYmB7uZh1XSwUBmXN jmeaMd4Bj9LvFY0T1Yn8EOZ72ouI+tS3L2aOI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1UIfZkOCW86vmEfbDReHGNULNL3CxxC1cQh+1lPeF98=; b=s518UWKRzFc2f5vWD/f0X0hZQITlTYFAyM4my3OtazG+NTvX2NZIEFec0GHb4Dduam 9UiopF6aseJCFiGkgBDi2VTqe5eflrjstXlMBWDfxb6iAdvTpqw0NOCCqy6GyNCwxXmD goe952z+OCaBx3deVsSTETaLZJPBuIpQAlESQhjA03nJ8uNIS8NIr3ZBOw0wz2Kac6T9 IdeVtwhobH0IL+PhbGCFYT81wO17rLSisPm59xiZstP9LC5vdpI43V/ZQ5+h5FqR4ywU 954ntwy6NP5KPwMNpbLYN1jBZ1IG3K90AvdjKG74X+yS+LmOKOqVuFL32oU1zrX1Ds94 CxRw== X-Gm-Message-State: AGRZ1gLrUONljnRPHY3bttMYsXX00bXt03cX1zOxUAS7hSz1jLFpTfcc PXyjdnWjvJXkLVatMpLvUuRTTg== X-Google-Smtp-Source: AJdET5cGOPtvpIK1RgmWyNbi4looQMZYa/ZaKTJ0NurZJOC4sgru0+rqqesme2etWzwlGOU8YYWPzQ== X-Received: by 2002:a63:224f:: with SMTP id t15mr3736191pgm.69.1540565182326; Fri, 26 Oct 2018 07:46:22 -0700 (PDT) Received: from localhost.localdomain ([27.7.51.1]) by smtp.gmail.com with ESMTPSA id z22-v6sm12044467pgv.24.2018.10.26.07.46.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Oct 2018 07:46:21 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , 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: [PATCH v3 23/25] arm64: dts: allwinner: a64: Add DSI pipeline Date: Fri, 26 Oct 2018 20:13:42 +0530 Message-Id: <20181026144344.27778-24-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181026144344.27778-1-jagan@amarulasolutions.com> References: <20181026144344.27778-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181026_154634_263072_096FDC30 X-CRM114-Status: GOOD ( 16.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jagan Teki Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The A64 has a MIPI-DSI block which is similar to A31 without mod clock. So, add dsi node with A64 compatible, dphy node with A31 compatible and finally connect dsi to tcon0 to make proper DSI pipeline. Signed-off-by: Jagan Teki Tested-by: Jagan Teki --- Changes for v3: - add allwinner,tcon-channel property - add dsi nodes in ascending physical address Changes for v2: - use A64 dphy compatible arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index f3a66f888205..d6f269883759 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -320,6 +320,12 @@ #address-cells = <1>; #size-cells = <0>; reg = <1>; + + tcon0_out_dsi: endpoint@1 { + reg = <1>; + remote-endpoint = <&dsi_in_tcon0>; + allwinner,tcon-channel = <1>; + }; }; }; }; @@ -829,6 +835,45 @@ status = "disabled"; }; + dsi: dsi@1ca0000 { + compatible = "allwinner,sun50i-a64-mipi-dsi"; + reg = <0x01ca0000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_BUS_MIPI_DSI>; + clock-names = "bus"; + resets = <&ccu RST_BUS_MIPI_DSI>; + phys = <&dphy>; + phy-names = "dphy"; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + dsi_in_tcon0: endpoint { + remote-endpoint = <&tcon0_out_dsi>; + }; + }; + }; + }; + + dphy: d-phy@1ca1000 { + compatible = "allwinner,sun50i-a64-mipi-dphy", + "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>; + status = "disabled"; + #phy-cells = <0>; + }; + hdmi: hdmi@1ee0000 { compatible = "allwinner,sun50i-a64-dw-hdmi", "allwinner,sun8i-a83t-dw-hdmi";