From patchwork Thu Aug 4 06:11:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 12936114 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 B71BAC00144 for ; Thu, 4 Aug 2022 06:11:38 +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=MIZh2OxD2yHd7k62Mly2R6LvWcFndW1OPrdEQspAtKM=; b=IMEzS0U1QF/bK2 be3iHcZf74y9QfJh/P6Yf1H0dDQOF2QUqs6dY/yZrgZRWxCOHIIW1y+ahCaMUlwt5Yk8PfmNO782W zSbA5KDV89K8a7Gbfkxcd/SsjeekpcZLf3Gb/5w04E6LnoTJ14BAml7DuOtjO5Pbj6ar7wUD7K4b/ mnmkD8cGM5CEGbEHhCmy/g0bOCkrDgd/ZayLLVCqE4PdAr2bP0Q+ll05+SOCD2CHbTr/lCdDuXx+b EuNJwvmlhKkPYXOtNtHbcTmjO9ohO69GjWcEuX7Led2601Ng1t+66ZsH9UEKYODCd1gVFP9MZ8y3o LPLZW+LZHKnKpRjVIkYw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oJU3a-003cn4-K2; Thu, 04 Aug 2022 06:10:06 +0000 Received: from mail-dbaeur03on2074.outbound.protection.outlook.com ([40.107.104.74] helo=EUR03-DBA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oJU3V-003cgh-3e for linux-arm-kernel@lists.infradead.org; Thu, 04 Aug 2022 06:10:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GWOKTPr+ue2AUepYs30ZCfZ83BSDqqyXGixkDo/dRG7mkS1Jqnht35/3qzHD6ytqLOoHGpGmAF8pQZQ2Pm1VmIhJHntA3bVvO/z34yoJwz8wXP0pBrZ2M4obdlUVuIhaNf+uC7QvrN0aCV/NKR8n7T+MhB/xYCgKl1XiS90gPTz9oGOyBbIRFuDnHFe1+/SWEj7TjqlNZN1O2J9c5vHb3CVout8sW4i4HhmLSn29XzMBD47FTjJelEiPfcYoGV91xQclBbRF8rIOId9K163L51Ru1WSL2yJWsIMatJZ9cpaUIgbDB8zTPKk9Z+5K+QROrReDFYQI3IW6WRH8jzS+Dw== 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=JrTYwvvlNqzQygbT9FcPjuvNQWCPSVW2R5YbKDgQcCw=; b=UEpRe+l8KTvj8WMkweJUixg7BqW17rF9uAFPkzRBrmbgRtbjIaQCxuDgC3wElCEDSJTvIb3hiGnRWjZqx6K4Jxs1nkcdz7lF31JwjtfCQ8iZU1MrGsvYWhAdYuQsSjcMg+rQZZqDma5LFYfqh5RqO8SPbSv0Q5ziTAox5XrpG8JY7HdKt0F7luuuAbT7Hr1n2gyiqTgnKHch6iNgmCRGnkJ8DxTsn5lTkjLzukhmW5Q2a17hEKKw8d1hBfrBjXmG/++UEMvduhpmJwZ1bsv44YFjmYXHekVHmvzIy/UsPlXUu+kjmPOZuzOZ4lg7YW36HSEWfC8Ug61eyqtdfbF4Ng== 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=JrTYwvvlNqzQygbT9FcPjuvNQWCPSVW2R5YbKDgQcCw=; b=DGarc/00kgeEU80w7+WLv7XfcnlPA5RiPE7PwHG0WDAG1JSfcMZssexjXXvgd/XkRsrvXlWsgWML4axO625Fganztb9ye0N9uCZfBRpb4evrjZUk4UK5UpdLg75F7fl1I3QHx3OV1qQgAKKks05bDUam2sQwpO6c1P2NZSvWYN4= 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 DBBPR04MB7721.eurprd04.prod.outlook.com (2603:10a6:10:1f6::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.15; Thu, 4 Aug 2022 06:09:57 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::2549:869e:d80b:3a1b]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::2549:869e:d80b:3a1b%5]) with mapi id 15.20.5504.015; Thu, 4 Aug 2022 06:09:57 +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, krzysztof.kozlowski@linaro.org, robh@kernel.org Subject: [PATCH v3 0/3] drivers: bus: Add Freescale i.MX8qxp pixel link MSI bus support Date: Thu, 4 Aug 2022 14:11:30 +0800 Message-Id: <20220804061133.4110734-1-victor.liu@nxp.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: SI2PR02CA0046.apcprd02.prod.outlook.com (2603:1096:4:196::15) 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: 8c16623b-bf6b-4421-e5fd-08da75dff4ae X-MS-TrafficTypeDiagnostic: DBBPR04MB7721:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: R+cuDfixZrlrSJjUEx2xAL+Z1NBk0g0ysEg8n2jhrC6y0dh46IILuyb4uy0hunUqiRfl2kzsCGGyoUHLto4AZsDI1o+8HjJUMM/PuBVisewb8VlncZglPZdJONtzIuHRLh7GNN8m93y3ZKh86xqsyJLZmeWuuBEdmJ83K3m7FYYHjQ+Tq9wfOMuzCM+WQfC9Iy9PMgBUxuEUdinx7mmCMmYzehFv4OVklfz2V56JGPEDdbh25UC+YF7mFzNEwaXhPvO3Czdca3bWNrGNkMPPL66paYkBymquIY0DOO6iT+LQb7Lw2lWIT8PsxXTNN1SBXwk1Z83uZ2tPaGr/gLH3W2fiEEoARsQkKaqMpg7rSmPFLqaptgtTBlXvwhjAfQXU4CI1Pqt6eTQsZj+5hWKIH6WgaR+a9sSiTCP5ddPh5k4nhCzKxDq7CE6gcPfNK5NDyLwlolRo20ao3hr0CTi4krtHXantwiwPpeUcwMC5HfEEfTjLci5ldL3OEoTFCOsJ3njrh90tt5Kxiq5KCdR3JIfuGUsJA08FF+SFoMRb+zwH1wMV2rFm5M7ponWqWb5VVE1WNW7VRVcYVWvYeVIw+oOcY3/nfQd2rgpI1PJUsGcnjfoeV2+fNbUw0XW5+XEldN2Nsb27nv4dLTYZ9PaPMu/WbW4AzqYkoJio4gqHwp3aqJZYo56ILWoqzPwP0aaHwhJS8s8RwXZcno8h0vPcfkfrXYKWMRi5v1ZqSV8ZTGvwBkxBrQQwTrdbLZmsntLAqABKcDQGHAjegxuloRUMiZ+fteodSdu7QhWZSNWJ7kQ= 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)(376002)(396003)(366004)(136003)(39860400002)(52116002)(6506007)(41300700001)(2906002)(6666004)(2616005)(26005)(86362001)(6512007)(1076003)(38100700002)(186003)(83380400001)(38350700002)(36756003)(5660300002)(7416002)(66946007)(6486002)(478600001)(4326008)(66556008)(66476007)(8936002)(8676002)(316002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: LvS/SPDfKpiDMsXg7uxDdF5DCwIWZHhqCWSXVBuqACEMAsgfi9pcdsQn1VPDTyQRI5nhpRrmXb2ofSVLf7lPDiJGwqRcna0W6YHBWkurZLU4ljjlIynzzBVX8NQwIhoUfpVAFwct4BjvRac15o5oMwnFeBTKd4X4A3kYTcJTeAGK+ss2z2cYMqIS2NjtTSXa8prsoeuOHj9xCH/+XuN5MhRL4ZYntRqzIklaR+SqcDUhvqzHMiPh/vDxCC+V+J8UmVErPmcpDktnq62aENcMQqmHwbRy+68t5dsbLDMcbQCZ6aT7bnP15E2FCMc9Wbi6sWrJe9xKoz3a2ExBTLjckC0OnxJ6u0DDi/3NQcbxA3OBDkQUgltToI+JcSqTMVBukxTCKXF4OljrZjKXTWZ7fnY8qhg1tPyG3caLguKsIWcupUiiZc3BycDCU/aL3VRUCFLe0rb9w47t1ZRlRtvfeP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f9Sr8SFtyDsg4Qpf4ifBQxIy9xejH+XWLOH96Jh25MUQjeryxsFLNq95kVcR6jpgM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8c16623b-bf6b-4421-e5fd-08da75dff4ae X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Aug 2022 06:09:57.1806 (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: NiPRuh4s8IrQzG+3oBHvkriIYyIvJ8qRLaJ5tUh6+fWpDrTIAaM8nRCqvoUkNjwd/ZWtMXanJr3CceDHgLQPxA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7721 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220803_231001_212800_3369DEDA X-CRM114-Status: GOOD ( 11.99 ) 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. v2->v3: * Add a pattern property to allow child nodes in the MSI bus dt-binding. (Rob) v1->v2: Address Krzysztof's comments on patch 3: * Add a select to explicitly select the MSI bus dt-binding. * List 'simple-pm-bus' explicitly as one item of compatible strings. * Require compatible and reg properties. * Put reg property just after compatible property in example. 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 | 108 ++++++++++++++++++ drivers/bus/simple-pm-bus.c | 61 +++++++++- 2 files changed, 168 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/bus/fsl,imx8qxp-pixel-link-msi-bus.yaml