From patchwork Mon May 3 08:13:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 430603 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp2631861jao; Mon, 3 May 2021 01:13:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwOW4ucD3wB3FlFKYupHnljVKjgYbI7tTPpadeLZMtRKHln3WyYrIihvt1SFXcY8REhxD2 X-Received: by 2002:a62:6d05:0:b029:250:d196:1fc8 with SMTP id i5-20020a626d050000b0290250d1961fc8mr18130067pfc.21.1620029636763; Mon, 03 May 2021 01:13:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620029636; cv=none; d=google.com; s=arc-20160816; b=YHYngf52ebB/jn8P+YzdBqykoiV6FEgDGWvT2o05o9OjFlGwdt4/o88YNdy8suH3WE qxvcdzcu0VlfSYLJ6rOilXCGDYdisMrlcSXftf0ZUjtw6U+L4AJFR6my1UBAC/YyMvJ7 5pGppxzzVjfbIwDJ+qa3sl6EJDKT3C2Hl0MaLG6hMDOA/m2i2SNMHu4myZG98DIqbyaM xW1HH/qNxdyuLjd65J6+jFmft9xzoTGluQqLE1rD2/l0QxdAD2uEoLOY7OFQwZwbqVuJ 8ZUYAalubw2Gz7DeIajlliRRd16Sndj5PBNB/qhOHY7LBQRI2uFfdf7xmPp+oT+ClH1W 2CQg== 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=955BiMpV3PxxTlbeWzeYLgt/LzlJsdPGuHod6o4UA4E=; b=pfQ8TRGAVPQXnDZGGrSgSa8izDdQKdyBAAVeVMAKSVWApiQ3RRr8RYwlI/lkC9uQGy pbvYVPXXDdfaRzl/RH5foaCN630SfT7xY7eiwncuA7svfsuXu74YBfn1vgH4b4AVyxqp D2XppKJk4NeBez9sAhQ0n35q7xic3OJrU/S7CQWAmQx4M9VuBzMOWgdOwhOCaoPumLcA k3b8EG0z6SdpsbCTreguE15z64TeGKgt8tPBFx2nqrNxUVl/JZpBOMF3QmF0v87N+4qA TKoZsah34y7VI9JjI5D93UiMFzyOsrR6GVyoW4G+570BS1Wy1o0RP67KZZXgYJEQcOaH cM2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X97vfRTM; 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 z9si14725734pga.413.2021.05.03.01.13.56; Mon, 03 May 2021 01:13:56 -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=X97vfRTM; 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 S232988AbhECIOp (ORCPT + 17 others); Mon, 3 May 2021 04:14:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233000AbhECIOm (ORCPT ); Mon, 3 May 2021 04:14:42 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FB87C06138D for ; Mon, 3 May 2021 01:13:49 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id p17so2377381plf.12 for ; Mon, 03 May 2021 01:13:49 -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=955BiMpV3PxxTlbeWzeYLgt/LzlJsdPGuHod6o4UA4E=; b=X97vfRTMZSRPBomlNkjB6efr8TTBpOaW7naOI2DtIlaReTurqYZAocxryK+VOyENWm WokG7Hh6F3+Q3L9dUHZbfIu0Xs30IPWFbVuKgUCLJaRhLFAb6p0+Eaintyl/gaCgL1il 43rCzqHquXIYf1CAvdy8niOMiQXKKMIKB0OH2tq4967WkTtB5HArAZC4tbFB38p0tiCc +pZHj1tVB5h7nifN8gQJj74NVEAdXXI77kPDtb08qhSd4aWQKvpEhvB0NPYuYfj+5I06 r3lbaYaVIbHcqLVMryj116lYEXEcD2OYIPM5AWGsBg9YHdbBBE8d3ayVwWym/Mh+nNHJ xmFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=955BiMpV3PxxTlbeWzeYLgt/LzlJsdPGuHod6o4UA4E=; b=t2a+XEtpvexH1V1flGu8sO5Kdp3tu/1SggdCJxqmX9ZmsSw81kjH07j/ijaTInG5HV t2f1WIp0TP3GEkICTH2+I//o9oVDggi2mw/gcVzAlaFFshe6H9BFqLAFRQcGty8iuKmP WNUcyiknE6YzCZNdCgD2aX346bTCn2jLlhhd/NfuMo67in71oNqZhq3BlEwnDP7631j+ +tu6Q6cFqM2GLUxCA5nqc7d/hObSnLnzsj/+U4L4YqT4CVWZcSSrEov0g3ehRrUjHWd0 67oDuKagDh8313m7GgSPpbKnJ24jNEP6jQtd5fEef8YlbJKWwKoY9dVvVjAVMowCpEJ3 jEnw== X-Gm-Message-State: AOAM5321aw+1dy0R6NIJ7FshYWP8/jHf9+o78ixMjKr24+ZJ9mlLiEY6 kdH7o4kI2KSU7FHPNiybBmCFjQ== X-Received: by 2002:a17:90a:8b12:: with SMTP id y18mr391778pjn.153.1620029629129; Mon, 03 May 2021 01:13:49 -0700 (PDT) Received: from localhost.localdomain (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id fa17sm12031939pjb.17.2021.05.03.01.13.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 May 2021 01:13:48 -0700 (PDT) From: Shawn Guo To: Jassi Brar Cc: Rob Herring , Sivaprakash Murugesan , Bjorn Andersson , Benjamin Li , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Shawn Guo Subject: [PATCH v2 2/2] mailbox: qcom: Add MSM8939 APCS support Date: Mon, 3 May 2021 16:13:34 +0800 Message-Id: <20210503081334.17143-3-shawn.guo@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210503081334.17143-1-shawn.guo@linaro.org> References: <20210503081334.17143-1-shawn.guo@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org MSM8939 has 3 APCS instances for Cluster0 (little cores), Cluster1 (big cores) and CCI (Cache Coherent Interconnect). Although only APCS of Cluster0 and Cluster1 have IPC bits, each of 3 APCS has A53PLL clock control bits. That said, we need to register 3 'qcom-apcs-msm8916-clk' devices to instantiate all 3 clocks. Let's use PLATFORM_DEVID_AUTO rather than PLATFORM_DEVID_NONE for platform_device_register_data() call. Otherwise, the second A53PLL clock registration will fail due to duplicate device name. [ 0.519657] sysfs: cannot create duplicate filename '/bus/platform/devices/qcom-apcs-msm8916-clk' ... [ 0.661158] qcom_apcs_ipc b111000.mailbox: failed to register APCS clk Signed-off-by: Shawn Guo Reviewed-by: Bjorn Andersson --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c index f25324d03842..1699ec38bc3b 100644 --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c @@ -132,7 +132,7 @@ static int qcom_apcs_ipc_probe(struct platform_device *pdev) if (apcs_data->clk_name) { apcs->clk = platform_device_register_data(&pdev->dev, apcs_data->clk_name, - PLATFORM_DEVID_NONE, + PLATFORM_DEVID_AUTO, NULL, 0); if (IS_ERR(apcs->clk)) dev_err(&pdev->dev, "failed to register APCS clk\n"); @@ -158,6 +158,7 @@ static const struct of_device_id qcom_apcs_ipc_of_match[] = { { .compatible = "qcom,ipq6018-apcs-apps-global", .data = &ipq6018_apcs_data }, { .compatible = "qcom,ipq8074-apcs-apps-global", .data = &ipq8074_apcs_data }, { .compatible = "qcom,msm8916-apcs-kpss-global", .data = &msm8916_apcs_data }, + { .compatible = "qcom,msm8939-apcs-kpss-global", .data = &msm8916_apcs_data }, { .compatible = "qcom,msm8994-apcs-kpss-global", .data = &msm8994_apcs_data }, { .compatible = "qcom,msm8996-apcs-hmss-global", .data = &msm8996_apcs_data }, { .compatible = "qcom,msm8998-apcs-hmss-global", .data = &msm8998_apcs_data },