From patchwork Tue Sep 15 09:37:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kongxinwei X-Patchwork-Id: 53622 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id 5D5B022A22 for ; Tue, 15 Sep 2015 09:38:09 +0000 (UTC) Received: by wicgb1 with SMTP id gb1sf5856163wic.3 for ; Tue, 15 Sep 2015 02:38:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-type:sender:precedence :list-id:x-original-sender:x-original-authentication-results :mailing-list:list-post:list-help:list-archive:list-unsubscribe; bh=1/zSf8HpZoHSZeAS7W1P4osSM1yQMypb17ErV2zo6RQ=; b=fl69iYjcFQ2IeM4P2572yP9zjcQs7ur/uV+qwTBMWi0oUwc71vyzkeJwTcuzinjT+I D3McUbUqQXCe+6wcvgb3MnBLf0l4+nrdh+10gMC8N/bmvq+EKkmlGhpHDKYStXlZHZYj T5k+s2eDaOwUd1iQ5TYQ3tmUyTyQ8k09r/U32FAIEd7YOf6eHn+FfX5hifA19QlPILIz MDDDpHDYPYouVK8J2nvsw149EM25551bsvkMCIWF9YKeM1nJylOfESZPlPhWn/3LdZRB UUXAYJau4sckQQap0jqqZL2pmDAfLO36VxLLg1FB2C+UgX8db8shYCQixdHoz+kNFbyC o1Zw== X-Gm-Message-State: ALoCoQkv8ovehkQrXAixzIY9vX2ritmN1hUNMaQxPeUzxm31YjLVAfo8pyfFVgsskBIIy84Sqd1r X-Received: by 10.112.199.5 with SMTP id jg5mr4065240lbc.14.1442309888639; Tue, 15 Sep 2015 02:38:08 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.41 with SMTP id g9ls269559laa.65.gmail; Tue, 15 Sep 2015 02:38:08 -0700 (PDT) X-Received: by 10.152.121.39 with SMTP id lh7mr17701329lab.11.1442309888463; Tue, 15 Sep 2015 02:38:08 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id 3si11332698lal.128.2015.09.15.02.38.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Sep 2015 02:38:08 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by lbpo4 with SMTP id o4so81761814lbp.2 for ; Tue, 15 Sep 2015 02:38:08 -0700 (PDT) X-Received: by 10.152.37.162 with SMTP id z2mr14554558laj.117.1442309888228; Tue, 15 Sep 2015 02:38:08 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1679292lbq; Tue, 15 Sep 2015 02:38:06 -0700 (PDT) X-Received: by 10.68.137.161 with SMTP id qj1mr45363426pbb.14.1442309886715; Tue, 15 Sep 2015 02:38:06 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id wa5si30496472pab.64.2015.09.15.02.38.05; Tue, 15 Sep 2015 02:38:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932080AbbIOJiA (ORCPT + 29 others); Tue, 15 Sep 2015 05:38:00 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:46770 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754403AbbIOJh6 (ORCPT ); Tue, 15 Sep 2015 05:37:58 -0400 Received: from 172.24.1.51 (EHLO SZXEML423-HUB.china.huawei.com) ([172.24.1.51]) by szxrg03-dlp.huawei.com (MOS 4.4.3-GA FastPath queued) with ESMTP id BMY28249; Tue, 15 Sep 2015 17:37:37 +0800 (CST) Received: from localhost (10.46.72.58) by SZXEML423-HUB.china.huawei.com (10.82.67.154) with Microsoft SMTP Server id 14.3.235.1; Tue, 15 Sep 2015 17:37:29 +0800 From: Xinwei Kong To: , , , CC: , , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH RFC 1/8] dt-bindings: Document the hi6220 bindings for DRM driver Date: Tue, 15 Sep 2015 17:37:07 +0800 Message-ID: <1442309834-21420-2-git-send-email-kong.kongxinwei@hisilicon.com> X-Mailer: git-send-email 1.9.4.msysgit.2 In-Reply-To: <1442309834-21420-1-git-send-email-kong.kongxinwei@hisilicon.com> References: <1442309834-21420-1-git-send-email-kong.kongxinwei@hisilicon.com> MIME-Version: 1.0 X-Originating-IP: [10.46.72.58] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090204.55F7E6E4.0165, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 23f2a8a8ea3997a71badf202e17daa03 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: kong.kongxinwei@hisilicon.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This adds documentation of device tree bindings for the Graphics Processing Unit of hi6220 SOC. Signed-off-by: Xinliang Liu Signed-off-by: Xinwei Kong Signed-off-by: Andy Green Signed-off-by: Jiwen Qi Signed-off-by: Yu Gong --- .../devicetree/bindings/gpu/hisilicon,hi6220.txt | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpu/hisilicon,hi6220.txt diff --git a/Documentation/devicetree/bindings/gpu/hisilicon,hi6220.txt b/Documentation/devicetree/bindings/gpu/hisilicon,hi6220.txt new file mode 100644 index 0000000..173ac63 --- /dev/null +++ b/Documentation/devicetree/bindings/gpu/hisilicon,hi6220.txt @@ -0,0 +1,69 @@ + * Hisilicon hi6220 Graphics Processing Unit for HiKey board + + ** display-subsystem: Master device for binding DRM sub-components + This master device is parent node and it will be responsible to bind all + sub-components devices node. + - Required properties : + - compatible: "hisilicon,display-subsystem". + - #address-cells, #size-cells: Must be present if the device has sub-nodes. + - ranges: to allow probing of subdevices. + - dma-coherent: Present if dma operations are coherent. + + ** ade: Graphic overlay, Graphic post-processing, display timing control. + This device is child node of display-subsystem + - Required properties : + - compatible: "hisilicon,hi6220-ade". + - reg: physical base address of the ADE register and length of memory + region. + - reg-names: Should contain the reg names "ade_base" and "media_base". + - interrupt: The interrupt number to the cpu. Defines the interrupt + by ADE. + - clocks: The clocks needed by the ADE module. + - clock-names: the name of the clocks. + + ** dsi: support mipi dsi interface + This device is child node of display-subsystem + - Required properties : + - compatible: "hisilicon,hi6220-dsi". + - reg: physical base address of the DSI register and length of memory + region. + - clocks: The clocks needed by the DSI module. + - clock-names: the name of the clocks. + - encoder-slave: phandles to a 'encoder-slave' subnode which DSI connect + ADV7533 in order to support hdmi display. + +Example: + + display-subsystem { + compatible = "hisilicon,display-subsystem"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + dma-coherent; + + 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>; + + clocks = <&media_ctrl HI6220_ADE_CORE>, + <&media_ctrl HI6220_CODEC_JPEG>, + <&media_ctrl HI6220_ADE_PIX_SRC>; + /*clock name*/ + clock-names = "clk_ade_core", + "aclk_codec_jpeg_src", + "clk_ade_pix"; + }; + + dsi { + compatible = "hisilicon,hi6220-dsi"; + reg = <0x0 0xf4107800 0x0 0x100>; + clocks = <&media_ctrl HI6220_DSI_PCLK>; + clock-names = "pclk_dsi"; + encoder-slave = <&adv7533>; + }; + }; +