From patchwork Mon Aug 26 16:46:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 172179 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4598378ily; Mon, 26 Aug 2019 09:46:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUyVTQwO1nw4Q2zYTxsO3n7n7SHzO8Ccod5hoaPFbbx2Ygz8KOTzL3JeWGOz7M6g0gSnCu X-Received: by 2002:a17:902:8302:: with SMTP id bd2mr19234109plb.9.1566837993157; Mon, 26 Aug 2019 09:46:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566837993; cv=none; d=google.com; s=arc-20160816; b=PIt92q6hFB0npPRwSVeU51vPQxHxfZMGNUwVe9JkK8NdXrZXHVYCVLtNbRVOjMCm8/ btTF/MrIjl50cheerYyXtA29nqj+bsiz/9ThndTLRRqDgK7Z6dAJRkIVsUfJbGBldVZU 4LwAGbFBKQzgZOMOs/mzMvv92vochtoAq31CFj6n02yxzmujJnPXuS+vCle5P8+3Pp5C EZjC+hJX3NHmKOir3krEktELj/Zkld0xagbRKakUjloopQgJya4cxxVlfmWNCFTtDDEN 796Mxh398lz9DD21CIZtC2zUnxBYljECrA+55hEy8q5JRRyoQkhk+D3y5l2qB8PDlL0h 8ebw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=nxlnCpV0F3leEABjK0OQeWrArZ1TknDUFhS5oY3oysQ=; b=OFUQPYowbzAmNUJh9f96eokoyX4jHwGEsRcZWAgDNzZsQLEnqsnTdGdMc0HTvYhvnT oS8M5Mcwo1Bm6WAd4oCkzhZhp9I6sEfNrwuty2YDo7Bj+Zw2/BcbdQNtDIDmFx1EQA9v F4GeDyCL8coUjewisQ2jw680m5HcRY2tDNHjZZTUGejW2jYFw0gW8qMASKxdVaWBUeWJ N6ojZR6z/QpUIpAphaWS/5LlhDjyHk7+QWIqYVwWLDmnemUjviHDcnuxJuMjh6Ozjt5n 9zIHjQoks6KNtdI2Wj8XctXnuNbmHZCrtghPr0muHvlOz8I8feOqkmQurE41/32OZa5B 3Ncw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ypAJGo6U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i185si9552297pge.505.2019.08.26.09.46.32; Mon, 26 Aug 2019 09:46:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ypAJGo6U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1733137AbfHZQqb (ORCPT + 28 others); Mon, 26 Aug 2019 12:46:31 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:54146 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733117AbfHZQqa (ORCPT ); Mon, 26 Aug 2019 12:46:30 -0400 Received: by mail-wm1-f66.google.com with SMTP id 10so185328wmp.3 for ; Mon, 26 Aug 2019 09:46:29 -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:mime-version :content-transfer-encoding; bh=nxlnCpV0F3leEABjK0OQeWrArZ1TknDUFhS5oY3oysQ=; b=ypAJGo6UVHfJ06Xwq5kT1osFoV8ZYZmE4VagpaqE0RpfwOMuDd8qlhhh1LqhU7iJB+ VlxEoNhknxCqoIEzKwN9znYkjJPGfFPtRX4D1uG8tXYNuww+6lklkMrZ3sHqQ7zN3Pt4 58T/les7f+TvdL1RVndGesaZAcrqQ4IFO/B9/91iD1aw8ElnTEubFLyCFrfitKrPYHQM WyU6GtPqwEv33cwSZSkd1fm4hlJ8sxMEQznhoKpbX4kyggcwwdRyTjihQGKP4In0gBP1 CGUa7O/ayA7ZCmZ/nnENtjuJtUpfPWLcbxBpJz271uR8xDitGOHpkYfCJFIcF+n1eyw9 aS8A== 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:mime-version :content-transfer-encoding; bh=nxlnCpV0F3leEABjK0OQeWrArZ1TknDUFhS5oY3oysQ=; b=myv2qz6Kd1aDIh0UffVfD0Mk7IDrdK04tGK41zm7qQlQZe0SF1Erqcbmi2TA8xENOt bSsacU9sRUqvPyKA0U7cPa5IPZUgIxrZNwUHpN73EiSOQ+E9EazaA/aYzyaEOXR3I6Ec T6a6YN037HgU3CYC/X22yl0QQHs2B9kK9rFETFyykWLJEP9VuZVy9ThOZHQvPuzed4uz +XkM229G0h93c9PRB6pHoREJGu6ynJ9lD4b9dn0SqG1GEHbgP9frm+OrtpIZN6bVG7BH B2sNA1BmuQVpgw4nsP52p78T8hQUpWy3b6jf+dMxF6JLvaKSmCNfG/hAAeVh64JuJIIB JeXw== X-Gm-Message-State: APjAAAW5mQldiLtI8hX8VarK3eQodR2FhopahAr+34XARe4ulRKet/q9 X9UGGRCZF2r5MpwLjjXquVfHzg== X-Received: by 2002:a7b:c21a:: with SMTP id x26mr20825779wmi.61.1566837989018; Mon, 26 Aug 2019 09:46:29 -0700 (PDT) Received: from localhost.localdomain (124.red-83-36-179.dynamicip.rima-tde.net. [83.36.179.124]) by smtp.gmail.com with ESMTPSA id 5sm18768wmg.42.2019.08.26.09.46.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Aug 2019 09:46:28 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, jassisinghbrar@gmail.com, agross@kernel.org Cc: niklas.cassel@linaro.org, bjorn.andersson@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] mbox: qcom: add APCS child device for QCS404 Date: Mon, 26 Aug 2019 18:46:24 +0200 Message-Id: <20190826164625.6744-1-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is clock controller functionality in the APCS hardware block of qcs404 devices similar to msm8916. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Bjorn Andersson --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) -- 2.22.0 diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c index 705e17a5479c..76e1ad433b3f 100644 --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c @@ -89,7 +89,11 @@ static int qcom_apcs_ipc_probe(struct platform_device *pdev) return ret; } - if (of_device_is_compatible(np, "qcom,msm8916-apcs-kpss-global")) { + platform_set_drvdata(pdev, apcs); + + if (of_device_is_compatible(np, "qcom,msm8916-apcs-kpss-global") || + of_device_is_compatible(np, "qcom,qcs404-apcs-apps-global")) { + apcs->clk = platform_device_register_data(&pdev->dev, "qcom-apcs-msm8916-clk", -1, NULL, 0); @@ -97,8 +101,6 @@ static int qcom_apcs_ipc_probe(struct platform_device *pdev) dev_err(&pdev->dev, "failed to register APCS clk\n"); } - platform_set_drvdata(pdev, apcs); - return 0; }