From patchwork Mon May 29 12:15:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Changhuang Liang X-Patchwork-Id: 100234 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1472934vqr; Mon, 29 May 2023 05:27:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7eLiIaJJocxOjzMP4WnPKFUYocIKPfXXjnM5Qc8ERjIuRNg+Xshtn/NYED+loq+3/2seoU X-Received: by 2002:a05:6a00:1896:b0:643:59cd:6cad with SMTP id x22-20020a056a00189600b0064359cd6cadmr15950608pfh.24.1685363271220; Mon, 29 May 2023 05:27:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685363271; cv=none; d=google.com; s=arc-20160816; b=avRTi9Vy4ifiIQx1xTnmmHHeFLgvycSRYy1MFqqkwYbTBvlAPKlXV4ugw7Rm0xbeem jHPqwonkc3MFx5lR+xevDZOpTm2euAtIQDUm4CC1tKUM2G5nrmBj/0SUkff2u0H7OKpB 3IMR5YbH0+WDaTlmTcHlbZX9hxR/J2Jh5j0N61fJbM0GTwkTPG9z3saiyfyRo/uVqBzk 0yfF9UiXG2BOFkVH9A0FZRVrSe49LAcaqUpinTIX1kLuggXIv0kWRyzIABKY3NhvJQT1 cHqNyz8/zkczroBiZWJQBs2aNjB+v0Ne3u85aiPk6GNHGUI1gwhYgzT+fzxIzhcrbHOX G3Kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=M4CguZp/MaL5bKn3PsVO6aPg2pMDkXqxYboTjjJ9Up4=; b=CTfrZiHBMZzP4SsIT1ePYDE2/qrxk2V6oKwQ3jfIIaxi+WTGo9xChv2D6Ow0iAn94Z LkXe/t1BMLu2iicUWVtrS5YRdLgeLjW+Z4aZropEo/nha7JSu0P3TmkCNaxKL7Cp2mbZ 9BfGlpUx54Dt8L8DXYsDUF6rF2UdRKvK/pHWl0Cd6k/ZLn+PRS+jcPRRCUjedWjrlEOG /txB26n/EG6lZbq3DB8Kncz1kjwBn1fPuAsbyKwp2UcO/3vD07bKFpEPIca0+CJN1+gB bQOaeC+Gw784xJjpPIK5GkUfFaMN3W+o/UUwWfLo85chRrGHyICwutvBqI2Uz8XGoDGM 1nrg== 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 126-20020a620684000000b0064d3beb0d66si9254978pfg.78.2023.05.29.05.27.36; Mon, 29 May 2023 05:27:51 -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 S231693AbjE2MPS convert rfc822-to-8bit (ORCPT + 99 others); Mon, 29 May 2023 08:15:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230512AbjE2MPQ (ORCPT ); Mon, 29 May 2023 08:15:16 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C96EC7; Mon, 29 May 2023 05:15:15 -0700 (PDT) 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 407077FFC; Mon, 29 May 2023 20:15:07 +0800 (CST) Received: from EXMBX062.cuchost.com (172.16.6.62) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 29 May 2023 20:15:07 +0800 Received: from ubuntu.localdomain (113.72.147.198) by EXMBX062.cuchost.com (172.16.6.62) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 29 May 2023 20:15:06 +0800 From: Changhuang Liang To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel CC: Jack Zhu , Changhuang Liang , , , , Subject: [PATCH v5 1/3] dt-bindings: phy: Add starfive,jh7110-dphy-rx Date: Mon, 29 May 2023 05:15:01 -0700 Message-ID: <20230529121503.3544-2-changhuang.liang@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230529121503.3544-1-changhuang.liang@starfivetech.com> References: <20230529121503.3544-1-changhuang.liang@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [113.72.147.198] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX062.cuchost.com (172.16.6.62) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767231477763411721?= X-GMAIL-MSGID: =?utf-8?q?1767231477763411721?= StarFive SoCs like the jh7110 use a MIPI D-PHY RX controller based on a M31 IP. Add a binding for it. Signed-off-by: Changhuang Liang Reviewed-by: Rob Herring --- .../bindings/phy/starfive,jh7110-dphy-rx.yaml | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-rx.yaml diff --git a/Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-rx.yaml b/Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-rx.yaml new file mode 100644 index 000000000000..46fd370188e8 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-rx.yaml @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/starfive,jh7110-dphy-rx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive SoC MIPI D-PHY Rx Controller + +maintainers: + - Jack Zhu + - Changhuang Liang + +description: + The StarFive SoC uses the MIPI CSI D-PHY based on M31 IP to transfer + CSI camera data. + +properties: + compatible: + const: starfive,jh7110-dphy-rx + + reg: + maxItems: 1 + + clocks: + items: + - description: config clock + - description: reference clock + - description: escape mode transmit clock + + clock-names: + items: + - const: cfg + - const: ref + - const: tx + + resets: + items: + - description: DPHY_HW reset + - description: DPHY_B09_ALWAYS_ON reset + + power-domains: + maxItems: 1 + + "#phy-cells": + const: 0 + +required: + - compatible + - reg + - clocks + - clock-names + - resets + - power-domains + - "#phy-cells" + +additionalProperties: false + +examples: + - | + phy@19820000 { + compatible = "starfive,jh7110-dphy-rx"; + reg = <0x19820000 0x10000>; + clocks = <&ispcrg 3>, + <&ispcrg 4>, + <&ispcrg 5>; + clock-names = "cfg", "ref", "tx"; + resets = <&ispcrg 2>, + <&ispcrg 3>; + power-domains = <&dphy_pwrc 1>; + #phy-cells = <0>; + };