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: 7716611 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5A8CFBEEE1 for ; Sat, 28 Nov 2015 10:40:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 588B3205FC for ; Sat, 28 Nov 2015 10:40:18 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 6EAB8205F9 for ; Sat, 28 Nov 2015 10:40:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A9D856E1F8; Sat, 28 Nov 2015 02:40:16 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-vk0-f53.google.com (mail-vk0-f53.google.com [209.85.213.53]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4C1CF6E1F8 for ; Sat, 28 Nov 2015 02:40:15 -0800 (PST) Received: by vkay187 with SMTP id y187so79393556vka.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=GnGPnQ1+jilug/opaaHBbk7LuAOXc39wYwhhAGBLDTIFNbIqGy89HT/nzJrEPMozbA /sVu8o99EcJoYqobSUKVhOVuVGZj2zqcN0IArm5ipcTSn362b3fmXECgBuJ92OEBCSDr tErh1SPnU2VGBx6/MQcRJ9n9PHtkYDIli58K1Ra+IaUEBdnQVqTN6AfHNdNPCYWKGpnS 4tg1FW/IJKpuK9kUblLh8rif5+0usA5RXOp3UR+oyS3PQHMfuTTKZ4E32qq5V5KiYq6C 4uq6IZcuTp5K49EBMjzDgq8ANvJi8hadjrfSFhk6SAtY1yo7g95EsaoCepHZWwu7AjGu tkBw== X-Gm-Message-State: ALoCoQmbY6c9HoyGER6eB3g0PTLIb0BGJyA2s89z6l6mVqgor1yVTDNjSbq5oBKgyAREzJdZJOvC 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> Cc: andy.green@linaro.org, xuyiping@hisilicon.com, linux-doc@vger.kernel.org, w.f@huawei.com, zourongrong@huawei.com, linuxarm@huawei.com, xuwei5@hisilicon.com, bintian.wang@huawei.com, haojian.zhuang@linaro.org, benjamin.gaignard@linaro.org, puck.chen@hisilicon.com, lijianhua@huawei.com, liguozhu@hisilicon.com, linux-arm-kernel@lists.infradead.org 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-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>; + }; + }; + + }; + }; }; };