From patchwork Fri Feb 24 10:59:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 61273 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp839906wrd; Fri, 24 Feb 2023 03:07:05 -0800 (PST) X-Google-Smtp-Source: AK7set+kor0uUkWs7AcoaX0yfV37zgCIR2gEB6JplHVWm0VGz2fhdPn/EBYyoYkUgMpHqo7YdgLm X-Received: by 2002:a17:906:4784:b0:8f1:da18:c6ca with SMTP id cw4-20020a170906478400b008f1da18c6camr4945168ejc.3.1677236825482; Fri, 24 Feb 2023 03:07:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677236825; cv=none; d=google.com; s=arc-20160816; b=Ip3Q5RV+MzB6hOPZBheArsdANZO64ZifA0aGUaWhnjfT4x9q2mClEqEcl5PkJLhM68 hhOjPA0t460FyEvSexMkqZO1e0JdyZ6PiVr65OdYdSs3VcxD8H7faZk5qRhMYCQoJXb6 TU5KxeLt+ySP9tgxs4tKzZ2TalK2XHksscrRV8umi/V+ZTDuRbkYpbigPMxzt2G9PIbK 4AxPJuOyWjf+eOQnd9/lIYoB1De3ZwXEXVYmp7dQBAA32LufYOu0KSd+XR/JG3yBp9XV io54+u75SAfW9BwoPbSatV5onN6CzsWEBUuO8pPDMwmr3VT6pmArnDu8k5tn6vZV3BGr SCpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GDe2OfCLNRaJ6CRURKr3KlmzCsataxU7y19XTJRsk+A=; b=Qskp7QUyy+Y017hVejfLAH66Dw1F0+kmsBodIMOh2L01wRmWF+ID6v1Oop/C2az6L6 NKABZeh8WhRkNX7R9pSxirkJxgKZ9X2lpaM47aIHraaJO9e234OYZgAZAmYfZoEM9HIb NZSFsemnbjb5gkEqqaDbjo1Icru+18Z+5kLwIeqGvlKD5V+YZjYlEUpZsC0mnxfl4o3i 29MJ3o1JWbr3tA7gmKbpcc1eoyss8/PJeBZAAuOU4v6iXlP2UxWHQSna6VMbrkjPXAOQ jz94EQi+jDotO7m+DI/Fng2gSjnYbY1HWhlHgTpFe/WXJMDZAOszGaDp2jmU03AkexVN EF0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fAJqvN5f; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n15-20020a056402514f00b004acb81aae7dsi4595190edd.186.2023.02.24.03.06.24; Fri, 24 Feb 2023 03:07:05 -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=@linaro.org header.s=google header.b=fAJqvN5f; 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 S230338AbjBXLCE (ORCPT + 99 others); Fri, 24 Feb 2023 06:02:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229874AbjBXLAt (ORCPT ); Fri, 24 Feb 2023 06:00:49 -0500 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFC2B6357A for ; Fri, 24 Feb 2023 03:00:16 -0800 (PST) Received: by mail-pl1-x630.google.com with SMTP id ko13so16991795plb.13 for ; Fri, 24 Feb 2023 03:00:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GDe2OfCLNRaJ6CRURKr3KlmzCsataxU7y19XTJRsk+A=; b=fAJqvN5f5O1suKMbMKyZTKUOuQWDy9CpZJalOaBD5HtdbClkBc2Y3mQktVEXsKIkyM jqwulwTPo0TCvEOim7vshccXaA0Rf0Y9DXxoEyVsK6j4qZBAOBZHZiAZh0/FPdl8b/6t 99/G0hP6iYZ4siN6USBnUOzHhXy1eq6v4rBhHz+L1jWHVYaknjNut3fHZGmnF4uuf8bR wpflaqZ3v5/cyV78xkdj4tw+GViopd/zJBAxU8ZdPbKO62vSoEb1Mc10BxaZZnmVKbUe 7pNqc3ZJQdBJVjmXt29Ew9KoAUfYslHbLyuSOn82oi52m3xc0zy0oxh6RKvsx+uXM0Us l8lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GDe2OfCLNRaJ6CRURKr3KlmzCsataxU7y19XTJRsk+A=; b=PLLaoWL+7FvzSoV1CnYJx+haolMGyyBQzjdIfwJz2+4mH0S9BLW6g9n26M/A6RtFzA Fu48fcMti2w0etEOe+pB5RKth8I1oCxYxR9rhOkvfnwaZDe6+wxLD/1wG7BoV/qBmmEH S15oLb6wVXHyMORI5xx0TWCkLUhEypByK9hG+hM+5fT1l4nEDQPIMNd0MgMt7K2j12cx zSvHox8wvK8tFjrMDRivnfcUbMEZp/SzaH5OyAHm/DyjmprWLnIb5xNuIe2+P0eErnyx HU0pmMz31L8y3uxOdcOQk5pO1HRjCCT6NrGYLRAqHDrR5hfLZDj4ShddKS4F1frUrhil ZbaQ== X-Gm-Message-State: AO0yUKVbDq3+3iFrJEl7leSyN7wok9N09NPrXJlymssJLEJ61KL+Zn67 CRX5qE6VsHp9s0TrdffLtnVJ X-Received: by 2002:a17:90b:4a4d:b0:231:284:ea4d with SMTP id lb13-20020a17090b4a4d00b002310284ea4dmr17736121pjb.22.1677236416420; Fri, 24 Feb 2023 03:00:16 -0800 (PST) Received: from localhost.localdomain ([117.217.187.3]) by smtp.gmail.com with ESMTPSA id gd5-20020a17090b0fc500b00233cde36909sm1263853pjb.21.2023.02.24.03.00.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Feb 2023 03:00:16 -0800 (PST) From: Manivannan Sadhasivam To: andersson@kernel.org, lpieralisi@kernel.org, robh@kernel.org, kw@linux.com, krzysztof.kozlowski+dt@linaro.org, vkoul@kernel.org Cc: konrad.dybcio@linaro.org, bhelgaas@google.com, kishon@kernel.org, linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, Manivannan Sadhasivam Subject: [PATCH v2 13/13] PCI: qcom: Add support for SDX55 SoC Date: Fri, 24 Feb 2023 16:29:06 +0530 Message-Id: <20230224105906.16540-14-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230224105906.16540-1-manivannan.sadhasivam@linaro.org> References: <20230224105906.16540-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758710281230750068?= X-GMAIL-MSGID: =?utf-8?q?1758710281230750068?= Add support for SDX55 SoC reusing the 1.9.0 config. The PCIe controller is of version 1.10.0 but it is compatible with the 1.9.0 config. This SoC also requires "sleep" clock which is added as an optional clock in the driver, since it is not required on other SoCs. Signed-off-by: Manivannan Sadhasivam --- drivers/pci/controller/dwc/pcie-qcom.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c index 77e5dc7b88ad..659df73114dd 100644 --- a/drivers/pci/controller/dwc/pcie-qcom.c +++ b/drivers/pci/controller/dwc/pcie-qcom.c @@ -182,7 +182,7 @@ struct qcom_pcie_resources_2_3_3 { /* 6 clocks typically, 7 for sm8250 */ struct qcom_pcie_resources_2_7_0 { - struct clk_bulk_data clks[12]; + struct clk_bulk_data clks[13]; int num_clks; struct regulator_bulk_data supplies[2]; struct reset_control *pci_reset; @@ -1208,6 +1208,7 @@ static int qcom_pcie_get_resources_2_7_0(struct qcom_pcie *pcie) res->clks[idx++].id = "noc_aggr_4"; res->clks[idx++].id = "noc_aggr_south_sf"; res->clks[idx++].id = "cnoc_qx"; + res->clks[idx++].id = "sleep"; num_opt_clks = idx - num_clks; res->num_clks = idx; @@ -1824,6 +1825,7 @@ static const struct of_device_id qcom_pcie_match[] = { { .compatible = "qcom,pcie-sc8180x", .data = &cfg_1_9_0 }, { .compatible = "qcom,pcie-sc8280xp", .data = &cfg_1_9_0 }, { .compatible = "qcom,pcie-sdm845", .data = &cfg_2_7_0 }, + { .compatible = "qcom,pcie-sdx55", .data = &cfg_1_9_0 }, { .compatible = "qcom,pcie-sm8150", .data = &cfg_1_9_0 }, { .compatible = "qcom,pcie-sm8250", .data = &cfg_1_9_0 }, { .compatible = "qcom,pcie-sm8450-pcie0", .data = &cfg_1_9_0 },