Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp819946rwl; Wed, 12 Apr 2023 04:43:41 -0700 (PDT) X-Google-Smtp-Source: AKy350baFas/r/Ij/OBJ06HGk6kNGSVDJpEXIkP+0jIpjciZxzs3i1xFjG24fOD3evkiS0uxIxYK X-Received: by 2002:a17:903:32d1:b0:1a6:566b:dd73 with SMTP id i17-20020a17090332d100b001a6566bdd73mr7866049plr.60.1681299820834; Wed, 12 Apr 2023 04:43:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681299820; cv=none; d=google.com; s=arc-20160816; b=Ug2qTS2ZDIjkQxQBtTpUOFxdc0Vbm8ZoLz9ReWQZC+8yCTWVNNFAYpTQOEnWbjxRTL qcP/WLkSq6FQunlgl71TAyRCkLOvTCTpkI/jWcnz20dNGu4OWEyCPtiBo4XDxlpzqTlB 5mU3R9JmGNg2RPXG6eKDAB9KxA6UbaOWQ3t3qQ5+2VEOj241m63oEqPT7rbMEcViVU20 oQCsuiD4ldoie7jccVrQ0FtNELFfiY+xP/Grdo+w5cQvqHcYqr8Kpju8G6IXg0WVu9r9 f4RuNVAdiLcARSEFFHjLye089m/TgupVVSw2SbnyKnGa21tFuhn3np0MRwMAVnCU0aOS jRGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=LxsivSQwSNGU8AJzuwSv8w61igpz8AHkC54naIDyexI=; b=zO5ZLJNi6jeixz5xalcGEjFSTkWGTXQU9SVFaKYeSCgq43nFC1zS/ctFy6PVd/4JJJ IpzThHeHiTyBkGO7IlhE08A4nZTau0V1yLuEDFrUbNiNnpuOeuMWsLpALZxFZcPgrTYG H/j18uo+MUz3Brk+/BPzRqkimtlXg+cwsQulOeX0MLSMrr/M2S3vY/4MaWz0FhihqopR l8+AiycgDOSRKZfaXSZm2COYVsetiCKqc4y3KFDhHe7WNNj9adaUWnRHPKHm036ckmPA T4awvjA3KaRHAHR3obWX/LzZqxvE0SEkCmkSpVtCa7oSwwuRfeBihc6RwiUySbBMG6RP YVXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gwjW5Qtu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b5-20020a170902d30500b001a183ade8f7si16273533plc.433.2023.04.12.04.43.29; Wed, 12 Apr 2023 04:43:40 -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; dkim=pass header.i=@linaro.org header.s=google header.b=gwjW5Qtu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231492AbjDLLfk (ORCPT + 99 others); Wed, 12 Apr 2023 07:35:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231363AbjDLLff (ORCPT ); Wed, 12 Apr 2023 07:35:35 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95B78185 for ; Wed, 12 Apr 2023 04:35:08 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id z26so14149299lfj.11 for ; Wed, 12 Apr 2023 04:35:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681299256; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=LxsivSQwSNGU8AJzuwSv8w61igpz8AHkC54naIDyexI=; b=gwjW5QtuRbOOWCGb1dONAXAbjmFVfvKKircAtLFrbHDHFvYVlzDF5RyrRu7gHFH4uK vuhlstToooIlcw0h4Wpps4ko40UZH6/bHQVOQZPzBtTxpUqM+NDyY6Uf+SqKqQBVrQfG ogODpwGkP/40If5n9YAcLxLpUzAli65yuYcjp52Ud1a+AaHKKKN/nxp0s4AUcwHabfsc 9AZXNJAax+ENZJD6sAQlIsu9i7Dfs8TtAbAux/+o6JFnQABKwVyv29tSey5md14NMMHj JlE4eaMnT9JtWqJX2tAgkvrAjKcGdEsdc9kAzkVZSGMFbyVNz6K89St/hfn0e9DxO1U+ GcYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681299256; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LxsivSQwSNGU8AJzuwSv8w61igpz8AHkC54naIDyexI=; b=2JptZnFkGDIR0Vs794BKQYduy4kJODEoRzME0k/hbb5vqzohXVV261nkIcvs/rPb/7 zl7Fe6VFW/I3W3MazljAbdgDrInMhBHuoxd8/WbhWhuqKP2U6ROrluKLcf9wS6sVNIjB T4Wbr2D6hbRpWs3+dNKTPxGA2XgBOgsdJ+uj1rhyX6RNyVBPr/6E2lgsdY0UloEtfEeG 0qUJjit+DHBk9gsvXaNTB/acnmJNWnBM4APOeVvuYe3V6K0cP51w7trMNLjF2nyxsBFW aScFIuXy8VaPXQZXEa54U4LRKf/NCFjT0Y2jCsIfUnekBSMhsqwbVLdoiGNqZ7d/Copx RpUQ== X-Gm-Message-State: AAQBX9dxMpzWjxjKnp/uZqHkyt6J8G0LeIigJplttSjpBBkpiVu7l7jS S3+3CEDeUb2pB1BPgG9AfehuQQ== X-Received: by 2002:ac2:5dc2:0:b0:4ec:a218:4f9b with SMTP id x2-20020ac25dc2000000b004eca2184f9bmr309937lfq.2.1681299255813; Wed, 12 Apr 2023 04:34:15 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:8fa0:9989:3f72:b14f? ([2a02:810d:15c0:828:8fa0:9989:3f72:b14f]) by smtp.gmail.com with ESMTPSA id v5-20020ac25605000000b004b55ddeb7e3sm2964212lfd.309.2023.04.12.04.34.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Apr 2023 04:34:15 -0700 (PDT) Message-ID: <8dd0dc63-e0df-8764-f756-da032d9d671c@linaro.org> Date: Wed, 12 Apr 2023 13:34:13 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH v4 1/3] dt-bindings: phy: Add starfive,jh7110-dphy-rx Content-Language: en-US To: Changhuang Liang , 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 , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org References: <20230412084540.295411-1-changhuang.liang@starfivetech.com> <20230412084540.295411-2-changhuang.liang@starfivetech.com> From: Krzysztof Kozlowski In-Reply-To: <20230412084540.295411-2-changhuang.liang@starfivetech.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 On 12/04/2023 10:45, Changhuang Liang wrote: > StarFive SoCs like the jh7110 use a MIPI D-PHY RX controller based on > a M31 IP. Add a binding for it. So this is D-PHY? Or the other patch is D-PHY? The naming is quite confusing and your commit msgs are not helping here. Also the power domain phandle here adds to the confusion. > > 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: Why did this appear? Underscores are not allowed. It looks like you re-implement some standard property. > + $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 > + Best regards, Krzysztof