Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp638686rwl; Wed, 12 Apr 2023 01:47:30 -0700 (PDT) X-Google-Smtp-Source: AKy350ZYoscqD2WnZ5K2PU8B/yxtxAuKF2HqubzTYjyfzC6/5rIyr/wdUqoG9zUg1jWFA5j927FM X-Received: by 2002:a05:6a20:2a1e:b0:de:d167:e2c9 with SMTP id e30-20020a056a202a1e00b000ded167e2c9mr1665591pzh.22.1681289250087; Wed, 12 Apr 2023 01:47:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681289250; cv=none; d=google.com; s=arc-20160816; b=wb7vmWaCGOv2tGLOfz3pqSOn/ERWHtMtdFS/hFngrdGI8j1P84L6mgXvSEDrc1NOyK HNnMdE4RCsyLQbMwKyLIi3XFYObYaF0f5/vK1OYIslfR/8ohRQtuTufiwWIEhn1iyRJz fNPOBze9cNuiDtHzaAvV2ACR/0ERuhHJo03sy8nQClnQxJp5vIJLIMb//7WVF9g+hzTl t8Q8in8KqqeKUACt6kwv+sn7OXWr+4gYJ/QHkAhJpLPVadMgFFVdFz/PghG/xs849eEU B+Y1BpDT5GtV3v1LrJ2etExp2t7ZPlK6nudyak5R+pRJmz1OHIhdmNkyoDFVc7PPIp9z KKlQ== 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=i+Cs9Q8UP9feGL6r9IqFAK71+PAcc3tUcbRyGEha9tc=; b=AKElqUrE35plpC8iRxIzbr6lqkNTkAuqgGfvuSIfKpQfvJfp+1LFrDC409O4Bd9+Xb a9Fb6eMvMmLZ+cXmZiydHpdSXdlBObTwCwbbbvCxWaJnnJdQJA8HyyQcgcYstqn7OtfA 8EuBKkpfGxhy3avJY41WULiClHWL0LLv2ygJMlfTbCTcatejpXTsrGn92vTaE/c+wDaY cTZC5B8uq84/IpUaatRnIqaHAs+QChHbNwyWaaeMRxaic2SoUByqSXp01JR/Pdw4907F 5WQp/nhCk5/WQsFHfKXqkNupHNBfKNNbCdAUTjSJxCTINyDjoABxMPimgiBLG+1OsIaV eFGg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z5-20020aa79e45000000b00633c4ed6061si10436215pfq.125.2023.04.12.01.47.19; Wed, 12 Apr 2023 01:47:30 -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 S231252AbjDLIrH convert rfc822-to-8bit (ORCPT + 99 others); Wed, 12 Apr 2023 04:47:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230353AbjDLIq6 (ORCPT ); Wed, 12 Apr 2023 04:46:58 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F7C393FD; Wed, 12 Apr 2023 01:46:36 -0700 (PDT) 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 09DA424E1A4; Wed, 12 Apr 2023 16:45:43 +0800 (CST) Received: from EXMBX162.cuchost.com (172.16.6.72) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 12 Apr 2023 16:45:42 +0800 Received: from ubuntu.localdomain (113.72.145.176) by EXMBX162.cuchost.com (172.16.6.72) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 12 Apr 2023 16:45:41 +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 v4 1/3] dt-bindings: phy: Add starfive,jh7110-dphy-rx Date: Wed, 12 Apr 2023 01:45:38 -0700 Message-ID: <20230412084540.295411-2-changhuang.liang@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230412084540.295411-1-changhuang.liang@starfivetech.com> References: <20230412084540.295411-1-changhuang.liang@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [113.72.145.176] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX162.cuchost.com (172.16.6.72) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED 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 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 --- .../bindings/phy/starfive,jh7110-dphy-rx.yaml | 85 +++++++++++++++++++ 1 file changed, 85 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..5fb2f14af816 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-rx.yaml @@ -0,0 +1,85 @@ +# 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 + + lane_maps: + $ref: /schemas/types.yaml#/definitions/uint8-array + description: + D-PHY rx controller physical lanes and logic lanes mapping table. + items: + - description: logic lane index point to physical lane clock lane 0 + - description: logic lane index point to physical lane data lane 0 + - description: logic lane index point to physical lane data lane 1 + - description: logic lane index point to physical lane data lane 2 + - description: logic lane index point to physical lane data lane 3 + - description: logic lane index point to physical lane clock lane 1 + + "#phy-cells": + const: 0 + +required: + - compatible + - reg + - clocks + - clock-names + - resets + - power-domains + - lane_maps + - "#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>; + lane_maps = /bits/ 8 <4 0 1 2 3 5>; + #phy-cells = <0>; + }; -- 2.25.1