From patchwork Sun Jul 25 02:58:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 485925 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30B59C43214 for ; Sun, 25 Jul 2021 03:00:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1509F60E8C for ; Sun, 25 Jul 2021 03:00:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230162AbhGYCTx (ORCPT ); Sat, 24 Jul 2021 22:19:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230077AbhGYCTw (ORCPT ); Sat, 24 Jul 2021 22:19:52 -0400 Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40616C061760 for ; Sat, 24 Jul 2021 20:00:22 -0700 (PDT) Received: by mail-oi1-x233.google.com with SMTP id z26so6739418oih.10 for ; Sat, 24 Jul 2021 20:00:22 -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=wUU0F6F+EwCOUqAHdrS1FCoIIs2D4cf6PA8YqPnT4Ok=; b=xPKhK+TngIGr6ibzCQQAHh56+6viK/fjLQsjNxpj9o1L0D3nTkNVysVOnmtdaPpJRl BylnrClMCn/Sjt4QUdyXkhJyPnaugKm9p9UXyHgIIakhgg9ai+62yHwdyRyK79Vk7AK2 XA1PInaBVh/teMAOr6jRiD77NNY7uP31rZmFE905axej/FJYlhTWeipUg9JbISTjhTHq nC7mrzUvcXte7rDm00CKpoVcMJd6CrwRahKHMWRF6uhWgDRoRwcR6EwlgP4Yi+SClx9y loc7HlH7WI6Pd/p6aI6Jo3G9ieiymEfOMuxjH+AjBLl5p2tgx2jRuMgrzPOAu8IufN76 7KAg== 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=wUU0F6F+EwCOUqAHdrS1FCoIIs2D4cf6PA8YqPnT4Ok=; b=rGNTpHvI8JTIO0QKcySq5tglcbVx0vfvenAxuXk4ZVgCqSDLABSZUI6GskuiuvOFH5 /+q9vRyfvp/AyFwp9OFZJ4vea0lWc0kdx7QucSjFAXLAWrRhEeuSQxGLEnM+iYtO4/1i dXCjSAjkpJPBcyMF/LWmSX/dem8ZF8STRm5LMJyZ9PyN13ETxXLcGBU7TKcoPJzR2fPV q6ZnAzQ6zkOjcKd+QebvIgulgiecB5ccnUCtJVAWXe8TyVSpy3RaJM0+6mRyTH7I8Whw r89eXaflY5oGkRa8bXDI3+mhLKswXx3xDUFvagjI6XDeLYobg3GVdiMCRtZnfFfObv3J W9mQ== X-Gm-Message-State: AOAM533kjcnJR5fFIzaUwIpHkY3lePJPQMuNE7VP/JBjalKLTB8KP2vm Jnljx1k0YHAXfGNSedRnPXCqkQ== X-Google-Smtp-Source: ABdhPJy+XcdhLqbOYNh6pE6M0i0lKoEDuhjNOqllSpvpqPWH8v5m0pGEQi2v+AeegYeOKpf4G0lq8g== X-Received: by 2002:aca:47ca:: with SMTP id u193mr13024685oia.116.1627182021358; Sat, 24 Jul 2021 20:00:21 -0700 (PDT) Received: from localhost.localdomain (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id n202sm3366180oig.10.2021.07.24.20.00.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Jul 2021 20:00:20 -0700 (PDT) From: Bjorn Andersson To: Georgi Djakov , Rob Herring , Sibi Sankar Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: interconnect: Add SC8180x to OSM L3 DT binding Date: Sat, 24 Jul 2021 19:58:33 -0700 Message-Id: <20210725025834.3941777-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The Qualcomm SC8180x has an OSM L3, add compatible for this. Signed-off-by: Bjorn Andersson Acked-by: Rob Herring --- Documentation/devicetree/bindings/interconnect/qcom,osm-l3.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/interconnect/qcom,osm-l3.yaml b/Documentation/devicetree/bindings/interconnect/qcom,osm-l3.yaml index d6a95c3cb26f..e701524ee811 100644 --- a/Documentation/devicetree/bindings/interconnect/qcom,osm-l3.yaml +++ b/Documentation/devicetree/bindings/interconnect/qcom,osm-l3.yaml @@ -18,6 +18,7 @@ properties: compatible: enum: - qcom,sc7180-osm-l3 + - qcom,sc8180x-osm-l3 - qcom,sdm845-osm-l3 - qcom,sm8150-osm-l3 - qcom,sm8250-epss-l3 From patchwork Sun Jul 25 02:58:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 485682 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68339C4338F for ; Sun, 25 Jul 2021 03:00:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5101160E98 for ; Sun, 25 Jul 2021 03:00:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230075AbhGYCT7 (ORCPT ); Sat, 24 Jul 2021 22:19:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230158AbhGYCTx (ORCPT ); Sat, 24 Jul 2021 22:19:53 -0400 Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6FE4C0613D3 for ; Sat, 24 Jul 2021 20:00:22 -0700 (PDT) Received: by mail-oi1-x22e.google.com with SMTP id q6so6753024oiw.7 for ; Sat, 24 Jul 2021 20:00:22 -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=S/k3pA60ouJZ44RuPSvAHC3cHM/2BM3D5bSCGPUdEZs=; b=iq0K/p/JvUX/Z/CG55BUou126nQBafLr1kMc5mgq8q/oDBu9G65nyc05mN1gGOrEt4 3C9jkBsNNznOxbtZe2exQZHfZfdZUOqcXvI1rcX8lfOSpkU+EyjrRtPQ9cNltYylscOs +gcjvnrEgrkoR7Owc3YOYhvtQc5LXNd84lVB3nyb/DU89zgtnu2L/Ga6hF8l33QHefLN 8enENhTX/6A6i8moBkIbRdgGbxXcg3gzqfh1iXxtTX9Mf2IsRhxE8jKfpULoSYC9MPiT Q8JbgPUm3+ZGBP4NvxJKBKTdABOm63th9D/3l3rSKci1Qkb5+sFV7qJ0G93ppP8AIp35 bdLA== 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=S/k3pA60ouJZ44RuPSvAHC3cHM/2BM3D5bSCGPUdEZs=; b=Zi8TIl92LwyxaV4/8HfzOp3SyguxVsyXIEnkt0MH49/KQYI0mwxzezDeTnsZd0c87P wQmlGn2uOZcTAfo9FI7rWODD83ZorFGFByYM1i82iIqQjFqcJq5UXD0dcBPcCsHmI5zn idIP5jCLk2wU7r28cYW8AcLBOnG7eu6aIZpMjHXgzTcFIHWbMMdgagppW3PgZ8IlDriW vW3U8xTKEAbtAEoqYkSxRPGLfL0594jWulIVo1IecYy/CywizKBxWo0+u5y6GX/HjAkI 1CaZmMyJDX5dOMhTXIfOW9Su1BN48WtMkrJHwq5FwRvu83lofXZoDaMdPcJyRUQ2BBEP IlhA== X-Gm-Message-State: AOAM533dR+XTf2h6LPLbZQgmSvcEfAIQ3W/JgPypwhBYwgzogy2IV4uf it2tETJtcRC3sYmBQ6j5iY29oA== X-Google-Smtp-Source: ABdhPJwlJGY5pKXD+dB0PHg5IdDOxBBvz6DMMSWilQtk3xGQY92qcMGuJFoaqIMXzG0EXmwyNb4euw== X-Received: by 2002:aca:7589:: with SMTP id q131mr12489680oic.76.1627182022100; Sat, 24 Jul 2021 20:00:22 -0700 (PDT) Received: from localhost.localdomain (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id n202sm3366180oig.10.2021.07.24.20.00.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Jul 2021 20:00:21 -0700 (PDT) From: Bjorn Andersson To: Georgi Djakov , Sibi Sankar Cc: Rob Herring , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] interconnect: qcom: osm-l3: Add sc8180x support Date: Sat, 24 Jul 2021 19:58:34 -0700 Message-Id: <20210725025834.3941777-2-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210725025834.3941777-1-bjorn.andersson@linaro.org> References: <20210725025834.3941777-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add support for the Qualcomm SC8180x platform to the OSM L3 driver. Signed-off-by: Bjorn Andersson --- drivers/interconnect/qcom/osm-l3.c | 18 ++++++++++++++++++ drivers/interconnect/qcom/sc8180x.h | 2 ++ 2 files changed, 20 insertions(+) diff --git a/drivers/interconnect/qcom/osm-l3.c b/drivers/interconnect/qcom/osm-l3.c index 695f28789e98..13e41b932567 100644 --- a/drivers/interconnect/qcom/osm-l3.c +++ b/drivers/interconnect/qcom/osm-l3.c @@ -15,6 +15,7 @@ #include #include "sc7180.h" +#include "sc8180x.h" #include "sdm845.h" #include "sm8150.h" #include "sm8250.h" @@ -113,6 +114,22 @@ static const struct qcom_icc_desc sc7180_icc_osm_l3 = { .reg_perf_state = OSM_REG_PERF_STATE, }; +DEFINE_QNODE(sc8180x_osm_apps_l3, SC8180X_MASTER_OSM_L3_APPS, 32, SC8180X_SLAVE_OSM_L3); +DEFINE_QNODE(sc8180x_osm_l3, SC8180X_SLAVE_OSM_L3, 32); + +static const struct qcom_icc_node *sc8180x_osm_l3_nodes[] = { + [MASTER_OSM_L3_APPS] = &sc8180x_osm_apps_l3, + [SLAVE_OSM_L3] = &sc8180x_osm_l3, +}; + +static const struct qcom_icc_desc sc8180x_icc_osm_l3 = { + .nodes = sc8180x_osm_l3_nodes, + .num_nodes = ARRAY_SIZE(sc8180x_osm_l3_nodes), + .lut_row_size = OSM_LUT_ROW_SIZE, + .reg_freq_lut = OSM_REG_FREQ_LUT, + .reg_perf_state = OSM_REG_PERF_STATE, +}; + DEFINE_QNODE(sm8150_osm_apps_l3, SM8150_MASTER_OSM_L3_APPS, 32, SM8150_SLAVE_OSM_L3); DEFINE_QNODE(sm8150_osm_l3, SM8150_SLAVE_OSM_L3, 32); @@ -311,6 +328,7 @@ static const struct of_device_id osm_l3_of_match[] = { { .compatible = "qcom,sc7180-osm-l3", .data = &sc7180_icc_osm_l3 }, { .compatible = "qcom,sdm845-osm-l3", .data = &sdm845_icc_osm_l3 }, { .compatible = "qcom,sm8150-osm-l3", .data = &sm8150_icc_osm_l3 }, + { .compatible = "qcom,sc8180x-osm-l3", .data = &sc8180x_icc_osm_l3 }, { .compatible = "qcom,sm8250-epss-l3", .data = &sm8250_icc_epss_l3 }, { } }; diff --git a/drivers/interconnect/qcom/sc8180x.h b/drivers/interconnect/qcom/sc8180x.h index fed2dc2d4acb..e70cf7032f80 100644 --- a/drivers/interconnect/qcom/sc8180x.h +++ b/drivers/interconnect/qcom/sc8180x.h @@ -168,5 +168,7 @@ #define SC8180X_SLAVE_EBI_CH0_DISPLAY 158 #define SC8180X_SLAVE_MNOC_SF_MEM_NOC_DISPLAY 159 #define SC8180X_SLAVE_MNOC_HF_MEM_NOC_DISPLAY 160 +#define SC8180X_MASTER_OSM_L3_APPS 161 +#define SC8180X_SLAVE_OSM_L3 162 #endif