From patchwork Sat Nov 28 10:38:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xinliang Liu X-Patchwork-Id: 7716711 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 702C39F1C0 for ; Sat, 28 Nov 2015 10:42:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8A60D205F9 for ; Sat, 28 Nov 2015 10:42:44 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AB119205F7 for ; Sat, 28 Nov 2015 10:42:43 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1a2cvs-0004Jp-4q; Sat, 28 Nov 2015 10:40:44 +0000 Received: from mail-vk0-x230.google.com ([2607:f8b0:400c:c05::230]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1a2cvk-0004Hp-L3 for linux-arm-kernel@lists.infradead.org; Sat, 28 Nov 2015 10:40:38 +0000 Received: by vkay187 with SMTP id y187so79393550vka.3 for ; Sat, 28 Nov 2015 02:40:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=HMs1VRm8rOzVjpOU2OoXcN20mqWgYej39rwE0wP+yEs=; b=Dn3GezJVrcLRAQMXDq0ldjEFuNueIllWNRlgjCOBa6sZ5Gp98aN4rA0GybQA5agj0T Vhe2RhW2gswdqv0Ni+SGK/3Zt3E3QRtE7oX5imYPRcwHfV6n/gRGfhtkLCT3h+K14Xbf chzuHN6rYw/KMot4G2zTcEOLbumrHi1FGXcG0XyGHzoZtmiJNRu0ZqDFGhdeNPNlcvCU MAJXQNKEsVrzAh67Rbt9Lc7nJRNfCJ/1oHcVs2ZjJ76yaOiwDw7hCcn7in4Ysxug/n4v ZboV39N2AGkHvAhssdjY2NBxRc110n7w31FqW+EO4k8Bcsa1VHw2MNdARwBPIN8doXyD xYlw== 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:in-reply-to :references; bh=HMs1VRm8rOzVjpOU2OoXcN20mqWgYej39rwE0wP+yEs=; b=GE4jjhTmxVwDGO5Iquo64BbyWpf7BfOI/m57nCf3KgFZwfSf3/fwxZl/jRjdQEQrZ8 krxkaXbOVkKHYhgd8kqi9LWZZTzCBb6a8nNVRpmMAMtOJQ8ctY3PiagJJP25zAs9nwzO sdybWZcZp3xZkw3YJHGD5jdnDGShUMwWstFKLDlNJAX9syeCMgWDwo1lfIpRIfnlHj6Q sVg/qEn11mPGPIRFIj3YZ3VV4DJAP6/e8Ahrcub5uPGBYgxe6/iATfmtc8QfTMt0VPt8 iGWZlXmF0YTBb5fMs7yRCxXIIQLU8iIGjv/D0a51A5C1wtYOJVTXXxVm80a4St1XiiMB w+EA== X-Gm-Message-State: ALoCoQkOKu3s1+q4CawDNlMOQ9k/xhhdR4fkP9EneT3fIMGPZ06cfVWIkl9QCi7BlS+JXp273cbZ X-Received: by 10.31.154.213 with SMTP id c204mr25744094vke.38.1448707214447; Sat, 28 Nov 2015 02:40:14 -0800 (PST) Received: from localhost.localdomain ([14.153.35.143]) by smtp.gmail.com with ESMTPSA id o135sm19989822vkd.3.2015.11.28.02.40.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 28 Nov 2015 02:40:13 -0800 (PST) From: Xinliang Liu To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, daniel@ffwll.ch, robh@kernel.org, daniel@fooishbar.org, architt@codeaurora.org, airlied@linux.ie, corbet@lwn.net, catalin.marinas@arm.com, will.deacon@arm.com Subject: [PATCH v2 01/10] arm64: dts: hisilicon: Add display subsystem DT nodes for hi6220 Date: Sat, 28 Nov 2015 18:38:56 +0800 Message-Id: <1448707145-69348-2-git-send-email-xinliang.liu@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1448707145-69348-1-git-send-email-xinliang.liu@linaro.org> References: <1448707145-69348-1-git-send-email-xinliang.liu@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151128_024036_895613_F944426C X-CRM114-Status: UNSURE ( 9.04 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: andy.green@linaro.org, xuyiping@hisilicon.com, linux-doc@vger.kernel.org, Xinliang Liu , w.f@huawei.com, zourongrong@huawei.com, linuxarm@huawei.com, xuwei5@hisilicon.com, kong.kongxinwei@hisilicon.com, bintian.wang@huawei.com, haojian.zhuang@linaro.org, benjamin.gaignard@linaro.org, puck.chen@hisilicon.com, lijianhua@huawei.com, liguozhu@hisilicon.com, sumit.semwal@linaro.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add ade, dsi and adv7533 DT nodes for hikey board. Signed-off-by: Xinliang Liu Signed-off-by: Xinwei Kong Signed-off-by: Andy Green --- arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 21 ++++++++++++ arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 44 ++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts index 8d43a0f..81236b3 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts @@ -31,4 +31,25 @@ device_type = "memory"; reg = <0x0 0x0 0x0 0x40000000>; }; + + soc { + i2c2: i2c@f7102000 { + status = "ok"; + + adv7533: adv7533@39 { + compatible = "adi,adv7533"; + reg = <0x39>; + interrupt-parent = <&gpio1>; + interrupts = <1 2>; + pd-gpio = <&gpio0 4 0>; + adi,dsi-lanes = <4>; + + port { + adv_in: endpoint { + remote-endpoint = <&dsi_out>; + }; + }; + }; + }; + }; }; diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi index 82d2488..2d6cf03 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi @@ -208,5 +208,49 @@ clock-names = "uartclk", "apb_pclk"; status = "disabled"; }; + + display-subsystem { + compatible = "hisilicon,hi6220-dss"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + ade: ade@f4100000 { + compatible = "hisilicon,hi6220-ade"; + reg = <0x0 0xf4100000 0x0 0x7800>, + <0x0 0xf4410000 0x0 0x1000>; + reg-names = "ade_base", + "media_base"; + interrupts = <0 115 4>; /* ldi interrupt */ + + clocks = <&media_ctrl HI6220_ADE_CORE>, + <&media_ctrl HI6220_CODEC_JPEG>, + <&media_ctrl HI6220_ADE_PIX_SRC>, + <&media_ctrl HI6220_PLL_SYS>, + <&media_ctrl HI6220_PLL_SYS_MEDIA>; + /*clock name*/ + clock-names = "clk_ade_core", + "aclk_codec_jpeg_src", + "clk_ade_pix", + "clk_syspll_src", + "clk_medpll_src"; + ade_core_clk_rate = <360000000>; + media_noc_clk_rate = <288000000>; + }; + + dsi: dsi@0xf4107800 { + compatible = "hisilicon,hi6220-dsi"; + reg = <0x0 0xf4107800 0x0 0x100>; + clocks = <&media_ctrl HI6220_DSI_PCLK>; + clock-names = "pclk_dsi"; + + port { + dsi_out: endpoint { + remote-endpoint = <&adv_in>; + }; + }; + + }; + }; }; };