From patchwork Fri Nov 17 13:04:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shengyang Chen X-Patchwork-Id: 166166 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp512045vqn; Fri, 17 Nov 2023 05:06:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IEHwREJGd2kCW8xXRJ4rAUAeP6zkt1JCa1b60vq8ERbhH+0rmci/0YmEvsKdBFN2+RIrcpg X-Received: by 2002:a05:6808:6546:b0:3a9:c647:c9ca with SMTP id fn6-20020a056808654600b003a9c647c9camr26234734oib.5.1700226394596; Fri, 17 Nov 2023 05:06:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700226394; cv=none; d=google.com; s=arc-20160816; b=GzDN4UihmOGSlX9whQiBNHRQ72YtkDg9HJ5QRjFpJLNq6D9OcRuCFQunvuYrrJWdVX ZlMqvKyST5FiOBk/bg9hNtoHzon9lpqCodAZx5NJyjicIQv+shgO9eb0PIcghLhPlv73 KpTvXMizDxPGFrdCYe1i58VeJWwZAo+n9SPkwTSahp6q7hbgR9pJsRhPD69Ud21cpk4S r4aORAqPF3T/4SJCJFxyjdtfwp9grztnrIJniq0e742urqF7biaH18wzG8IAG81XeGj/ iMEaVuh+sTyMmq0MG9WceocsvPk4zyiHpq4+CbyuAXqIMRWNbCv+lawPyrpM+al9meLw ghVw== 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=QtXWSkK88NDGTHo24kx4QolaOJzBQaXayk/yxyY+NR0=; fh=BV8Hujwb2jkbQApqxKYAYslg6CAkxz1JokgInyskOW8=; b=Gm3kwkH0ySzN6EK0bxMh979gRvRDO0L3eTM9F+0hCSb7jNIOJvqawLUDwa5JxovUna cUKmBb+okocsj4D2c2btW1ThxCnfnSZzKr5u/++bittUsXO79SrZZoB3sw/PS+gTjRNi 1WDHfUkCzObVWcDAMuMLPlS/FEBHAgPj/3G83QJRvTNxFG72Q2/PbtSCOhl+Wb2qfRwg U3u8F3zk53z+vl2QYafeULjrrFLixPoS25M8WSSoHdZ7pK+0BPZ1/1CZ0KjJ03UF1mga aOO8nECjakyx6xQHCfudK3opzFrMpHvN2pmaDy0Qkf4VD2oQNVIO7dy4jLYWZVJU6bcL fF4w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id gt17-20020a0568082e9100b003a86423b91fsi606296oib.166.2023.11.17.05.06.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 05:06:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 5D8DC81EE2F8; Fri, 17 Nov 2023 05:05:04 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231360AbjKQNEh (ORCPT + 30 others); Fri, 17 Nov 2023 08:04:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjKQNEf (ORCPT ); Fri, 17 Nov 2023 08:04:35 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA235D55; Fri, 17 Nov 2023 05:04:27 -0800 (PST) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 34D3C24E269; Fri, 17 Nov 2023 21:04:24 +0800 (CST) Received: from EXMBX171.cuchost.com (172.16.6.91) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 17 Nov 2023 21:04:24 +0800 Received: from yang-virtual-machine.localdomain (183.27.97.246) by EXMBX171.cuchost.com (172.16.6.91) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 17 Nov 2023 21:04:23 +0800 From: Shengyang Chen To: , CC: , , , , , , , , , , , , Subject: [PATCH v1 1/2] dt-bindings: phy: Add starfive,jh7110-dphy-tx Date: Fri, 17 Nov 2023 21:04:20 +0800 Message-ID: <20231117130421.79261-2-shengyang.chen@starfivetech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231117130421.79261-1-shengyang.chen@starfivetech.com> References: <20231117130421.79261-1-shengyang.chen@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [183.27.97.246] 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=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Fri, 17 Nov 2023 05:05:04 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782816591806078057 X-GMAIL-MSGID: 1782816591806078057 StarFive SoCs like the jh7110 use a MIPI D-PHY TX controller based on a M31 IP. Add a binding for it. Signed-off-by: Shengyang Chen --- .../bindings/phy/starfive,jh7110-dphy-tx.yaml | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-tx.yaml diff --git a/Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-tx.yaml b/Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-tx.yaml new file mode 100644 index 000000000000..850fe2e61d1d --- /dev/null +++ b/Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-tx.yaml @@ -0,0 +1,74 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/starfive,jh7110-dphy-tx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Starfive SoC MIPI D-PHY Tx Controller + +maintainers: + - Keith Zhao + - Shengyang Chen + +description: + The Starfive SoC uses the MIPI DSI D-PHY based on M31 IP to transfer + DSI data. + +properties: + compatible: + const: starfive,jh7110-dphy-tx + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: dphy_txesc + + resets: + items: + - description: DSITX_TXBYTEHS reset + - description: MIPITX_DPHY_SYS reset + - description: MIPITX_DPHY_TXBYTEHS reset + + reset-names: + items: + - const: dsi_txbytehs + - const: dphy_sys + - const: dphy_txbytehs + + power-domains: + maxItems: 1 + + "#phy-cells": + const: 0 + +required: + - compatible + - reg + - clocks + - clock-names + - resets + - reset-names + - power-domains + - "#phy-cells" + +additionalProperties: false + +examples: + - | + phy@295e0000 { + compatible = "starfive,jh7110-dphy-tx"; + reg = <0x295e0000 0x10000>; + clocks = <&voutcrg 14>; + clock-names = "dphy_txesc"; + resets = <&syscrg 7>, + <&syscrg 10>, + <&syscrg 11>; + reset-names = "dsi_txbytehs", "dphy_sys", "dphy_txbytehs"; + power-domains = <&aon_syscon 0>; + #phy-cells = <0>; + };