From patchwork Fri May 18 01:01:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10407979 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 25794601C8 for ; Fri, 18 May 2018 01:05:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 155A9287EF for ; Fri, 18 May 2018 01:05:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 096D8287F3; Fri, 18 May 2018 01:05:11 +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=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 3B7BB287EF for ; Fri, 18 May 2018 01:05:08 +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: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:In-Reply-To:References: List-Owner; bh=KFLZmGkPV+WkyAHeHa77xgiI6uWmxIbVWJAvfSrk/Aw=; b=RDPVeZobpdDzZ6 Vosy2XaNE5xUql8U/dJLKb8UFapvvr8n2sGXYZwvF4PNTGCB8kdTwfkSNs+S+0UR/3XMgf/8iwutX PrjtnkQj964wB5iJAQqe3h8quv3aUXI3UqJTPdUh/48nob54lVsLz+VUXG9jRbgOkJrG4QLGU2SnH a+mlVBdYQy9z8v0UOLq6b4ofQVAMJXHM6BpgknY+L7EYdvY3aSQIQY8sc8EjwJqZo+3ODLVvdd/hk jbiA3VwVHIIFbxLQ4jJ6skroKtN+ruBO88El1k8Ji91oEQTZJXfswluklASmtoa79llif/1WA/fwz 9311M7/j/G+js5DkzoJA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fJTpP-0003rj-VN; Fri, 18 May 2018 01:05:03 +0000 Received: from mail-he1eur01on061d.outbound.protection.outlook.com ([2a01:111:f400:fe1e::61d] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fJTpL-0003nN-MT for linux-arm-kernel@lists.infradead.org; Fri, 18 May 2018 01:05:01 +0000 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=b9Xw9i08ZXkbj0dfDyk0YMcemBFr6mctHYL1J91V2TM=; b=Wkey6YizDINmFQT4U6tivett37wwdNvbun67xlgsaDw0gc9/O5EskqZ9Ju8mcdYbA2O869qK8jYHdKN77SO+y6hi3MpdlSAyYaytyuWB0DHCbWK0mRBb9pZIUnWudyMHQTqhcOO3SRJlZcxalC0DGCurWCZ0SIUJJTuE7nahsn0= 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 DB5PR04MB1318.eurprd04.prod.outlook.com (2a01:111:e400:51cb::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.776.11; Fri, 18 May 2018 01:04:39 +0000 From: Anson Huang To: shawnguo@kernel.org, kernel@pengutronix.de, fabio.estevam@nxp.com, robh+dt@kernel.org, mark.rutland@arm.com, mturquette@baylibre.com, sboyd@kernel.org, stefan@agner.ch, adriana.reus@nxp.com, rui.silva@linaro.org Subject: [PATCH V2 1/3] clk: imx7d: correct enet phy ref clock gates Date: Fri, 18 May 2018 09:01:04 +0800 Message-Id: <1526605266-18464-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR02CA0144.apcprd02.prod.outlook.com (2603:1096:202:16::28) To DB5PR04MB1318.eurprd04.prod.outlook.com (2a01:111:e400:51cb::12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(2017052603328)(7153060)(7193020); SRVR:DB5PR04MB1318; X-Microsoft-Exchange-Diagnostics: 1; DB5PR04MB1318; 3:ACIyc4G9NK4CDNGsJwGDlTDBYDYMNsmWK3j7aQXAPneFBJuEg13a3FsgPlHNJfyNhAAVkbJkaU3AKeaIP7c11Plh4tfr7ogStKAV8gYiXVokH5YXbsxs3ewvFIxtOD2lwuI8ZCsYFouIpQaPGtW3JAOFnArjWcFTCO91HrpkwFbvdbmU3126DVYenXO6FiXHyxOjDV16+U+O7xzwf+LA5z2FwWdN8ORUgF5+/JRgT+CtCrtbiobguBoblVvrdoQf; 25:uTirolHnz0b/jnzsL1CBFw4dF9T6w4AnLqj94rARPrZr9R5drfZ/D+HX7OgT52VM7LJNQZYu+UxWN8cwZDMEs2i+fSuYOKyuITzHhR5bIXQhmmXuXXlaG6IHgOMAhxtsB5BNGunXDjRVo4sFUeATE5qQ+Ahr4o6bS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cSROMJMI9IU79NeKngiFLCFgaB5StQUH1gmBFhhLLUVvN+y0B48N9Q3bUXabpg+PRbkQIYIq3K6gQt+sf3a5apOLxG7Pvktn2nJL1C8hy2hfYaZYI/bCc/YGusvsOHGXrIUoEMbN3N09BTP7laalVOsJ1fNaDURZF+xbLR8U/t9Pnd9fv/wW6TRmTWb4WNMxug5DF26B3buIOGxTqJR1yb2v07cep4nXzF3qpl3tA7PO2WJ 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)(10201501046)(3002001)(93006095)(93001095)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:DB5PR04MB1318; BCL:0; PCL:0; RULEID:; SRVR:DB5PR04MB1318; X-Forefront-PRVS: 0676F530A9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(366004)(376002)(39860400002)(39380400002)(396003)(189003)(199004)(476003)(6116002)(5660300001)(50466002)(81166006)(81156014)(2906002)(105586002)(486006)(3846002)(106356001)(316002)(956004)(25786009)(2616005)(186003)(8936002)(47776003)(97736004)(51416003)(478600001)(16526019)(66066001)(16586007)(50226002)(8676002)(26005)(48376002)(7416002)(6506007)(4326008)(7736002)(305945005)(386003)(6512007)(53936002)(52116002)(6666003)(36756003)(6486002)(86362001)(68736007)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB5PR04MB1318; H:anson-OptiPlex-790.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:3; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB5PR04MB1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KE+N0agRNuE/U0/LKauzFgImXd7CAea1w==; 5:oayNlO/gobZTitQgUySoPKIQ6MpQAdqjzc+j0gR4QUEoSTPQMJHITxv396+HadEQ1ibMKnm8cubJo0Z3YlV+Oh1qyDPBdPxnSiDR/ZYpPhtjd0D4lXeJSADsskll0xOrQDT8gSeKtvStqYWNrwvMucLKktszBwYMyPb+VXX7VcU=; 24:9MFodbL0pG7dCGrUDYrFPlFlhBQCMUy4rLBhoNYrFHJzQoYHPWIkvQa/4TMRLHBqY/LdNuKX+O3RW0EgX9n3U6DiXOPXL0nbbNysmjDQJuw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB5PR04MB1318; 7:HjDpVwzsEz4HoOL235aH0D9k0r8924yeqoXrcPgtj/YdLSD5ggqfe+rd0/r/xiM7o+yQq3yHOUS1UM8MDBUltiNlLWrA58P43D6+MPOG9iFpHgQhJ0e51vz3N2de0VsWahFaszrV5ESm3Ep9R3uxqGCJI8Sg4vLVkPVuvF+dLCInlH5+04Xb8mshL5Z4wyGJXPl32nZTG2kxgN6SLzLrrZQ1pMv+TuxGcOL354YeqDNcCBG/RnvjaKJ3yHze9lZt X-MS-Office365-Filtering-Correlation-Id: 0aca75da-2472-467a-07c6-08d5bc5b579e X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 May 2018 01:04:39.6124 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0aca75da-2472-467a-07c6-08d5bc5b579e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR04MB1318 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180517_180459_986493_4AEE21D6 X-CRM114-Status: GOOD ( 12.79 ) X-BeenThere: linux-arm-kernel@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, linux-clk@vger.kernel.org, Linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP IMX7D_ENET_PHY_REF_ROOT_DIV supplies clock for PHY directly, there is no clock gate after it, rename it to IMX7D_ENET_PHY_REF_ROOT_CLK to avoid device tree change. Signed-off-by: Anson Huang Reviewed-by: Stefan Agner --- drivers/clk/imx/clk-imx7d.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c index 975a20d..23d5090a 100644 --- a/drivers/clk/imx/clk-imx7d.c +++ b/drivers/clk/imx/clk-imx7d.c @@ -738,7 +738,7 @@ static void __init imx7d_clocks_init(struct device_node *ccm_node) clks[IMX7D_ENET1_TIME_ROOT_DIV] = imx_clk_divider2("enet1_time_post_div", "enet1_time_pre_div", base + 0xa780, 0, 6); clks[IMX7D_ENET2_REF_ROOT_DIV] = imx_clk_divider2("enet2_ref_post_div", "enet2_ref_pre_div", base + 0xa800, 0, 6); clks[IMX7D_ENET2_TIME_ROOT_DIV] = imx_clk_divider2("enet2_time_post_div", "enet2_time_pre_div", base + 0xa880, 0, 6); - clks[IMX7D_ENET_PHY_REF_ROOT_DIV] = imx_clk_divider2("enet_phy_ref_post_div", "enet_phy_ref_pre_div", base + 0xa900, 0, 6); + clks[IMX7D_ENET_PHY_REF_ROOT_CLK] = imx_clk_divider2("enet_phy_ref_root_clk", "enet_phy_ref_pre_div", base + 0xa900, 0, 6); clks[IMX7D_EIM_ROOT_DIV] = imx_clk_divider2("eim_post_div", "eim_pre_div", base + 0xa980, 0, 6); clks[IMX7D_NAND_ROOT_CLK] = imx_clk_divider2("nand_root_clk", "nand_pre_div", base + 0xaa00, 0, 6); clks[IMX7D_QSPI_ROOT_DIV] = imx_clk_divider2("qspi_post_div", "qspi_pre_div", base + 0xaa80, 0, 6); @@ -816,7 +816,6 @@ static void __init imx7d_clocks_init(struct device_node *ccm_node) clks[IMX7D_ENET1_TIME_ROOT_CLK] = imx_clk_gate4("enet1_time_root_clk", "enet1_time_post_div", base + 0x44f0, 0); clks[IMX7D_ENET2_REF_ROOT_CLK] = imx_clk_gate4("enet2_ref_root_clk", "enet2_ref_post_div", base + 0x4500, 0); clks[IMX7D_ENET2_TIME_ROOT_CLK] = imx_clk_gate4("enet2_time_root_clk", "enet2_time_post_div", base + 0x4510, 0); - clks[IMX7D_ENET_PHY_REF_ROOT_CLK] = imx_clk_gate4("enet_phy_ref_root_clk", "enet_phy_ref_post_div", base + 0x4520, 0); clks[IMX7D_EIM_ROOT_CLK] = imx_clk_gate4("eim_root_clk", "eim_post_div", base + 0x4160, 0); clks[IMX7D_NAND_RAWNAND_CLK] = imx_clk_gate2_shared2("nand_rawnand_clk", "nand_root_clk", base + 0x4140, 0, &share_count_nand); clks[IMX7D_NAND_USDHC_BUS_RAWNAND_CLK] = imx_clk_gate2_shared2("nand_usdhc_rawnand_clk", "nand_usdhc_root_clk", base + 0x4140, 0, &share_count_nand);