Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6486557rwp; Tue, 18 Jul 2023 00:43:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlHV7LK75De6w2RLG9+a7OBbQlj1+aO12ftFvc9u8HDKq02IaVs+HEuxwvX2EfqC+ezv3Oqt X-Received: by 2002:a05:6a20:3c8c:b0:133:cf5c:4d2e with SMTP id b12-20020a056a203c8c00b00133cf5c4d2emr1681941pzj.20.1689666229085; Tue, 18 Jul 2023 00:43:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689666229; cv=none; d=google.com; s=arc-20160816; b=pi5RPej+Rdc8NrTHPI9p/NQsM2TegPV+DQzUbi3aceMDZmMBynfOUC1jqx/xqLdvc6 ++TSR3fRyT1PDQYRrTqaptlgVpftPQZZ7v5QSI7mQ639nNUoMtA88URHw1WltJ1d1jWo KXWZupbH/ldTJmiXYzgKYzNv7IVoWZtwZ2a1SJcY9VGHGxf6gZSdeWh+3pohMDnPmfic AR4KzJj/5GCBJ2c8CUfnZsE43CuA+KxQegQP7/o9zqafzXiN3k4yICB/qrWrlEDIU3Xg gqGK7xVaAls9xAkY68uHk/9L97WbXRCVzhIxuVMFx1cjqCW8VWuz8ASLHiiHaURhY5tO eFvg== 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=z5WZDPjiiLHyGMvSfgHrizVOc2j+sHq8MRqk/OVbRCI=; fh=pDdflixJ9gCxPAxSd1DujDmbgNt/z7QwRkzJEtBttAc=; b=u9JtMVgwrp83i+ha9MmMiAGWSZOcGU7h0hopkPDwsyTt7dnWbuIjQk6SqQdCjbD8le L4Nx0GRK6pDHA9NF6+LfUBWxliANSxdoJUyI3TTd6cJtuxEQ56R6gyjUM1grfjBgwAZt HMON14HWD9GlnhqDGehR42eQ5W3VJ486R0tsofOZAUtzdx4C9pZHB92XgecqYNr++mNk 9qCAEPf32U9VKFmXRPG3P6WruPDmqS7StmNyMFB8IWWggyxLNMfYpTgLJBWiIxj3YVcc w7/u5UGZCMUCp9YbFu27ipUtopc9rR+sVOW6nSN/8T8uRHdFPXWDKzj648IuhVM0cpcv 7yjQ== 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 f23-20020a635557000000b0055be1ce1329si1191078pgm.415.2023.07.18.00.43.36; Tue, 18 Jul 2023 00:43:49 -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 S231589AbjGRHIR convert rfc822-to-8bit (ORCPT + 99 others); Tue, 18 Jul 2023 03:08:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231704AbjGRHIO (ORCPT ); Tue, 18 Jul 2023 03:08:14 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7441CC; Tue, 18 Jul 2023 00:08:09 -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 fd01.gateway.ufhost.com (Postfix) with ESMTP id DA3A524E2A5; Tue, 18 Jul 2023 15:08:05 +0800 (CST) Received: from EXMBX062.cuchost.com (172.16.6.62) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 18 Jul 2023 15:08:05 +0800 Received: from ubuntu.localdomain (113.72.147.86) by EXMBX062.cuchost.com (172.16.6.62) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 18 Jul 2023 15:08:04 +0800 From: Changhuang Liang To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Roger Quadros CC: Minda Chen , Jack Zhu , Changhuang Liang , , , Subject: [PATCH v7 1/2] dt-bindings: phy: Add starfive,jh7110-dphy-rx Date: Tue, 18 Jul 2023 00:08:02 -0700 Message-ID: <20230718070803.16660-2-changhuang.liang@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230718070803.16660-1-changhuang.liang@starfivetech.com> References: <20230718070803.16660-1-changhuang.liang@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [113.72.147.86] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX062.cuchost.com (172.16.6.62) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT 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, 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 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..7224cde6fce0 --- /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 JH7110 MIPI D-PHY Rx Controller + +maintainers: + - Jack Zhu + - Changhuang Liang + +description: + StarFive SoCs contain a MIPI CSI D-PHY based on M31 IP, used 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 = <&aon_syscon 1>; + #phy-cells = <0>; + }; -- 2.25.1