Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7205201rwi; Mon, 24 Oct 2022 11:10:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4v+hnHzCltkF2CU7nkCiyBYSu9gfJT++WPY46nlt81rewgeRWEN5PXI2qrUXSTA3TVeCot X-Received: by 2002:a05:6a00:8cb:b0:52c:6962:2782 with SMTP id s11-20020a056a0008cb00b0052c69622782mr35014676pfu.81.1666635015219; Mon, 24 Oct 2022 11:10:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666635015; cv=none; d=google.com; s=arc-20160816; b=yRU/GZgP4JrMiqV/tMaw24nXjfF2dUcr4eqP9SOewdQ2BgIhpZnrykaK5zMd/a3whb lrnc2Y9pfYBLZPAijTbbV4uOhTzpP/ptK+cMdW9+H+sJq5v48mafH4BnevZ7XRK+VItx QW2BK2PuhFGYzdyASlQgvXmZFZZjRMqkjpvfs18wLx3C21Tfj8B7b3qfJr7u/wY4sisP IYBYdt+LYTG8MqnXOBboEhpzfYM23qsm/Cj9bK/CJG+/2laqO7IOTqJxNJaeqjIf09hI I1ox5WyHIi6Q2mDzTz3QiLmdeWkEcA42Bb5opgaM1aT1a+fNLZt56jgUJyKgphxL9Q3M Roww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=AOoFVDrlFCXyPe4ykRkCLwV8gspUR1CaRwsm4ruVJbA=; b=venY8l21vyuLjajZtWSciSexgqheViMSUU9CIjobIb4nldnsAsvzZPB0S0fpqpJOOP ACRS+Fn1B3s7hB8TW6u0SH9cggL0mupt4hh/JTN8Bwa6Q5UaIXOK5XqF4pdDs4jG/+7Q kfcopauCVEYd/oNZgR5s1YRAILiIoJNlvi/gtYDPQDipPH8uaXrf9HtJ7mJ+mDhXpIRT vPUwGmAWfZHZIgxYcvSdgXlXme2N6orOoBRfPSm+XoEaaeCL2htNWSS04pnhJttkHxvC TS0B3EVmpcR7e4SeMBAUCLUGNSJn0sXPGhceNfcTOfvVvQmfuF+es2WZl5fMgCCD/5hQ wGGA== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s3-20020a170903200300b00186940d7eaasi183983pla.31.2022.10.24.11.10.02; Mon, 24 Oct 2022 11:10:15 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230062AbiJXSE4 (ORCPT + 99 others); Mon, 24 Oct 2022 14:04:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232631AbiJXSDo (ORCPT ); Mon, 24 Oct 2022 14:03:44 -0400 Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32DAE3ECF8; Mon, 24 Oct 2022 09:44:39 -0700 (PDT) Received: by mail-oi1-x22e.google.com with SMTP id u15so11427305oie.2; Mon, 24 Oct 2022 09:44:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=AOoFVDrlFCXyPe4ykRkCLwV8gspUR1CaRwsm4ruVJbA=; b=C+bS3NBwAUf4jyE476/FClUUqcy/JVlvLJUKpWPUlzLqWkbDsDr0ZMtnlF0NGrG8Uk pzqdKR6jLTF/41o50bZAVW0+szRvepazelL4vqzPg4QHVCBkWKkpl3ydwIBOIumJWkyO lLj9r71sVSM720kggzMycim1FqTaWx55DMcQDuZaHXDn9GpUidZoDIFlxVhw3Cph+V4O FI24plezwaYMa8cNk9MAvhzpnJku1crgyDScl68rxv3eo7v1Zc5ZlOwUk7J2SjQAvDoh a/mg6HeY7OfNG0GnyGH/E3hU6hYA4FvT+r9kE3Z7csCLY8Cg6lPkX2nnXZoZ9NlxI+6f m6og== X-Gm-Message-State: ACrzQf2IpNYssViJlCDTXQb6OSSIJ/PmqnkD9VDF/XgoolOZFFb1XfoF I/Xd6tsoNOydJI80yyrgow== X-Received: by 2002:a05:6808:1483:b0:355:1d32:26ab with SMTP id e3-20020a056808148300b003551d3226abmr17317907oiw.120.1666629467514; Mon, 24 Oct 2022 09:37:47 -0700 (PDT) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id y19-20020a544d93000000b0035437f4deefsm28390oix.26.2022.10.24.09.37.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 09:37:46 -0700 (PDT) Received: (nullmailer pid 1890695 invoked by uid 1000); Mon, 24 Oct 2022 16:37:48 -0000 Date: Mon, 24 Oct 2022 11:37:48 -0500 From: Rob Herring To: allen Cc: Pin-Yen Lin , Jau-Chih Tseng , Hermes Wu , Kenneth Hung , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Krzysztof Kozlowski , "open list:DRM DRIVERS" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list Subject: Re: [PATCH v5 1/2] dt-bindings: it6505: add properties to restrict output bandwidth Message-ID: <20221024163748.GA1874793-robh@kernel.org> References: <20221019093215.8204-1-allen.chen@ite.com.tw> <20221019093215.8204-2-allen.chen@ite.com.tw> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221019093215.8204-2-allen.chen@ite.com.tw> X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 19, 2022 at 05:32:13PM +0800, allen wrote: > From: allen chen > > Add properties to restrict dp output data-lanes and clock. > > Signed-off-by: Pin-Yen Lin > Signed-off-by: Allen Chen > --- > .../bindings/display/bridge/ite,it6505.yaml | 89 +++++++++++++++++-- > 1 file changed, 83 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..8e607b6929fc9 100644 > --- a/Documentation/devicetree/bindings/display/bridge/ite,it6505.yaml > +++ b/Documentation/devicetree/bindings/display/bridge/ite,it6505.yaml > @@ -52,9 +52,70 @@ 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 No existing users you are breaking? The commit msg should explain. > + 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: > + oneOf: > + - minItems: 1 > + maxItems: 1 > + uniqueItems: true > + items: > + enum: > + - 0 > + - 1 > + description: For one lane operation. > + > + - minItems: 2 > + maxItems: 2 > + uniqueItems: true > + items: > + enum: > + - 0 > + - 1 > + description: For two lanes operation. > + > + - minItems: 4 > + maxItems: 4 > + uniqueItems: true > + items: > + enum: > + - 0 > + - 1 > + - 2 > + - 3 > + description: For four lanes operation. I would do just: data-lanes: minItems: 1 items: - enum: [ 0, 1 ] - const: 1 - const: 2 - const: 3 It does allow 3 lanes, but I don't think that's a big deal. What it does doesn't allow is any order and yours does. Rob