Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1733981rdb; Sun, 19 Nov 2023 08:10:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFwVOC/IFjVbHnQQSXu8FHjDxIUY18Y5gacm62D1umictZd5MrTsIvJDTYoSw6OKJuMxbZb X-Received: by 2002:a05:6e02:338d:b0:359:4d54:52f5 with SMTP id bn13-20020a056e02338d00b003594d5452f5mr7964975ilb.0.1700410200007; Sun, 19 Nov 2023 08:10:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700410199; cv=none; d=google.com; s=arc-20160816; b=V6tNhKtqXA8llDi24r+ITyMifYa2Bov/ORCmDsZx6f/2AH99IyMeCkf+l2YmKCRyWb 7pXBZD2YeL9NMHfOZpjRU4rBeEx8EDd4AsR7tf6cELBqicC2ZeEgj0UmGDR513z3WKgc b/u2PSLC2GL+udnFUbsA00iTrh8budnzwDMSvscp8tNBb0AqhD4CL6YsltfHh+A29VqH wzcYZ65YTc6VTHLGiuyzGfE9wyO/TBgVjI1h0HuHmHN2Kg3yiUj9rvVw87f+6i9gAA2K bv7ad7rQv4wBPVLSOrs4ffyQchRUVqP4h5y299iyGLXVKfzsS4BsWWvBG6u6lxLguuex rXCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=6FwY3Ii3WuLnORYg7kZbiyOjnq76hZU7a/LRk5adx6s=; fh=jNK2gX7ntnHYHwgTXg3d9U3BeXhufIZGOo0r7GO2N8w=; b=uF6RVUaOLatP3wcN4jwGLIFivWrMwVs9dIJaf1HZtPrDphL94VCzEh8Ntiywh2aLyF pOFfWx+0v4iFdBUELdpyij9rj39vyUtgRZKfaMY1IoPkvw2b2xRHhtTz9FJlfNBK4gl8 Hf4r78iUnR71Bk7HnyJSDxeDoc0s65uOjytJJY//BsYEC+LiiBLgV2j+OcFpHoR+XAdL fqGrN62F07AqRnFoIERm8uXjEEx4luCZNtPWkjFJEjal6WxyDCGXr9k1+TDaz23P7L3K GCJvouTQ+Iwe1dNhgviWF6MsmpLWKaXoFlwVZNwfxQDOiSr0iL4sjvNH+5eX5IN1za79 vOfg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id fa16-20020a056a002d1000b006be30cdc3d8si6279284pfb.163.2023.11.19.08.09.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 08:09:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 2A559807DEC5; Sun, 19 Nov 2023 08:09:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229642AbjKSQJq (ORCPT + 99 others); Sun, 19 Nov 2023 11:09:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjKSQJp (ORCPT ); Sun, 19 Nov 2023 11:09:45 -0500 Received: from mail-oa1-f54.google.com (mail-oa1-f54.google.com [209.85.160.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8870F9; Sun, 19 Nov 2023 08:09:42 -0800 (PST) Received: by mail-oa1-f54.google.com with SMTP id 586e51a60fabf-1ea82246069so2062298fac.3; Sun, 19 Nov 2023 08:09:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700410182; x=1701014982; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=6FwY3Ii3WuLnORYg7kZbiyOjnq76hZU7a/LRk5adx6s=; b=B8aeFLyZf5jV/+GVYKLbtvAGFlp1Qh83htbvSLpwQs9xfpCN9OwOJGinAhKvpO6/YF /9HdGRSlltuE1Veq7ZUPa4AU3LvPiBxwcqtVIadryODGDzptnGiQ8z0SEsOCZNrGX2Lf 54qy0e0eTQbrVeJXUzsrQ21bUvnVQ4AnsFLe1f/sA3tXjQn8EbU+hoBF/XFOjbDq6DPj Gyb5uAW/UHrc2/MBIWKJo1miwlJPp9mwVNJbSpy0e1z3S97AG5y57jZq1IDsXsVBubXz Xz4qbg93JFwA7Sh1P7fmfUkd9tXwm1GTx1/29eSbRjYujvyUEQAJy4umpd2qHbLqChuL tCfQ== X-Gm-Message-State: AOJu0YxW+W0ksyzrWCV2Huk7AzFJBAhdT5M8IH63jGg+UaM7Jyc+Q8/p 3Yk95OKKZ3PWcVqUEEVdyW3U7UEwow== X-Received: by 2002:a05:6871:521e:b0:1eb:192b:e75b with SMTP id ht30-20020a056871521e00b001eb192be75bmr6166361oac.40.1700410182011; Sun, 19 Nov 2023 08:09:42 -0800 (PST) Received: from herring.priv ([2607:fb90:45e3:889f:15b4:1348:6d64:224b]) by smtp.gmail.com with ESMTPSA id dd14-20020a056871c80e00b001efcb7b4717sm1032878oac.53.2023.11.19.08.09.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 08:09:40 -0800 (PST) Received: (nullmailer pid 273405 invoked by uid 1000); Sun, 19 Nov 2023 16:09:38 -0000 Date: Sun, 19 Nov 2023 10:09:38 -0600 From: Rob Herring To: Shengyang Chen Cc: devicetree@vger.kernel.org, linux-phy@lists.infradead.org, vkoul@kernel.org, kishon@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, p.zabel@pengutronix.de, minda.chen@starfivetech.com, changhuang.liang@starfivetech.com, rogerq@kernel.org, geert+renesas@glider.be, keith.zhao@starfivetech.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 1/2] dt-bindings: phy: Add starfive,jh7110-dphy-tx Message-ID: <20231119160938.GA269430-robh@kernel.org> References: <20231117130421.79261-1-shengyang.chen@starfivetech.com> <20231117130421.79261-2-shengyang.chen@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231117130421.79261-2-shengyang.chen@starfivetech.com> X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Sun, 19 Nov 2023 08:09:57 -0800 (PST) On Fri, Nov 17, 2023 at 09:04:20PM +0800, Shengyang Chen wrote: > 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 Module name is redundant. Drop 'dphy_'. > + > + 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 Drop 'dphy_'. Is 'dsi_txbytehs' really a part of the DPHY block? Sounds like it is part of the DSI block. If so, the reset belongs there. If the phy driver needs it, then it needs to go find the DSI block and get its reset. > + > + 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>; > + }; > -- > 2.17.1 >