Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4221456rwr; Mon, 8 May 2023 04:59:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5vRhOBL7nx0Ta8oTPeanJaoEDyNHozLpmvxBP2msK7UxMUO0ghwGvjCGPRgyWLFhIhLh9j X-Received: by 2002:a17:90a:65c6:b0:24e:4b1c:74d2 with SMTP id i6-20020a17090a65c600b0024e4b1c74d2mr10468178pjs.32.1683547152334; Mon, 08 May 2023 04:59:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683547152; cv=none; d=google.com; s=arc-20160816; b=EKJwWzDXDhXYfKQhNjekgEUOago6pT1hM5h35mV0W+X34d6z0Dax+A6Q/+x8z1GrQM qi66IIFJHt7RQsNBJvafNWdfrgRSb+ERSe/6N5iPA1QIQe1kFnMKNP92heXppbzkI/UK xca84n0KOXeoy4Wjk/qKaWzCGmAM7m1F5UUlS1B334CRfK/bYSvwGtfmr5YoyuPeh5U7 wy4hPHZATU4wfKsk4QK0A6rwlEgDNQyJbdNqeJbYleJIjV9uo6BwxpTxV+BKnswkbXIS rJWuSi++x/Qgmrsnvb7nO9Er8Mdj5OoydAuq0iqXQ+d5OBPJHl4vpV2r/XGhsSUlJ+HD uywQ== 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=MexXMEnvHcUnDYaMqmVY/MSHM/LherZWjP+20kmXVqY=; b=DqhxBEknIwBraXOHcnE23eKPhc0DG9OKlxupAxj3NWz7haoZ5yDroeZr5baGjIFWpu AT4SsYwfp8EmS4EE5dI8pBfQy0Du9y7KYcPdd0a3Rqe+uU14IJ9f5MWqevcC2siZ/Ydp UCDDboX8qV9q/boTGQgSStKR6W9+yIJ3a5doNoKM/7W3EVkMAXjp7Zuwe3i2KiGTOmSs 9ZKX2q7EZx4KvIf1es+ZLGRVIljcPoRlL4XeBsTmxwsGYrvXOz8NyBMwwM4HZYFfMJbS HSubgyLheWplf3GFDAGbi7SPbwBvmqwh6oSCG0oIxhDDcvBmEou+gxEpt37Y3TPzlEZy ASWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WCaDKEpW; 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 n127-20020a632785000000b0051b3c11392bsi8732622pgn.783.2023.05.08.04.59.00; Mon, 08 May 2023 04:59:12 -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=WCaDKEpW; 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 S235970AbjEHLkK (ORCPT + 99 others); Mon, 8 May 2023 07:40:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236190AbjEHLjx (ORCPT ); Mon, 8 May 2023 07:39:53 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4D4D411A1 for ; Mon, 8 May 2023 04:39:43 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2ac80ed7f26so47725881fa.1 for ; Mon, 08 May 2023 04:39:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683545982; x=1686137982; 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=MexXMEnvHcUnDYaMqmVY/MSHM/LherZWjP+20kmXVqY=; b=WCaDKEpWxQvYqhKslJuI6E4qcU2uFvPbdI0djxGp1xxik6KdDtp3q/nCsmctEdIW4j vY4QK6uYYiF5F1KhSwXAJklU7araihN5GvHeR+hKFACwW351mpY3IPEGlIXEvc1aqYml Xf/dahyqCmciWP+mgnmI92CcOLnQ80BN/gAMzqMti9qX+qswfnOAaQ20DZ0tZ2xWjSbZ iQM/QCHgaAz3oCANYf2DdpwZmGten6ADoW0ZeIRICeOvwv1042ybx8TIZAwjM8xQBcFx PSkLN66PUh8Z6Xp3v/loqrmTIdSvwxnaMgCHMaoJtiDOkT1YLsj8s8Kg3C9tCt9sy31a 0ZxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683545982; x=1686137982; 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=MexXMEnvHcUnDYaMqmVY/MSHM/LherZWjP+20kmXVqY=; b=H8m0RTpR/ox4rvmn+FOyrkF4kSwvCL5vEJjHek9fguB4Z4jqdvuSNpkevOcAYMWJ0P e2i+aQLdAjVAXIYbUiZOj04Knx1m0kFEk+lzjhhiJbW1BYk9ecUeVRdQvvgN1aWZVHYi CP567YSjS5bav+86AhNQZlNDe8uRnVU4RWLcgtipieVYz35YMQqr0n4mMY7h4X/5WGdl gaI7griVhmxY3aHrXKGPxGBoPdCUae6QGuY7+3/lM1J+yKYyRcKT0WhpagvSdh+byfwD yYApX6YNOuHUE67qdGiWzZnEn5hsYQqxVg/qQhXavKVhy+uhIN8IjYsZVH1oUJKv/+bx K4fg== X-Gm-Message-State: AC+VfDxXAXOkF4ivnTFQny43khKwV4Clg6VswKd1q8qmge2p6bPqILMi GkdmdMyQ9XnpsDGvC2Mk6uBqXA== X-Received: by 2002:a2e:900d:0:b0:2a8:c7f8:58ef with SMTP id h13-20020a2e900d000000b002a8c7f858efmr2638998ljg.22.1683545981956; Mon, 08 May 2023 04:39:41 -0700 (PDT) Received: from ?IPV6:2001:14ba:a0db:1f00::8a5? (dzdqv0yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::8a5]) by smtp.gmail.com with ESMTPSA id o13-20020a2e9b4d000000b002ad92dff470sm377803ljj.134.2023.05.08.04.39.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 May 2023 04:39:41 -0700 (PDT) Message-ID: Date: Mon, 8 May 2023 14:39:40 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH V3 5/6] arm64: dts: qcom: ipq9574: Enable PCIe PHYs and controllers Content-Language: en-GB To: Devi Priya Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, bhelgaas@google.com, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, mani@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-clk@vger.kernel.org, quic_srichara@quicinc.com, quic_sjaganat@quicinc.com, quic_kathirav@quicinc.com, quic_arajkuma@quicinc.com, quic_anusha@quicinc.com, quic_ipkumar@quicinc.com References: <20230421124938.21974-1-quic_devipriy@quicinc.com> <20230421124938.21974-6-quic_devipriy@quicinc.com> <6c962760-d81c-af52-bce2-49090f66f4ee@quicinc.com> From: Dmitry Baryshkov In-Reply-To: <6c962760-d81c-af52-bce2-49090f66f4ee@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.9 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,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/05/2023 13:55, Devi Priya wrote: > > > On 4/22/2023 5:43 AM, Dmitry Baryshkov wrote: >> On Fri, 21 Apr 2023 at 15:51, Devi Priya >> wrote: >>> >>> Enable the PCIe controller and PHY nodes corresponding to >>> RDP 433. >>> >>> Signed-off-by: Devi Priya >>> --- >>>   Changes in V3: >>>          - No change >>> >>>   arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts | 62 +++++++++++++++++++++ >>>   1 file changed, 62 insertions(+) >>> >>> diff --git a/arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts >>> b/arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts >>> index 7be578017bf7..3ae38cf327ea 100644 >>> --- a/arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts >>> +++ b/arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts >>> @@ -8,6 +8,7 @@ >>> >>>   /dts-v1/; >>> >>> +#include >>>   #include "ipq9574.dtsi" >>> >>>   / { >>> @@ -43,6 +44,42 @@ >>>          }; >>>   }; >>> >>> +&pcie1_phy { >>> +       status = "okay"; >>> +}; >>> + >>> +&pcie1 { >>> +       pinctrl-names = "default"; >>> +       pinctrl-0 = <&pcie_1_pin>; >>> + >>> +       perst-gpios = <&tlmm 26 GPIO_ACTIVE_LOW>; >> >> Usually qcom PCIe hosts also define wake-gpios. > In IPQ9574, we do not have hot plug support and host always starts the > enumeration for the device. Hence no wake pin is required. None of the qcom PCIe hosts support hotplug, if I remember correctly. This is not a reason not to describe the hardware. >> >>> +       status = "okay"; >>> +}; >>> + >>> +&pcie2_phy { >>> +       status = "okay"; >>> +}; >>> + >>> +&pcie2 { >>> +       pinctrl-names = "default"; >>> +       pinctrl-0 = <&pcie_2_pin>; >>> + >>> +       perst-gpios = <&tlmm 29 GPIO_ACTIVE_LOW>; >>> +       status = "okay"; >>> +}; >>> + >>> +&pcie3_phy { >>> +       status = "okay"; >>> +}; >>> + >>> +&pcie3 { >>> +       pinctrl-names = "default"; >>> +       pinctrl-0 = <&pcie_3_pin>; >>> + >>> +       perst-gpios = <&tlmm 32 GPIO_ACTIVE_LOW>; >>> +       status = "okay"; >>> +}; >>> + >>>   &sdhc_1 { >>>          pinctrl-0 = <&sdc_default_state>; >>>          pinctrl-names = "default"; >>> @@ -60,6 +97,31 @@ >>>   }; >>> >>>   &tlmm { >>> + >>> +       pcie_1_pin: pcie-1-state { >>> +               pins = "gpio26"; >>> +               function = "gpio"; >>> +               drive-strength = <8>; >>> +               bias-pull-down; >>> +               output-low; >> >> No clkreq and no wake gpios? > We do not use any PCIe low power states and link is always in L0. Again. We = software. Please describe the hardware here. > > Thanks, > Devi Priya >> >>> +       }; >>> + >>> +       pcie_2_pin: pcie-2-state { >>> +               pins = "gpio29"; >>> +               function = "gpio"; >>> +               drive-strength = <8>; >>> +               bias-pull-down; >>> +               output-low; >>> +       }; >>> + >>> +       pcie_3_pin: pcie-3-state { >>> +               pins = "gpio32"; >>> +               function = "gpio"; >>> +               drive-strength = <8>; >>> +               bias-pull-up; >>> +               output-low; >>> +       }; >>> + >>>          sdc_default_state: sdc-default-state { >>>                  clk-pins { >>>                          pins = "gpio5"; >>> -- >>> 2.17.1 >>> >> >> -- With best wishes Dmitry