Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1970682ybl; Thu, 29 Aug 2019 01:29:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9Pob2r7uDZhBJz7OFTNIVCVOB8ktvQt9EjOs57cvGxrQApvDYgOU6NcGcCxFfyA9marof X-Received: by 2002:a63:7887:: with SMTP id t129mr7229372pgc.309.1567067358100; Thu, 29 Aug 2019 01:29:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567067358; cv=none; d=google.com; s=arc-20160816; b=GERl3Wxymv7oGyVufo38Dzqx97RmQeQ3mk/KDAvxSajALQ+MGZWIKr3k1kkelRoBKi 0rC5b8U157ifEw3PcKseHHcbP6VRfmRnPAO7U+yD1l5EzC/vr5cemYc6YEPRkakFYiYn 2O0zeyPsMIC7i14VgYN0FgHolTYrchv9OWv0F921ejgvnLK5JFQbYQo/8ribYIXfHRnw raMpr8mDO7lqCd4wPHpi3fN8IL2nRqYaUdH0CKYbd4iV/J2XtyPvW5N5VLtfJHDWjZXc 0KmMpZD6HDIGMKsOeRQ9j+64lUncNGvfsXHl+8EBPODmJpwV8VHi74qdPj3JIo2ai+4E R2ew== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lilzGlUwQU28vzRL0gWRdi9fa9mAG2A2WZEnKecmDsA=; b=zZnAFroPusTq8NsnEpjNlRyDBHSjB5PjnCo79oUiz3vdPh7P6DbsKkWudj1uxQQ5rw crjArZeTHLs0nDi02gCVyNokh7XxFg+N3BmWQ2y/vxiQ+BCpBtjQBV8kEwEhjQSweZl5 D7aEpbPH9b9tNxD982Lgwxze4JKlYW571+k4gmh0srfH08UiXBxDInhFCPX8wkjDAr14 3/sIkCwtnkx753YeXc1NI/ybPmqvAat+g562doc4y2lgyAw6fIGSy40nCgT8rB3OfIAi zrLwwmmAjJcQJ/NR80fQEpsjeEg+i3qp45iTCqeK+Fis1wVBelUDR15IbwniktVR2r0s AG8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WTLIlW9m; 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 h1si1299306pll.434.2019.08.29.01.29.03; Thu, 29 Aug 2019 01:29:18 -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=WTLIlW9m; 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 S1727114AbfH2I2J (ORCPT + 99 others); Thu, 29 Aug 2019 04:28:09 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:35260 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725807AbfH2I2F (ORCPT ); Thu, 29 Aug 2019 04:28:05 -0400 Received: by mail-wr1-f66.google.com with SMTP id g7so2502357wrx.2 for ; Thu, 29 Aug 2019 01:28:04 -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 :mime-version:content-transfer-encoding; bh=lilzGlUwQU28vzRL0gWRdi9fa9mAG2A2WZEnKecmDsA=; b=WTLIlW9mbcziQr42P5O7bdG+XWMgUf8nUbqBtyNEz4y4Cx91sYn6u7QgtXsY6lqAOY oA1/pUYMdxLCx+RP8FIfkAOUXK2sEebowigSO9ytEwfr4CCfoOZV3LKuGhbEzAXQr6ef sZUYFXx5Dy4eXvz1oiNlvlJ9L5YLaOSTf0qfDs6kpdBl20H9G9lbolHVmJpZvC7MF1rm RNRFPwR2/Kyih/BR+nHfhTgB/g7bSXTe0/9cF35a3/DQlcyOhcUkyuDzlsnD1NZaGdp5 udiHmQJwALa9N2t6M1+5UBZyFL+RnKj5+FidaH2XixgKQrBCxbnAO5TcyclLEVc6ywxi Kcrg== 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:mime-version:content-transfer-encoding; bh=lilzGlUwQU28vzRL0gWRdi9fa9mAG2A2WZEnKecmDsA=; b=PNWYVVK25uiC7m+H1Zc7GE/aJDqBpGpGSjkCwpZEda7mNP1kbl3kWOfryVgZ+nVk9y 3yRIILX1BaxFvI+YWhi4uemqQPGghiW5u8JqZk5vU83pZVmIwiX55Dy6+bFLu3WaCpE0 EAy5g2hLvhsq9BybrDp8dgRLcp65NkBF50CZlOXE8VQMmG6TUF9gD08E6qlwKw9Fsrjt fXXECak77Z2PoE8UMABeiReZ47/TNOv9r9ybn1jDGqr4ML7+qhjvrmnUmx2P+nn0XLDT nCsuHS1lVzy399bYCSSDXbLCXOazTr4oFECY3i5EvimlFh3loEBoVr5P1Qz397Q1MBh6 PPlg== X-Gm-Message-State: APjAAAVETetPGWnLGLRks+fasZUUbO0jD1NE6YHWPMo/YeGyDBmhOrTA 8v6HbrdcOg3uAhqkBtAFqujftA== X-Received: by 2002:adf:ea03:: with SMTP id q3mr9578467wrm.219.1567067283443; Thu, 29 Aug 2019 01:28:03 -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 f24sm1884489wmc.25.2019.08.29.01.28.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Aug 2019 01:28:02 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, sboyd@kernel.org, agross@kernel.org, jassisinghbrar@gmail.com Cc: niklas.cassel@linaro.org, bjorn.andersson@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] mbox: qcom: add APCS child device for QCS404 Date: Thu, 29 Aug 2019 10:27:58 +0200 Message-Id: <20190829082759.6256-2-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190829082759.6256-1-jorge.ramirez-ortiz@linaro.org> References: <20190829082759.6256-1-jorge.ramirez-ortiz@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c index 705e17a5479c..d3676fd3cf94 100644 --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c @@ -47,7 +47,6 @@ static const struct mbox_chan_ops qcom_apcs_ipc_ops = { static int qcom_apcs_ipc_probe(struct platform_device *pdev) { - struct device_node *np = pdev->dev.of_node; struct qcom_apcs_ipc *apcs; struct regmap *regmap; struct resource *res; @@ -55,6 +54,11 @@ static int qcom_apcs_ipc_probe(struct platform_device *pdev) void __iomem *base; unsigned long i; int ret; + const struct of_device_id apcs_clk_match_table[] = { + { .compatible = "qcom,msm8916-apcs-kpss-global", }, + { .compatible = "qcom,qcs404-apcs-apps-global", }, + {} + }; apcs = devm_kzalloc(&pdev->dev, sizeof(*apcs), GFP_KERNEL); if (!apcs) @@ -89,7 +93,7 @@ static int qcom_apcs_ipc_probe(struct platform_device *pdev) return ret; } - if (of_device_is_compatible(np, "qcom,msm8916-apcs-kpss-global")) { + if (of_match_device(apcs_clk_match_table, &pdev->dev)) { apcs->clk = platform_device_register_data(&pdev->dev, "qcom-apcs-msm8916-clk", -1, NULL, 0); -- 2.22.0