Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1725488pxb; Sun, 17 Jan 2021 20:34:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJwVE/8xcXvIMdJLzF2GdL/gFGQYl5UJf2Y8AAWL2WqxSoWDboIFyv2UG+ML3gxTWiQNgHJV X-Received: by 2002:a05:6402:350:: with SMTP id r16mr17377233edw.176.1610944484187; Sun, 17 Jan 2021 20:34:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610944484; cv=none; d=google.com; s=arc-20160816; b=Cim7bFWNh7FgqkCjX11zah6ySffzrZOGGOvam6Gcuru1vP8mI3nt51J++30gonqcCJ J3Ioh1tVJ/KWUd/P0FwW/Wud+CF3U+HLBsXLqsoqkp7clYle/km6rRWDSpILEuJF2AqG BjlKFfQmrzhU7CKhOaZTYsRhSS1QgJl6GAHo9fnwApyJU40BUc3Anj8KlYBrZv/OpRjA u9IvQjZHDFSWWRgNQGP8Q5dezkL1F7rBb0JaR9FeHQhUiwJFH8t6msfNjaElqqor1umz 7efx/4gYP7qaJCzmagFV23Xx60NFUjD0vI8gElWSxHe83HEQGag2ZRN1ffOvSchVCIH8 L7BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HFCn4DrN5tcytFqIGARwmeCierFc1Kb78mBSzO9W+eo=; b=zr7aoO9FP1VJSWQyCi9uUcPTwbYAUnW4TBKM1FsJf3klJG9X8YQaYFz8N2WuZVeG0p JmnTaNe0aGBOkSQf14gGdzhqVj8b56aZxXIUiXn2cqWwUxur4AxRUX1B6CtHAFprjKbs K0QT7Z7L6fbdv7QK2l7d+Lre98euNbsLr2GMPscJxhSFv8+2bgSfwvC647/wP0B1XEqv 6D9FLKUQyxTncIRybWVp1ZsQ0Lz7WtLTl3XGgaigNSnOT+3Sv9XBSkmOPl+1lHnKoVIO BeHTmqHT2P/rJy98/ePwpM/CA/h3THJEkiE19dt6/OHuSc3B5Uk8q8CfrwA4KdEsh8gB s0bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vW2AKNab; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id le7si1365326ejc.678.2021.01.17.20.34.21; Sun, 17 Jan 2021 20:34:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=vW2AKNab; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1732093AbhARENn (ORCPT + 99 others); Sun, 17 Jan 2021 23:13:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732091AbhARENk (ORCPT ); Sun, 17 Jan 2021 23:13:40 -0500 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AE74C0613CF for ; Sun, 17 Jan 2021 20:12:30 -0800 (PST) Received: by mail-pj1-x102d.google.com with SMTP id m5so8901520pjv.5 for ; Sun, 17 Jan 2021 20:12:30 -0800 (PST) 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=HFCn4DrN5tcytFqIGARwmeCierFc1Kb78mBSzO9W+eo=; b=vW2AKNabMNd/ETed6l/la+/MnOp+6GJA6u+LKHT+WljEamTKRBU+78Irq9ZiMEUaq5 QWXXqIvgCnc+ReN491rttYkL78zlGwCJIruNyvo6dH6m7P5+/Kez9db81dhTqU3Op1HH obGftTUjQpY6THmUjGMasJViVxsqAPXRszzW5C29okcWV8JmhIPaa0nXdkN367PNK7Po 414a0bM0yctY6VkbB7FdSkIgP39t6tu7EN4SgsF/vuMM1hAZxKdJGomYcXtls62Bbz3M PBkceC796dEbBJvCqTYk2h/4m8r86P1lCwQMaA02e1rRtTXtLFRFfH9GdgiY04PiCVnM 9IDQ== 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=HFCn4DrN5tcytFqIGARwmeCierFc1Kb78mBSzO9W+eo=; b=FqKyUXSTa9Y0J4atLOLSFF4IwSAChndAAHKOPKWjQ8OMyt7p7GTeUvI4jTfT2wGM26 wGe6032qZBM4BLaqJAKuM6ubCAyFMmAfXC+Q1GWNIJkx13f9QUEPFMWuxx5YeFGfkpZM 0Lw0UIscOAzwax5I6JBMoy7gtqWU0/hym4qPvEBcuG14Ko400vhPyiFXnukyOHVh5HKf f2Tr/S832V/cYY3JAFlawdew4HqWRa0xZJEIP6Nmb4F0pkmXMKj0uT6GT1DdwwDxrjtt MuWpxUKclO8xLYOdxPsWnp1pUV/9/c7VJkFrQjdtSc37DulxxFJ1xEaLyCfSf/LM1mkb j17Q== X-Gm-Message-State: AOAM53093Ixii2jCrrGhnxctyvaZaNbPDIoU5ipiXeAXlrI4AVJi47rV YatfwGzatGREp62Iy5JZgClK X-Received: by 2002:a17:90a:7d08:: with SMTP id g8mr24357647pjl.180.1610943150014; Sun, 17 Jan 2021 20:12:30 -0800 (PST) Received: from localhost.localdomain ([103.77.37.182]) by smtp.gmail.com with ESMTPSA id h15sm6727319pja.4.2021.01.17.20.12.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Jan 2021 20:12:29 -0800 (PST) From: Manivannan Sadhasivam To: mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, jassisinghbrar@gmail.com Cc: viresh.kumar@linaro.org, ulf.hansson@linaro.org, bjorn.andersson@linaro.org, agross@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, Manivannan Sadhasivam Subject: [PATCH v3 2/5] mailbox: qcom: Add support for SDX55 APCS IPC Date: Mon, 18 Jan 2021 09:41:53 +0530 Message-Id: <20210118041156.50016-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210118041156.50016-1-manivannan.sadhasivam@linaro.org> References: <20210118041156.50016-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In SDX55, the IPC bits are located in the APCS GCC block. Also, this block can provide clock functionality. Hence, add support for IPC with correct offset and name of the clock provider. Signed-off-by: Manivannan Sadhasivam --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c index 077e5c6a9ef7..1c205832a1cc 100644 --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c @@ -61,11 +61,15 @@ static const struct qcom_apcs_ipc_data apps_shared_apcs_data = { .offset = 12, .clk_name = NULL }; +static const struct qcom_apcs_ipc_data sdx55_apcs_data = { + .offset = 0x1008, .clk_name = "qcom-sdx55-acps-clk" +}; + static const struct regmap_config apcs_regmap_config = { .reg_bits = 32, .reg_stride = 4, .val_bits = 32, - .max_register = 0xFFC, + .max_register = 0x1008, .fast_io = true, }; @@ -162,6 +166,7 @@ static const struct of_device_id qcom_apcs_ipc_of_match[] = { { .compatible = "qcom,sdm660-apcs-hmss-global", .data = &sdm660_apcs_data }, { .compatible = "qcom,sdm845-apss-shared", .data = &apps_shared_apcs_data }, { .compatible = "qcom,sm8150-apss-shared", .data = &apps_shared_apcs_data }, + { .compatible = "qcom,sdx55-apcs-gcc", .data = &sdx55_apcs_data }, {} }; MODULE_DEVICE_TABLE(of, qcom_apcs_ipc_of_match); -- 2.25.1