From patchwork Mon Jan 4 08:11:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 356341 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp14781700jai; Mon, 4 Jan 2021 00:13:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJyA0OonM+mSdFMPxOTY0Bimf9nlBjYGmFfJWDLBcSoFxyMeYM/g6YPxizS1+CwK7aslNTiz X-Received: by 2002:aa7:c358:: with SMTP id j24mr70330629edr.265.1609748024033; Mon, 04 Jan 2021 00:13:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609748024; cv=none; d=google.com; s=arc-20160816; b=i9NTZQb7irqxZkc0yZR7KMRVkPq3DcXL6SLKVYwoiI3ZjBnoH6AyZE3MVVNm5psDvc fP7nmpEy2juFbC7YSIxc53Hi84Lhdo8JaFpBs1pOQDVFoShhSDeuBxy54fRODl7fINaD MVrAebsFq5Sf38LRwMG7K0XNu9UE/WZM31rPE08fLfLmVTyXse38YSZ4u444kG66I/9g XpXOkX5aP9S/1icwnm5ibvdtqzetQ5DglE1aIxiCRXnwxSD/YZVsLQq4C2XB1fV0wqIm T+Q+XRjgFGgwEsX9j+mx8wMfueJuCNjLNPtf77oB5yP7GU2iLgBjuJa60zGjakjJFqaH pLKA== 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=6K/LbU0XVZ+HxnpwCy+UchOVctXMQ6ehwHVLCHIYOAk=; b=USkivrCIvpzMFlZ8tPZag4umCDeqszo4hBEkEh+g+DY0+Js6qA57gWcfBVjlcIq1Gc xqWtcQkTEZYtp+J3AR9hA8wtfnZx5dHXsagpAqbVCNDERD8oq5taSesS97wXEsRVsJqb kBCRuwmVe4cNEo9kEbuwiX35q1dsSy4xhGsSIahd52HlbEzgQowAF72h2VgnsZOYk/ci Fb2iCCWCEXxWSnpyD2AiWmfZO1wIiWI8k2jdrY8HLji/zBX/LJzge4RBa+WR/O+nFnhP rTjuppZuy079dJ7LYEoE9YbcJbwz2keUCl1g02+w7dWyXsM5U4EidVO7bAkDKfbAZsDY dEIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AJVyxZqP; 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 g10si29383294edt.499.2021.01.04.00.13.43; Mon, 04 Jan 2021 00:13:44 -0800 (PST) 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=AJVyxZqP; 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 S1726176AbhADINB (ORCPT + 15 others); Mon, 4 Jan 2021 03:13:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726178AbhADINA (ORCPT ); Mon, 4 Jan 2021 03:13:00 -0500 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 300B0C0617A2 for ; Mon, 4 Jan 2021 00:11:48 -0800 (PST) Received: by mail-pl1-x636.google.com with SMTP id t6so14155705plq.1 for ; Mon, 04 Jan 2021 00:11:48 -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=6K/LbU0XVZ+HxnpwCy+UchOVctXMQ6ehwHVLCHIYOAk=; b=AJVyxZqPY8oCUIhavLRxLVaeY/nKST4WwvW9m0zupZ8MN/jpsbqN7h9xR3nLQPzpgQ 0LqiqdHsG4QGyDgoSlR9UDHybEgUSqAHSiLDCDamcg9m9ftmt0JacydO3qoF9fqZSgCv +S9yXQIJO+I37jM3O8f9dBWxMcNKhT7UR4u7nNRkbqqP9JgSbgt+MQyohLGBzXgGqJv9 wexF8LPSezG975+OhcEB2t/rNAuNv1HFJp5uYI7tMCAyG891Rn3RzZXuiROrzI1pRd2j vciTnTYcm9phQVnQekJn+Ub0YZv3cJ1ldD2i7d2x7rQ65JaKjMzYOC+Sf/6FKHIPXnzT CDKw== 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=6K/LbU0XVZ+HxnpwCy+UchOVctXMQ6ehwHVLCHIYOAk=; b=IUugKrQ0rnQEnSyQTCIC1j1kUqENXHubYz5lx/9w1LIjbCAETIilwOk7jhEifGcfTg CdXbAfP2e8yTzbFn9V6PRbWWhy/sqeeVfXQrKTEUg0DJ38Zq89DRxobvFg/kLURuOCas GJyRUnkdoQ5zGLKeU5hH4bkICcKLLB20eUAE/vtMdOvlSzPFbtti6qxxvtzm4W2Ms9zA ccuq/VFhbeD/A8SKxehIMf4BOZGD6H+KFJVkKs+jUIgthnwbraGgHxFwmPfGQGLyBWsV ASaUSVySqG4ziarKOXp/EC1zl2YVCJkU5x7/0vL7BXTtHHenCeLACwYeA8PipI+hkDxt LZMA== X-Gm-Message-State: AOAM5310f1rIvMfH38ovzo43AtKr+br6XmUg1UxMDL3LLIRZ+6Bnm0UM OQO/tDVLBnjbSJya2YqlG9h4 X-Received: by 2002:a17:90b:1218:: with SMTP id gl24mr27686229pjb.130.1609747907702; Mon, 04 Jan 2021 00:11:47 -0800 (PST) Received: from localhost.localdomain ([103.77.37.160]) by smtp.gmail.com with ESMTPSA id n7sm55051339pfn.141.2021.01.04.00.11.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jan 2021 00:11:47 -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 2/5] mailbox: qcom: Add support for SDX55 APCS IPC Date: Mon, 4 Jan 2021 13:41:22 +0530 Message-Id: <20210104081125.147300-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210104081125.147300-1-manivannan.sadhasivam@linaro.org> References: <20210104081125.147300-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 | 5 +++++ 1 file changed, 5 insertions(+) -- 2.25.1 diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c index 077e5c6a9ef7..b00556450335 100644 --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c @@ -61,6 +61,10 @@ 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, @@ -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);