Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4112521rwb; Mon, 31 Jul 2023 01:14:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlGhPXQo8Qs5bVJ6nqMXfP9buMD3jgSaYn4aygNp84vf0GyDWnOT5VJiOj6aitzGuyrrSpmk X-Received: by 2002:a17:90a:3e01:b0:268:37b:a10e with SMTP id j1-20020a17090a3e0100b00268037ba10emr7322401pjc.11.1690791261195; Mon, 31 Jul 2023 01:14:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690791261; cv=none; d=google.com; s=arc-20160816; b=grwmdUv/8SsBNOpE0cLB8zKeKhyeke6zSQsCzFGNlTOWZFZvZZasrt1Ct715EwEnq6 e/e1A65weXqatcklupNG19nenzfDoQv3OlCh+JFex1DhbOy4zEYZvDFnvoxxkvADFLZz rzNf54mLEU/Cx0oKU6h50e9tr+IbqdipMH1zldFtBzdTuHC8hKihbft56eR9SIkFIIAN lZ7ULE6KGo8s8Q6rVHQ9I8mi/PtZdKc4LzKoQrlL4UNY3SRD7eGubwzPdpXkWh2UmbIV weXfnTl8JtotJ3CgxDsxSnBVqzC3hDWveXcSq/xRJ5+6TYCwzTKyPcDsd38RhheB7iNx NXMA== 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=4qUpAieG+xE08h9GZl+Gc2LW4JHHh2vTdj6E2mVehSY=; fh=z5CNJ/CFoXvZl6s0rPj/wsZ+sAQEX8WZOsY1yVja1kQ=; b=f2twX23oDFLcXOMw1yZUgXLPeNAgXUY80/Gyjly9TDmjVp33lr0bseacAbeikgP8F5 2f59usYdyZhOsJG8231HWqt0WRPfCn9IFLBI8mUfLEangoy9TpXjRzKxihL5TcGdphkg /PR5kE92QFQAV2vdV5msl4DGBqV3Vnouw4CVbMqJJOWCs5QEgysNBi0hj/euTuY6UgfX P5Z/X75K2hDIEZUlnEmtMGFP88jv2vw+yiu4PKmgmk0cnvH/WCS1WGdt04J78OnjHsyU T54o1QSTGrRTek/ZOhAT1M/buyTz3A0hKywD8Es1/YLQDlrHZCAPTQMaCeGKGEofg6nt L0RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QZQhRAtB; 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 i14-20020a17090a2a0e00b0026764aac11bsi5656128pjd.29.2023.07.31.01.14.09; Mon, 31 Jul 2023 01:14:21 -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=QZQhRAtB; 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 S229613AbjGaGyg (ORCPT + 99 others); Mon, 31 Jul 2023 02:54:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbjGaGyc (ORCPT ); Mon, 31 Jul 2023 02:54:32 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C519011C for ; Sun, 30 Jul 2023 23:54:29 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-52256241c66so8658306a12.1 for ; Sun, 30 Jul 2023 23:54:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690786468; x=1691391268; 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=4qUpAieG+xE08h9GZl+Gc2LW4JHHh2vTdj6E2mVehSY=; b=QZQhRAtBIIZv+wMv6Lxz/k+jf0zqv0L4vBqgBg37tCl2/VZ2sjNccomO1Bbl3DcCBY 8aTMsta4hgFyt4+y2HEPbVx1/RwJh9suiK4o8EGnaIImBnM0L3hz5FJTMKluDfGrAsfH 5a5/i0Oy8MkSl03+PbLPMXMJqL1dMpKiDj7YtBb+lctxZ+iuWNwp/YbcaV5k70W7QJrL fN9W/W5Ygb/zGvzJ5n0uHRMl/cqeexeZwBHtEOSKuQlE2tFZqQRl4Ogcyhns6/dQHEpl 3gKLQ3AHcA6MAIex5cr6tr5IRJlN+kCeLO7EzTdz0Rhd+dW9CmkCcQPCbWS0wWGpRuFJ DyaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690786468; x=1691391268; 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=4qUpAieG+xE08h9GZl+Gc2LW4JHHh2vTdj6E2mVehSY=; b=g7aQhgUkwEgiBDaBvUdB2vaeGDRA4Ou50apQd2v6/9o32hPd83JFi5kehWsYUHAj+E 0m85GMdA/OLtBEWHh4734rify2XVjXmVStCuPgf9ktGyyR3L+shEqFpqIF54hOaLdAxN ALDEh9qs1HKCNBqbYNtt353gG0i9vAEAxtePsGHKyyWdhuUuUfhCH5wy5QKeGhHwoV5A 49oKV3SkMELP+NPZPGqHaFNJbhD7cekr5YCVcogVJlElXUR+OThRaj/VC1A3IM6ei03v xzJLh+AbANhIepvOqr4JpOiTKK0X+Z0rRNfuKmVIfnwSi4m0QopW7nzivTGIsdZmdcdd JRxA== X-Gm-Message-State: ABy/qLY3cH0PyQL+stxU/b0Im2gfev5HHHpJPyK8LnTn/FLenOQ4EC4f +awgHs6jxlniI7q0oFhOo+AJxQ== X-Received: by 2002:aa7:db52:0:b0:522:abaf:1b0b with SMTP id n18-20020aa7db52000000b00522abaf1b0bmr7501888edt.18.1690786467642; Sun, 30 Jul 2023 23:54:27 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.183]) by smtp.gmail.com with ESMTPSA id e12-20020a50ec8c000000b0051e0eba608bsm4953487edr.19.2023.07.30.23.54.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 30 Jul 2023 23:54:27 -0700 (PDT) Message-ID: <0617841a-5d1f-b703-daa9-fedba148a05d@linaro.org> Date: Mon, 31 Jul 2023 08:54:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.1 Subject: Re: [PATCH v1] arm64: dts: qcom: sc7280: Add PCIe0 node Content-Language: en-US To: Krishna Chaitanya Chundru , manivannan.sadhasivam@linaro.org Cc: helgaas@kernel.org, linux-pci@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, quic_vbadigan@quicinc.com, quic_nitegupt@quicinc.com, quic_skananth@quicinc.com, quic_ramkri@quicinc.com, quic_parass@quicinc.com, "reviewer:ARM/QUALCOMM CHROMEBOOK SUPPORT" , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Dmitry Baryshkov References: <1690540760-20191-1-git-send-email-quic_krichai@quicinc.com> <17c2ba50-3b72-523c-d92b-1ecbf9be7450@linaro.org> <1cfdf3c4-6e4f-e73d-c711-3890ceabb69d@quicinc.com> From: Krzysztof Kozlowski In-Reply-To: <1cfdf3c4-6e4f-e73d-c711-3890ceabb69d@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 31/07/2023 07:29, Krishna Chaitanya Chundru wrote: > > On 7/28/2023 9:27 PM, Krzysztof Kozlowski wrote: >> On 28/07/2023 17:10, Krishna Chaitanya Chundru wrote: >>> On 7/28/2023 5:33 PM, Krzysztof Kozlowski wrote: >>>> On 28/07/2023 12:39, Krishna chaitanya chundru wrote: >>>>> Add PCIe dtsi node for PCIe0 controller on sc7280 platform. >>>>> >>>>> Signed-off-by: Krishna chaitanya chundru >>>> Thank you for your patch. There is something to discuss/improve. >>>> >>>> >>>>> + pcie0_phy: phy@1c06000 { >>>>> + compatible = "qcom,sm8250-qmp-gen3x1-pcie-phy"; >>>>> + reg = <0 0x01c06000 0 0x1c0>; >>>>> + #address-cells = <2>; >>>>> + #size-cells = <2>; >>>>> + ranges; >>>>> + clocks = <&gcc GCC_PCIE_0_AUX_CLK>, >>>>> + <&gcc GCC_PCIE_0_CFG_AHB_CLK>, >>>>> + <&gcc GCC_PCIE_CLKREF_EN>, >>>>> + <&gcc GCC_PCIE0_PHY_RCHNG_CLK>; >>>>> + clock-names = "aux", "cfg_ahb", "ref", "refgen"; >>>>> + >>>>> + resets = <&gcc GCC_PCIE_0_PHY_BCR>; >>>>> + reset-names = "phy"; >>>>> + >>>>> + assigned-clocks = <&gcc GCC_PCIE0_PHY_RCHNG_CLK>; >>>>> + assigned-clock-rates = <100000000>; >>>>> + >>>>> + status = "disabled"; >>>>> + >>>>> + pcie0_lane: phy@1c0e6200 { >>>> Isn't this old-style of bindings? Wasn't there a change? On what tree >>>> did you base it? >> The work was here: >> https://lore.kernel.org/all/20230324022514.1800382-5-dmitry.baryshkov@linaro.org/ >> >> But I don't remember the status. >> >>> Let me rebase and send it again. >> This anyway looks like wrong compatible. You used sm8250. > > The patch was send on latest linux-next only and the above change is not > merged yet. I don't think we will want old DTS syntax... but this actually depends on the status of Dmitry's patchset. > > We are using the same compatible string as sm8250 because the phy is > same both from hardware and software perspective for sm8250. > > that is why we are using the same compatible string. > > Can you let me know if we want create a separate compatible string for > this even though  we are using same phy? https://elixir.bootlin.com/linux/v6.1-rc1/source/Documentation/devicetree/bindings/writing-bindings.rst#42 Best regards, Krzysztof