From patchwork Tue Oct 23 15:50:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10653363 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 75C2F14BB for ; Tue, 23 Oct 2018 16:08:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 61BBA29801 for ; Tue, 23 Oct 2018 16:08:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 50A3029814; Tue, 23 Oct 2018 16:08:20 +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=ham 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 E0377286C1 for ; Tue, 23 Oct 2018 16:08:19 +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=Zf2TNygr8/aZyO8ElbiL51q0Awwtt3g+lRhYCn7om/c=; b=Xj5IvwQH2xEsS1 xCD5K534g/30nFpRsUmdAxHq0zykdeWjHECRSlqwo/EegJwWFqgPE481f8jJ3WTLyZ8y5ZJyFXLIl KKkLqlOfNj2ZLUH2/MMG4e3JPEtXIcZohVmDz9Mqy4vRHqQrmWo5i8+2MLwqJMG8PUFnS5zqCltLA xwUKVXmCaBKwrfJRBzZ8f6mUaqzjpykgzVu5laZVH05s6DTDwOwQKQwVLsliglje9b7QlsADhwfaG FalfWZ94Md09ra/B5uldy8UN65Q2FWVMHVvm6O2KpZlEK1j8oqk7C4kfy3y4hYnWl2zYqzBeHfDwC iuFj2LhVxAK2482w7ymA==; 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 1gEzE1-00052r-2w; Tue, 23 Oct 2018 16:08:09 +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 1gEzE0-0004yG-41 for linux-arm-kernel@bombadil.infradead.org; Tue, 23 Oct 2018 16:08:08 +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=yls8VK5SloeD7PLycjCBmh8RmhNZ2f5OyyDTNa+PUjw=; b=r2ML0IlGiiw0jS5WjnJKw3LfS5 8gFxOfN15Lvc2JVNxbxwAlIBM68axL23P2uViGnC1v3mjDeB4A5LNxrUsaI1hyBnMEOizihbs1vCl mbGVpog200bTi3pYrrEVG7SnpxU3xUwo+awTtVuw2gBTejHdKq+eO/wOuKmcXJoxU1sPFhmtkgVS5 VOLLetrmLl9nK4+r//wFsutksuzs/dVMVz+2pxScj/7KzgLaX08OA7HW2CJX2s8P+J7+PKHw7+DK6 5yatXbO6dTKrE5G9auKsAf8p1fXwe+Y6x/mkGpAN/p+hNTR1NPOWV0ka5gYk7RFOeufdOvDE++T7C GJ5t3E2Q==; Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gEyyr-00014z-NU for linux-arm-kernel@lists.infradead.org; Tue, 23 Oct 2018 15:52:31 +0000 Received: by mail-pg1-x544.google.com with SMTP id n10-v6so126406pgv.10 for ; Tue, 23 Oct 2018 08:52:19 -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=yls8VK5SloeD7PLycjCBmh8RmhNZ2f5OyyDTNa+PUjw=; b=E1jZu/NqK4UGLFtr/awcZP8ojZAlsCYBRElMj/TEE05ZRdtouaclx1alkrNZaaLgle DaFTR1o6bOAQz6SgcUrthyxCbJhGcHMsNKzWtJFkal7Nn/SSnR/rkoCXxpol+2/tHHdF lndDw74DMYYboS+XB/0w+LYxdTHR74KnyR6a4= 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=yls8VK5SloeD7PLycjCBmh8RmhNZ2f5OyyDTNa+PUjw=; b=Vb1MNH2gUUaoKJnztxYAAUrYgLdKm0Aj2rz1kekZy2+B0PAUxj45pY8btr/UaiIGfv ywA3FGypbdB7BlTX+Tpvqf5DzpfFivJEn2mwIlwFZx8vwzJ3AwXKpJOv/1opkSmT/1E/ azi3slGm+yOprqNYpYUh1z3dKr8G9eB9ozFtUencOI/cRkqrz69jI1VipMchXso+YkQP ai6ZB2SQF2JNu0olqvSsPADGrcskTtlj+x+hxXGt9TxamGbiGkybUbJaiDAOUKMAzjBM xNFHRUOs9s1CtSuhdOFbwtTvCSonAwV1Yc7shqWDnobt5kPCs9I7Gldwx+fis3WU6mUZ VhkA== X-Gm-Message-State: ABuFfoiyzySu1kkxBgplJdYZrWGWRgT7TLvt+/stHJ9n2CHywGG4V4cF 28vRCwyZ4QjrUnGo+WbrI5+F0Q== X-Google-Smtp-Source: ACcGV61ixopvneYuQdnX9WKiA8YAnm8JF3FBR96qugo3dDIMzbSqceXp9QQfrYWOTLZDt7POpTm+OQ== X-Received: by 2002:a63:ce56:: with SMTP id r22-v6mr46752105pgi.217.1540309937928; Tue, 23 Oct 2018 08:52:17 -0700 (PDT) Received: from localhost.localdomain ([27.7.51.1]) by smtp.gmail.com with ESMTPSA id o75-v6sm7442829pfg.0.2018.10.23.08.52.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Oct 2018 08:52:17 -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 v2 14/15] arm64: dts: allwinner: a64: Add DSI pipeline Date: Tue, 23 Oct 2018 21:20:34 +0530 Message-Id: <20181023155035.9101-15-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181023155035.9101-1-jagan@amarulasolutions.com> References: <20181023155035.9101-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181023_165229_775334_671C0702 X-CRM114-Status: GOOD ( 16.27 ) 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 --- 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..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 = <1>; #size-cells = <0>; reg = <1>; + + tcon0_out_dsi: endpoint@1 { + reg = <1>; + remote-endpoint = <&dsi_in_tcon0>; + }; }; }; }; @@ -818,6 +823,46 @@ #interrupt-cells = <3>; }; + + 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>; + }; + pwm: pwm@1c21400 { compatible = "allwinner,sun50i-a64-pwm", "allwinner,sun5i-a13-pwm";