From patchwork Thu Nov 3 09:12:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: allen X-Patchwork-Id: 14771 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp409559wru; Thu, 3 Nov 2022 02:15:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6qQznOqeYWuIxvEJDsZ2k0zvUAJESJwEKmvKtC+np/ZG9772lOaerwmlU3dcCfMYG+rWkf X-Received: by 2002:a17:90b:692:b0:203:6c21:b4aa with SMTP id m18-20020a17090b069200b002036c21b4aamr46613675pjz.227.1667466940504; Thu, 03 Nov 2022 02:15:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667466940; cv=none; d=google.com; s=arc-20160816; b=fH+oVEaCVOUBwbSHfmxiE6N4rE62oaS59XFSu+roI1fxYv7JQIc52yxy4Vb/mClUgE R2JzP0nUaEnKXRVkYw/wz7BBV+L3H2KIVb5bfmfOfHwu0mSlbUUeu/JG9JZvq/2ifdLV hTVAofeJB56YTrPZTQK9KE81fjV+tojVPP5tQMCsG3EnZCl6QEfyWSl+N+TQo6zUBoj5 RVrRE6wd52JQSuX94T2lR1HmAPRoCSzd+r4HRUhL6gQ1iJP6T8m9oHWoJH68pKFeMV1X kLxI4OwxJtekf6AzoW7FydfRAZ4vY+byMvWsBF/SEH6ECnEzdIMgmR8bMUwF1XBenUNb bFWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from; bh=mM+NQj4Tq4Ji/rbfh/rxAp6Wp6zZB9twSoz+a2QZqhE=; b=VTW9+hNyvIbRkHKP3wlhij07QJQD6HqSaLXkipKnX9ixBZu8TbvbJ2cxiOg8dx94vx eKawKmKiMzDdnj/vwdLejx6xiOim1XZDuigzZuXzyz1+KAl/vX46nmEQxEHhQ1LoaDKU qZCk5hVwA3UT9P0RsqL2MNV74ZnBA1DIZUvlZsQFezFenqeM77etP1Tjc8PEfBPxkcen nse/6636W573f1sIZu05ywL+mmI+91XRwz98Bv5GQpewlbTeM0gtlA+yifk7j1m5iarI ZlDCCulRmNih/Oae+K8lUoUkOUt/ztZk36UBWoFumiGGtqsf5btowg602O1NtzWG0uRh TpFw== ARC-Authentication-Results: i=1; mx.google.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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v25-20020a637a19000000b0046265702353si463619pgc.203.2022.11.03.02.15.27; Thu, 03 Nov 2022 02:15:40 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231140AbiKCJOM (ORCPT + 99 others); Thu, 3 Nov 2022 05:14:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbiKCJNb (ORCPT ); Thu, 3 Nov 2022 05:13:31 -0400 Received: from ironport.ite.com.tw (60-251-196-230.hinet-ip.hinet.net [60.251.196.230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21CC3DF8D; Thu, 3 Nov 2022 02:13:01 -0700 (PDT) Received: from unknown (HELO mse.ite.com.tw) ([192.168.35.30]) by ironport.ite.com.tw with ESMTP; 03 Nov 2022 17:13:00 +0800 Received: from CSBMAIL1.internal.ite.com.tw (CSBMAIL1.internal.ite.com.tw [192.168.65.58]) by mse.ite.com.tw with ESMTP id 2A39CvID002433; Thu, 3 Nov 2022 17:12:57 +0800 (GMT-8) (envelope-from allen.chen@ite.com.tw) Received: from VirtualBox.internal.ite.com.tw (192.168.70.46) by CSBMAIL1.internal.ite.com.tw (192.168.65.58) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.14; Thu, 3 Nov 2022 17:12:57 +0800 From: allen CC: Allen Chen , Jau-Chih Tseng , Hermes Wu , Kenneth Hung , Pin-yen Lin , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , "open list:DRM DRIVERS" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list Subject: [PATCH v7 1/2] dt-bindings: it6505: add properties to restrict output bandwidth Date: Thu, 3 Nov 2022 17:12:42 +0800 Message-ID: <20221103091243.96036-2-allen.chen@ite.com.tw> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221103091243.96036-1-allen.chen@ite.com.tw> References: <20221103091243.96036-1-allen.chen@ite.com.tw> MIME-Version: 1.0 X-Originating-IP: [192.168.70.46] X-ClientProxiedBy: CSBMAIL1.internal.ite.com.tw (192.168.65.58) To CSBMAIL1.internal.ite.com.tw (192.168.65.58) X-TM-SNTS-SMTP: 2283999EE5B7323393A09A8AFC977A900C2CA3014ADDFE9C61A1B5BCFD52F12C2002:8 X-MAIL: mse.ite.com.tw 2A39CvID002433 X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,PDS_RDNS_DYNAMIC_FP, RDNS_DYNAMIC,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) 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?1748465814782426034?= X-GMAIL-MSGID: =?utf-8?q?1748465814782426034?= From: allen chen Currently there are no "upstream" users. So, no existing users to break. Add properties to restrict dp output data-lanes and clock. Signed-off-by: Pin-Yen Lin Signed-off-by: Allen Chen Reviewed-by: Krzysztof Kozlowski --- .../bindings/display/bridge/ite,it6505.yaml | 68 +++++++++++++++++-- 1 file changed, 62 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/display/bridge/ite,it6505.yaml b/Documentation/devicetree/bindings/display/bridge/ite,it6505.yaml index 833d11b2303a7..b16a9d9127ddb 100644 --- a/Documentation/devicetree/bindings/display/bridge/ite,it6505.yaml +++ b/Documentation/devicetree/bindings/display/bridge/ite,it6505.yaml @@ -52,9 +52,49 @@ properties: maxItems: 1 description: extcon specifier for the Power Delivery - port: - $ref: /schemas/graph.yaml#/properties/port - description: A port node pointing to DPI host port node + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: A port node pointing to DPI host port node + + properties: + endpoint: + $ref: /schemas/graph.yaml#/$defs/endpoint-base + unevaluatedProperties: false + + properties: + link-frequencies: + minItems: 1 + maxItems: 1 + description: Allowed max link frequencies in Hz + + port@1: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: Video port for DP output + + properties: + endpoint: + $ref: /schemas/graph.yaml#/$defs/endpoint-base + unevaluatedProperties: false + + properties: + data-lanes: + minItems: 1 + uniqueItems: true + items: + - enum: [ 0, 1 ] + - const: 1 + - const: 2 + - const: 3 + + required: + - port@0 + - port@1 required: - compatible @@ -63,6 +103,7 @@ required: - interrupts - reset-gpios - extcon + - ports additionalProperties: false @@ -85,9 +126,24 @@ examples: reset-gpios = <&pio 179 1>; extcon = <&usbc_extcon>; - port { - it6505_in: endpoint { - remote-endpoint = <&dpi_out>; + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + it6505_in: endpoint { + remote-endpoint = <&dpi_out>; + link-frequencies = /bits/ 64 <150000000>; + }; + }; + + port@1 { + reg = <1>; + it6505_out: endpoint { + remote-endpoint = <&dp_in>; + data-lanes = <0 1>; + }; }; }; };