From patchwork Mon Aug 22 06:03:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ying Liu X-Patchwork-Id: 12950201 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 BE781C28D13 for ; Mon, 22 Aug 2022 06:03:26 +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=QQGTGSRK8/R/fU+M1yQK3J9cottnwZOp3hSUuuszXJw=; b=MKAJFZHF0QZF1W J7Fwd4WIYgJCwaBPsqQb2+cg9ZOY4vSguxnot9F4l+G1nx2pT3iQCl3b4dCl5RubzeE+pQ9FGyWaf fCx2sHSZMq7Ite8WJe8SBc/1hs5+cTb+GYVedwG4/9gCVsb79YXLDME/IarevB8nY3t1rQKk4NGKp b2On6ARYpFx1uNzxt6CMH1JBSAnpyDXBZ6YfacbRi7wG8quhAPmZttAlLsJKe8FqrR3qCztslCFUw 7uyEf11X8SbxDZ6LXSe9bEfFP03QHp3UErFbsFoIiz2QbiVaYiE4YlaDn6UbVb4iCS78Wwr+r4uIo jkhKt38iaGNgKApRgMMw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQ0Vl-005GZq-Lh; Mon, 22 Aug 2022 06:02:09 +0000 Received: from mail-am7eur03on2087.outbound.protection.outlook.com ([40.107.105.87] helo=EUR03-AM7-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQ0Vh-005GVn-I9 for linux-arm-kernel@lists.infradead.org; Mon, 22 Aug 2022 06:02:07 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GRRu3mzmHWNLJWukQ4cEkPu4M5nWESC1zpOKkjHD1KF++GatiImhXC2mgjx4Q1OwNnNgkhR4hpYNlsC5NIJ5bYgZZaGhDkDXWyBlT1n1Xz/5mb8BYAWVhWUH1zkcmFojQkkEhbw4WefkmygJvKmtre/Xw5pj3aon1lbUTE0UZkZZ+TrVb5LbtdzuP/mNdWedn23JHXoqDIDBNQ64QPFfgkxXD3VEdPLSmAbZRLv4pcOUKNwJT8WuhagM0bd9kWHm5plUK7laB+sDD7dYHYsiwN/r9AjfRwnQaSL0srq2Nz0LZgAxKDmJxNKq/32fykTeAvA0jyKT+m2mT1B/Ex8mLw== 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=NvvEDPH556ZUe5L3tm4OPGJBCGaB+VuPfIpMhs6HGXU=; b=Qoiwz1ZxFwFaxhfeUtpss3KXTNRfyCl5a58x7vJ85vQjXx47HZYQF+PlufPuDEmZhjPB3BcFEDd/VIB2fGKPdxPE+ToIqlpHJks4Zk7lVYEgUyNYi6Kj5hFUd2OfhQ0anPfXjwQHgTR666RCuZG6gE9a4IyqvJx1wO+fv064OtTDoFsZDJqmC3giphYkcjdLrJ9Q6A49Ct3qCrhqn6G42ypdh3iVWxIalLb+cYcjF+L2FkRrSDHnEJwhICIYTZ0x93CeuC4KeOZDbU/JgS74fNwTo7lBiRckvbhDFhWXoEZn/SMjvYF7ghSJaAR5u0bjhgnHVnPqvfHlWfxyvvJNcA== 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=NvvEDPH556ZUe5L3tm4OPGJBCGaB+VuPfIpMhs6HGXU=; b=Vx1T9pymdd7NYH8/knT21rxwIJAwrGRVGW0kQhZXQBCSTcLeT/+Ufe6Z+1O0TnZkTowqZUnk0dQPQzsqcuUs3vVms5ZkYKXrjdYi4A6eBMteUgd/KrSTCFJW9JGoKncvYK8CHg0QKLmSaStMwoWyEQAJbaVmu1a523+5lZo80ug= 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 DB7PR04MB4604.eurprd04.prod.outlook.com (2603:10a6:5:35::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5546.22; Mon, 22 Aug 2022 06:01:59 +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.027; Mon, 22 Aug 2022 06:01:59 +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, 22 Aug 2022 14:03:21 +0800 Message-Id: <20220822060323.3481384-1-victor.liu@nxp.com> X-Mailer: git-send-email 2.37.1 X-ClientProxiedBy: SG2PR06CA0224.apcprd06.prod.outlook.com (2603:1096:4:68::32) 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: e56ebdc2-d1ce-402f-dcac-08da8403d33c X-MS-TrafficTypeDiagnostic: DB7PR04MB4604:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: a+QUMk2W9DYtHH6PgztNhNDIyZwWf2KFRoAOtceaKtSnEbWbwUYJK5RfPWNiocko7m4HHZU+wqdWdGbb2vFiAT++E9Z+V/+yA9ZVrm3xC+Bdz3Fdb0emhj3RUeM5gIFF898TUr8r3dx5eHXd0rJW5VLZnvVTLP0ixrxy9jMCEKHUrS3lcI4JleeHOL41P3cPwsTBgOFvUTxwS0UEq+ASzx71dCZ17LN1EXUKQnDb5sNe+rWs5yPHgq961RL1eh1PeVx+1xREkPvuAwI/Oa6WllHcUHeHe0gYKPvyLuN8CO7scmGbHX156y7stNDj8jxfW+mSmA4ajQ726LFGE6UKNkq05YIc8J2hElcqZBS2FG4JK6umK1GvVr1L3FMO91LP2ka+ivnzdWxSQ4Hro3ZmwD6kVwb2xS54cjpKixk6C22KKRiDbBQ5CM83VnpbcPmlnT2MXHKjf3RUcAyFx8+Ayg/U67fZVEogb1qfrzFT/CVmIzimqfcvRU/DVzfi21VaRG1ch9b2r7YCG8yF7+BS7UG00yRlK2T1OAfZn9oHPqmID12g7xSOKwW7SjdW83VllRiLJgInBBFc86U+s9sHE2WFo5/60lqXsxQBjwkw6SwA2DD8k5EiSs+En1Pl2VK6hkxLQ8Wl9SILjAlbrNLp0zjaFuvgQKNQ46fue4llTSGpw/2BTM9iPvRM2TlhiB/qYJUXoLcrbd/g4u6RcWvvh/3mLYIZCO7tVFfZhFl6sem+F0QIflvBGYXS46c9coj8GPzGyTeAQrVCAEJiY+zNgA== 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)(366004)(39860400002)(376002)(136003)(396003)(346002)(86362001)(83380400001)(38100700002)(38350700002)(316002)(8936002)(66556008)(5660300002)(7416002)(66946007)(66476007)(8676002)(2906002)(4326008)(1076003)(2616005)(186003)(41300700001)(478600001)(6486002)(52116002)(6506007)(6512007)(26005)(6666004)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +vkq23pe7SXACX8uXIveepABLqCs/DgRGClJMPn03mNgpEnYkqpVcqsIw2yVcdmcLpKS+06Ay9zo8i+FamXdiEgEi0JQWlYfv2Ri4Jvci3CmXoYb7e894TYLZe/6xDkM03+ATkW0ecEX1P2nH7I0Bc1jEzrCv3+xF7gztdkITU0amo/R+ppfDh8VgLcRlAXUvM7hj1/V5sEnDqubPqNPvPAp/flbzkK1ZfB0yiPVICgATb5VzXJB3pF+qepbrJt9ROgQXGEpKnB+eW5bgO0whAv3rL7Ox8LKwVYa+SuIoNsl8xqoipXFlc+4eZ2fGMxxHuL4MHlfzphvoyISgBLXQwrpeoQkjRIcmuqIf1xVlOSfFHOxIEN9UeuSfxODPIjYbOs0uAguVoQspfKvxn/iqbqzCHWLYNf6X3pA2kOWAoOMV9KQJ3oPUZwea04A9jAcD6eBs/y6GYEaCVweg6hW6va01k5H5o2j/HL3WZgKaGAiBZYL8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X2zhKOTMYzfe74fakjyQ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e56ebdc2-d1ce-402f-dcac-08da8403d33c X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Aug 2022 06:01:59.1970 (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: Log8xVufg1mYyl+oKS3DOwN5wIAPwjIZ6N7lPdq1RYkCpZ5g3Hix5GB5dvVRjF0dYNNxLgrhvP3x+RrJsq/L7w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4604 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220821_230205_837133_5E95E9E1 X-CRM114-Status: GOOD ( 12.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 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) 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