From patchwork Tue Aug 2 07:13:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 12934276 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 67B71C3F6B0 for ; Tue, 2 Aug 2022 07:13:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=cUvh0Uplk6ez9fHb13CqretLQj2bSMNzvlTMGCfuiTc=; b=GI1JOj1rKpOe0D 5vAQCmWzbhJ8MhDMui8uxmpNatA3O30UwzuRTjZnBB+WmREYikUC5eS51xxEhaJ/fyPy0fhGJv7jj Hmdzmp6wACwKhMYmn8DDp8OBhRV3yaStDqbWpadnPyfTEBMt/n02EwfBe/Y90J2VFlXSFcoPk76BF Ua/Ip5DVmmSn2SQlmbV0JA52elOkXzRebD+uyzHufkNxv7KhQAGwyhWIfxeRoh4iXK7b5FHnGyyTz tA0ODoTA/pqFZAfyb84lsAqPBQA/K+frp7bHRJmayzmR+fCA/URWvjqk5oGmMWphjajvZKwEigrBE 6NE2aaFCWID32vSnX0CQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oIm4U-00BELj-83; Tue, 02 Aug 2022 07:12:06 +0000 Received: from mail-eopbgr60068.outbound.protection.outlook.com ([40.107.6.68] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oIm4O-00BEHE-4k for linux-arm-kernel@lists.infradead.org; Tue, 02 Aug 2022 07:12:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ewg9uj0k+gktMVx4mzVF/sHyOmAOjkHLvdku5P9ea+mnJdv0bzULfC4W53UruYNm4rr1k/aYMdmOWcgkU+pj2iW8UJL3MDejDhFNYQt0cfPZzCTJ9xqfsCzNQSfCCIy7GRdkIbrMBcocytkOsHbwyjxhVNP0MU1jX43ZThiinAOWPuM8yUKCictQsd1kmG97WkAfW+4pudXZRId24E0NXV/2xh1zECG1hpojnLk99EUvD5fP79EiVmPtEsI5jTuHUTX61FEh1nBj3vEJbBsg5gEFPUOdBCBTYxA2zquD5QYB2WA/nH0YPixLPPx0uR+At/cFpO7SVOuzvaEhxt87mQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=oN22gQQ3jqk7gI1iOgtwhkjjwOCuznrl+jasBbEwSpQ=; b=kq1k0LSwJtq43omA+Zl7S9prVY9XDilwuTYqZTO2XmCYny2BJ7Mm1+UWNJzyH/tfYASRT+6NpPd9m4qMoDBIGec65kSVajAWcXbejemGcJqMIaZcooadIzSgiRFRrkzRzsAj04mnYjVapBx35ncMXeS/95GXjAuv9liHNqeESe50y29EReIgk9ubR6ZaDF5AB8zZtCy4tBfptkIQHydFaxzNvgjyoP5YN8AaaGILoTdhPE4jHWDmduDyECoeIHH4q0CQ+svnfieplQCJ9m/Jrmk9guAS/fLL/0hpM1JeT7xFzR/uhKApBNm24xmUBS6qnr7WEq5cz0iFLVIjrxtXKA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oN22gQQ3jqk7gI1iOgtwhkjjwOCuznrl+jasBbEwSpQ=; b=PJqquuPOhDZVam/k6aWaPZVVMPnEtYjA3+EtmnoRee4sZcOf4GR0YqJaHPmK3U0BcprJ7/H99mSvZEikHbt58Mr9zkhpO7hsqcPJoS1DQjQKTaPl9Zu+P/c7poQ5iChxn2+BMwTA9ogX4wNpo2teSFClscHLgk+1FJLjuiFI1rc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) by VI1PR04MB4719.eurprd04.prod.outlook.com (2603:10a6:803:61::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5482.16; Tue, 2 Aug 2022 07:11:53 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::2549:869e:d80b:3a1b]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::2549:869e:d80b:3a1b%7]) with mapi id 15.20.5482.016; Tue, 2 Aug 2022 07:11:52 +0000 From: Liu Ying To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, saravanak@google.com, gregkh@linuxfoundation.org, geert+renesas@glider.be Subject: [PATCH 0/3] drivers: bus: Add Freescale i.MX8qxp pixel link MSI bus support Date: Tue, 2 Aug 2022 15:13:07 +0800 Message-Id: <20220802071310.2650864-1-victor.liu@nxp.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: SG2PR02CA0040.apcprd02.prod.outlook.com (2603:1096:3:18::28) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 260ad5a3-e2dc-484a-0c9a-08da74564677 X-MS-TrafficTypeDiagnostic: VI1PR04MB4719:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VttkYmGXPk4TWFo9GBSsXQH7NjBhdQojXyExn4yPNW+YpHpH5b3K5mGaQQc16M2WO11psLzdr2i4lGyE+2MLuSqkPC30pfQhb6UeEOm7LPaaIJyI+9OBExy74Kd1RQv3iVa9hxDgHg/JlL3g4WUuNPpJHY8Y13jEf9vTUmJT+Tt8kSaLF4wTMrpuqAzIBWG90kdyXvfHHrO+cGhDBGdNGFVN7sigF6nWv4VWUYjPvKeAuWJytBvHiuVIKIIOOSw8lp+/54RvKby+k7zkhpJ2QMIXKudBLz9P29wxphjvS5CGjb+8/rMfmIlCOFu4j86ENkEi00OowIlX7E5RTEhEpKZ8fMosvhHAdeZEF9O916b82EpzKsMECrbYSrL7hk103cemiInUQvb8Sa5LZ3lajx6yE6XrDgvgCjNSx8HemakoL/QAXwZ3Oz+9sJGMin7FF8+ZekFuBVi4D6UK2iXBzlXqL8z2noHwKnF6XKthCzeT0GWzijKJaGqW4fQ++CDfz1FMljDe6vARqb9E4mRWCuRfxtJ8weEZHABQXsV3skgNxAEy9XVyIN0zMlilQBv/Gp/VFIOqMY5d2joOM2CE+jcnREuCHJ4yoK+EBLqHI5lpgSOZlrDFo3xv7veNykuG3K89IK3LG6eoN/eAbQbUS1kGS2C9kE/vqxYgQyfAJCFmx2WKqTEGc0hy7z5eMlSJYt+UkbvG6CsGi8CSdDTuIXUVo7uh3qnDZURBHgJeXcW6tApYiJexbuVQp/lp+FaXtPitVV9uAe8DCF3Nd8Z8CpMwm2lTZp72S6rNj7Vxwfk= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM7PR04MB7046.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(346002)(39860400002)(136003)(366004)(376002)(396003)(2616005)(66476007)(6512007)(8676002)(66556008)(4326008)(5660300002)(1076003)(6506007)(6486002)(7416002)(86362001)(66946007)(478600001)(36756003)(52116002)(186003)(38350700002)(83380400001)(316002)(38100700002)(26005)(6666004)(2906002)(8936002)(41300700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: KI+BuBtA2SGOPxR94bqcmsRJDSjZJWHGKtfJKic9an9cxeqw+3uFaVs3rKfSu0ets3dIc9pfDeilR9AIukhpG8zXIPu1/EYcjW78dcULQ7inuYfYzejMOt5qicx0zbXYt9K+/fc4XgHx1cQhadmPKa4S/oYnnxLI4NiXcgoytZqS9iJYkCyj+Ht8XQSbOG1/9KLtFTgkE28+Ip4DZw55rFP731zFcSjBEg4/OpRWZd5pRNBl/2ZsaV9td7CkGINuEJy8CaKESottoUeVrbML71q34DIsx1XF8h/HtBGpzQ3lWZzG6nra+URk3GWe/quPQ9jx0mySQHCSM7FHpiuTWp2rBtGIaR3QAqoCloPMrr/MkQdbeeBRY7HtKIosOUQQSz44H1WJY/roxXDjUbWLV8laZyX9MDsBtVP9bDfxtmkBi8+PKaB/KIyh7pVn13s+/oeFSvDGjkwblSaMHRGFFiOgv+naN3xVPzvEWO8VvCiSNyBof0pRaBy7iQvm4JUJOC5QWYXC2nkBDCMDctny/sMRWEVsp2ghMApO7uBPUnRtfw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-CrossTenant-Network-Message-Id: 260ad5a3-e2dc-484a-0c9a-08da74564677 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2022 07:11:52.7857 (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: EnD9WcF8b9RSTTWvGdDIeBo3BA/G5jmRcfkkOTSh+BRabQMc/BlgQ0osLnjdXx7SZNZhgdebGf8z9RJ8AdHAEw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4719 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220802_001200_434565_4F60E1FA X-CRM114-Status: GOOD ( 10.44 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, This series aims to add Freescale i.MX8qxp pixel link MSI bus support by using the existing simple-pm-bus driver. A power domain and two input clocks need to be enabled before the MSI bus accesses it's child devices, which matches what a simple power-managed bus is(See simple-pm-bus.yaml). Patch 1 adds support to populate simple MFD child devices in the simple-pm-bus driver, since the MSI bus may connect those devices. Patch 2 enables/disables functional clock(s) as a bulk in the simple-pm-bus driver when the simple-pm-bus is being power managed, since the MSI bus takes the two input clocks as functional clocks. Patch 3 adds dt-bindings for the MSI bus. Liu Ying (3): drivers: bus: simple-pm-bus: Populate simple MFD child devices drivers: bus: simple-pm-bus: Use clocks dt-bindings: bus: Add Freescale i.MX8qxp pixel link MSI bus binding .../bus/fsl,imx8qxp-pixel-link-msi-bus.yaml | 84 +++++++++++++++++++ drivers/bus/simple-pm-bus.c | 61 +++++++++++++- 2 files changed, 144 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/bus/fsl,imx8qxp-pixel-link-msi-bus.yaml