Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4129543rwl; Sun, 2 Apr 2023 23:42:18 -0700 (PDT) X-Google-Smtp-Source: AKy350ZEf1yZzdIxPwv4O5P7KBrCaHgR+5rjg8OZV0lzl1OXsiew7uYcPKkEJu6tPNxZxo+NWyiz X-Received: by 2002:a05:6402:31e2:b0:4fc:c6fe:1d3a with SMTP id dy2-20020a05640231e200b004fcc6fe1d3amr33727348edb.22.1680504138496; Sun, 02 Apr 2023 23:42:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680504138; cv=none; d=google.com; s=arc-20160816; b=Gnrf3A9DiAHe6fqy8eicfO89r0Sl4qJBcfgVMms+8goIl08MMlEJlDr9yEfaTe5TbV Uj3JxC2gOC4yhDj8Bfx0+S1jh0PLs4LByCLZw2wqukm3/kvHB3BAqu0vsd3TMwkIA5Jw +4KF8oIoBs57mR7iLjU7+V/4fJlo06zFV0QnITNlgLikepl/QQLJxb6R3lSGgFE4s/Q9 lNJQO2wDhGLGmLKrekcq2BePxsqnjCr/dYGx13Hhkqgoh5hB8wS/1SjKELW8io4c5CdT d0FwAtwVVpt+/mGF7W5GymW2R2P1vwY85yGBXrB446NhYLphFi9o79mJ/jhlsfYzBjV7 1Sxg== 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:dkim-signature; bh=wbSpGCmO3qJyUMVb31Xq/WAGuSAyoAnqfNgC86ULo9o=; b=o1xD5GYSr5ZNfii/FpI4IY+QzOPe7rK8wFwOBPHJNp3Rpq4LzRDtA8tsGJ4raS6Rqg oDvxFVyYbyKwf7QyxaCdQ3TXOpFI0//ayE1qZGGUHGMt3l6N81UeRNYRv345JSjf9wTd +xeBOWzgpcNE9sjgCMU6YO9TMawM16X4z9Bs5Y+zDR2YAMsxVblCVAA+bCOdG3aBP8YF yzazeCiEOTFVfr2C9Wu/D/mCwzyG1BsgOPlCPFJiecwvsF8NcFuKP8GX+C7vDUOodZw1 rXH5wacea06HjYRQ9cTAtooD60URuqelnDpaYuc8f4l1d36jR/5ekRe3rNgr36wMaPAw Lu4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c+MzaLju; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c20-20020aa7d614000000b005021f0d5765si7228004edr.684.2023.04.02.23.41.54; Sun, 02 Apr 2023 23:42:18 -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=@kernel.org header.s=k20201202 header.b=c+MzaLju; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231502AbjDCGfD (ORCPT + 99 others); Mon, 3 Apr 2023 02:35:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229670AbjDCGfC (ORCPT ); Mon, 3 Apr 2023 02:35:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B3BD65BC; Sun, 2 Apr 2023 23:34:58 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D0EE4614E2; Mon, 3 Apr 2023 06:34:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54299C433EF; Mon, 3 Apr 2023 06:34:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680503697; bh=wzluEvR07/Iehrheek73HbOQNPlcwZDSwVVMhYpLF/s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=c+MzaLjuuylILtjgw54TNYfLhl5hpYOjQUiwdSE3anYeloxGna46S5TtmcRBpu12+ qxlU3s/6y/Hx/TqGBrGHafn3P0J7fev2i7kHsxCfBoOKClAO8259xknPzkZnKW6vXC Jd4wIPzbtuL8bbRWuukNnsSLy73C8DcuL4vYDGCj1m2WEUOZaElpaPS3U2MWBbSqKj 5k9xuOujB5jYyI73LHF/CC6GcTO6w0t3PFuuhmUywRY1gX+bccudEn09QYd9GkDaYm sOUY0L9G89XWvH9dbCt9R0mZjzyZN2d6rGz72fPCVWB6uDzJ85vlCQoDZovTddqwcI VOboOEm215leA== Date: Mon, 3 Apr 2023 12:04:52 +0530 From: Vinod Koul To: Changhuang Liang Cc: Conor Dooley , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel , Jack Zhu , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v2 2/3] phy: starfive: Add mipi dphy rx support Message-ID: References: <20230223015952.201841-1-changhuang.liang@starfivetech.com> <20230223015952.201841-3-changhuang.liang@starfivetech.com> <2aa1bdbd-e37e-941a-9422-0908545c14f7@starfivetech.com> <0dd5e35b-512e-41ed-af33-f94b7e2868c1@spud> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 03-04-23, 14:31, Changhuang Liang wrote: > > > On 2023/4/3 14:24, Conor Dooley wrote: > > On Mon, Apr 03, 2023 at 09:39:00AM +0800, Changhuang Liang wrote: > >> On 2023/3/31 21:52, Vinod Koul wrote: > >>> On 21-03-23, 14:08, Changhuang Liang wrote: > >>>> On 2023/3/20 20:37, Vinod Koul wrote: > >>>>> On 22-02-23, 17:59, Changhuang Liang wrote: > >>>>>> +static int stf_dphy_configure(struct phy *phy, union phy_configure_opts *opts) > >>>>>> +{ > >>>>>> + struct stf_dphy *dphy = phy_get_drvdata(phy); > >>>>>> + int map[6] = {4, 0, 1, 2, 3, 5}; > >>>>> > >>>>> what does this mean? > >>>> > >>>> This is the physical lane and logical lane mapping table, should I add a note for it? > >>> > >>> Yes please. Also will the mapping be always static or ever change? > >>> > >> > >> The mapping is always static on the visionfive2 single board computer. > >> Thanks for your comments. > > > > What about other boards featuring a JH7110? > > maybe add this mapping in the device tree, we just need to parse the device tree is better. If the mapping is hw description then yes it makes sense -- ~Vinod