From patchwork Mon Oct 17 07:40:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13008260 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 C4C09C4332F for ; Mon, 17 Oct 2022 07:40:42 +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=e9Hn9k3KRAnomZ5vzEt+SOdP9TzLPGIPkFu51/QDYf8=; b=Zv3cmBYqDoS590 OmUQf6QO2IeorkQ2lsqZKycWh28rCiywStIO2/WTszHQVe68+oLymhYJvCijY8H1DbviP5JCFnCN0 Ch6BpZrQUatO8++9M1IJVhfOiVWqllkIxCQSpMX5CtSBqlb6T5cfnts1SICpmnypqXb+0yanXLFRr HsqrX4r874cMeRVbE30QIGLE5QHu9zGebbadLXEj9YUIPp0OYwSOo0UeWEDrYXBaQJQkRp8yATdu5 Rjie/v+AqgFsPmbQxNi5IcZR/utaC97inW55k4ul3ZXZ/Q4wOerCzs+BqfEYgsbR1UW0xK4c8dH20 TgFMGyNLKfBiQPRqeAoA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1okKic-008VUb-Sb; Mon, 17 Oct 2022 07:39:27 +0000 Received: from mail-am6eur05on2058.outbound.protection.outlook.com ([40.107.22.58] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1okKiZ-008VSg-21 for linux-arm-kernel@lists.infradead.org; Mon, 17 Oct 2022 07:39:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C/OJtq08Oh7r2fAKWsSdMHu+pK5shnSXWdpu61jx6qxJpi7aNXXhSIOjGAcjaZzaOUH4/dYFBEOYdP406Y/2qjHdkgVNIBEpqTPPxHj8S08Ufo76qYT6w5w3kQQ2HiZJE5p8dFVn1kCWK26Z3X8iERpf75l2L9tU4SQsAhSS4bZ2Q0gIYDLkKsQ+hLfGUvwI/nsP6wm6po+jBwM45ytTzXhrByf/DZEDQft17AFZ0yirFTfXgMYztEisbXb40w+4QHajgdYBj9Eagf28AK123wshtoTX18WghEfiYnLz52MmM3oB/sDoG4UZhVDnuWL4/JyJpZH7X1aURiqdrms3Kg== 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=fck7mTDhmjf8nwLQsn1PXGx7vdwOQ+cBHkdih45XHj4=; b=cSvKls8trk2eYb9+ggXpCiQlTUiTVssF+vW9DL2v/rOfsSN72W6wUkjcd1Ri5Ia9cZyzY3fcEV5h5pQ8MIkpUq3+JRyg+mAXxBjRJjfJedKZoyCu69T31PGbKQGmxOYNQCEB5taHqBaiJyxAjQmLCe+1vwOI8kY+vVHQQ8qW73PMgib8CwH98DZ+iIa/M2dBRrAmO7CC8HqnVrk3UmBWI/B+JTynBi5LF/6Y3TldvLjtd57D8FpSWoh/Th2dYCFOFwpCvScRps6Es3n1S6ZRWVh38Ld4qNlvjqTsIW3VmFVZFYkrqlDwQ4BSQmslViuTHc4rwxeqs/9azaa/nbQG+Q== 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=fck7mTDhmjf8nwLQsn1PXGx7vdwOQ+cBHkdih45XHj4=; b=XoaFPTFhURi6iEUphgEBuP8W5//SIXHyFStMs8DC7deQyWsJ4BaOlwc2aI3O16e55KZfq/EM0RW22HYjGFpJ9VFGbDWv4hsvmwYPB7nUA7UDG9ugOrAyAXuxGPNavYQcEk5l2c5kFHs0YJSEDFqXHGCCe+sM/s/eY/Zp06oAVZA= 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 AS8PR04MB8296.eurprd04.prod.outlook.com (2603:10a6:20b:3f2::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.29; Mon, 17 Oct 2022 07:39:18 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::181b:75f7:dbc8:b4bc]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::181b:75f7:dbc8:b4bc%6]) with mapi id 15.20.5723.032; Mon, 17 Oct 2022 07:39:18 +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 RESEND v4 0/2] drivers: bus: Add Freescale i.MX8qxp pixel link MSI bus support Date: Mon, 17 Oct 2022 15:40:37 +0800 Message-Id: <20221017074039.4181843-1-victor.liu@nxp.com> X-Mailer: git-send-email 2.37.1 X-ClientProxiedBy: SI2PR02CA0043.apcprd02.prod.outlook.com (2603:1096:4:196::12) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|AS8PR04MB8296:EE_ X-MS-Office365-Filtering-Correlation-Id: c971b774-4c25-4eb4-9ce2-08dab012b2a8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bsD7ksbu8qofmQckYxBJqC7hPr0Y0YUZraM5NCVeF3o4D821puyBQet3XLHFloTBV+JdB0riKN2+B6Y+hoeo6Z+NqWvP+QXhFF5kPS952M0v1tx94AEJmVUUKkQnxxy0l//pzzYRl4FDvamQfGRFADQcWTymnWbBYTcvfJPRMniL8mahNuzXlBNkVZGP33I3DPvQZZugGCbUZ1hTG0ZoFqf1EUGt64bnj34ZKxHAEX15gk6g3KjOUHc8tzPgQAaRiJzql2h/2q0sIhtQZeHJrlIIwWR0q+yW00V08yJVzFmxkA0H+lalZfZZY37P318IwXS93/JeaGRUtvZ3jx5baHRRdcb+RMBbFb0/ll927K/vwW+gXLKq9q01NP3N52bO26MXLqD8ZmoxnKiU7BncJElVQOq85EexoqKH//9BVDIlU4wNw5ClblYtvFpxtsTsGtkzrbTBgM2EtNPxqLVxUzv+1BoiwSMOPy7GAfwNXAcdwjJ2M6VHmuwlBdKm25USJMaEX4ozBE/vb7PkHCO+nnmRI1t1xqa0GvBWn/VcMyz3j5wQ4KXUin6/hnBj1Ftzm5OkIJlqY735bj7DcJ8TBGI+M6ePdz8GvDn7VYE+5k9MhC1pryMPSwRl1nVz19dT1Qw175CnY4hUUrv3iVFjGmlNbYseYzSq4dBCUIZd9J+lYlp1Gr9eCfUT+LTD0ecRRMBKl3mnkOMqUfWIzZI3eRtYh+u9tSJCU4yTOshZ8NxjiAcW5FdPaapu8WkibGQcpAWMYSIIMbwW3PwxlCO5TA== 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:(13230022)(4636009)(136003)(346002)(366004)(396003)(39860400002)(376002)(451199015)(4326008)(8676002)(6666004)(66476007)(66556008)(66946007)(83380400001)(52116002)(6506007)(36756003)(86362001)(41300700001)(5660300002)(26005)(6512007)(8936002)(7416002)(316002)(2616005)(2906002)(38100700002)(1076003)(186003)(38350700002)(6486002)(478600001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: M22lm3nQR4qOU6VTh8wtDAxBn7d0P/MNitV9PxcvOonZJObldum/9HGu5+Fy74wgJ4DlsXJobtoZJ/tQXah4Q+EDUk6yrIJxxqsMexErrrAJS0efDeEDl143U2B012tNPz+hD6TbX81JGRAR0OfVgpl5myc+JxsiYHfnFw5g22rq6RatKk5Mj8LJS2cyZeQ6b3XfwcDzmJroTpDbWsVBTw9smj6RbtArU7J99yvi1fdnmGWLXqyoLBmb5V9SHN2tJB/K+4MvJ08pwNFhR4BINB+7u1w+AAaALSEW/fPOdlkeSHwValMWdOhJHgFmlAyiB1BN3S1VG1CuKpkirlt1rV5Q7upVJtcn+TrGjAjPo9g0sNUcW0K58vX+ZU58ftIam0QC+4WcXFb6beyF+1fnzxR+4SkjSLZ2v3Q57sZ3r0jQTyDt5fV9QGlsfPbRk0bA9hD6kwyjfOkN4pAf/mz19Y3p6d/0F8zAWWxExnH8RsEx/30ANK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7LnX+G17PhqRU+OqOW+4X X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c971b774-4c25-4eb4-9ce2-08dab012b2a8 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2022 07:39:18.1984 (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: If+sYSThBXaRnsZwqk2T/sv+hTrSYHF6Q3v3KoSlvl1QqjqPGee9QHWMg97tQMhqMTERKqivb/7AZQS6X61VZg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8296 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221017_003923_412193_6296B2E6 X-CRM114-Status: GOOD ( 12.85 ) 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 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 2 adds dt-bindings for the MSI bus. v3->v4: * Drop patch 1 in v3, because simple-bus/simple-mfd devices probed by the simple-pm-bus driver should not be child nodes of simple-pm-bus at all, as simple-bus/simple-mfd's child devices PM operations cannot be propagated to simple-pm-bus. Those simple-bus/simple-mfd devices needs dedicated drivers. * Drop unnecessary 'bus == NULL' check from simple_pm_bus_runtime_{suspend,resume}. for patch 1 in v4. (Geert) * Add Geert's R-b tag on patch 1 in v4. * Add child nodes in the example MSI bus node of the MSI bus dt-binding. (Krzysztof) * Resend v4 to imply this series is based on v6.0-rc1 so that there are not any dependencies for the MSI bus dt-binding. (Rob) * Resend v4 based on v6.1-rc1. (Greg) * Add Rob's R-b tag on patch 2 in v4. 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 (2): 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 | 232 ++++++++++++++++++ drivers/bus/simple-pm-bus.c | 48 ++++ 2 files changed, 280 insertions(+) create mode 100644 Documentation/devicetree/bindings/bus/fsl,imx8qxp-pixel-link-msi-bus.yaml