From patchwork Tue Jun 21 03:43:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xinliang Liu X-Patchwork-Id: 9189287 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 221186075E for ; Tue, 21 Jun 2016 03:44:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1089A27F17 for ; Tue, 21 Jun 2016 03:44:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0129227F93; Tue, 21 Jun 2016 03:44:05 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 74B1027F17 for ; Tue, 21 Jun 2016 03:44:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D533A6E1DB; Tue, 21 Jun 2016 03:43:59 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-x229.google.com (mail-pa0-x229.google.com [IPv6:2607:f8b0:400e:c03::229]) by gabe.freedesktop.org (Postfix) with ESMTPS id 714CE6E1D3 for ; Tue, 21 Jun 2016 03:43:58 +0000 (UTC) Received: by mail-pa0-x229.google.com with SMTP id b13so1789770pat.0 for ; Mon, 20 Jun 2016 20:43:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=TiWRczifx1CgztiNEfegtYvVibHBFSALFMD2MRA+0TU=; b=c6W2lFxVT0PfqPhbJc2KXm73D5kveSdy+X1GgHuvD1MAq6NKUr/OaQZqlqQuiyvCUg lXXgVgL9uw/TLgUsCAkOawyIcmcWRuQAvjJkPct9+q1yu8ejjZVn1aYEUFChcXCsZEyo kIvau1ogXrxZ8mpYsl6hksT1UEx5txloyM3Sg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=TiWRczifx1CgztiNEfegtYvVibHBFSALFMD2MRA+0TU=; b=WiZfLqlY9cK95occpxSDCB3/uAY4mFgzmKAjHQRmf2poOwmWvmY3TaSFiANA8eXeXU EvpOtRa/WT8vVCWiZ+eo73ExcbM0vTO71H8xtcubeug300F3OuIXUgipJUY3EYd2FhOX W/biMfurLDuHPalZujSkSV0kpxVka1poZYXOFCwyy07VQXiptXGVvvXXYRdKjnI/hU9O qgbV0WYNtEFgH5KGcJGv0HdGCT6XwnIHXaB+tHLfbMZkzAbx77RemcmVapXcbqTwHj5P NYR19nroVS34mt1aY+b4PqWlMIx3wu3dTw3sFU8+QlW+Gvn+vc2VvwIRIGyvWT/KugLR KlYA== X-Gm-Message-State: ALyK8tJRfq7HFXd+woLMuXtwGlm3kQ9iXEn0ywbHQ9Hx0sA9X2J5/XpdASAa7+iMxGnVd2gX X-Received: by 10.66.166.202 with SMTP id zi10mr25259974pab.42.1466480637634; Mon, 20 Jun 2016 20:43:57 -0700 (PDT) Received: from HTSAT-OPENLAB-SERVER.localdomain ([183.15.28.67]) by smtp.gmail.com with ESMTPSA id m8sm44469644pfi.27.2016.06.20.20.43.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 20 Jun 2016 20:43:57 -0700 (PDT) From: Xinliang Liu To: dri-devel@lists.freedesktop.org Subject: [PATCH] arm64: dts: Add display subsystem DT nodes for hi6220-hikey Date: Tue, 21 Jun 2016 11:43:26 +0800 Message-Id: <20160621034326.46389-1-xinliang.liu@linaro.org> X-Mailer: git-send-email 2.8.3 Cc: guodong.xu@linaro.org, xuwei5@hisilicon.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Add ade and dsi DT nodes for hikey board. The binding docs were acked by Rob Herring in this thread: https://lists.freedesktop.org/archives/dri-devel/2016-March/102135.html Signed-off-by: Xinliang Liu --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 8 ++++ arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 54 ++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts index e92a30c87a82..90e77380f073 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts @@ -229,3 +229,11 @@ &uart3 { label = "LS-UART1"; }; + +&ade { + status = "ok"; +}; + +&dsi { + status = "ok"; +}; diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi index 0fb84814ded2..c53c9db94248 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi @@ -269,6 +269,11 @@ mboxes = <&mailbox 1 0 11>; }; + medianoc_ade: medianoc_ade@f4520000 { + compatible = "syscon"; + reg = <0x0 0xf4520000 0x0 0x4000>; + }; + uart0: uart@f8015000 { /* console */ compatible = "arm,pl011", "arm,primecell"; reg = <0x0 0xf8015000 0x0 0x1000>; @@ -833,5 +838,54 @@ }; }; }; + + ade: ade@f4100000 { + compatible = "hisilicon,hi6220-ade"; + reg = <0x0 0xf4100000 0x0 0x7800>; + reg-names = "ade_base"; + hisilicon,noc-syscon = <&medianoc_ade>; + resets = <&media_ctrl MEDIA_ADE>; + interrupts = <0 115 4>; /* ldi interrupt */ + + clocks = <&media_ctrl HI6220_ADE_CORE>, + <&media_ctrl HI6220_CODEC_JPEG>, + <&media_ctrl HI6220_ADE_PIX_SRC>; + /*clock name*/ + clock-names = "clk_ade_core", + "clk_codec_jpeg", + "clk_ade_pix"; + + assigned-clocks = <&media_ctrl HI6220_ADE_CORE>, + <&media_ctrl HI6220_CODEC_JPEG>; + assigned-clock-rates = <360000000>, <288000000>; + status = "disabled"; + + port { + ade_out: endpoint { + remote-endpoint = <&dsi_in>; + }; + }; + }; + + dsi: dsi@f4107800 { + compatible = "hisilicon,hi6220-dsi"; + reg = <0x0 0xf4107800 0x0 0x100>; + clocks = <&media_ctrl HI6220_DSI_PCLK>; + clock-names = "pclk"; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + /* 0 for input port */ + port@0 { + reg = <0>; + dsi_in: endpoint { + remote-endpoint = <&ade_out>; + }; + }; + }; + }; }; };