Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp3408308rwl; Tue, 27 Dec 2022 08:41:30 -0800 (PST) X-Google-Smtp-Source: AMrXdXstxa78mrWhErQbmf0J9BGZSPERspYzQrehOy35NItoGVv+jl8HOf5BUQpMfumu90ozPfib X-Received: by 2002:a05:6402:1609:b0:467:7775:ba8 with SMTP id f9-20020a056402160900b0046777750ba8mr19818015edv.1.1672159290311; Tue, 27 Dec 2022 08:41:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672159290; cv=none; d=google.com; s=arc-20160816; b=EujjxYjfbGJdL8zL3QYWE1aWcyfFEnLjkdNPsWuxcKNrrK/iZvK/aPlA25Vwaz1eUN Ryxg1mCaVTNlljjs5CBP5nHV22PLxNF8XkHdXEuNh15M8pcNjgH0qMYeRo6JSTiAUnnN yhDSRzd7yLfOJdiB6pEvnTFLX+2g++oY1eEewVB8Z2IQbJmZ67aF6ZFbVN8AbyPklL7t 8ra4/omE0lxSMpirqd26L2sQDyj3ksX/7ZL8FrLb45BiDQR5c+HulKELtSmrM49Ny7ge 9zEey458qSS+43x+HiP7eqyBTZSf5imNlUp45NwCCRgY4ZxjsLu1NSmyD17StlIIm9/O vJXQ== 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=pmYDJmfBfyMdMJDB8+Qk8MygIzS1Ltla+KMCs1qYGEE=; b=vqsRU+/jzUvxANobD6YRdWqY7vvQ9Gh/l0mfWhbLeA0wWenOKn09voCVjcOw0LMOuq Fn56HfLSvtow0rOHuq//3sM1sn1qA8cnJ7ox0cuMV7MpGqx2c/paNY3/52gp/WmOhcDa hIrJVq1EZvsTe44IH+RRKxA5Rxz3XWeEAvCLocEYlNa/J/gu8qp33BjZxbWrKM0mMpNG +Rt2IzXcndDRzvnvtSVex4vxy4IhPGsgXlDBdD5tsE7VaaSR2fBYWtoESUOz59uy/5HV pWsoycmd+2ELR4LyPTnSamyjQDSXkZYWZwtVy3gD4X8ZKuXZYBz7cETEcsXG+tTNaauy Xk1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ioAXOXnP; 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 j8-20020aa7c0c8000000b0046aa4908162si10426040edp.46.2022.12.27.08.41.14; Tue, 27 Dec 2022 08:41:30 -0800 (PST) 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=ioAXOXnP; 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 S229801AbiL0Qeb (ORCPT + 67 others); Tue, 27 Dec 2022 11:34:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231589AbiL0QeV (ORCPT ); Tue, 27 Dec 2022 11:34:21 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C69E8FCA; Tue, 27 Dec 2022 08:34:19 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id 270BAB80E8C; Tue, 27 Dec 2022 16:34:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D319C433EF; Tue, 27 Dec 2022 16:34:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672158856; bh=L4X2cqJuODaqT66gGdKRMeIV6j3U8LZVs5YsoD0VJqk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ioAXOXnP+kK9D6Ommoy7Z/pjdq6zDaCXFfwCm4Ze6DV0ZDpDW7Uj7xvmgi21nvu+P DoBz4Dk/m4XrulnxHQRaUq5zmt5k2cloWM26BRtmojUJZQMZTS8Ej2LM6jMDEhk96r +FISTO6fU2QNvoOiZtGkG7CWpKgm9H/5tQXLWRoIEuylIQ0pbFAS1yDV+v5+7yBcNM itYR2AbmVUlgNdo131rvH83T0aDLOxq/WzaSM5XW+hUY2Jc0IxhQko3hXhKKDHIS8J qWMKEzDvjEVe4gwt0gJVlV5dPLIi5sUASX3xdEqVOJO/6QIR4G3F4s0PtcstXTERsV TjD61wRlvjIMA== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1pACu8-0003lF-K6; Tue, 27 Dec 2022 17:34:16 +0100 Date: Tue, 27 Dec 2022 17:34:16 +0100 From: Johan Hovold To: Lux Aliaga Cc: Konrad Dybcio , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Iskren Chernev , Adam Skladowski Subject: Re: [PATCH v4 2/4] arm64: dts: qcom: sm6125: Add UFS nodes Message-ID: References: <20221215190404.398788-1-they@mint.lgbt> <20221215190404.398788-2-they@mint.lgbt> <6ddf93eb-aadb-a9b8-d91a-0c56ed54418f@mint.lgbt> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Thu, Dec 22, 2022 at 12:57:09AM -0300, Lux Aliaga wrote: > On 21/12/2022 04:12, Johan Hovold wrote: > > > On Wed, Dec 21, 2022 at 12:34:46AM -0300, Lux Aliaga wrote: > >> On 16/12/2022 08:24, Konrad Dybcio wrote: > >>> On 15.12.2022 20:04, Lux Aliaga wrote: > >>>> Adds a UFS host controller node and its corresponding PHY to > >>>> the sm6125 platform. > >>>> + reg = <0x04807000 0x1c4>; > >>>> + > >>>> + power-domains = <&gcc UFS_PHY_GDSC>; > >>>> + > >>>> + clock-names = "ref", "ref_aux"; > >>>> + clocks = <&gcc GCC_UFS_MEM_CLKREF_CLK>, <&gcc GCC_UFS_PHY_PHY_AUX_CLK>; > >>>> + > >>>> + resets = <&ufs_mem_hc 0>; > >>>> + reset-names = "ufsphy"; > >>>> + > >>>> + #address-cells = <1>; > >>>> + #size-cells = <1>; > >>>> + ranges; > >>>> + > >>>> + status = "disabled"; > >>>> + > >>>> + ufs_mem_phy_lanes: lanes@4807400 { > >>>> + reg = <0x4807400 0x098>, > >>>> + <0x4807600 0x130>, > >>>> + <0x4807c00 0x16c>; > >>>> + #phy-cells = <0>; > >>>> + }; > >>> I believe this is deprecated. See [1]. > >>> [1] https://lore.kernel.org/linux-arm-msm/20221104092045.17410-1-johan+linaro@kernel.org/T/#m988f3fe3d83b76bac247aea2d9dac34f37728d65 > >> I've looked into the documentation and this is only for the sc8280xp. > >> This PHY is defined as it is for the msm8996 and derivatives. > > No, it's not just for sc8280xp. It's intended for all new bindings (i.e. > > do not add more platforms to the msm8996 schema file). > Alright. But this would mean writing a new config for the sm6125 > specifically. If we're changing how the bindings for UFS PHYs work, > wouldn't it make more sense to change the sm6115 config instead, since > they're defined pretty much the same? It can be done that way too, that is, you can add the missing offsets to the sm6115 config and use it for both sm6115 and sm6125 if they are really that closely related. The driver will only parse the old-style bindings (for sm6115) if the PHY node has a child. You still need to add a new compatible for sm6125 to the PHY driver, though, which appears to be missing in this series. Johan