From patchwork Mon May 3 08:13:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 430602 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp2631818jao; Mon, 3 May 2021 01:13:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOlmwfV0pkxyHrAjuWO373mHr4cIBj7GE4W5wOnI5l5HXzMMh5SjFRlqLyh+t2lhTa/W36 X-Received: by 2002:a63:1e4d:: with SMTP id p13mr17358295pgm.238.1620029632136; Mon, 03 May 2021 01:13:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620029632; cv=none; d=google.com; s=arc-20160816; b=ak0bE2j1FKf3+h0tlLkPnZCZDZ4QC3hoAUhIoKOY+cgPJ4o5s3sbcU4A8R/RM+Legc 6dyzNJrgh69lppu6mrMX6rqpX4l0yT9B1jfQUieMAQ2wkjgZm8krwE/2zz/IqQAFYyZk VWQNGYoWLqWaBch7v0cizplUrqQ/1n/hcT75B9tKEfoAJQ2ZqvSb+xYLVt/hkJIe5BjF kmCXgMenZj25o69YgrueCMdSdH9lSrpmN/UQRCLqIb3bzjKSFVNku5mBRtLAN5ZnYGRP UDWbO/n4Z8WXLoanzdVEAcLasnDQcD88K1ICTirYLVxsp6BOabQGFXCQtksUkUN34618 yRKw== 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=pkyuZ9w9SVl5FNnTg3eNaI04ikRI6sqPwMnFjLPyWLQ=; b=fDUw1foUYUnrSuqgy0o5rCfXQevYYuI0oPmvbcnojlOZuu/uIuvwhmK1GXfwx3PCu1 iNVNuwUDy8NlrxDHYYqhL9V52gUDInOawhVlyi416P5rtGcSfgDPnjrXpXFu4Dc8aU4X yZU1YkI+cWoBxEDH8YumyWgFIngaf1g73c808XdxpvQzaDa5gpKRCAtoNbahki0lJ+tS rLrhxJnUiM2+qWaaIz/GS+jUv+kLfSFv5DqwJ6CGzI8EcZ0Af3Ew6Wl+6Ix9OcZB9xaf CGf+m+GYiJi4dOyKqUAdRpa3WBJp0fjAg7fk2Z5Au6YfOpZLBn4QO8vGnCeQHwdF1c3n +fMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fp4ehAXb; 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 x6si14745828pjj.71.2021.05.03.01.13.51; Mon, 03 May 2021 01:13:52 -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=fp4ehAXb; 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 S232929AbhECIOj (ORCPT + 17 others); Mon, 3 May 2021 04:14:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229817AbhECIOj (ORCPT ); Mon, 3 May 2021 04:14:39 -0400 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7400BC06174A for ; Mon, 3 May 2021 01:13:46 -0700 (PDT) Received: by mail-pg1-x530.google.com with SMTP id y32so3089701pga.11 for ; Mon, 03 May 2021 01:13:46 -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=pkyuZ9w9SVl5FNnTg3eNaI04ikRI6sqPwMnFjLPyWLQ=; b=fp4ehAXbPy0P6QBADkWiA21e0FoLHzCjhS54WtU2bE8qN93Dbn51PdbbNhzAJLVGAZ vvLV0u6j38q1fycArjrR0+SLk8lJGofW9ZT5vJheOSj/cFhv1Cktop3M97XaOgKDqkql E9p1Rrfj7cDKhPD2m5s+qajfu8rte0woyJ+jzXCVH6GsOaHFO9va6HENeibL6+apYutP GQxfBoDADxGD/X64cOTXZNgaEHQZmQFF0znz0Sq+i+aM5aH3emKpOi74A/XH9EwVtypm QcZ404dfi1KkxYUEkt+16yOQdZgOh5vAyfFXlcCUBQkPCA0Wb/eUFD0XjOJK5apppJVu BFdw== 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=pkyuZ9w9SVl5FNnTg3eNaI04ikRI6sqPwMnFjLPyWLQ=; b=egxEmPMYfR4yErKKxQ/TbmEkJmMi6FEIpEZSdj1pqqlFfDFNzuzUEJsflRNbKR90/q knYSwvPMaBy+PizMYpO3EEo5oZTBLcLnW6TsvCJDJZfqhDkg80zXWVNcSrEJMDreyLBX G2O+gADUQmX2Dvw2cL1o/wzHjrnMkY4ywIv4P8N8HxpNTROItn/aOuAD3xVF1uFtVLxg Mw5SQG96YUmMGykJRgvzS6W3LbbORLMw8D+KTW8Iyep/tmjP2Bf03X2gTCc0FS5wmKmd qaVZpm0N5YoOXMFPP1TtkP+wJzSNbTKrisMUPtcYG1gxhWOnv4GcA/G3+NT8pPWw/3V3 M7zQ== X-Gm-Message-State: AOAM530QSO8aIE4XoUJWGTKtgSiCjZ4wlVefOD8ac2G5nbYREH6yzs+a KZBRttRrp3HaLYmndRTzr3RerQ== X-Received: by 2002:a63:2c92:: with SMTP id s140mr17466249pgs.39.1620029626072; Mon, 03 May 2021 01:13:46 -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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 May 2021 01:13:45 -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 1/2] dt-bindings: mailbox: qcom: Add MSM8939 APCS compatible Date: Mon, 3 May 2021 16:13:33 +0800 Message-Id: <20210503081334.17143-2-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 Add compatible for the Qualcomm MSM8939 APCS block to the Qualcomm APCS bindings. Signed-off-by: Shawn Guo --- .../devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 Acked-by: Rob Herring diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml index 5dc1173d03fd..96b29aa6c338 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -19,6 +19,7 @@ properties: - qcom,ipq6018-apcs-apps-global - qcom,ipq8074-apcs-apps-global - qcom,msm8916-apcs-kpss-global + - qcom,msm8939-apcs-kpss-global - qcom,msm8994-apcs-kpss-global - qcom,msm8996-apcs-hmss-global - qcom,msm8998-apcs-hmss-global 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 },