Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2390131imn; Tue, 2 Aug 2022 00:30:37 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tnDVTvVOsox3zVtTDp3ZVTSxbeiQBdHFXA7mkVzz7X1F6cZtmnbZIiuTUbUKYcMASQXizY X-Received: by 2002:a05:6402:4410:b0:434:f35f:132e with SMTP id y16-20020a056402441000b00434f35f132emr19328097eda.215.1659425437529; Tue, 02 Aug 2022 00:30:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1659425437; cv=pass; d=google.com; s=arc-20160816; b=iq3niPFzH/CfyLSOmtGR6N+uhxg/lSWVFxoPVvVW9kR6G/fnX3bjbaAtSGXCWT+Bpi LCMFuZYZkmnzPCZEAlovH/yNnESRluoZe4AK3rtYtn0j9UZcvzWxljJ1gqQwyF0/SD3T Uf+ugQmnDYUN0tXaptSbfXQ/g58u+2F2T9U1P8xX1eO6ETkGR54TI6sQe9a5qaWI+iHH 9+FmEdVzQ1kFjp1cEtSummNKXVcdMTlWIGp+Oq3a+WLLQ+j4jFg3Z5kXwNd0LTGZn5dL YAagPuppRa5s/E9cQ7OIgXVz8TicR/WKPW2ncKU7IMkNOtmIbj853SwvL1aH1Sg+PxY7 DN6w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3ms6NgdvbI5Hv+GUeldBoDjchzQ1P/GSj3+SydPlgRI=; b=kUQv7KnIAMutq06ebfer6F6JkkZfH3MPzHWMdN/+DQ+yeHDcdugjLIgzwvWDBaX97T CwXfyYAiCMyjITleihGf//laaPgel11YZjOJzdoXH/ax/+kLUULZvw0S6rtGytt2VsR4 mIcyQr6RVcMl09nII3NemDQ3HutA+GoDtCiGavsyWIuM3Q3noxFMPHcCyIMW7cD/W9vG kB/OKZb1x52qo519TsMKxwTAdXUdukpDw1lB5Fikz5klavAHgQpxHKQLt4TtzMnzxCZM PovjnpUJO+uwNRVZUtgVEHmudaO9tesQmgHP84WhjAzT5poASnI5U8sr/dZElorh3KCb vXzg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=WBYXDxl1; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cf25-20020a0564020b9900b0043dcc2ec0cfsi2809055edb.190.2022.08.02.00.30.12; Tue, 02 Aug 2022 00:30:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=WBYXDxl1; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235868AbiHBHMV (ORCPT + 99 others); Tue, 2 Aug 2022 03:12:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235760AbiHBHMO (ORCPT ); Tue, 2 Aug 2022 03:12:14 -0400 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130055.outbound.protection.outlook.com [40.107.13.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B1D1491F8; Tue, 2 Aug 2022 00:12:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FvLS0KldQDfyBzwAcb/M1PKOd52AXXk8HskmvEAmOl3LKjws5iCdJnqCN0RkSOemS7dWAlxgDvlSo0cDCioNz9BcyP/3c1RaH9p9LJncliLAzpr8QLfdsWiVUoQR7iLOYjZMAtpZk+P8LyQypztm2uZceR0ggKeTXii8B1Mp9kx+IGufTbSaDyDkNHM7l9VXLCXYEoC9lTXsaSrLQiw/5uG+GtNrOOF0D9sW5gP+r21RL73wRDPBIbeVI/9GLWc/RQShJnZi79FE0G7PVhPXV0wBCp/siw/TjSDR6QGIS8opEMF80UfFw5tDES7hi1eVP2Csj7LYIcJgFzemDQu7iA== 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=3ms6NgdvbI5Hv+GUeldBoDjchzQ1P/GSj3+SydPlgRI=; b=m/AY6LB+d3hR1D5oI12G08rmu6+9zs7VycyWjLMn6TkHjEEcICfvbERokMSKCOXKn7Zlv7UOpuYYI75gKVX405QFs6n3f+x1x312vTeF+jh4jNoFtb8L10iNi0vuHAlcy0NANmgBYFohiI97AkXv20Twf6zN+XsnFr2xU4ZE7DicB6zxmuy6eYPdm+s/QZfcUchhsCXhlzzo9bCJgQQCfynWaca4AiTv+uE6rNDy8w4mZ+J4AN01C1JFoLZ+HXb59RL6ikLvT36JBNZN/UAgd5Z1Xb6axtVnDSePvXsAwWrtY9JU65cv0X9zEBPA49Kiy7//VdGwo4Zt6g6R5PMQ3A== 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=3ms6NgdvbI5Hv+GUeldBoDjchzQ1P/GSj3+SydPlgRI=; b=WBYXDxl10w04aASiQUceLY9ykOoYrQPDQfzP1i2nc83bsO0pAqjSx8V3weMU8w9lB6gt69zBDOtfdw+3o9mkB1D7n3zSXXPYlrzGztfiQnzXwzwqZWn44J18EgJCipojqEV7+9EVcgV8ODCX5Q+EoNwA2xHQz2R7WjL5L5/MQsQ= 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 VE1PR04MB6429.eurprd04.prod.outlook.com (2603:10a6:803:11a::29) 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:12:04 +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:12:04 +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 3/3] dt-bindings: bus: Add Freescale i.MX8qxp pixel link MSI bus binding Date: Tue, 2 Aug 2022 15:13:10 +0800 Message-Id: <20220802071310.2650864-4-victor.liu@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220802071310.2650864-1-victor.liu@nxp.com> References: <20220802071310.2650864-1-victor.liu@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: a3b7a24b-38e2-4328-ad3f-08da74564d7f X-MS-TrafficTypeDiagnostic: VE1PR04MB6429:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: okdz90Wm7G7rLAKOfe/XmLm6zE41PxSPDnpZGNHJO//FD0KeJFjjoqZYXUHdQjVAjN1H3NNMc6/4lscOQpfldxOSNwy8M3HfaX2g8IS/NVyTr4CDcEyO1DR4h21mY6v8JqojFuUeanU8MAByog/MY/F+UuW81Ujs9fKkhtfu/yW9TtxLvnq5VuQTl+j5RetHvAxpKi0yDkv2BJ9U/V0gEswQ44SU7A+DMQGSrc7ni38iGmVRGJVBff+f3u2GYYpxbqNRqZeHn8NSf3cztgxXt3bKw9kcH6G7bc5fMKLXk/ptdNoffOIZoEGMQ7GbtdxvCwT6cm9eNp7T7II8/BVbYj+JD9jWTSIHItyLnl8v154niVof9k9LJRUslzC5tZxJSXqsHZEWF7tfqqAv729dLdocIC/gq7Ptrb8UtgNJbId6oF/S+5XqFY8BLCb5Jom4JhYXBfIRy7Wk+ox8TFIr6D9Ujs1OqwEn6ZEc6vzBigjJfC60c9Zg1cgPwb9VssA/ucmwZnCnH+7Z+dhLQ4/NotA256l55/7KXodi81iqifRjDGFb/coVx/Z56nCrDlz2j+Fn0wj1i2OgVxAcg7WTEEre97paWzndIdgEQCBZMN5BaQLnZvDdP6pwWrkfKvhD+sEVJ/nFmuzHKr00ECCQC3j9ObP0FmlDjcKto1lUUs4AdZrzPNLFn1A7pM27NsHDwYYTcds8K2Ot0HaqKhb4MBxdqV1XWUybpRC6g3IiNbInVXpq3epD3CvtKcYOqkZeW5DX9/jCL7FEfd8vzOhXaBZWJhouNydIsGYlDjSb693sOXuf1bP+QmfS2qltjP0tGKXfHjoyqdpT6MepwkSph3rKPulY20GEgjOoz4i0SJY= 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)(136003)(346002)(396003)(39860400002)(376002)(83380400001)(1076003)(2616005)(186003)(8936002)(4326008)(36756003)(2906002)(8676002)(5660300002)(7416002)(66476007)(66946007)(66556008)(316002)(86362001)(478600001)(6506007)(41300700001)(6512007)(52116002)(6666004)(26005)(38350700002)(38100700002)(966005)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?l+F3/BnhQenHoxlGGFrMWmCJVmmysEzH8tstsjBrgQnResBfvPEqp24/vQSV?= =?us-ascii?Q?okwXZLCtGI1B86UKLuu6NaiA9z6WqgLCmwqynU3+LFNtOJwg3lDXEANsvTNd?= =?us-ascii?Q?miUOosV2iLX9+xKlz/zI92B7/raRBisjFVwXA4BBPS72v5Jgt1Vonw/TVN8Z?= =?us-ascii?Q?xjApA2hHxSfXD0p156D7q1ZyQhN1RmCr62+6K5BeEOYTQgkiRlidcLnvExGu?= =?us-ascii?Q?vYo4ru5Je8mO0xkeXX9LVkix4DqrPwJsvq0xk3LBTl3Wj5O77YyLBR5i3REY?= =?us-ascii?Q?hiDl5/OTnFIbZWRK74tcxoKKHBdbj7VvXOKtSTcPsAZA/4T8ipOp1gTYkDKv?= =?us-ascii?Q?SOrBbwC+XjsQKYRoE9d8CBzqxLP9vuY2L90w2VwIHJoRhTy+he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4vgXnnvPC6DOAOF+QTOIYxeXNVWPzm//?= =?us-ascii?Q?oyh57QX6U44sLWPD5gj+NlokGWlrDERWdMOgKwnYT7w3K9+aDtICi2ozd548?= =?us-ascii?Q?zVL7IFu+0apro4RVV5KD/1pPkaqla/940YuLIMKrzhR0nM3GF14A34Qv8n11?= =?us-ascii?Q?2XnPTCuLz4+R8MO/kuTX3zBhoGz3XOd8M2AkPJTmLheWJdyIJ6MeWIDRUKB2?= =?us-ascii?Q?tmNbtqt7i2Y7V0CqKGnYAia1y+46If7aVigo0NoHsMcvKWn78WmFQ9jiXySr?= =?us-ascii?Q?nsNy2L5JLSe6cCqIyNNSC4TU5ujS0qxX6BhCkN9z?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a3b7a24b-38e2-4328-ad3f-08da74564d7f 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:12:04.4131 (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: 4htUVKorwC9t7JlvjAN5jpDNdRDzLQ2uM6r1eKjrtlf6UTdaJpKTJsS2wNZAs6Om+7sc/sByXJvBQyHjK9srLQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6429 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Freescale i.MX8qxp pixel link MSI bus is a simple memory-mapped bus. It is used to access peripherals in i.MX8qm/qxp imaging, LVDS, MIPI DSI and HDMI TX subsystems, like I2C controller, PWM controller, MIPI DSI controller and Control and Status Registers (CSR) module. Reference simple-pm-bus bindings and add Freescale i.MX8qxp pixel link MSI bus specific bindings. Signed-off-by: Liu Ying --- .../bus/fsl,imx8qxp-pixel-link-msi-bus.yaml | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 Documentation/devicetree/bindings/bus/fsl,imx8qxp-pixel-link-msi-bus.yaml diff --git a/Documentation/devicetree/bindings/bus/fsl,imx8qxp-pixel-link-msi-bus.yaml b/Documentation/devicetree/bindings/bus/fsl,imx8qxp-pixel-link-msi-bus.yaml new file mode 100644 index 000000000000..24f50535f5c2 --- /dev/null +++ b/Documentation/devicetree/bindings/bus/fsl,imx8qxp-pixel-link-msi-bus.yaml @@ -0,0 +1,84 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/bus/fsl,imx8qxp-pixel-link-msi-bus.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX8qxp Pixel Link Medium Speed Interconnect (MSI) Bus + +maintainers: + - Liu Ying + +description: | + i.MX8qxp pixel link MSI bus is used to control settings of PHYs, I/Os + sitting together with the PHYs. It is not the same as the MSI bus coming + from i.MX8 System Controller Unit (SCU) which is used to control power, + clock and reset through the i.MX8 Distributed Slave System Controller (DSC). + + i.MX8qxp pixel link MSI bus is a simple memory-mapped bus. Two input clocks, + that is, MSI clock and AHB clock, need to be enabled so that peripherals + connected to the bus can be accessed. Also, the bus is part of a power + domain. The power domain needs to be enabled before the peripherals can + be accessed. + + Peripherals in i.MX8qm/qxp imaging, LVDS, MIPI DSI and HDMI TX subsystems, + like I2C controller, PWM controller, MIPI DSI controller and Control and + Status Registers (CSR) module, are accessed through the bus. + + The i.MX System Controller Firmware (SCFW) owns and uses the i.MX8qm/qxp + pixel link MSI bus controller and does not allow SCFW user to control it. + So, the controller's registers cannot be accessed by SCFW user. Hence, + the interrupts generated by the controller don't make any sense from SCFW + user's point of view. + +allOf: + - $ref: simple-pm-bus.yaml# + +properties: + compatible: + items: + - enum: + - fsl,imx8qxp-display-pixel-link-msi-bus + - fsl,imx8qm-display-pixel-link-msi-bus + - {} # simple-pm-bus, but not listed here to avoid false select + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: master gated clock from system + - description: AHB clock + + clock-names: + items: + - const: msi + - const: ahb + +required: + - clocks + - clock-names + - power-domains + +unevaluatedProperties: false + +examples: + - | + #include + #include + bus@56200000 { + compatible = "fsl,imx8qxp-display-pixel-link-msi-bus", "simple-pm-bus"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0x56200000 0x20000>; + interrupt-parent = <&dc0_irqsteer>; + interrupts = <320>; + ranges; + clocks = <&dc0_disp_ctrl_link_mst0_lpcg IMX_LPCG_CLK_4>, + <&dc0_disp_ctrl_link_mst0_lpcg IMX_LPCG_CLK_4>; + clock-names = "msi", "ahb"; + power-domains = <&pd IMX_SC_R_DC_0>; + }; -- 2.25.1