From patchwork Wed Jul 31 20:29:18 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: 170225 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp4462439ile; Wed, 31 Jul 2019 13:29:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxClA4Yw6Fl2os7Z590CBs49ExcA1SiTjBa0JQIFsOUaq9D8GKLrQIlJhKDUGHmVG6CmdQB X-Received: by 2002:a17:902:d892:: with SMTP id b18mr114402125plz.165.1564604982191; Wed, 31 Jul 2019 13:29:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564604982; cv=none; d=google.com; s=arc-20160816; b=lnFbzttQnop5u/3ANK8oDYSlTIR9ne20ICijILMJOgxIkyiO4dLnm9yWj90d0rCI1+ GczM0xWGedIqPjI+zbER8HelN4lVgFmmx1ziOB7aobIy6UlxV4C1YDMKlEdtledKJ5bK rztI0xbQTfOO9VVX1tn2yrwpDLGE728Oe10Yi70NrRLIv54LFVJrbMbjxaA6V3XbIZV7 rnguNE+m0ZMay0O/d1ZehobNj+DBgWZ1s+2S3J1oyhWLwZSoFs7aEuS8yJyjTB50d4rY 6XuEF7G8cY+qs83TtGGfgRs5nxoGTKfyQFn9E2Ra92IjM32iGfBw2BiJHGGjdiGqjGsP x5QA== 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=nxlnCpV0F3leEABjK0OQeWrArZ1TknDUFhS5oY3oysQ=; b=SKX4LwcTPQBxCglxfrWHer3K7p9MdZ+9SuELfxwA3K6CaeW4APH3hV5aLfmzqxjwrF Y7gpPEnwtxx8qBbTkCvDmk1s/GQ2aNdh0Vcu0yjNpiHmLvcLjnGsvEqH4GWbzIX4MKwv RxRGXh//9jRusrJYML7uMXQYHP+5C8Uvh+Coa8ePpqXyNHgstUkOmdVtb2icjmxoNP2y WifK6aAOMUiArOQOU32GlntuxOFnohOxNBSLh1LnGMVt6Cc2gf0RKvX3ITGwwhknPPIC X1lIycrUXl50iyeA2WjMA7OuqB6yoFD6hlLFyb3Wj8016kNOW+w01RLOH6i5kbwD6Q1R PZWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TobnQ1A6; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 v20si2238422pjn.27.2019.07.31.13.29.41; Wed, 31 Jul 2019 13:29:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=TobnQ1A6; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1730623AbfGaU3k (ORCPT + 8 others); Wed, 31 Jul 2019 16:29:40 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:50222 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730585AbfGaU3k (ORCPT ); Wed, 31 Jul 2019 16:29:40 -0400 Received: by mail-wm1-f65.google.com with SMTP id v15so62194150wml.0 for ; Wed, 31 Jul 2019 13:29:39 -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=nxlnCpV0F3leEABjK0OQeWrArZ1TknDUFhS5oY3oysQ=; b=TobnQ1A6wip0UtD/g3bDWT+S5CD8CP1ZGTctAaOyZrq5umuF3Fsy0wdsk0Lw089w6R FO84q7Lw+RUUGLid2tdjgOQYVYSCnawnjla1ZdgyUXT1mw4Pj0nPsdBgyWiBbcC3NG7v Wcf6ktXpSNUlXwiugNEPgnDyvHRxFWNwyJlpiBxfaSK7C8RXOXoh/BbOflyAoO5EHgUi Rc91LfDiMW+QvAVNBHBPe1tiUJuxWToECnhIAy18MGrEQRl/wvoCoqK74VrQRTyiKgaY DoIaJGBAJXRKbLYn7eztJ5raJW/7LXxuu06tpn0PRPXk79oker2ESsHnT2FZyb/UALoJ V/Ww== 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=nxlnCpV0F3leEABjK0OQeWrArZ1TknDUFhS5oY3oysQ=; b=i3uMjjCLWkjfzMznQo2AXR9yvkRmB4UwKM4x/RK0J2hwfYSSLrtGqbJE7Pl6jRcGdd BH+SmwtzqSsIDf6CnQk/9oodVZg0S3LjNBEdtpRAr+5DAxkFCwZduAahfaNlYVHERpL5 kKBSWukfQBvcKKxWKDUDHyOtrqx3JJdmAX9dMYjvd+Rd2tnA8Za0WuY+arZirTOGiPZ5 fQgx4XHZLs2Fa+7DkFeRqNZlu0PyGvcAOS6nHwnfRxMEEniS3dP4RCkZef8JVJdFbhMe rkbmJtOAJYl71Y2c3QLk97wYbrUHAxy3GuAj+16jK5r42zogVsJ//3WcDdJK0RDgNeYl 5h0g== X-Gm-Message-State: APjAAAVLE8KldQE26yx1RCdh6SDlL1DLYbY6hPaMyyHxOwfYeVzhl+Hq R75lt0z4sPz43npJqgU3VTjwqg== X-Received: by 2002:a1c:7e90:: with SMTP id z138mr108712019wmc.128.1564604978346; Wed, 31 Jul 2019 13:29:38 -0700 (PDT) Received: from localhost.localdomain (19.red-176-86-136.dynamicip.rima-tde.net. [176.86.136.19]) by smtp.gmail.com with ESMTPSA id i18sm91905591wrp.91.2019.07.31.13.29.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 Jul 2019 13:29:37 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, bjorn.andersson@linaro.org, sboyd@kernel.org, david.brown@linaro.org, jassisinghbrar@gmail.com, mark.rutland@arm.com, mturquette@baylibre.com, robh+dt@kernel.org, will.deacon@arm.com, arnd@arndb.de, horms+renesas@verge.net.au, heiko@sntech.de, sibis@codeaurora.org, enric.balletbo@collabora.com, jagan@amarulasolutions.com, olof@lixom.net Cc: vkoul@kernel.org, niklas.cassel@linaro.org, georgi.djakov@linaro.org, amit.kucheria@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, khasim.mohammed@linaro.org Subject: [PATCH v4 02/13] mbox: qcom: add APCS child device for QCS404 Date: Wed, 31 Jul 2019 22:29:18 +0200 Message-Id: <20190731202929.16443-3-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190731202929.16443-1-jorge.ramirez-ortiz@linaro.org> References: <20190731202929.16443-1-jorge.ramirez-ortiz@linaro.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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; }