Message ID | 20210429073331.21204-1-peng.fan@oss.nxp.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <SRS0=ailJ=J2=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC5E8C433B4 for <linux-arm-kernel@archiver.kernel.org>; Thu, 29 Apr 2021 07:15:56 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 54F0E6141E for <linux-arm-kernel@archiver.kernel.org>; Thu, 29 Apr 2021 07:15:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 54F0E6141E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc: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=Y3E4G6oCg7hqxrQw/G2LuPuufI+7OK9JSWua0If6qm4=; b=RKUDvAVFe96NJHwlRdXzQD49nj 2dvSm8kGZuTt+uCFJyFl2S6cZ3QgySraEPgGktakkpXwetyacJ5YOA5rLqalpuLJ/CAepPC8pK7fp Vyh0lLt3xAYzaZexStM54JiUiDEg/P0ZjQ7dJZNTFxaDwH7zrJDDPHFwKPSYYPZ4OfsyNWuNlBmeZ rEb8dPFSUtAyE1CT0U3kJ3mam/ufwCID1BGi8ty6/DXcxlu9VxStKxPvFXgTurDkxJBu6PKiMsWe0 N5664Io1tSF1V+bQO1+6nCa7Zrxc4EIjqiKtURoq52rKJYasX8t0K9Tg31CRfOsf6fNf20X1M5bsG Phw3fDGw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lc0rR-005AQ1-NJ; Thu, 29 Apr 2021 07:13:23 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lc0g1-0057uy-RK for linux-arm-kernel@desiato.infradead.org; Thu, 29 Apr 2021 07:01:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-ID:Content-Description:In-Reply-To:References; bh=B+tiqFrWKwgni2c0dQe3LGv9q8dvM7y4EOZoxOmAvhA=; b=ypC6cIERZjXJzqLeysj+3rIKWM NTKJn/MmqlYqaGdnG3m0+GEoauluiWARGOsXoMnFrfyzenxbMy4snfpmNnVeJq29oniYFa3Vd4D26 cwhs3Wi69oGZJGLoN93C2Ng3hVrhaK7fBghwbtxPYXoBMMVkRkm0KIjDCXCE7rvX2IYP6Kn77VgYq YQ4NMakIrTMtfnRbs2x9nAipXwPC7ecsOZsiIJa5zvEYBjjXctHQk46OWVI2nyLM07i8+AcsJEY6u swBSqqAIRrmHnBFZiqncFUHvzd+6n+j1O+XRMbFPMUzPja1/Dt3z14kEmSDeTkmUcYw2y/oLNEUiJ rFXJbsbQ==; Received: from mail-eopbgr130047.outbound.protection.outlook.com ([40.107.13.47] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lc0fz-000QVS-9E for linux-arm-kernel@lists.infradead.org; Thu, 29 Apr 2021 07:01:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l70le47jTnWRTq5jLT/3TXBM73in61Hmi06cFrYp9pKr9qaCMcDo2LMhCcmImaf6tlIz4B234NFvn3wz+Uu88AYKE4R4xLsb4nhmaR2Mmh3P2NnYWk6X1ktAeSu2o0fS/lJfRFJtWLfML4JKPHqcIJ9JIHF34p+ad9Z4pZETKU+x1ShAvqoTMEToU6XR5182oLNpxxQR26V3nGJ6wA8StnVdWGVDY0+AE/toK/k/e4HxScE8Jsp4XvfJprhxju3mysyu2wlYXpQzA29XigRjeghMfhfX9JbzVtN+HKGncEigWDSf8mj1+FrXJH588BClc7pX4Ulg8bkgmYbRwI4KhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=B+tiqFrWKwgni2c0dQe3LGv9q8dvM7y4EOZoxOmAvhA=; b=VnzIdiwE7orhijKpDIcZfMFkjptGq4p0ZU06eO6JeLOrrXbtU8MdbMoyoQhHoQ6+748FKEK579ChWlXr6EwoJheLqbY/SJZvWmoBDYfW8c52UtOo1tOhGm0+J5q6NdZSws6IEN5krjOq5kCbeTAFNDJlDD9umMeXSqFgMXRdnqSYlwqmwKOS0N36lAHKllhVFCdOfkggVrWbD22STfJ/4yFBzN7Yk+Vqb5MlZKKjlq8Wlt7JldEmSYo4LVdITwlJ/YL7UdXBjTCoGSC9BNIKSgNsH+27zbfkBtqTtYMBPKu6ejEoct8w2QfvgGBnBQFEWtCfDJM9pGBfLreb65Ro3A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=B+tiqFrWKwgni2c0dQe3LGv9q8dvM7y4EOZoxOmAvhA=; b=jxoOp2qV7lGiB9VelpT9M5S/yQCxTCKm9z2XnfaZhXCT5RfB2mOR/3g1OUzuzt51g1+crd0pBx/2nCtEhTly7Uca5odABGnuw+ezhYhTPj6jp5HwmuFbgl7QKBtbB8e2wWNb6hgRTrINzxNvglYPnoGbhafnTcNPYD9zFfRLwYc= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=oss.nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DBBPR04MB7930.eurprd04.prod.outlook.com (2603:10a6:10:1ea::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.20; Thu, 29 Apr 2021 07:01:27 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64%8]) with mapi id 15.20.4065.023; Thu, 29 Apr 2021 07:01:27 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> To: robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, p.zabel@pengutronix.de, l.stach@pengutronix.de, krzk@kernel.org, agx@sigxcpu.org, marex@denx.de, andrew.smirnov@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, ping.bai@nxp.com, frieder.schrempf@kontron.de, aford173@gmail.com, abel.vesa@nxp.com, Peng Fan <peng.fan@nxp.com> Subject: [PATCH 0/4] soc: imx: add i.MX BLK-CTL support Date: Thu, 29 Apr 2021 15:33:27 +0800 Message-Id: <20210429073331.21204-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.30.0 X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: HK2PR06CA0016.apcprd06.prod.outlook.com (2603:1096:202:2e::28) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from linux-1xn6.ap.freescale.net (119.31.174.71) by HK2PR06CA0016.apcprd06.prod.outlook.com (2603:1096:202:2e::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.28 via Frontend Transport; Thu, 29 Apr 2021 07:01:22 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 168fb24b-e387-4327-a579-08d90adc9bdb X-MS-TrafficTypeDiagnostic: DBBPR04MB7930: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <DBBPR04MB7930FBE7A87AA368B2BA988DC95F9@DBBPR04MB7930.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HgVP9cIWuGr+oL8WGDe+FF+lyNWXuYeUjl0v7Qf9WHCJobH+zEdJlgjgejTS7Ap323FWfGq/q8Cn6HhcSPJFNW9aVlhnMM4C4O/qrltaC2ivrFMDIrKmWFeBo1LXljokRUeo8yX+C5qpb5DzuRqq5gyedxOA5DWhj2QqqLzx5qaDKzpZVHAGy6m+INcsmHBw/Fr+xm0TrxumKBIsnawI1Ys4nNUHnZZ6AMV+SBhytdC1d/8qHVCsqz9KosDnJ9uueoPHw0Rx1btTBYW8RUc+DfFFdwRff+kbxuJ2c3HaGb92bDQJOSB259bGA9yfECTvbNj5nDupjPujRNbLFuMuWH1eSFdTQlkSIhJmenAt878VXPEfzxXehkGNdhFizYdXT30uZDlwFMdJ/3rCUmn2fzbnA++bOhDi5NXfFIe/wO5H0u7LWlRwKo4jP5mBIyA4cYE5jntQUrQXvg+Td9xB7sSQyxKqSYUk4EsqpPelwaXUDzyKanGj+tZ/qjLyWuK248BeyBwrRdwOOGypLEqLBb+WG8jzGPr01gm+WJD9S5OBByk3qi67LZ+0o2v2YvCr2R2838oCYqkiiF/PQ52w/9PovLNR7txm8uEQgO5+MVY5QZnNqrc3Wuf2LY2a005TPc+EP3wE9+EXD/w2eKqCbw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(136003)(396003)(366004)(39860400002)(376002)(2906002)(7416002)(26005)(52116002)(5660300002)(8676002)(66556008)(478600001)(66476007)(16526019)(186003)(316002)(6486002)(38350700002)(6506007)(2616005)(38100700002)(1076003)(83380400001)(86362001)(4326008)(956004)(66946007)(6512007)(8936002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: o6grs/LsLL5E1Q3OaCt/wx6Y0DG5CZrjJ+v4Gvczqrvss/LAdx1NdyXQkj1WLSUAm27UwttGlR0Dz11ps3thlDmAWpf+5I0ZN0u5Rp7bSOg6Dp60G7ftCV7Cad8fnhEY++2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uhGLQU4dM4H1ADpE1iuSwR0YNPzXLsZ0nbAiULpv/tKYHztHw+udvGsxaoNu3SU9NvmNaXVHvrAIKYFsyHP3oFnXw/paRpjFQ11cXUuuho4fCc43iclM6BY1qM7 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 168fb24b-e387-4327-a579-08d90adc9bdb X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Apr 2021 07:01:27.5630 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: vM5KTYNEGf0IaCIXO1vndhHC3qZ8JuH/e4m0QNhOwBt4hV340WzR5qzwqWputgddEHvtCig+MBW5AUoYPLiR+Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7930 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210429_000131_350183_59D8A260 X-CRM114-Status: GOOD ( 12.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series | soc: imx: add i.MX BLK-CTL support | expand |
From: Peng Fan <peng.fan@nxp.com> Previously there is an effort from Abel that take BLK-CTL as clock provider, but it turns out that there is A/B lock issue and we are not able resolve that. Per discuss with Lucas and Jacky, we made an agreement that take BLK-CTL as a power domain provider and use GPC's domain as parent, the consumer node take BLK-CTL as power domain input. This patchset has been tested on i.MX8MM EVK board, but one hack is not included in the patchset is that the DISPMIX BLK-CTL MIPI_M/S_RESET not implemented. Per Lucas, we will finally have a MIPI DPHY driver, so fine to leave it. Thanks for Lucas's suggestion, Frieder Schrempf for collecting all the patches, Abel's previous BLK-CTL work, Jacky Bai on help debug issues. Peng Fan (4): dt-bindings: power: Add defines for i.MX8MM BLK-CTL power domains Documentation: bindings: clk: Add bindings for i.MX BLK_CTL soc: imx: Add generic blk-ctl driver soc: imx: Add blk-ctl driver for i.MX8MM .../bindings/soc/imx/fsl,imx-blk-ctl.yaml | 73 +++++ drivers/soc/imx/Makefile | 2 +- drivers/soc/imx/blk-ctl-imx8mm.c | 138 ++++++++ drivers/soc/imx/blk-ctl.c | 303 ++++++++++++++++++ drivers/soc/imx/blk-ctl.h | 76 +++++ include/dt-bindings/power/imx8mm-power.h | 11 + 6 files changed, 602 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/soc/imx/fsl,imx-blk-ctl.yaml create mode 100644 drivers/soc/imx/blk-ctl-imx8mm.c create mode 100644 drivers/soc/imx/blk-ctl.c create mode 100644 drivers/soc/imx/blk-ctl.h