Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp316487imm; Fri, 31 Aug 2018 01:00:14 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZbdu+uMteTdAuSsH7SKp+Ui+nZ5jcfYQTyFIuyIoDvaKpoo75Xy4Bx6Qh7GYU9hZrG3eyN X-Received: by 2002:a63:ad44:: with SMTP id y4-v6mr13037186pgo.138.1535702414289; Fri, 31 Aug 2018 01:00:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535702414; cv=none; d=google.com; s=arc-20160816; b=m0w7zTR1VGDXFe0KojOHtvEQkzmErdeG/j1/meuVnJ/kQ3cojniP90Clg/UDWKxPVp ACQUZTxVH7N8mSMkeTtOkGPQEqVu5UrV+EKQxJc8PCeZleIxvb22jLPBYbPFEAGtWxgl ZrAvj7VD9NmlFD+EFNyqsJTHfhGqmM2CJYkQrVS3lsFp3R0o97U/KpGXxkKm4P2+DAdq j369tEz1tsnZvvsXFv/K21v3YsxNrZNk6TeEAHGDs7R4DFYvH6jYfgMXqRV/7Es2LZiA 2EyBOZr4R9c6guE3uhuYzS5W2etwWtxhm7MdRdiMnD7zEwYGssIeklEB5Eg/NaD0lkCj y6hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:arc-authentication-results; bh=rpOV0UVdB7tPceiSfpMY0xW8Bmh7NQIp2hgvFHKUWS8=; b=BAcQQkmeqV+oGnoytSDNGdxo3qgK4p0/2uwzf9PMlR31eI8fylcdITMv5vQVy77Eeg wOU2eH0xRZKgRR8Dn2NPOXwBykYX4Pj89Dh55fvy0ToO34cKS3z3RGagiD4vEYiwckCd sQ0wjEj5ZC0hVRc3rgKBUq3oo37MVfwgfal4YkVBZC4N6TU9mc1hbkh9xLdu+Lpf3a+7 ZHJBzP6Ih4j26JFkh0vCQLXWOyOnFiavcfiwX9MjGcAUu80Ve3ETuW0iUImO3vohxeAM 3rwrzAZp+TNzRMuo6zPHmu2Eqk41Ix+wk1FdN8Zq030gp1M3GpR5pF+TxLcoqtDgXp+c aC+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=Fi9wpacu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t79-v6si9547086pfa.170.2018.08.31.00.59.59; Fri, 31 Aug 2018 01:00:14 -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; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=Fi9wpacu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727636AbeHaMEt (ORCPT + 99 others); Fri, 31 Aug 2018 08:04:49 -0400 Received: from mail-eopbgr20062.outbound.protection.outlook.com ([40.107.2.62]:29888 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727178AbeHaMEt (ORCPT ); Fri, 31 Aug 2018 08:04:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rpOV0UVdB7tPceiSfpMY0xW8Bmh7NQIp2hgvFHKUWS8=; b=Fi9wpacuH8yQCpf28XZMBNWisyFR/EvSUWH8EWNr2jWm0Q2k9cH0jFhNGohwUyY3BH4sFniMD2Nfw1vX7KQwl0gWXsZJV8lWx7Yeaq7vwz42GkaaZU4yBWjkhh3eX7j/WqyL/g9AbMVcTnKmvySan159zXPoZ6FznO3mQJqhzQs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; Received: from anson-OptiPlex-790.ap.freescale.net (119.31.174.66) by AM0PR0402MB3907.eurprd04.prod.outlook.com (2603:10a6:208:f::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1101.17; Fri, 31 Aug 2018 07:58:26 +0000 From: Anson Huang To: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, fabio.estevam@nxp.com, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, mturquette@baylibre.com, sboyd@kernel.org, colin.didier@devialet.com, clement.peron@devialet.com, ping.bai@nxp.com, aisheng.dong@nxp.com, shengjiu.wang@nxp.com, matteo.lisi@engicam.com, michael@amarulasolutions.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH 5/7] clk: imx6sl: add mmdc ipg clocks Date: Fri, 31 Aug 2018 15:53:16 +0800 Message-Id: <1535701998-20443-6-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535701998-20443-1-git-send-email-Anson.Huang@nxp.com> References: <1535701998-20443-1-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK0PR01CA0037.apcprd01.prod.exchangelabs.com (2603:1096:203:3e::25) To AM0PR0402MB3907.eurprd04.prod.outlook.com (2603:10a6:208:f::27) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4c13d264-c610-4767-36b0-08d60f178c58 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM0PR0402MB3907; X-Microsoft-Exchange-Diagnostics: 1;AM0PR0402MB3907;3:3LR5rNAqeWnZ5T0GYns4zdjZ7pEY9pgW9WzJPG8mJcWq77gZ9MIPScMKtvRVLOUAiBgBYJJghTx9pl61y8bJJcwLdrLBZMNOu5fAjtO6wpKpxugt5Qhca3iSYLmoW5xzTqkMnzO5D2CDOOTXbj2j0JE2ayk3YLTXMfhC+vmsPdDfNbNz4FKtDrOUONM63g0M5zdkFx5aI7nart1//g3S+CRKcxMizhLuQi+WNTxvvaFDBGcOCIZYxjj2hVD1prQw;25:XuhUQdU5g2advaLx90qaS2fagOmNXOOmeYOjwzT2qIFz6pWdc83HDwSTRCnSm13Mj0fUl0Y0KseDsfFMlig0FoMnddZfJdvXJlS+uCVsMmJyHjgarPxI0/rGX4tqg5rNhXNRRIzgKkljHmx9VZIDMIiSCF9S5wWjSh+W8ZO6zGnV3cwTxpBY0NQqU8vabow6YaPKsolGK6ezD98aYB7/vXxUrAeCpW45sbzzRhUEQK0Fq9XkGJ0yZO+u3N8jv8klA5X+FeP+7VZeQ02hKNrwOlNoYg6MP4VTFI0v2YQLJL/+1kwJpkRYb2+3qCpIPqhXjgkc42AETNl4y8kCfzV2HQ==;31:R0WUqYZ8N7tt8zKVE9hSEV8G6AwNeA8/wkMsBITXAHukymnsX49vk/5UNZTScHYgOvuQq4llAwlEUr0pERytTTMNV9g1VTJga213Kn0URCvFTZCxheAqqg8s5+hRIGLB7WpD25L1IHWlyY7vJ+ZcCf9OXDu80YVkJuB52szf2sdePkMsnJSbB0YB9U4edGMH+YkvJsXdJYONKRtaPKVfpd9Iqd28u5BENErvl/DigtU= X-MS-TrafficTypeDiagnostic: AM0PR0402MB3907: X-Microsoft-Exchange-Diagnostics: 1;AM0PR0402MB3907;20:5Ciyejw7h3IFma8y0FdcL2H4hDQD53mgUwi3cfWokoM18uSRn288l7zxtVgNPcSj3EDs1pdjflrEkGZz29K4u5eu3PuLYT2Zxl8sLPP6Ps65t6Bk7s1sP4kAw2L4/JGGv7Ly28o2uIi3dgyq7FZAJg/CXjVr2Ep+Id3kOSpB2XC15rvX93gcepld8qdUXpzSKfte5sddWuTTD/Q49QXxOdLOrYcXcRLFueP1ufhWhrTwIRHiA6M3UjOYfeOYmF1Lb+MYfSG+ZiNbt2m0gv5A9enxm6YOqnk/KDzdsGWXjpsmBLlnDCN5YkQ4Mjtzv0Z5Cyq6dLnMH2U8AZI8ugTzg2Oj8M5lrhwriKooQnreMiczZQQg0BaXRCxg4VngkBK+cfT5KvlBH7biUUxVaeaSHUyuverkzRH3yhg6wp7v7iLKQ3vLwuWWyDMnleKOtCQSrQLGib+eYbyus4FGSRkYtjN8yikPNyfZm5zVXH2RQiC4MpPR6VVTRo80n0Vyp1h7;4:vnHnBQXuUk6XbpkcKLCnwqvn9X+H5raTG26uuOBYr/TPoRyiGEGe2JM85EI56+NTJIm4A53fpUZQkrrKLxCvY4gAsaBu9/xc8uHHKCyXobf8J5FDzcOt/JS7Z2qXGNfl6W1JIQzYbD/hwgBqq7YSnLbF2Hk7HV+1QHjIKQaM0MdTs7IlvM+bBUH0xuenc+oFSvho2i48qoT0H3giS3galxDsZycIVwzxCrzvihfuWEQagqlNUE1s1qcp5XABtRSqpvsnYIQK5g5KjxwQm6Yoajj5qRI/C2j4FzCpGCknZY1sdy5eUAvX7o+0hMCOt7ws X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(10201501046)(3231311)(944501410)(52105095)(93006095)(93001095)(3002001)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201708071742011)(7699016);SRVR:AM0PR0402MB3907;BCL:0;PCL:0;RULEID:;SRVR:AM0PR0402MB3907; X-Forefront-PRVS: 07817FCC2D X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(39860400002)(396003)(376002)(366004)(346002)(136003)(199004)(189003)(106356001)(105586002)(86362001)(48376002)(50466002)(76176011)(478600001)(51416003)(52116002)(316002)(16586007)(25786009)(2906002)(5660300001)(305945005)(97736004)(4326008)(386003)(6506007)(7736002)(53936002)(50226002)(186003)(16526019)(68736007)(36756003)(8936002)(6666003)(26005)(6486002)(6116002)(14444005)(3846002)(6512007)(66066001)(8676002)(47776003)(81166006)(81156014)(476003)(2616005)(486006)(446003)(11346002)(956004)(7416002)(921003)(32563001)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR0402MB3907;H:anson-OptiPlex-790.ap.freescale.net;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;AM0PR0402MB3907;23:cmMZPYjshsL4qwRHVOcjVCS130QpXtxGWBMk9HV?= =?us-ascii?Q?KRn5dFhg9/xmYVtFNPL0XcHPpXz7yE0as81eAwzibYaNAgt3fcAwe37qgifY?= =?us-ascii?Q?5li02W570O/q6wXYKkoflQqq8F01+0EcoE+hlbmEMZxkVcfuf0jIgsgNj5Pv?= =?us-ascii?Q?kDEOEcbI8a3eu8dtcUZdoOsiC4/biyvInvD0uP060H7pc3AVAMLovV+RO04d?= =?us-ascii?Q?Hfq9AUXJhRfQUJSryXcXb0cg/TQ2vQ74AwxfUH2W5dc4glnPgvppGaWSgmXX?= =?us-ascii?Q?rLTJUQbn9xulp6usjSHErzY+8xN77P4qDaRk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tstXlMgvFGNqIjE+6mE1+Se5jiEjccYWy0WytDM+KJBNqiw26HOYIumygOY5mNOVQQ30mLymO8d/xPs=;7:x7dJ6YeO62APoRz5DWtQKN8wOd/T5DO96UZ+IDbkdNQGktbzHx+SOVhjh1Iv1Xst/v9JQWMZkCy7X+Rj5tjwMX8kHSn6RAOmnYU5c8NNBqH1/17W6zoesvrVLttl/M/B9lvb1MtrhX4LeHa6EWADMkGwE1mE5ASXGTKj6PJiiOrpfRO09pwM1P7aiCjEMNOxG+HCX/o1t8PbnOyXsdXDJWFHbncb8VD7lxizkiwwLCT4z15tor0PYJ2ELcoG6pbe SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Aug 2018 07:58:26.3383 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4c13d264-c610-4767-36b0-08d60f178c58 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0402MB3907 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org i.MX6SL has MMDC0 and MMDC1 ipg clock in CCM CCGR, add them into clock tree for clock management. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx6sl.c | 2 ++ include/dt-bindings/clock/imx6sl-clock.h | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx6sl.c b/drivers/clk/imx/clk-imx6sl.c index eb6bcbf..6fcfbbd 100644 --- a/drivers/clk/imx/clk-imx6sl.c +++ b/drivers/clk/imx/clk-imx6sl.c @@ -386,6 +386,8 @@ static void __init imx6sl_clocks_init(struct device_node *ccm_node) clks[IMX6SL_CLK_LCDIF_AXI] = imx_clk_gate2("lcdif_axi", "lcdif_axi_podf", base + 0x74, 6); clks[IMX6SL_CLK_LCDIF_PIX] = imx_clk_gate2("lcdif_pix", "lcdif_pix_podf", base + 0x74, 8); clks[IMX6SL_CLK_EPDC_PIX] = imx_clk_gate2("epdc_pix", "epdc_pix_podf", base + 0x74, 10); + clks[IMX6SL_CLK_MMDC_P0_IPG] = imx_clk_gate2_flags("mmdc_p0_ipg", "ipg", base + 0x74, 24, CLK_IS_CRITICAL); + clks[IMX6SL_CLK_MMDC_P1_IPG] = imx_clk_gate2("mmdc_p1_ipg", "ipg", base + 0x74, 26); clks[IMX6SL_CLK_OCRAM] = imx_clk_gate2("ocram", "ocram_podf", base + 0x74, 28); clks[IMX6SL_CLK_PWM1] = imx_clk_gate2("pwm1", "perclk", base + 0x78, 16); clks[IMX6SL_CLK_PWM2] = imx_clk_gate2("pwm2", "perclk", base + 0x78, 18); diff --git a/include/dt-bindings/clock/imx6sl-clock.h b/include/dt-bindings/clock/imx6sl-clock.h index e14573e..cfbfc39 100644 --- a/include/dt-bindings/clock/imx6sl-clock.h +++ b/include/dt-bindings/clock/imx6sl-clock.h @@ -175,6 +175,8 @@ #define IMX6SL_CLK_SSI2_IPG 162 #define IMX6SL_CLK_SSI3_IPG 163 #define IMX6SL_CLK_SPDIF_GCLK 164 -#define IMX6SL_CLK_END 165 +#define IMX6SL_CLK_MMDC_P0_IPG 165 +#define IMX6SL_CLK_MMDC_P1_IPG 166 +#define IMX6SL_CLK_END 167 #endif /* __DT_BINDINGS_CLOCK_IMX6SL_H */ -- 2.7.4