From patchwork Wed Aug 3 01:24:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 12935117 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 D20D6C19F28 for ; Wed, 3 Aug 2022 01:25:00 +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=5teRNUmZ2dTKCMki8QFBeykRj6ZS3Dxix2zm1sYDZb0=; b=LjsW2VW3YKQksB 9dD0yD5eGXwda7+bgtjoxgfw3dnotUz53gL1Le7JzmGRs0qnjCcAKzQpvMVr25WoO2KEoN4qovpgY wv3ZJyI3KpAPxI6fJ1pK2+P9tYMPApbUKif6XWV6YnP8Dosz5lMu3mSg66tzuvgL89EioS++I8ew9 cNctfU1FdwyJ0K8CxR9OgESNbG+MACsREM7ZkN+EpYBaOwBmA7iGvU51oEs7FCpknyGwityBAJIfR ljaqjg7U6lp75tp9mywr466P2O6+SRXVRwExYhljwjxqfbDM+y7SV6tOIWlKOtIyB2EI5oWSM8FGF 8bjHdYHbcxuEmHjnkr/g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oJ36K-001H2Q-VB; Wed, 03 Aug 2022 01:23:09 +0000 Received: from mail-eopbgr10078.outbound.protection.outlook.com ([40.107.1.78] helo=EUR02-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oJ366-001Gup-38 for linux-arm-kernel@lists.infradead.org; Wed, 03 Aug 2022 01:22:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FfdglURrNGx93+/UdndSryk9QiKQVG1I6841LI1gxwyj29uJcc83Goetsw3rllPkHhQSLGrF94FqGO1eMxnBXhSKrKYkrnB3C22ZV5nyuftZsNr2rECcGQkRxmC5AAE+nr8gk9tXjuZC/cJ68l3l3C+X6apqRxKrj0rsx4TTmilUMhiEGsBE44GxB+vPE4pz20g2uloT38xsSAELMofth32qft3XLrnXCL+9D+vqghmVMbrhKpEu3IYALPD169h1bPtYLRQ6s4F/6TcKBUx+qxRIXvpbfslAFvwBts/8JsOeqeCjxXyyds6oUC92O52uA+I6s+0LO/WoH0iTsdAIPw== 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=iIRLbCo4lj2kOGYeDNFWOQvPXwxZY/qx3zbTHF7lLZs=; b=DaRCShPtuYFlIFJRs6vEr6sXk16MSq9EB5QZydnbPFvu6aQan6kFxjE2j2L7UTHGvhMUIBjl7y8tjVZTKkaXTJLiKQOtlxZKSg/rXMS6sZR5q5tkclUNcmsW3NdmOq0Ili/XXJs0cx6bYxxXL57qycRyXMs8GuSHAiwfhjJO0peLOexyP+e7YQJDFLHlhmqgUOxbgo/8cN2Qqs0ypeCr+Irq8O5xvF1Jh1OfCIOA+o9VNDbE0keCTVsUEahGsMnEp2RWahTIkDq1V88HXPIrt7q8m9pcqHGT8N6uuXmN9kCQsGhLK7kP+SltG+9vO17jJqLiD5hQ9MlmTKFKknXFXw== 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=iIRLbCo4lj2kOGYeDNFWOQvPXwxZY/qx3zbTHF7lLZs=; b=AmCrwHT92goVHIMLpWp6aAHlHpm14jm9dZa5Dhme21H4LooxMTZLsTy5XiU7Fezm/wkCidCa9P9koxz1WTxGK3Z9+y1RrbdYxC8R+d6nljRXqNhIdVStNmn4nn/unnYW9SKGlG6RwjCycF2OttIrk581rswVHdSW0WpC2nEKZYA= 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 AM8PR04MB7780.eurprd04.prod.outlook.com (2603:10a6:20b:24c::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.14; Wed, 3 Aug 2022 01:22:45 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::2549:869e:d80b:3a1b]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::2549:869e:d80b:3a1b%6]) with mapi id 15.20.5504.014; Wed, 3 Aug 2022 01:22:44 +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 Subject: [PATCH v2 0/3] drivers: bus: Add Freescale i.MX8qxp pixel link MSI bus support Date: Wed, 3 Aug 2022 09:24:18 +0800 Message-Id: <20220803012421.3410226-1-victor.liu@nxp.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: SI2PR04CA0009.apcprd04.prod.outlook.com (2603:1096:4:197::8) 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: 79fe8d7c-baec-4b1d-f9c2-08da74eeaae0 X-MS-TrafficTypeDiagnostic: AM8PR04MB7780:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: c5HM54cLZNR8YMbm6Vzbx/9hbkxbPbmK0+iWnn0u649uqDqkpY0AZqG9SnxH1Hep5Xajv9hKv3wgfdBEYNsU2C9L9lu/eDQPTMM2mS2UcD/Y6dCPIhMt0u/XjYHlaChUdvJu4JsDM9V2FKCnHmyS4GW+8+QB3JjfnBgpE+JOiwhMTuwWcKSF+Ll8eQfCNBOet50qn2XNUhrxPrskWjYLqDs2qfl8epn7jU9Thht7aWAsFwSbp0jpSdi0QSAfLs5V/4i+cZk5Zl1xo5k7hLgVFOb0L6ybbFXCp/e4GQBNlwQKwEm6pG8QouWrFvZy+f+jEEBWEy5Hotr+G7TAtyf2hBN/nK4tk7u2oypSLrWdLNiLYWkpXZU2gh/GC2igCSnM/6+TwU2xhEL2CnJrSOL6QxxM/wL3JFSPhz6VuiH7U6ecTzmPH81Z0NLiePIwZi/7WA/cEWHZ2/Twmn6PF6xLavYj+LrhVJtpATNWB5i7ug8Xmll2/kmMKU4/NWB1ZyVNLtiymZCO4wchKxMM41WnlE/OxGlihrc8aDL5lpSH9ENKJ5LeIJT89xfBOTa6dpU4C6eIHqCS3l78O7APhQ5+t79hNOakjYXA7fVENN8D8F6GFjBZ0YC++9mKDv4N2A6I3YjFlyqFatRdwemggtO9afRttGTMPw2KyrGBpOVjcaYFTgWb7vXBPY8hlNbpTYA3zwT+RuSLJBoU2De3axdPMyQZBo4zHjKBvLI2jt1Vzk53SjQPzhquoU/V+AiD6LLafI/DT2lupFDZU7ZSpbECc90OZegGfNN7XXzF1tzdLCM= 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)(136003)(346002)(396003)(376002)(366004)(39860400002)(478600001)(41300700001)(6666004)(6486002)(52116002)(6506007)(6512007)(26005)(7416002)(2906002)(36756003)(86362001)(316002)(1076003)(186003)(2616005)(38100700002)(38350700002)(8936002)(5660300002)(4326008)(66476007)(8676002)(66556008)(66946007)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: lPa8r0xXmOrMIdMCMHNcuXZ7v7G0XKs7cgN8UZuAXO6+KR8IrGgJSljWXUGndOKRMRXR0to5t2G265oGmTWvbWODL1KZl/HXjB4tkVCQkEY4fHVMDdhYB4SGxVnQCP2/KIpSBlHpB8z/fWu4h4f67dpdNBT5Necq82+/4HBozznpIK9XBjmwnNy+Y3deuK+z5TUQOhVQGS4pV9tBQrv7UkhR+rTyrilo1uuEbJ8t8jdXf1YQ/AqEViiefXNsS0ecVWpZbrMAnrccVMFihHM1OEYRIpry10Oa/a03vBk0WTYi5q2tbrDawe+77NbkI4CvZi99Qa4+nkP1G2nC00eaxdVaRpR1G6NoKdSLSRHVUKN4lBzkYfomV92rrGm7iS4j/z75Uf1utgJ1/pTlVd1p/aB1mKrY7UgRNCOJL6QrDXTkL0d1kBzTi57HlNYo0fpLFjrImfvM9bYLsNa1Yo1cEb/TFyf6+iVm3o8rM/DOyY3kFezwuJhMbzasWDVtYaF7scoM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ginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 79fe8d7c-baec-4b1d-f9c2-08da74eeaae0 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Aug 2022 01:22:44.6286 (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: H0b1c2jr9feqGxIc4bkPnnvcCtI5i6aVn+g1eOnff2kS/ID65uKmDDcMUCA1UYCzxswfdqgDTVO2sJY0gNsAdQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7780 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220802_182255_683855_D23064E6 X-CRM114-Status: GOOD ( 12.12 ) 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. 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 | 97 +++++++++++++++++++ drivers/bus/simple-pm-bus.c | 61 +++++++++++- 2 files changed, 157 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/bus/fsl,imx8qxp-pixel-link-msi-bus.yaml