From patchwork Wed Sep 29 03:42:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 514818 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp5795431jao; Tue, 28 Sep 2021 20:43:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgLC3Abw9bUnwY73DKfD52yuV6IcO22jSCXeJLbGOl8aE53BzytY8ypj9uYveNqButheCk X-Received: by 2002:a62:5584:0:b0:44b:62ec:1ac1 with SMTP id j126-20020a625584000000b0044b62ec1ac1mr9171054pfb.2.1632887026554; Tue, 28 Sep 2021 20:43:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632887026; cv=none; d=google.com; s=arc-20160816; b=V2Wjx/fPB9aVe3RcXAOEjs8ztPvdTIaPRGF6e6l3GH4/Ft9ZJ9UTFTjXbRRD5mu7hi 0dIubRw5L/F9nDO2JlDyFV3XApmms4ZbwkRSRcbkE9zPJSZ0xeY3aPC2TI0UpqAXj8ZX GpP/1anXCZOw3PkFshDsPza+P9Cd8LRb6UWEF28uPmsE2VvYiJlQwKD9uc7pIGdXwdlG vAhIkunbSldpgEQ6eqxpDw2lkMHm7FkthWpYBYCOH680R3+QyY4229cTfqfPIzO1hjgX wqa/FDUtzZUe7yX49kYhR3/aew+3SgwSdn2Cmqna+lvqkZ16UERz/b3kQFtP7+dQI5xC uWtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=SeF7BJ2kfzyMcFuJy1tahUObN4gbIL9fdiiRuZ+6b4Q=; b=hXEOFWoWpe2BckbmlSMShasQQM5696FeM09Jcp0q+iVb5iWcyc8xKcfXngdUDSFOYX zPsLfPPRQDeEEw7yAh2WTzcW2We6SN2m37ySnxtZ3NXd8MqD1lZ14f4+xjRfUDh46uiC U7uo8n4sZDCIotH5NvahuCpERwcI+MqsKNfFRPQdNehGNW7Dn29aC+KvfKzdXdk7vIaK 1Rw+TpB/opxON//45Tw63l3HvGVBWEwlB/Sq/mMhKXTGYPGb9CscLXzfExb0TDZqK8qP 4KKFUP3Yc5nhdzx4gegVtBlG2JGT0MAKomqgLKSgMeTBwoQrkdr86bx5b6sOO6vUVnuL lX1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="KXCAU/zW"; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x22si1309826pgj.320.2021.09.28.20.43.46; Tue, 28 Sep 2021 20:43:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="KXCAU/zW"; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S244104AbhI2DpZ (ORCPT + 17 others); Tue, 28 Sep 2021 23:45:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244108AbhI2DpK (ORCPT ); Tue, 28 Sep 2021 23:45:10 -0400 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1359FC061746 for ; Tue, 28 Sep 2021 20:43:25 -0700 (PDT) Received: by mail-pg1-x52f.google.com with SMTP id g184so1305988pgc.6 for ; Tue, 28 Sep 2021 20:43:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=SeF7BJ2kfzyMcFuJy1tahUObN4gbIL9fdiiRuZ+6b4Q=; b=KXCAU/zWygeg41b6v3T3RvyoXb/WdEEljCV5CbARJ2D7cw9O+w7WW0z62DxMUCzXtP 4t1mJsjn3egUwmYDY2tvBLoj6IqGmO2oymTziz3rRFVcj0aVHuQu8mQqbkCt6Dq5wlAa AqUeJhnG/WF4gwffJJNCA/Zx1brVmmxVIawDsRKReuZJ3xU2wvsi7+AzY2+lszjeZMkZ kY7L9eq9affhWG4YNMySMO7quGi0dX8RBLDcIbPDeyaD8bCbMX3VAL0nEUaImVn/Gzkk DuCywCtZsamCNo7IZBDO/bLAyt+UL1aZo64SN6R+Rmxooe0zxO/h2Oauw8LdMZw5Jvmg +DAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=SeF7BJ2kfzyMcFuJy1tahUObN4gbIL9fdiiRuZ+6b4Q=; b=3dO5j6pP1mbdZZKClgIOajry7MIHerNYNVxi6upbLpe04xqYiieSxH32SVjHqfj6rA hubOmw3uknnEttCa8k5Ifm8j7WiCcQSsGgyyjhtL0/FZIw0HEU1dYBpxFzp6ZmJnKr20 1DGpPyifo6rXlsTSSnDXt6AsdZbhmYk+aam2ovHlGfH89ZiE6oy3ZErf0jBxusTSIXEk wC6bynLjG5K87yd6/KHIhK5pr0wmfcCFcM3YXp8sumb2ezkHx00cQvWP0n39Ywg6zmgc 4kUN9vqxBchAp0sFtCBwO3oMwbQvP44yhtSGScfRt9+0kNBPQRScC2MCSlNMoJY+GYhZ looQ== X-Gm-Message-State: AOAM533yHeUr1gpXufpT8MK3KKIo+AwaxjzX1qJ+iXPtRQ3bFKYS1EJb qcy3B8LppnRN8s+KqUCUgEmzLUlnLVTBbw== X-Received: by 2002:a63:d30e:: with SMTP id b14mr7673299pgg.454.1632887004679; Tue, 28 Sep 2021 20:43:24 -0700 (PDT) Received: from localhost.localdomain (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id b7sm533032pfb.20.2021.09.28.20.43.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Sep 2021 20:43:24 -0700 (PDT) From: Shawn Guo To: Vinod Koul , Rob Herring Cc: Bjorn Andersson , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Shawn Guo Subject: [PATCH 08/10] arm64: dts: qcom: Fix IPQ8074 PCIe PHY nodes Date: Wed, 29 Sep 2021 11:42:51 +0800 Message-Id: <20210929034253.24570-9-shawn.guo@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210929034253.24570-1-shawn.guo@linaro.org> References: <20210929034253.24570-1-shawn.guo@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org IPQ8074 PCIe PHY nodes are broken in the many ways: - '#address-cells', '#size-cells' and 'ranges' are missing. - Child phy/lane node is missing, and the child properties like '#phy-cells' and 'clocks' are mistakenly put into parent node. - The clocks properties for parent node are missing. Fix them to get the nodes comply with the bindings schema. Signed-off-by: Shawn Guo --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 46 +++++++++++++++++++++------ 1 file changed, 36 insertions(+), 10 deletions(-) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi index 2e4e1399e276..dfdd3e4a4087 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi @@ -174,34 +174,60 @@ status = "disabled"; }; - pcie_phy0: phy@86000 { + pcie_qmp0: phy@86000 { compatible = "qcom,ipq8074-qmp-pcie-phy"; reg = <0x00086000 0x1000>; - #phy-cells = <0>; - clocks = <&gcc GCC_PCIE0_PIPE_CLK>; - clock-names = "pipe_clk"; - clock-output-names = "pcie20_phy0_pipe_clk"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + clocks = <&gcc GCC_PCIE0_AUX_CLK>, + <&gcc GCC_PCIE0_AHB_CLK>; + clock-names = "aux", "cfg_ahb"; resets = <&gcc GCC_PCIE0_PHY_BCR>, <&gcc GCC_PCIE0PHY_PHY_BCR>; reset-names = "phy", "common"; status = "disabled"; + + pcie_phy0: phy@86200 { + reg = <0x86200 0x16c>, + <0x86400 0x200>, + <0x86800 0x4f4>; + #phy-cells = <0>; + #clock-cells = <0>; + clocks = <&gcc GCC_PCIE0_PIPE_CLK>; + clock-names = "pipe0"; + clock-output-names = "pcie_0_pipe_clk"; + }; }; - pcie_phy1: phy@8e000 { + pcie_qmp1: phy@8e000 { compatible = "qcom,ipq8074-qmp-pcie-phy"; reg = <0x0008e000 0x1000>; - #phy-cells = <0>; - clocks = <&gcc GCC_PCIE1_PIPE_CLK>; - clock-names = "pipe_clk"; - clock-output-names = "pcie20_phy1_pipe_clk"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + clocks = <&gcc GCC_PCIE1_AUX_CLK>, + <&gcc GCC_PCIE1_AHB_CLK>; + clock-names = "aux", "cfg_ahb"; resets = <&gcc GCC_PCIE1_PHY_BCR>, <&gcc GCC_PCIE1PHY_PHY_BCR>; reset-names = "phy", "common"; status = "disabled"; + + pcie_phy1: phy@8e200 { + reg = <0x8e200 0x16c>, + <0x8e400 0x200>, + <0x8e800 0x4f4>; + #phy-cells = <0>; + #clock-cells = <0>; + clocks = <&gcc GCC_PCIE1_PIPE_CLK>; + clock-names = "pipe0"; + clock-output-names = "pcie_1_pipe_clk"; + }; }; prng: rng@e3000 {