From patchwork Mon Nov 27 11:34:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shengyang Chen X-Patchwork-Id: 170101 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp3027320vqx; Mon, 27 Nov 2023 03:34:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IEukPyfBxpfy8TBkQ9Az1ovDyqPCCfLoBv7nQUzxTocTypzeOuxcXoLQvowbtLZ8wNpNJei X-Received: by 2002:a05:6a00:1307:b0:6c2:e10:42e3 with SMTP id j7-20020a056a00130700b006c20e1042e3mr13955073pfu.8.1701084899505; Mon, 27 Nov 2023 03:34:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701084899; cv=none; d=google.com; s=arc-20160816; b=dcASGZ8MUSnUcbXb3p7+yAr/DdOZEjo+8jZYHIb6JORRoRkpydD8Vw1KY7nhYO83LR adBm5JugIpFi23E+BW2qDjYcwb2xgDU875lAPZlVtUqTPHa6POhD3KKLGIHmnYkl8P+a OrpOahp1nM3yl3HJNpY74trYfGfSJAye9nzWuvNfbc9ZsqTtsAMQS5gGwvn+vi81Hzht 0crEP654mpSGMUcO1uSo3uXnhaxW4YNJGvk4gwmAzSQcB7kfcJ3UJMvY81l7/TPEUIAY dma3Ee5ggYm2trvOnkQsbXneEgNXNkSTAIIq+KqujbaB3oT17AFl1wJnho93rqp4AA8U iXug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=rH/c2MXLLuwEnQCIu/pVpXdnUEirYAe6KDEpuj/qKP4=; fh=ScK8IUDjhF4026qCKVePR/2UjErSUmNHqWg07rO2+9c=; b=h3LEba8hHCRXjH/Aya86y/042MIk+xWAwIeGiImV73QyxwPtu57lrQ3H0cSvpU9XhW d2mX9mg6Q9QWjELSHEJ9NLg2P6MCK8O+4J0OGgdHGdU63rozByS3xJu0B1jm+agL5bAO zILIQuluc199DqxMJ9uMy/1bLsUAhb+2JzRwLKqB+wOlnawxx0unxkTe5RDBzjvbehtQ EDCEE/ZfjkXkYM39wDKFVKIUfoJjyGawtZQ1T98Q3FQF+5G0hQwJJAngYpcts6rHt9Z2 DsDTlG2vaCB4VxJOorAP2a4dmb27czWa6laLu2G8tFCTcXM4aIsn8adveOfhOhlf9ldn KjhA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id h6-20020a635746000000b005855f67e490si9662432pgm.690.2023.11.27.03.34.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 03:34:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 11FA6805ECE5; Mon, 27 Nov 2023 03:34:58 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233259AbjK0Leq (ORCPT + 99 others); Mon, 27 Nov 2023 06:34:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233158AbjK0Len (ORCPT ); Mon, 27 Nov 2023 06:34:43 -0500 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24071133; Mon, 27 Nov 2023 03:34:46 -0800 (PST) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id 85ABB24DC13; Mon, 27 Nov 2023 19:34:39 +0800 (CST) Received: from EXMBX171.cuchost.com (172.16.6.91) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 27 Nov 2023 19:34:39 +0800 Received: from yang-virtual-machine.localdomain (113.72.144.198) by EXMBX171.cuchost.com (172.16.6.91) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 27 Nov 2023 19:34:38 +0800 From: Shengyang Chen To: , CC: , , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH v1 1/2] dt-bindings: display: bridge: cdns: Add properties to support StarFive JH7110 SoC Date: Mon, 27 Nov 2023 19:34:35 +0800 Message-ID: <20231127113436.57361-2-shengyang.chen@starfivetech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231127113436.57361-1-shengyang.chen@starfivetech.com> References: <20231127113436.57361-1-shengyang.chen@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [113.72.144.198] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX171.cuchost.com (172.16.6.91) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 27 Nov 2023 03:34:58 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783716799753777978 X-GMAIL-MSGID: 1783716799753777978 From: Keith Zhao Add properties in CDNS DSI yaml file to match with CDNS DSI module in StarFive JH7110 SoC. Signed-off-by: Keith Zhao --- .../bindings/display/bridge/cdns,dsi.yaml | 38 ++++++++++++++++++- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/display/bridge/cdns,dsi.yaml b/Documentation/devicetree/bindings/display/bridge/cdns,dsi.yaml index 23060324d16e..3f02ee383aad 100644 --- a/Documentation/devicetree/bindings/display/bridge/cdns,dsi.yaml +++ b/Documentation/devicetree/bindings/display/bridge/cdns,dsi.yaml @@ -17,6 +17,7 @@ properties: enum: - cdns,dsi - ti,j721e-dsi + - starfive,cdns-dsi reg: minItems: 1 @@ -27,14 +28,20 @@ properties: Register block for wrapper settings registers in case of TI J7 SoCs. clocks: + minItems: 2 items: - description: PSM clock, used by the IP - description: sys clock, used by the IP + - description: apb clock, used by the IP + - description: txesc clock, used by the IP clock-names: + minItems: 2 items: - const: dsi_p_clk - const: dsi_sys_clk + - const: apb + - const: txesc phys: maxItems: 1 @@ -46,10 +53,21 @@ properties: maxItems: 1 resets: - maxItems: 1 + minItems: 1 + items: + - description: dsi sys reset line + - description: dsi dpi reset line + - description: dsi apb reset line + - description: dsi txesc reset line + - description: dsi txbytehs reset line reset-names: - const: dsi_p_rst + items: + - const: dsi_p_rst + - const: dsi_dpi + - const: dsi_apb + - const: dsi_txesc + - const: dsi_txbytehs ports: $ref: /schemas/graph.yaml#/properties/ports @@ -90,6 +108,22 @@ allOf: reg: maxItems: 1 + - if: + properties: + compatible: + contains: + const: starfive,cdns-dsi + then: + properties: + clocks: + minItems: 4 + maxItems: 4 + resets: + minItems: 5 + maxItems: 5 + required: + - reset-names + required: - compatible - reg