From patchwork Tue Nov 8 13:00:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandor Yu X-Patchwork-Id: 17033 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2693169wru; Tue, 8 Nov 2022 05:08:05 -0800 (PST) X-Google-Smtp-Source: AMsMyM52xXb95uKJ80RJRQG2Jo4bqJd9TlM6yJ88MQf1a9vkCVoVN2E8m77vxWs2vEwN+j6p2VW2 X-Received: by 2002:aa7:de9a:0:b0:44d:8191:44c5 with SMTP id j26-20020aa7de9a000000b0044d819144c5mr54431304edv.232.1667912885159; Tue, 08 Nov 2022 05:08:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1667912885; cv=pass; d=google.com; s=arc-20160816; b=sRWIKkXJWUbFCYfnQSM9KICMYcH6uhkGrcjIHn4/s0DlOeKJ1rMOKYiGqoNuqUjk+F 7Dd8VcYptuAYbP4XA/V9oNx7h151MTzQqj3wxGfGHJzxHUXzo6NHcDihckWExMfSnwND QZ1lAiU8QkThGU4inFVio0HEPRiJy2fTyfEJoZiJUlRyDmc166cNqzs2JFHOTfQjeW6q Iu7TG8SFLVUlmeiTHf2cNiOwcAd46IFcrhYND+49EXvSTAkatmeDQgLo6E0nJjkbQ2Hh DgHc3Or7VkKnymdtTzYPgN/q9Kdr6zUPRxKSSQH2fimnSpbaLW7GQsZd5lx3htQBaEZu N3jw== 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=TTN7Jc3Zc38GQ3ayKQtixae403E/m/DoU75OgujxD9s=; b=w6e4cVIIMqay5I6uw/St9R07rWglRJYgSA1SCOB0bV/Tu2yJe2K7D7QZ7AUPEqgfbP FrLAq0QdsmhtXfz1Zs7sf9tvbNq6S1Ij+4UoF/Pn7zeuuzHLIdpX4qRNmXs3zG37/QIV zZiyifAjdjaXqJ6DAIneA03x73KT8lpYgE/Mxbsop0V19LS5JUcBZK6ltUvp2KNxzutk 6TsMxki2k/hULG3eeDEtWYVqr09lXQs+Wspvru2xrvaXQEwKsyHwQ/DUKEgYcwPapVry pUufcGn2kkvPo/wRP+ffX4dpqtaU/+gmQ1UO7Bl5KO25QSnI+6bkRnMvgwvDK7iQpEIf XtCQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="kqu71B/j"; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b6-20020aa7c6c6000000b004613ae68ca0si10784928eds.442.2022.11.08.05.07.40; Tue, 08 Nov 2022 05:08:05 -0800 (PST) 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="kqu71B/j"; 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 S234406AbiKHNCk (ORCPT + 99 others); Tue, 8 Nov 2022 08:02:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234345AbiKHNCY (ORCPT ); Tue, 8 Nov 2022 08:02:24 -0500 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2059.outbound.protection.outlook.com [40.107.105.59]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BE4953ED5; Tue, 8 Nov 2022 05:02:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XXsk1Du5/ifcvdFB8jgVY8+h4JntuI6rKEmF3pSMiX+2NRJWW4CQFkOU6gtoc399equiFnOsIBn2VKx6SqeIM9Ly3JS3SZqVV0DycHapaqughTR1T1Dp4dWwNONl16HzqpeMakVx/UntB5g/BCx5wdnAcn1qYSY+jzzHVsIW5plB/MSwZ705oujDZ5+idElnNN8R0uCx9BjK2IGZjlXEAtd2mlFMzF4FnFJewwoK9xHC8GvzcHZk+O2WjDrOO4pNyoxXgpOaXdUfp7Ibpz43C6iXzRJ2+uvZ19r+78gpt0YFXCQRtbVv7DxGe8LDWY6y+z0trIZt0n8FcooU5xlDeg== 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=TTN7Jc3Zc38GQ3ayKQtixae403E/m/DoU75OgujxD9s=; b=hWRQZzWQjMqC46kfEtvGF0KO5WHRYAySAh4VXMoGI3tM5JMP7lV5mdm9wcy7KTt/0UFIE+YBKSD8IINv63N+YzuLlN32WF3SXsgvJOm30aR6XWmsQIChxsrLKw0PAFrSkniaMIbb7K/GSoUuZe0VZeqCl2o+4Ts/6eX028BiOo0WLGKI2pBxWDFt7SCNVHTiCxX8E3gRVTI+rwgRyx4BWDB9Q21MEBILci8FTtgXySpSq2tjPsjZNQLnUlQG/DxVD/5JShNpjaTBJaaKZmZLrOaTzw431NfuYPywHMyIzrSEmV3sVJ8F4PhkukRDysTlt9vtngd70CmV+EiSZGehBA== 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=TTN7Jc3Zc38GQ3ayKQtixae403E/m/DoU75OgujxD9s=; b=kqu71B/jKd63naiqEjsx0rEWfq3Hdyol6aeY/OECfRYhn+r9Jnhq8/uPsbp+Ob2h6KiSQQ/C0c+GkNKb3F6FNcCwxs+LK6I2m/lBb7SKqUaRV4Y6HtcDwC3rUR1Ort9COe5kF90WcwsTrmN1mI3K6eoLIWKDWrJ1FthTwV2W8pc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9448.eurprd04.prod.outlook.com (2603:10a6:102:2b1::21) by AM0PR04MB7059.eurprd04.prod.outlook.com (2603:10a6:208:192::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.22; Tue, 8 Nov 2022 13:02:19 +0000 Received: from PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::60b2:4bec:7707:e196]) by PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::60b2:4bec:7707:e196%4]) with mapi id 15.20.5791.025; Tue, 8 Nov 2022 13:02:19 +0000 From: Sandor Yu To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, andrzej.hajda@intel.com, neil.armstrong@linaro.org, robert.foss@linaro.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, vkoul@kernel.org Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, linux-imx@nxp.com, tzimmermann@suse.de, lyude@redhat.com, Sandor.yu@nxp.com, javierm@redhat.com, ville.syrjala@linux.intel.com, sam@ravnborg.org, jani.nikula@intel.com, maxime@cerno.tech, penguin-kernel@I-love.SAKURA.ne.jp, oliver.brown@nxp.com Subject: [PATCH v3 07/10] dt-bindings: phy: Add Cadence HDP-TX DP PHY Date: Tue, 8 Nov 2022 21:00:10 +0800 Message-Id: <31ddc1508e01618db62bb9421d15745d525a6d10.1667911321.git.Sandor.yu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: X-ClientProxiedBy: SG2PR02CA0136.apcprd02.prod.outlook.com (2603:1096:4:188::16) To PAXPR04MB9448.eurprd04.prod.outlook.com (2603:10a6:102:2b1::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9448:EE_|AM0PR04MB7059:EE_ X-MS-Office365-Filtering-Correlation-Id: dbc8cee2-a89d-4bf4-5251-08dac18977a9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 82ytNwslIbi7sBnY7Eg+bU+WKHxCVsjV8GAaCO5rpm5T1f8am+g7XPfR2mWChtNgBqrONL1S8TXmo/mmoqtrqZRUSt/RCt4cVHeLYAUW33Wla0cRFnx1KxM0YL4OMfUSez+kjJgcrYR/TMothqf9mXs/PdhsEkTZt+6hNIlzkuHTXdkUv9dEKgUznHbNaPachtmO88r/fxHO1xX4HsNYcZRUrvxH/XIMHWYjfWzStXx/onwLON64FYgiP54LHGdEIsBk64V8Rrq3zUug5ZrOCWSgK/RVgwZmd39MFu6Jvj/q3z/ehaa+lKS1YWicmXyFwJsPSFaYke6hNxiBeGq+RaR1lNSNXYG8W0qsnyRcf5Mzg6aNDv6VgaHfSuNrOxXC5brRHfBd2WZo9E3ASmXeFuFrW/Kd9j0QhuCtr1mTE9AP2gtYAUzq6YB0KEMFDLaOV+L2+O8dUyr8udZIoO9t9jn3rIIKzgO96AsuXGfcwduz6JzE2bZjCt2RjUNWCzUFhBi6YF4rOjNcGcAMEAifYFP5zET3C9/fe9Q9MRwhqj1KduhSXSTPc9rGLLYrChfYxbTDoNLGf5SSl5sTIW6xhmPrueYMeUXNn9BFP/gT5AdaPeXaKrQtaoP1azEqFGIch7QFLkP281gPQ+jgfVHbsMGj6fZuNmWtGj3YhZszsILBpCqXMQHF+38GKTbD9YCtn1dAe3GdqFMi7uGXzESnBDxldK+sZdIDGlUYkasVbRko7TvKv4+mk9TlDUwssae3Qq7YBBBjdx8chCtqvYwxTdgJ9qL7Jb2YI5IihoCx46fmj/z36Apx2SJlm+ScKdgF20CldDI8IjeMSLH4ZZHeFRr1SAzr5EUl1fP0J9PQGDc= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9448.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(376002)(346002)(136003)(366004)(396003)(39860400002)(451199015)(86362001)(921005)(26005)(6512007)(41300700001)(6666004)(478600001)(38350700002)(2906002)(38100700002)(36756003)(2616005)(8936002)(186003)(7416002)(5660300002)(8676002)(66556008)(966005)(6486002)(4326008)(316002)(66476007)(83380400001)(52116002)(6506007)(66946007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /8u3ynXW6KasoW+zTwrp/J9yboSQx5A4E4pFNRcpzTgy8oLSyWPh2N2xAWwA1dot05P+NGgNsaL6RFrb1cZvwMooCPTh/OdxrGTdugi0TleqCg3icRbwq+ejyq6dVzYBYnGZz9teN4VgT0sHNfmULiL6RlI31m0eC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OnT5u7DFtUWlpSJFclD3Y4oNM/S5jfUkFnTF7+quXoPG8aLLUxLdIskLXcLQmMJAMFiKvoRulLD9HJMjZ6WiQpjMcdDuNQelbo2s9HWhweSBOuvFcnigjzCD1EjSX0VH9xyw+DocHiJcyFv0T6+javDGjc6pk3hx4q+cwGmIesZjQde04ua0oGucwBS6BboFdWv1wlyMFLHS8zFQ1/L8SVkH50v+38shoK/Xe/Ixwfn+R2w5GaOYs4nvi4yFsFT1HNIE380w0gdBhGDzxJMn959Kt7Fzk/SpTppNQDJ5a5vzL3hMEcVig+EgPUBmT1OKrFgNaSc885yKzQl8yikBC5xnNbWO+4X2nl3S X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: dbc8cee2-a89d-4bf4-5251-08dac18977a9 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9448.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Nov 2022 13:02:19.0643 (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: QhTDQux4LhdKvIfH8RzgOCdrq5oZhkpJK9tMwRuttcQiom9V+Lb4/YuHu927l61JlbuecKZ41AT2O18WZ+1vcw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB7059 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748933421236781417?= X-GMAIL-MSGID: =?utf-8?q?1748933421236781417?= Add bindings for Cadence HDP-TX DisplayPort PHY. Signed-off-by: Sandor Yu --- .../bindings/phy/cdns,hdptx-dp-phy.yaml | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/cdns,hdptx-dp-phy.yaml diff --git a/Documentation/devicetree/bindings/phy/cdns,hdptx-dp-phy.yaml b/Documentation/devicetree/bindings/phy/cdns,hdptx-dp-phy.yaml new file mode 100644 index 000000000000..8f9b8ba7d1c6 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/cdns,hdptx-dp-phy.yaml @@ -0,0 +1,66 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/cdns,hdptx-dp-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cadence HDP-TX(HDMI/DisplayPort) PHY for DisplayPort protocol + +maintainers: + - Sandor Yu + +properties: + compatible: + enum: + - cdns,hdptx-dp-phy + + reg: + maxItems: 1 + + clocks: + items: + description: + PHY reference clock. + + clock-names: + items: + - const: refclk + + "#phy-cells": + const: 0 + + cdns,num-lanes: + description: + Number of lanes. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [1, 2, 3, 4] + default: 4 + + cdns,max-bit-rate: + description: + Maximum DisplayPort link bit rate to use, in Mbps + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [2160, 2430, 2700, 3240, 4320, 5400] + default: 5400 + +required: + - compatible + - reg + - clocks + - clock-names + - "#phy-cells" + +additionalProperties: false + +examples: + - | + #include + dp_phy: phy@32c00000 { + compatible = "cdns,hdptx-dp-phy"; + reg = <0x32c00000 0x100000>; + #phy-cells = <0>; + clocks = <&hdmi_phy_27m>; + clock-names = "refclk"; + cdns,num-lanes = <4>; + cdns,max-bit-rate = <5400>; + };