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: 70499 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp1808511qgy; Mon, 20 Jun 2016 20:44:09 -0700 (PDT) X-Received: by 10.98.72.80 with SMTP id v77mr15144642pfa.133.1466480643951; Mon, 20 Jun 2016 20:44:03 -0700 (PDT) Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTP id ss9si5489308pab.185.2016.06.20.20.44.03; Mon, 20 Jun 2016 20:44:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org 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" 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>; + }; + }; + }; + }; }; };