From patchwork Wed May 13 15:23:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?Q0sgSHUgKOiDoeS/iuWFiSk=?= X-Patchwork-Id: 6398311 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 0B5159F1C2 for ; Wed, 13 May 2015 15:50:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 02B2B20443 for ; Wed, 13 May 2015 15:50:12 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 03B632044B for ; Wed, 13 May 2015 15:50:08 +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 1YsYrZ-0001lF-O7; Wed, 13 May 2015 15:46:25 +0000 Received: from [210.61.82.183] (helo=mailgw01.mediatek.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YsYWH-0005yy-LY; Wed, 13 May 2015 15:24:27 +0000 X-Listener-Flag: 11101 Received: from mtkhts09.mediatek.inc [(172.21.101.70)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 367210417; Wed, 13 May 2015 23:23:50 +0800 Received: from mtkslt303.mediatek.inc (10.21.14.116) by mtkhts09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 14.3.181.6; Wed, 13 May 2015 23:23:48 +0800 From: CK Hu To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , David Airlie , Matthias Brugger Subject: [RFC][PATCH 1/2] dt-bindings: drm/mediatek: Add Mediatek DRM dts binding Date: Wed, 13 May 2015 23:23:45 +0800 Message-ID: <1431530626-31493-2-git-send-email-ck.hu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1431530626-31493-1-git-send-email-ck.hu@mediatek.com> References: <1431530626-31493-1-git-send-email-ck.hu@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150513_082426_127981_FAF5E79F X-CRM114-Status: UNSURE ( 6.75 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 1.3 (+) Cc: devicetree@vger.kernel.org, Jitao Shi , srv_heupstream@mediatek.com, Graeme Gregory , Rob Herring , Catalin Marinas , Will Deacon , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Cawa Cheng , YT Shen , CK Hu , Ashwin Chaugule , linux-mediatek@lists.infradead.org, Sascha Hauer , linux-api@vger.kernel.org, Grant Likely , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 This patch includes 1. Mediatek DRM Device binding 2. Mediatek DSI Device binding 3. Mediatek CRTC Main Device binding 4. Mediatek DDP Device binding Signed-off-by: CK Hu --- .../bindings/drm/mediatek/mediatek,crtc-main.txt | 38 ++++++++++++++++++++++ .../bindings/drm/mediatek/mediatek,ddp.txt | 22 +++++++++++++ .../bindings/drm/mediatek/mediatek,drm.txt | 27 +++++++++++++++ .../bindings/drm/mediatek/mediatek,dsi.txt | 20 ++++++++++++ 4 files changed, 107 insertions(+) create mode 100644 Documentation/devicetree/bindings/drm/mediatek/mediatek,crtc-main.txt create mode 100644 Documentation/devicetree/bindings/drm/mediatek/mediatek,ddp.txt create mode 100644 Documentation/devicetree/bindings/drm/mediatek/mediatek,drm.txt create mode 100644 Documentation/devicetree/bindings/drm/mediatek/mediatek,dsi.txt \ No newline at end of file diff --git a/Documentation/devicetree/bindings/drm/mediatek/mediatek,crtc-main.txt b/Documentation/devicetree/bindings/drm/mediatek/mediatek,crtc-main.txt new file mode 100644 index 0000000..5c6c420 --- /dev/null +++ b/Documentation/devicetree/bindings/drm/mediatek/mediatek,crtc-main.txt @@ -0,0 +1,38 @@ +Mediatek CRTC Main Device +================================ + +The Mediatek CRTC Main device is a crtc device of DRM system. + +Required properties: +- compatible: "mediatek,-crtc-main" +- interrupts: The interrupt signal from the CRTC Main block. +- reg: Physical base address and length of the controller's registers +- clocks: device clocks + See Documentation/devicetree/bindings/clock/clock-bindings.txt for details. +- ddp: phandle of ddp device which control display data path. + +Example: + +crtc_main: crtc@1400c000 { + compatible = "mediatek,mt8173-crtc-main"; + interrupts = ; + reg = <0 0x1400c000 0 0x1000>, /* OVL0 */ + <0 0x1400e000 0 0x1000>, /* RDMA0 */ + <0 0x14013000 0 0x1000>, /* COLOR0 */ + <0 0x14015000 0 0x1000>, /* AAL */ + <0 0x1401a000 0 0x1000>, /* UFOE */ + <0 0x14023000 0 0x1000>; /* OD */ + clocks = <&mmsys MM_DISP_OVL0>, + <&mmsys MM_DISP_RDMA0>, + <&mmsys MM_DISP_COLOR0>, + <&mmsys MM_DISP_AAL>, + <&mmsys MM_DISP_UFOE>, + <&mmsys MM_DISP_OD>; + clock-names = "ovl0_disp", + "rdma0_disp", + "color0_disp", + "aal_disp", + "ufoe_disp", + "od_disp"; + ddp = <&ddp>; +}; \ No newline at end of file diff --git a/Documentation/devicetree/bindings/drm/mediatek/mediatek,ddp.txt b/Documentation/devicetree/bindings/drm/mediatek/mediatek,ddp.txt new file mode 100644 index 0000000..77cf630 --- /dev/null +++ b/Documentation/devicetree/bindings/drm/mediatek/mediatek,ddp.txt @@ -0,0 +1,22 @@ +Mediatek DDP Device +================================ + +The Mediatek DDP device control the display data path. + +Required properties: +- compatible: "mediatek,-ddp" +- reg: Physical base address and length of the controller's registers +- power-domains: a phandle to DDP power domain node. +- clocks: device clocks + See Documentation/devicetree/bindings/clock/clock-bindings.txt for details. + +Example: + +ddp: ddp@14000000 { + compatible = "mediatek,mt8173-ddp"; + reg = <0 0x14000000 0 0x100>, /* CONFIG */ + <0 0x14020000 0 0x1000>; /* MUTEX */ + power-domains = <&scpsys MT8173_POWER_DOMAIN_DIS>; + clocks = <&mmsys MM_MUTEX_32K>; + clock-names = "mutex_disp"; +}; \ No newline at end of file diff --git a/Documentation/devicetree/bindings/drm/mediatek/mediatek,drm.txt b/Documentation/devicetree/bindings/drm/mediatek/mediatek,drm.txt new file mode 100644 index 0000000..c4a5702 --- /dev/null +++ b/Documentation/devicetree/bindings/drm/mediatek/mediatek,drm.txt @@ -0,0 +1,27 @@ +Mediatek DRM Device +================================ + +The Mediatek DRM device is a device needed to list all +display component nodes that comprise the display subsystem. +And it list the memory-related interface. + +Required properties: +- compatible: "mediatek,-drm" +- larb: Should contain a list of phandles pointing to larb device. + larb definitions as defined in + Documentation/devicetree/bindings/soc/mediatek/mediatek,smi-larb.txt +- iommus: required a iommu node +- connectors: Should contain a list of phandles pointing to connector device. + connector device should be one component of this master. +- crtcs: Should contain a list of phandles pointing to crtc device. + crtc device should be one component of this master. + +Example: + +drm0: drm { + compatible = "mediatek,mt8173-drm"; + larb = <&larb0>; + iommus = <&iommu M4U_PORT_DISP_OVL0>; + connectors = <&dsi>; + crtcs = <&crtc_main>; +}; \ No newline at end of file diff --git a/Documentation/devicetree/bindings/drm/mediatek/mediatek,dsi.txt b/Documentation/devicetree/bindings/drm/mediatek/mediatek,dsi.txt new file mode 100644 index 0000000..16e3eb3 --- /dev/null +++ b/Documentation/devicetree/bindings/drm/mediatek/mediatek,dsi.txt @@ -0,0 +1,20 @@ +Mediatek DSI Device +================================ + +The Mediatek DSI device is a connector device of DRM system. + +Required properties: +- compatible: "mediatek,-dsi" +- reg: Physical base address and length of the controller's registers +- clocks: device clocks + See Documentation/devicetree/bindings/clock/clock-bindings.txt for details. + +Example: + +dsi: dsi@10215000 { + compatible = "mediatek,mt8173-dsi"; + reg = <0 0x1401B000 0 0x1000>, /* DSI0 */ + <0 0x10215000 0 0x1000>; /* MIPITX */ + clocks = <&mmsys MM_DSI0_ENGINE>, <&mmsys MM_DSI0_DIGITAL>; + clock-names = "dsi0_engine_disp_ck", "dsi0_digital_disp_ck"; +};