From patchwork Tue Aug 8 08:13:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mars Cheng X-Patchwork-Id: 9886807 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2107160384 for ; Tue, 8 Aug 2017 08:15:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0EE13287D2 for ; Tue, 8 Aug 2017 08:15:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0D807287E8; Tue, 8 Aug 2017 08:15:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, UNPARSEABLE_RELAY, UPPERCASE_50_75 autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A6EFC287E3 for ; Tue, 8 Aug 2017 08:14:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=QF3YJ+wKnlbNVuBwYzuWr6PQqzJ2X3qPavllKAS6NME=; b=h3NvfMcmZr9P2X Mma/d0uYE6QdDY5bIm5q8DbtR6aUi+ydwZuY1EmrXIX2s85ST772vbeDuokssKOj4n1KOKStFprki 5MOFqv0ioiee1Z/z5HMOx8LHCH9BDwsECtcjEg98km7HH+vIZGlE6b6kNC7ktt2NuZB/UxeHXOXrP pQPOls27jMRrw7Q6mjzGnkUsV9ZsT7Icn+YRR6pGjaO+jw6V8QCzCxAPRRFIbUMjXwYi4DJHpfjLM uIQE/HishQyTLuHiWLY+FzCHoCQtR9QkCubB2GJg/zXfNsIEUyc0W6czBNo8PQ+XonK5sycWUde9U xojEQMfIkCPWd8BjqKIQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dezed-0003j7-BX; Tue, 08 Aug 2017 08:14:19 +0000 Received: from [210.61.82.183] (helo=mailgw01.mediatek.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dezeW-0003Yd-Ub for linux-mediatek@lists.infradead.org; Tue, 08 Aug 2017 08:14:15 +0000 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 223298280; Tue, 08 Aug 2017 16:13:40 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 8 Aug 2017 16:13:38 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Tue, 8 Aug 2017 16:13:38 +0800 From: Mars Cheng To: Matthias Brugger , Rob Herring , Stephen Boyd Subject: [PATCH v1 3/5] clk: mediatek: add mt6755 clock ID Date: Tue, 8 Aug 2017 16:13:32 +0800 Message-ID: <1502180014-7995-4-git-send-email-mars.cheng@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1502180014-7995-1-git-send-email-mars.cheng@mediatek.com> References: <1502180014-7995-1-git-send-email-mars.cheng@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-20170808_011413_267725_31F624BA X-CRM114-Status: GOOD ( 11.82 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Mars Cheng , linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, wsd_upstream@mediatek.com Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Mars Cheng --- include/dt-bindings/clock/mt6755-clk.h | 293 ++++++++++++++++++++++++++++++++ 1 file changed, 293 insertions(+) create mode 100644 include/dt-bindings/clock/mt6755-clk.h diff --git a/include/dt-bindings/clock/mt6755-clk.h b/include/dt-bindings/clock/mt6755-clk.h new file mode 100644 index 0000000..b1ec860 --- /dev/null +++ b/include/dt-bindings/clock/mt6755-clk.h @@ -0,0 +1,293 @@ +/* + * Copyright (c) 2016 MediaTek Inc. + * Author: Wendell Lin + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#ifndef _DT_BINDINGS_CLK_MT6755_H +#define _DT_BINDINGS_CLK_MT6755_H + +/* TOPCKGEN */ +#define CLK_TOP_MUX_AXI 1 +#define CLK_TOP_MUX_MEM 2 +#define CLK_TOP_MUX_DDRPHY 3 +#define CLK_TOP_MUX_MM 4 +#define CLK_TOP_MUX_PWM 5 +#define CLK_TOP_MUX_VDEC 6 +#define CLK_TOP_MUX_MFG 7 +#define CLK_TOP_MUX_CAMTG 8 +#define CLK_TOP_MUX_UART 9 +#define CLK_TOP_MUX_SPI 10 +#define CLK_TOP_MUX_MSDC50_0_HCLK 11 +#define CLK_TOP_MUX_MSDC50_0 12 +#define CLK_TOP_MUX_MSDC30_1 14 +#define CLK_TOP_MUX_MSDC30_2 15 +#define CLK_TOP_MUX_MSDC30_3 16 +#define CLK_TOP_MUX_AUDIO 17 +#define CLK_TOP_MUX_AUDINTBUS 18 +#define CLK_TOP_MUX_PMICSPI 19 +#define CLK_TOP_MUX_ATB 20 +#define CLK_TOP_MUX_DPI0 21 +#define CLK_TOP_MUX_SCAM 22 +#define CLK_TOP_MUX_AUD1 24 +#define CLK_TOP_MUX_AUD2 25 +#define CLK_TOP_MUX_DISPPWM 26 +#define CLK_TOP_MUX_SSUSBTOPSYS 27 +#define CLK_TOP_MUX_USBTOP 28 +#define CLK_TOP_MUX_SPM 29 +#define CLK_TOP_MUX_BSISPI 30 +#define CLK_TOP_MUX_I2C 31 +#define CLK_TOP_MUX_DVFSP 32 +#define CLK_TOP_AD_APLL1_CK 33 +#define CLK_TOP_AD_APLL2_CK 34 +#define CLK_TOP_MMPLL_CK 35 +#define CLK_TOP_DDRX1_CK 36 +#define CLK_TOP_DMPLL_CK 37 +#define CLK_TOP_MPLL_208M_CK 38 +#define CLK_TOP_MSDCPLL_CK 39 +#define CLK_TOP_MSDCPLL_D16 40 +#define CLK_TOP_MSDCPLL_D2 41 +#define CLK_TOP_MSDCPLL_D4 42 +#define CLK_TOP_MSDCPLL_D8 43 +#define CLK_TOP_OSC_D2 44 +#define CLK_TOP_OSC_D4 45 +#define CLK_TOP_OSC_D8 46 +#define CLK_TOP_SYSPLL_D3 47 +#define CLK_TOP_SYSPLL_D3_D3 48 +#define CLK_TOP_SYSPLL_D5 49 +#define CLK_TOP_SYSPLL_D7 50 +#define CLK_TOP_SYSPLL1_D2 51 +#define CLK_TOP_SYSPLL1_D4 52 +#define CLK_TOP_SYSPLL1_D8 53 +#define CLK_TOP_SYSPLL1_D16 54 +#define CLK_TOP_SYSPLL2_D2 55 +#define CLK_TOP_SYSPLL2_D4 56 +#define CLK_TOP_SYSPLL3_D2 57 +#define CLK_TOP_SYSPLL3_D4 58 +#define CLK_TOP_SYSPLL4_D2 59 +#define CLK_TOP_SYSPLL4_D4 60 +#define CLK_TOP_TVDPLL_D2 61 +#define CLK_TOP_TVDPLL_D4 62 +#define CLK_TOP_TVDPLL_D8 63 +#define CLK_TOP_TVDPLL_D16 64 +#define CLK_TOP_UNIVPLL_D2 65 +#define CLK_TOP_UNIVPLL_D3 66 +#define CLK_TOP_UNIVPLL_D5 67 +#define CLK_TOP_UNIVPLL_D7 68 +#define CLK_TOP_UNIVPLL_D26 69 +#define CLK_TOP_UNIVPLL1_D2 70 +#define CLK_TOP_UNIVPLL1_D4 71 +#define CLK_TOP_UNIVPLL1_D8 72 +#define CLK_TOP_UNIVPLL2_D2 73 +#define CLK_TOP_UNIVPLL2_D4 74 +#define CLK_TOP_UNIVPLL2_D8 75 +#define CLK_TOP_UNIVPLL3_D2 76 +#define CLK_TOP_UNIVPLL3_D4 77 +#define CLK_TOP_VENCPLL_CK 78 +#define CLK_TOP_WHPLL_AUDIO_CK 79 +#define CLK_TOP_CLKPH_MCK_O 80 +#define CLK_TOP_DPI_CK 81 +#define CLK_TOP_MUX_USB20 82 +#define CLK_TOP_MUX_SCP 83 +#define CLK_TOP_MUX_IRDA 84 +#define CLK_TOP_MUX_IRTX 85 +#define CLK_TOP_AD_SYS_26M_CK 86 +#define CLK_TOP_AD_SYS_26M_D2 87 +#define CLK_TOP_DMPLL_D2 88 +#define CLK_TOP_DMPLL_D4 89 +#define CLK_TOP_DMPLL_D8 90 +#define CLK_TOP_SYSPLL_D2 91 +#define CLK_TOP_SYSPLL4_D2_D8 92 +#define CLK_TOP_TVDPLL_CK 93 +#define CLK_TOP_VENCPLL_D3 94 +#define CLK_TOP_SYSPLL_CK 95 +#define CLK_TOP_SYSPLL1_CK 96 +#define CLK_TOP_SYSPLL2_CK 97 +#define CLK_TOP_SYSPLL3_CK 98 +#define CLK_TOP_SYSPLL4_CK 99 +#define CLK_TOP_UNIVPLL_CK 100 +#define CLK_TOP_UNIVPLL1_CK 101 +#define CLK_TOP_UNIVPLL2_CK 102 +#define CLK_TOP_UNIVPLL3_CK 103 +#define CLK_TOP_NR 104 + +/* APMIXED_SYS */ + +#define CLK_APMIXED_ARMBPLL 1 +#define CLK_APMIXED_ARMSPLL 2 +#define CLK_APMIXED_MAINPLL 3 +#define CLK_APMIXED_MSDCPLL 4 +#define CLK_APMIXED_UNIVPLL 5 +#define CLK_APMIXED_MMPLL 6 +#define CLK_APMIXED_VENCPLL 7 +#define CLK_APMIXED_TVDPLL 8 +#define CLK_APMIXED_APLL1 9 +#define CLK_APMIXED_APLL2 10 +#define CLK_APMIXED_ARMPLL 11 +#define CLK_APMIXED_NR 12 + +/* INFRA_SYS */ + +#define CLK_INFRA_PMIC_TMR 1 +#define CLK_INFRA_PMIC_AP 2 +#define CLK_INFRA_PMIC_MD 3 +#define CLK_INFRA_PMIC_CONN 4 +#define CLK_INFRA_SEJ 5 +#define CLK_INFRA_APXGPT 6 +#define CLK_INFRA_ICUSB 7 +#define CLK_INFRA_GCE 8 +#define CLK_INFRA_THERM 9 +#define CLK_INFRA_I2C0 10 +#define CLK_INFRA_I2C1 11 +#define CLK_INFRA_I2C2 12 +#define CLK_INFRA_I2C3 13 +#define CLK_INFRA_PWM_HCLK 14 +#define CLK_INFRA_PWM1 15 +#define CLK_INFRA_PWM2 16 +#define CLK_INFRA_PWM3 17 +#define CLK_INFRA_PWM4 18 +#define CLK_INFRA_PWM 19 +#define CLK_INFRA_UART0 20 +#define CLK_INFRA_UART1 21 +#define CLK_INFRA_UART2 22 +#define CLK_INFRA_UART3 23 +#define CLK_INFRA_MD2MD_CCIF0 24 +#define CLK_INFRA_MD2MD_CCIF1 25 +#define CLK_INFRA_MD2MD_CCIF2 26 +#define CLK_INFRA_BTIF 27 +#define CLK_INFRA_MD2MD_CCIF3 28 +#define CLK_INFRA_SPI0 29 +#define CLK_INFRA_MSDC0 30 +#define CLK_INFRA_MD2MD_CCIF4 31 +#define CLK_INFRA_MSDC1 32 +#define CLK_INFRA_MSDC2 33 +#define CLK_INFRA_MSDC3 34 +#define CLK_INFRA_MD2MD_CCIF5 35 +#define CLK_INFRA_GCPU 36 +#define CLK_INFRA_TRNG 37 +#define CLK_INFRA_AUXADC 38 +#define CLK_INFRA_CPUM 39 +#define CLK_INFRA_CCIF1_AP 40 +#define CLK_INFRA_CCIF1_MD 41 +#define CLK_INFRA_AP_DMA 42 +#define CLK_INFRA_XIU 43 +#define CLK_INFRA_DEVICE_APC 44 +#define CLK_INFRA_XIU2AHB 45 +#define CLK_INFRA_CCIF_AP 46 +#define CLK_INFRA_DEBUGSYS 47 +#define CLK_INFRA_AUDIO 48 +#define CLK_INFRA_CCIF_MD 49 +#define CLK_INFRA_DRAMC_F26M 50 +#define CLK_INFRA_IRTX 51 +#define CLK_INFRA_SSUSB_TOP 52 +#define CLK_INFRA_DISP_PWM 53 +#define CLK_INFRA_CLDMA_BCLK 54 +#define CLK_INFRA_AUDIO_26M_BCLK 55 +#define CLK_INFRA_MD_TEMP_26M_BCLK 56 +#define CLK_INFRA_SPI1 57 +#define CLK_INFRA_I2C4 58 +#define CLK_INFRA_MD_TEMP_SHARE 59 +#define CLK_INFRA_CLK_13M 60 +#define CLK_INFRA_NR 61 + +/* MFG_SYS */ + +#define CLK_MFG_BG3D 1 +#define CLK_MFG_NR 2 + +/* IMG_SYS */ + +#define CLK_IMG_IMAGE_LARB2_SMI 1 +#define CLK_IMG_IMAGE_LARB2_SMI_M4U 2 +#define CLK_IMG_IMAGE_LARB2_SMI_SMI_COMMON 3 +#define CLK_IMG_IMAGE_LARB2_SMI_MET_SMI_COMMON 4 +#define CLK_IMG_IMAGE_LARB2_SMI_ISPSYS 5 +#define CLK_IMG_IMAGE_CAM_SMI 6 +#define CLK_IMG_IMAGE_CAM_CAM 7 +#define CLK_IMG_IMAGE_SEN_TG 8 +#define CLK_IMG_IMAGE_SEN_CAM 9 +#define CLK_IMG_IMAGE_CAM_SV 10 +#define CLK_IMG_IMAGE_SUFOD 11 +#define CLK_IMG_IMAGE_FD 12 +#define CLK_IMG_NR 13 + +/* MM_SYS */ + +#define CLK_MM_DISP0_SMI_COMMON 1 +#define CLK_MM_DISP0_SMI_COMMON_M4U 2 +#define CLK_MM_DISP0_SMI_COMMON_MALI 3 +#define CLK_MM_DISP0_SMI_COMMON_DISPSYS 4 +#define CLK_MM_DISP0_SMI_COMMON_SMI_COMMON 5 +#define CLK_MM_DISP0_SMI_COMMON_MET_SMI_COMMON 6 +#define CLK_MM_DISP0_SMI_COMMON_ISPSYS 7 +#define CLK_MM_DISP0_SMI_COMMON_FDVT 8 +#define CLK_MM_DISP0_SMI_COMMON_VDEC_GCON 9 +#define CLK_MM_DISP0_SMI_COMMON_JPGENC 10 +#define CLK_MM_DISP0_SMI_COMMON_JPGDEC 11 +#define CLK_MM_DISP0_SMI_LARB0 12 +#define CLK_MM_DISP0_SMI_LARB0_M4U 13 +#define CLK_MM_DISP0_SMI_LARB0_DISPSYS 14 +#define CLK_MM_DISP0_SMI_LARB0_SMI_COMMON 15 +#define CLK_MM_DISP0_SMI_LARB0_MET_SMI_COMMON 16 +#define CLK_MM_DISP0_CAM_MDP 17 +#define CLK_MM_DISP0_MDP_RDMA 18 +#define CLK_MM_DISP0_MDP_RSZ0 19 +#define CLK_MM_DISP0_MDP_RSZ1 20 +#define CLK_MM_DISP0_MDP_TDSHP 21 +#define CLK_MM_DISP0_MDP_WDMA 22 +#define CLK_MM_DISP0_MDP_WROT 23 +#define CLK_MM_DISP0_FAKE_ENG 24 +#define CLK_MM_DISP0_DISP_OVL0 25 +#define CLK_MM_DISP0_DISP_OVL1 26 +#define CLK_MM_DISP0_DISP_RDMA0 27 +#define CLK_MM_DISP0_DISP_RDMA1 28 +#define CLK_MM_DISP0_DISP_WDMA0 29 +#define CLK_MM_DISP0_DISP_COLOR 30 +#define CLK_MM_DISP0_DISP_CCORR 31 +#define CLK_MM_DISP0_DISP_AAL 32 +#define CLK_MM_DISP0_DISP_GAMMA 33 +#define CLK_MM_DISP0_DISP_DITHER 34 +#define CLK_MM_DISP0_MDP_COLOR 35 +#define CLK_MM_DISP0_DISP_UFOE_MOUT 36 +#define CLK_MM_DISP0_DISP_WDMA1 37 +#define CLK_MM_DISP0_DISP_2L_OVL0 38 +#define CLK_MM_DISP0_DISP_2L_OVL1 39 +#define CLK_MM_DISP0_DISP_OVL0_MOUT 40 +#define CLK_MM_DISP1_DSI_ENGINE 41 +#define CLK_MM_DISP1_DSI_DIGITAL 42 +#define CLK_MM_DISP1_DPI_ENGINE 43 +#define CLK_MM_DISP1_DPI_PIXEL 44 +#define CLK_MM_NR 45 + +/* VDEC_SYS */ + +#define CLK_VDEC0_VDEC 1 +#define CLK_VDEC1_LARB 2 +#define CLK_VDEC1_LARB_M4U 3 +#define CLK_VDEC1_LARB_SMI_COMMON 4 +#define CLK_VDEC1_LARB_MET_SMI_COMMON 5 +#define CLK_VDEC1_LARB_VDEC_GCON 6 +#define CLK_VDEC_NR 7 + +/* VENC_SYS */ + +#define CLK_VENC_LARB 1 +#define CLK_VENC_LARB_M4U 2 +#define CLK_VENC_LARB_SMI_COMMON 3 +#define CLK_VENC_LARB_MET_SMI_COMMON 4 +#define CLK_VENC_LARB_JPGENC 5 +#define CLK_VENC_LARB_JPGDEC 6 +#define CLK_VENC_VENC 7 +#define CLK_VENC_JPGENC 8 +#define CLK_VENC_JPGDEC 9 +#define CLK_VENC_NR 10 + +#endif /* _DT_BINDINGS_CLK_MT6755_H */