From patchwork Thu Jul 6 12:40:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wronek X-Patchwork-Id: 699684 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DBDC2C001E0 for ; Thu, 6 Jul 2023 12:44:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232077AbjGFMoe (ORCPT ); Thu, 6 Jul 2023 08:44:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232004AbjGFMo2 (ORCPT ); Thu, 6 Jul 2023 08:44:28 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE8E71BF6; Thu, 6 Jul 2023 05:43:56 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-98dfb3f9af6so83382266b.2; Thu, 06 Jul 2023 05:43:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688647431; x=1691239431; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Y6EAhfoDoZ7HkHH1SwMxSyZ3vEbeVt8JnBzyWyltbvA=; b=SHIlpUmdIA1NPXZQytetO4r5UBIkepMRPvLol3I5uQMdv2k0o0Gs4ux3QWny4mAzJB mXiqEAuuKCsmvwNuj6b3Pr8SR4hjdMLJi1eM8RtceGZqTTXsIO8U82Yy8gs8CkVGCwcf zzcLVmREnciYtEyGBhcetIuMInUSpMbePHUNqI9ezscnm5GndzeluRZX8Vqhne26uAEs WewKsdCHEbJRnaMepFxmYb7J7s5Mdi9tA0M9QCCK9xmB1frf83PD6BNTEMaiN3+Wx93K VzkDCkPwfAUGnxit3RctHRmA1eMJa6qbWuJbGlTetk21AE/wmMwIRk5MDDdh8kJvl5Wc vY0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688647431; x=1691239431; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Y6EAhfoDoZ7HkHH1SwMxSyZ3vEbeVt8JnBzyWyltbvA=; b=ZfpBW7WQzjhKNeqtGstZZaRaARMH75Q3PIXaZsus/fGSlztizY4r6Ts8oSxvOhP4ze zoLYxdAGMXli7NtihL23b4AmdF2lpI/GsuRZdcFCj4Wu+9JJ17Ikzl5meycJ/Y7poxGT 7csP4umPfIFu99VhxJL57B8rMZwbTQuBmUEFDElUZSv99YRDlZIF5tpqw4PUSLx8FWPv cJdJlZAZyAD/Hwa1XGhnjVMeB1iDNIt+1tjVNafMi1c1FLhJ+s3ImddkZDdLdRJDBMux gyifkQ7tav2T1TXB2pNZvftOlFZhw4IKJkXyqpSvYHozb85SKk2LN28HKnBMMGe1zIvR B4Qg== X-Gm-Message-State: ABy/qLZu0Up5eJfp8kL0rHLYMJWnUzAm2Q0VsxMvXU5g3L8AvLqjit/z iplhbkH0FQOekz85xmDitJc= X-Google-Smtp-Source: APBJJlHLASABTYt85CbYVDtNv0qEPcoks80q3a2BO9Q+bkYGR0gPDmi58Sh5pCOPjPGMKuY3OGXRYw== X-Received: by 2002:a17:906:101:b0:987:16f5:692f with SMTP id 1-20020a170906010100b0098716f5692fmr1252897eje.44.1688647431500; Thu, 06 Jul 2023 05:43:51 -0700 (PDT) Received: from david-ryuzu.fritz.box (ipbcc3a9b0.dynamic.kabel-deutschland.de. [188.195.169.176]) by smtp.googlemail.com with ESMTPSA id w14-20020a170906b18e00b00992ca779f42sm775915ejy.97.2023.07.06.05.43.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jul 2023 05:43:51 -0700 (PDT) From: David Wronek To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , Taniya Das Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, David Wronek Subject: [PATCH v2 1/7] clk: qcom: gcc-sc7180: Fix up gcc_sdcc2_apps_clk_src Date: Thu, 6 Jul 2023 14:40:20 +0200 Message-ID: <20230706124339.134272-2-davidwronek@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230706124339.134272-1-davidwronek@gmail.com> References: <20230706124339.134272-1-davidwronek@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Set .flags = CLK_OPS_PARENT_ENABLE to fix "gcc_sdcc2_apps_clk_src: rcg didn't update its configuration" error. Fixes: 17269568f726 ("clk: qcom: Add Global Clock controller (GCC) driver for SC7180") Signed-off-by: David Wronek --- drivers/clk/qcom/gcc-sc7180.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/qcom/gcc-sc7180.c b/drivers/clk/qcom/gcc-sc7180.c index cef3c77564cf..49f36e1df4fa 100644 --- a/drivers/clk/qcom/gcc-sc7180.c +++ b/drivers/clk/qcom/gcc-sc7180.c @@ -651,6 +651,7 @@ static struct clk_rcg2 gcc_sdcc2_apps_clk_src = { .name = "gcc_sdcc2_apps_clk_src", .parent_data = gcc_parent_data_5, .num_parents = ARRAY_SIZE(gcc_parent_data_5), + .flags = CLK_OPS_PARENT_ENABLE, .ops = &clk_rcg2_floor_ops, }, }; From patchwork Thu Jul 6 12:40:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wronek X-Patchwork-Id: 699683 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DFE56C001E0 for ; Thu, 6 Jul 2023 12:44:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232004AbjGFMoh (ORCPT ); Thu, 6 Jul 2023 08:44:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229556AbjGFMoc (ORCPT ); Thu, 6 Jul 2023 08:44:32 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96A111996; Thu, 6 Jul 2023 05:43:59 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-98df3dea907so82666566b.3; Thu, 06 Jul 2023 05:43:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688647432; x=1691239432; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=flUpj1SL0IxzkEf+wAIgzyyLAEa29IzZhs+iHwXJtAI=; b=Dt0Pc/Wh6L50oeuVSkYferwE8MxWg78g9MPMvgZ8qPou6i0gaNdfGqu13cWOVWefya vT7ZKHC9vwWVWJmS7syaN9+6qlIRrMaFTPVLdvSwHAxDjrqZLFD0+wQVygVwEYevYCDQ 9Hwjd7GqtH9a0c/nb7Q9kjVbxoPxKTOocaxq6kmJlIBGLdJcozryEk8h4r/w78IBGC1Z OXZFKuWgC2MoxWbRseP8FZQE8Ck8QDEC18TtIR65Q6fWovBczpP89o0CyBseSEy7icbD uo/J1qub2U1ACQrnouaPR+vINLU+v21PgJL9bbxNBEDkceaxwU8gNcjwDgguQwwQTN7+ EgUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688647432; x=1691239432; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=flUpj1SL0IxzkEf+wAIgzyyLAEa29IzZhs+iHwXJtAI=; b=IPLjmhZpORrfY8oE/gMPLgEIOC0bpxn+cy1dNTDzw05WXZN3+hZ8a01Cxkr0R0JwfK 3KFk05c999iBJMUJlZreBLQcQGj3kSdx42RJHTc+zuIfhzzJ8rx4Erl1aQMvZvbSZ6DG oIaMR2Xxr4Z/GSdxxwXf4vy027iFKz76rQF7PpIaJYTVYVYm4NPim6nA8ckd5APhd02E ExahlSdKbX0XwR23RZ1P5tV1IpJjo9vml2RcwUil7qBgCTHaI9tj/n3qWJw+ZblsUgoY NKuIj2teyGsMcy4AFySVokEmMkSVgRg8bMSxiCqVdEDpt2cb9V5SKI86lrCMrTWpoQsO WpWw== X-Gm-Message-State: ABy/qLYrvY+wbhRjtFYN+XEsrcfEqAKsucrhfSUfVUu45LKdxsFzxkzc lxJpVatqkOD9yabgXye1Sgi94e0K3rP0wA== X-Google-Smtp-Source: APBJJlEw6L1FxYH1BSPRmdIw45CdWdYwn2wBSFJahG6iqKqyaL3El1h7gHyq5sH/ONb8UTtVUqdgVA== X-Received: by 2002:a17:906:8052:b0:992:9d41:875b with SMTP id x18-20020a170906805200b009929d41875bmr1254648ejw.32.1688647432412; Thu, 06 Jul 2023 05:43:52 -0700 (PDT) Received: from david-ryuzu.fritz.box (ipbcc3a9b0.dynamic.kabel-deutschland.de. [188.195.169.176]) by smtp.googlemail.com with ESMTPSA id w14-20020a170906b18e00b00992ca779f42sm775915ejy.97.2023.07.06.05.43.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jul 2023 05:43:52 -0700 (PDT) From: David Wronek To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , Taniya Das Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, David Wronek Subject: [PATCH v2 2/7] dt-bindings: arm: qcom,ids: Add SoC ID for SM7125 Date: Thu, 6 Jul 2023 14:40:21 +0200 Message-ID: <20230706124339.134272-3-davidwronek@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230706124339.134272-1-davidwronek@gmail.com> References: <20230706124339.134272-1-davidwronek@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add the SoC ID for Qualcomm SM7125. Signed-off-by: David Wronek Acked-by: Krzysztof Kozlowski --- include/dt-bindings/arm/qcom,ids.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/arm/qcom,ids.h b/include/dt-bindings/arm/qcom,ids.h index bcbe9ee2cdaf..6a8dd2e42b24 100644 --- a/include/dt-bindings/arm/qcom,ids.h +++ b/include/dt-bindings/arm/qcom,ids.h @@ -215,6 +215,7 @@ #define QCOM_ID_SDA429W 437 #define QCOM_ID_SM8350 439 #define QCOM_ID_QCM2290 441 +#define QCOM_ID_SM7125 443 #define QCOM_ID_SM6115 444 #define QCOM_ID_IPQ5010 446 #define QCOM_ID_IPQ5018 447 From patchwork Thu Jul 6 12:40:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wronek X-Patchwork-Id: 701266 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1C7EDEB64D9 for ; Thu, 6 Jul 2023 12:44:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232134AbjGFMog (ORCPT ); Thu, 6 Jul 2023 08:44:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbjGFMoc (ORCPT ); Thu, 6 Jul 2023 08:44:32 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CA761BD6; Thu, 6 Jul 2023 05:44:00 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-99384a80af7so75649166b.2; Thu, 06 Jul 2023 05:43:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688647434; x=1691239434; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=R8V9jbWrkBD6li8Ss0Ga4cRkbrGO/YOXZLHgGgY4Tpc=; b=MSfOoGUYb7hZtYlE44RKP1Ocb19TzdfgNykh+t35lAvd+VtyjkGdaemYADJ3FoXZCM etVzR0O0KEOJo7mrfSyG9mMFyBUybkaQdarVd+hv5+2w6XGXVtxDGpz+SQpxZwW3NVHH 5KbJgEbg4oPt6DU49lteLc7PJ80ucVIExyFCLD5FAvoPwVQapWriEN6J5uuS2mgzBImP 7D6n68qeF7igNP1cd65979TZMSUw3ga1WtOlwj1STjPsK4OZVFebcRXQ/jKs29KZmEox 5tDjUT29AQCAEn0unug7p2Jfcheh+xfK/ijsMxI6vSPLmcZPmzICmvyP7p6N7unZHcLA bbAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688647434; x=1691239434; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=R8V9jbWrkBD6li8Ss0Ga4cRkbrGO/YOXZLHgGgY4Tpc=; b=IzYH5KMzlHbUzxXiDnA8T752ef+xowv+07SicxX7KzJaLokSAKmaBcbb2jRHzUSPS9 BZgTk/oN6ASGLrDZgYTDGqrKi8U9bod9zif9JyRDMXWsO/xBvHyS6SZRHHe6REm41Gf4 EOmDIq9+7peh8R9gIgFwTfdx+teSJj9xJCiRorQl969diGuMe+0MtYLFvEg/p6hODEYR jHmfTNkyEAEjF6cbWvfvTU/gg6sF02gcph6PZtXOmivGRgF8jBsgt9gbQu4QBfj0+qqx v0W10wCNoUWrc4UtJD/KS5bxL5FIKHtqeWZuy1BVkvk1AcAUjGdN+srAMqY7N3KfvD/Z iIDA== X-Gm-Message-State: ABy/qLZzrr8LqTbAltxCI9iXQh182tTM9XftgVZb+C5wclxSDRtMtXIh N1UuOTylOUhmepM94TzZ1jg= X-Google-Smtp-Source: APBJJlHauMP8NsjtzwndN9TJ8WC9k+JmQq4SW+wpJwc0UrWU/EnTICNk2gbbzdJgSH/BexjNZSiQzw== X-Received: by 2002:a17:906:4ad2:b0:988:a986:b11c with SMTP id u18-20020a1709064ad200b00988a986b11cmr1174341ejt.29.1688647434272; Thu, 06 Jul 2023 05:43:54 -0700 (PDT) Received: from david-ryuzu.fritz.box (ipbcc3a9b0.dynamic.kabel-deutschland.de. [188.195.169.176]) by smtp.googlemail.com with ESMTPSA id w14-20020a170906b18e00b00992ca779f42sm775915ejy.97.2023.07.06.05.43.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jul 2023 05:43:53 -0700 (PDT) From: David Wronek To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , Taniya Das Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, David Wronek , Krzysztof Kozlowski Subject: [PATCH v2 3/7] dt-bindings: arm: qcom: Document SM7125 and xiaomi,joyeuse board Date: Thu, 6 Jul 2023 14:40:22 +0200 Message-ID: <20230706124339.134272-4-davidwronek@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230706124339.134272-1-davidwronek@gmail.com> References: <20230706124339.134272-1-davidwronek@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Document the xiaomi,joyeuse board based on the Qualcomm SM7125 SoC. Reviewed-by: Krzysztof Kozlowski Signed-off-by: David Wronek --- Documentation/devicetree/bindings/arm/qcom.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml index 450f616774e0..a403c433e9b5 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -77,6 +77,7 @@ description: | sm6125 sm6350 sm6375 + sm7125 sm7225 sm8150 sm8250 @@ -929,6 +930,11 @@ properties: - sony,pdx225 - const: qcom,sm6375 + - items: + - enum: + - xiaomi,joyeuse + - const: qcom,sm7125 + - items: - enum: - fairphone,fp4 @@ -1072,6 +1078,7 @@ allOf: - qcom,sm6115 - qcom,sm6125 - qcom,sm6350 + - qcom,sm7125 - qcom,sm7225 - qcom,sm8150 - qcom,sm8250 From patchwork Thu Jul 6 12:40:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wronek X-Patchwork-Id: 701264 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A3BBC07CA9 for ; Thu, 6 Jul 2023 12:44:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232149AbjGFMon (ORCPT ); Thu, 6 Jul 2023 08:44:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231652AbjGFMod (ORCPT ); Thu, 6 Jul 2023 08:44:33 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB9431BE3; Thu, 6 Jul 2023 05:44:00 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-98e39784a85so349407666b.1; Thu, 06 Jul 2023 05:44:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688647435; x=1691239435; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QpUyabRflIUlGBtrTxyGcNkzTyYZM7yVhSIDAooxAH8=; b=IirKIMiKlVAMoq6Wi7784z2k7wDNDzNlbWwa0llBPDA6FheHB/6RYSuKQQHlv3Li91 p3Ug0PlQxTrmxJTqGimWvVFDMFiy7+Rv/+6jcREur9TQsgjc80hUXdDTbMaLbgahg5Rq c02B92ZB+4KKeoaxczSv2lrWbGuE5Gyt2WZI8rgMexEvv7DrRbCsszJne69sKuTrwWME wIKW+c53wrQMYF+Q+KFmzCE55AvD8y2vpBwMmcoWLQeNZtG7T5kLNn/EKCJt2sVBqtlR fIKvDDsYXLwRUrNJmkSkbiNDwhRFyxuQabrlaaddA6uiFpzAHqfnYXR475hpFDCAYJqh hyPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688647435; x=1691239435; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QpUyabRflIUlGBtrTxyGcNkzTyYZM7yVhSIDAooxAH8=; b=HNuFHA15oaBFTnMcwepZ70XwdMatLh49EhxIOJ7juD2QF9r1E30gsaVVrtnZL/tTgI qg66v044zFs2uwvIpLyZvarcVoQQJRWMOmnwxqKE2FAKMOJA9Q3YlXhZdtjJKm1KV7mD OagbG7Y1UEoUpXc2HxYj3yD1dlFDYv98Ef6pIa7bbm//tTFE9EOuD5MCceXY5GM27pjy cBhPr33706YRgezbmeWOTpkfxBVUJrxmqOGzBjOWSlv/DWmsYRaSpW6XsLSisdKi5OVa qmnQZxvxzMw3wg24FISl3ZCygXQF5+HRPIRNx/AJJOXQFxayPrcN56hwggPrystVOP7E gn2g== X-Gm-Message-State: ABy/qLb+ozXgkYxUXjQQh6QFdR02xE7nbAooguDvOYhfIpJxh+hs6tK2 chv9UF2TTctx1QRIVwtp7eY= X-Google-Smtp-Source: APBJJlFoODgCXbBVvmHU5Iq7k+lss/vfPaUqCTGdvq1YFGM244eTcKQlIwGIboJF0977yJp5kYJw+Q== X-Received: by 2002:a17:907:6285:b0:978:2b56:d76e with SMTP id nd5-20020a170907628500b009782b56d76emr4647638ejc.12.1688647435225; Thu, 06 Jul 2023 05:43:55 -0700 (PDT) Received: from david-ryuzu.fritz.box (ipbcc3a9b0.dynamic.kabel-deutschland.de. [188.195.169.176]) by smtp.googlemail.com with ESMTPSA id w14-20020a170906b18e00b00992ca779f42sm775915ejy.97.2023.07.06.05.43.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jul 2023 05:43:54 -0700 (PDT) From: David Wronek To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , Taniya Das Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, David Wronek Subject: [PATCH v2 4/7] soc: qcom: socinfo: Add SoC ID for SM7125 Date: Thu, 6 Jul 2023 14:40:23 +0200 Message-ID: <20230706124339.134272-5-davidwronek@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230706124339.134272-1-davidwronek@gmail.com> References: <20230706124339.134272-1-davidwronek@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add the SoC ID entry for Qualcomm SM7125. Signed-off-by: David Wronek --- drivers/soc/qcom/socinfo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c index 4d49945b3a35..785b88e2da54 100644 --- a/drivers/soc/qcom/socinfo.c +++ b/drivers/soc/qcom/socinfo.c @@ -371,6 +371,7 @@ static const struct soc_id soc_id[] = { { qcom_board_id(SDA429W) }, { qcom_board_id(SM8350) }, { qcom_board_id(QCM2290) }, + { qcom_board_id(SM7125) }, { qcom_board_id(SM6115) }, { qcom_board_id(IPQ5010) }, { qcom_board_id(IPQ5018) }, From patchwork Thu Jul 6 12:40:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wronek X-Patchwork-Id: 701265 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2CF7EC00528 for ; Thu, 6 Jul 2023 12:44:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229793AbjGFMoh (ORCPT ); Thu, 6 Jul 2023 08:44:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232006AbjGFMof (ORCPT ); Thu, 6 Jul 2023 08:44:35 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E40531BF0; Thu, 6 Jul 2023 05:44:02 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-51dec0b6fecso947657a12.1; Thu, 06 Jul 2023 05:44:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688647436; x=1691239436; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7TE1n+MGQuKs3FdA5Q59+sPT4axcOEYjNeOfcfoQUrI=; b=ToqjMYUcVhSZGh/fmk+F2ssrFSqxuIIt4Zn3zOICqukfLcAUDWS5bIly0svw61bGDJ eHkGzLzbhbPw1jIXNcaHxNIozx60JzblQzlX7Gw3JrbflF8eLzV6JcZAAxnoivRuFlly YAdJoX2ONIh1UWqCk0K3MZB/gC9o0kdiMoaxdFuCzxTwB3W1tGILdsXnLP+uaDBxR0Po iKwSI57EUwmro56XsYEM9Y2dBSXHOpEOMIdQMqjWtuTRKUMF8VWJF+At68Gg9Y3Qlb9L agBDXYL8ShSvGfPWVzaCdAw1ekek1XSju/5w0DUbJXYmSw8c2aWyFuuDf4ZFCMIT+r/u 6/+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688647436; x=1691239436; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7TE1n+MGQuKs3FdA5Q59+sPT4axcOEYjNeOfcfoQUrI=; b=kCtH1S9OwAzDT9zUeyebymPbYd1kG9Z8UBzk+dIusP3fB4kgcCzEkbxVzRagwKDp/w VxWCs7VOCQOZhyg/0BE3Eb+45Ahd7vK4JjdiZWmfJ5pf46pV66dy6eRkhUryG497uPW3 Ny1gzKqgT407Ru6i54bL2vdpYS9tIo8d1T6T1parRIH2RPN5Q68KHe1v/jo/Rl9plVri qUqN66wo76y6/+4HZjjqDyLwVfEou8Wr1xqSWn02hA4Zeu1p5TMKFTIZhzeRYr/byi7X TdDHtkqLjs1Gf6Bp1WDz7eQRBSrhrrqsmMrncj9/0+NA6cNHJ/q44CbVzVkzPYqbqs+k dEhg== X-Gm-Message-State: ABy/qLaXDsM8QPcuus3X0uIK4XG45bTSp3dZbC1JnFBIckNGFHEOBtRV slHyDdp7Fg5EkZHbwbW1JHE= X-Google-Smtp-Source: APBJJlF3CKrgK8GgYjAumb5530dT9DHmA0U/+EP0j94TuIMcSTorWhd8GKDSQ1uY0sFFSi6Lx6nxHA== X-Received: by 2002:a17:906:2201:b0:973:e79c:3da8 with SMTP id s1-20020a170906220100b00973e79c3da8mr1305851ejs.17.1688647436195; Thu, 06 Jul 2023 05:43:56 -0700 (PDT) Received: from david-ryuzu.fritz.box (ipbcc3a9b0.dynamic.kabel-deutschland.de. [188.195.169.176]) by smtp.googlemail.com with ESMTPSA id w14-20020a170906b18e00b00992ca779f42sm775915ejy.97.2023.07.06.05.43.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jul 2023 05:43:55 -0700 (PDT) From: David Wronek To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , Taniya Das Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, David Wronek Subject: [PATCH v2 5/7] arm64: dts: qcom: pm6150: Add resin and rtc nodes Date: Thu, 6 Jul 2023 14:40:24 +0200 Message-ID: <20230706124339.134272-6-davidwronek@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230706124339.134272-1-davidwronek@gmail.com> References: <20230706124339.134272-1-davidwronek@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add support for the RTC which is the same as on other PMICs and add the resin child node to the PM6150 PON device and disable it by default. Signed-off-by: David Wronek Tested-by: Nikita Travkin # sc7180, Aspire 1 --- arch/arm64/boot/dts/qcom/pm6150.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm6150.dtsi b/arch/arm64/boot/dts/qcom/pm6150.dtsi index 2e6afa296141..43c50f890e8b 100644 --- a/arch/arm64/boot/dts/qcom/pm6150.dtsi +++ b/arch/arm64/boot/dts/qcom/pm6150.dtsi @@ -53,6 +53,14 @@ pm6150_pwrkey: pwrkey { bias-pull-up; linux,code = ; }; + + pm6150_resin: resin { + compatible = "qcom,pm8941-resin"; + interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + bias-pull-up; + status = "disabled"; + }; }; pm6150_temp: temp-alarm@2400 { @@ -88,6 +96,13 @@ pm6150_adc_tm: adc-tm@3500 { status = "disabled"; }; + rtc@6000 { + compatible = "qcom,pm8941-rtc"; + reg = <0x6000>, <0x6100>; + reg-names = "rtc", "alarm"; + interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; + }; + pm6150_gpios: gpio@c000 { compatible = "qcom,pm6150-gpio", "qcom,spmi-gpio"; reg = <0xc000>; From patchwork Thu Jul 6 12:40:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wronek X-Patchwork-Id: 699682 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A53A0C05051 for ; Thu, 6 Jul 2023 12:44:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232282AbjGFMom (ORCPT ); Thu, 6 Jul 2023 08:44:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232055AbjGFMog (ORCPT ); Thu, 6 Jul 2023 08:44:36 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33B721BDC; Thu, 6 Jul 2023 05:44:03 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-51de841a727so973164a12.3; Thu, 06 Jul 2023 05:44:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688647437; x=1691239437; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bcIHaSKrR4JjJODseymsMqDO3fa+MLFhDB6UjbjUTpo=; b=VKy43Yn+75e3xp+itIn/OCxheIGOyy3Pcph+MtgDPjaTZi+ivzO67Y+qUKBnkbC+3t 9XmLG11B5mdwEIYJjvFwgb1KiVr8SGLVWqzZ47lGjSBEREplgigythQht/BIcZhVSgPZ 0X9NMcBzIaL37a7evoRvImTRsohJsmEyZlbzJHMzd8GlvQYF0/ay2M7dwkCzMGdcOP7U CfNuvAR6qm5xWnrne1tSh1vcG0Jrnwc4NG3EJwthivfwn/uYJskO4n8so6GnXEVVYhNi L/SAqpnIEwxNYSF4gkWMsF/7f2dDR+p7+LHKATf4L+Ydf70hgcU4z0LVSN6yAZ9MLaW2 9XpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688647437; x=1691239437; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bcIHaSKrR4JjJODseymsMqDO3fa+MLFhDB6UjbjUTpo=; b=bDvU3n2SetkvGIs0bBJS/j5kU9PwqMF1nRzJN69xv+Av/zGCycnl9tI3XjJNS4t03I Nc6nem8hAJeDyp1OpsD6Vap0ZpOlGW3DiVXao+j4cm9uCsc5eAQB23J7kMq/KFhtFAv4 svtThJjQXYE93k23b+8d6PwT6LzKn8XUoALasbF03083mz2SJsqH0QKlvw6bJ7+PKXhg 90eDLyk8ZDLXaA2QJVL8TDbLWd0/VMV9lJ2rcFvkuUd0O2lzhoQvD47Gokvrw9aOetUM ehMZwd5QlRqhR2NipcUDOhObb8AtGGiEG2dYSFquUxqMy3L66gF6pt5zlVXRPOWWksUs qkLw== X-Gm-Message-State: ABy/qLbyZDY2akT9KtN9Pixiax7AFPH9MHhIJKUFVYM2wWFl3u9BHfT2 4neB7tc73tzgKZr/lJ2L7ew= X-Google-Smtp-Source: APBJJlH3opFDdnvkrdFGf3Db3SeZIHatbH1fnNmGhn0z769Jj3H55xMu9R4yTldNCq+xsW7Mv6vAUQ== X-Received: by 2002:a17:906:4307:b0:992:c5ad:18bc with SMTP id j7-20020a170906430700b00992c5ad18bcmr1211526ejm.70.1688647437130; Thu, 06 Jul 2023 05:43:57 -0700 (PDT) Received: from david-ryuzu.fritz.box (ipbcc3a9b0.dynamic.kabel-deutschland.de. [188.195.169.176]) by smtp.googlemail.com with ESMTPSA id w14-20020a170906b18e00b00992ca779f42sm775915ejy.97.2023.07.06.05.43.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jul 2023 05:43:56 -0700 (PDT) From: David Wronek To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , Taniya Das Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, David Wronek Subject: [PATCH v2 6/7] arm64: dts: qcom: Add SM7125 device tree Date: Thu, 6 Jul 2023 14:40:25 +0200 Message-ID: <20230706124339.134272-7-davidwronek@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230706124339.134272-1-davidwronek@gmail.com> References: <20230706124339.134272-1-davidwronek@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The Snapdragon 720G (sm7125) is software-wise very similar to the Snapdragon 7c with minor differences in clock speeds and as added here, it uses the Kryo 465 instead of Kryo 468. Signed-off-by: David Wronek --- arch/arm64/boot/dts/qcom/sm7125.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sm7125.dtsi diff --git a/arch/arm64/boot/dts/qcom/sm7125.dtsi b/arch/arm64/boot/dts/qcom/sm7125.dtsi new file mode 100644 index 000000000000..12dd72859a43 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sm7125.dtsi @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) 2021, The Linux Foundation. All rights reserved. + */ + +#include "sc7180.dtsi" + +/* SM7125 uses Kryo 465 instead of Kryo 468 */ +&CPU0 { compatible = "qcom,kryo465"; }; +&CPU1 { compatible = "qcom,kryo465"; }; +&CPU2 { compatible = "qcom,kryo465"; }; +&CPU3 { compatible = "qcom,kryo465"; }; +&CPU4 { compatible = "qcom,kryo465"; }; +&CPU5 { compatible = "qcom,kryo465"; }; +&CPU6 { compatible = "qcom,kryo465"; }; +&CPU7 { compatible = "qcom,kryo465"; }; From patchwork Thu Jul 6 12:40:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wronek X-Patchwork-Id: 699681 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F27BDC10F1A for ; Thu, 6 Jul 2023 12:44:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232248AbjGFMoo (ORCPT ); Thu, 6 Jul 2023 08:44:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231756AbjGFMoi (ORCPT ); Thu, 6 Jul 2023 08:44:38 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84E791FC2; Thu, 6 Jul 2023 05:44:05 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-992b2249d82so83698366b.1; Thu, 06 Jul 2023 05:44:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688647438; x=1691239438; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=lcSkeEq2W4IMpRVH+aWCioiuoulW8rzfP9jOu6a3p6c=; b=FBc819myOJSq4VBx0YHWIuVtp8WT0GNR8Xb/Gy4/kaIAe4VnXQdF0hfN6TmYOysChb 9adpTa9BvU7D4WDotlTDPX9AbXmS1gMyiEHl6lgKAqTF+7uL5DBxtGFYgB0FxmRrvwgd zuLPMr0asvGQNYIORhCww4HFiYlRrneUo7vdqAxu8ipqQJfA+wmmbKnnzht8v67hwfhZ vfBLIHx6vEc3RrVseGyoiTyWWEP9qX38SpsoZp+OD8kiKCeKskrMhPvaFpdHDEC9gSpO LRDQvYybh+Nsdq5huA/w47FKcTqFiMHQHM0Jg4Khw+B54P1mmV1GxeP9h53J2pZTGy0N cuYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688647438; x=1691239438; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lcSkeEq2W4IMpRVH+aWCioiuoulW8rzfP9jOu6a3p6c=; b=ck9MIqgTtyD2oRQCRCBcgXW5Fqj98VO9Urt6pMmTG0nP8K7VnBvZpVUyUKq3zwwFCy sw8MAHw6VPhiX7JAetfXfaGiimtrNZH3BM4ihZbIhHrwnbPMAY9YXyrhRRRj2QWFcbqv BA1dzt7+eJYoeg1OhA5ihtANTbzsNJELBKR93S5A88WdfIwOC4UVUbP+4s5OoVyRb3QP UETpymfZfQ+SaiHNdR6y5MCLbpEna18Tx7fwAkU09k4at0AL4H3bzkOLoFCvTw5cMOpO zPlDLmlSQ8xPPvEgtcaXU8hjILMyjG4D0tDzg3em7wTu7feW3hVHJrE2BC4tiHAzaw9u DRXg== X-Gm-Message-State: ABy/qLafxWlNu3+9R9xCQTjr7pBKbiNhjHRqGBJby6uM4wR9cqSMXyOQ eveSBCtHdD2fkv4XXYaIcW8= X-Google-Smtp-Source: APBJJlGqG7qI0Hhq0tGpjaUrS5DHeoOh2H23Md+tvbYPU/mFOWcvXmXwZMsv4lGYnefd7qUCgEih+A== X-Received: by 2002:a17:906:3f09:b0:992:528:abe with SMTP id c9-20020a1709063f0900b0099205280abemr1324434ejj.53.1688647438100; Thu, 06 Jul 2023 05:43:58 -0700 (PDT) Received: from david-ryuzu.fritz.box (ipbcc3a9b0.dynamic.kabel-deutschland.de. [188.195.169.176]) by smtp.googlemail.com with ESMTPSA id w14-20020a170906b18e00b00992ca779f42sm775915ejy.97.2023.07.06.05.43.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jul 2023 05:43:57 -0700 (PDT) From: David Wronek To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , Taniya Das Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, David Wronek Subject: [PATCH v2 7/7] arm64: dts: qcom: Add support for the Xiaomi SM7125 platform Date: Thu, 6 Jul 2023 14:40:26 +0200 Message-ID: <20230706124339.134272-8-davidwronek@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230706124339.134272-1-davidwronek@gmail.com> References: <20230706124339.134272-1-davidwronek@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org There are 6 Xiaomi smartphones with the SM7125 SoC: - POCO M2 Pro (gram) - Redmi Note 9S (curtana) - Redmi Note 9 Pro (Global, joyeuse) - Redmi Note 9 Pro (India, curtana) - Redmi Note 9 Pro Max (excalibur) - Redmi Note 10 Lite (curtana) These devices share a common board design (a.k.a miatoll) with only a few differences. Add support for the common board, as well as support for the global Redmi Note 9 Pro. Signed-off-by: David Wronek --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/sm7125-xiaomi-joyeuse.dts | 16 + .../boot/dts/qcom/sm7125-xiaomi-miatoll.dtsi | 419 ++++++++++++++++++ 3 files changed, 436 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sm7125-xiaomi-joyeuse.dts create mode 100644 arch/arm64/boot/dts/qcom/sm7125-xiaomi-miatoll.dtsi diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 337abc4ceb17..7ef9e7d43904 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -192,6 +192,7 @@ dtb-$(CONFIG_ARCH_QCOM) += sm6125-sony-xperia-seine-pdx201.dtb dtb-$(CONFIG_ARCH_QCOM) += sm6125-xiaomi-laurel-sprout.dtb dtb-$(CONFIG_ARCH_QCOM) += sm6350-sony-xperia-lena-pdx213.dtb dtb-$(CONFIG_ARCH_QCOM) += sm6375-sony-xperia-murray-pdx225.dtb +dtb-$(CONFIG_ARCH_QCOM) += sm7125-xiaomi-joyeuse.dtb dtb-$(CONFIG_ARCH_QCOM) += sm7225-fairphone-fp4.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8150-hdk.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8150-microsoft-surface-duo.dtb diff --git a/arch/arm64/boot/dts/qcom/sm7125-xiaomi-joyeuse.dts b/arch/arm64/boot/dts/qcom/sm7125-xiaomi-joyeuse.dts new file mode 100644 index 000000000000..2b3d1ed1bcae --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sm7125-xiaomi-joyeuse.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) 2021, The Linux Foundation. All rights reserved. + */ + +/dts-v1/; + +#include "sm7125-xiaomi-miatoll.dtsi" + +/ { + model = "Xiaomi Redmi Note 9 Pro (Global)"; + compatible = "xiaomi,joyeuse", "qcom,sm7125"; + + /* required for bootloader to select correct board */ + qcom,board-id = <0x50022 1>; +}; diff --git a/arch/arm64/boot/dts/qcom/sm7125-xiaomi-miatoll.dtsi b/arch/arm64/boot/dts/qcom/sm7125-xiaomi-miatoll.dtsi new file mode 100644 index 000000000000..8ef2153eb1ef --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sm7125-xiaomi-miatoll.dtsi @@ -0,0 +1,419 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) 2021, The Linux Foundation. All rights reserved. + */ + +/dts-v1/; + +#include +#include +#include +#include +#include "sm7125.dtsi" +#include "pm6150.dtsi" +#include "pm8150l.dtsi" + +/delete-node/ &ipa_fw_mem; +/delete-node/ &rmtfs_mem; + +/ { + chassis-type = "handset"; + + qcom,msm-id = ; + + chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + framebuffer@9c000000 { + compatible = "simple-framebuffer"; + reg = <0x0 0x9c000000 0x0 (1080 * 2400 * 4)>; + width = <1080>; + height = <2400>; + stride = <(1080 * 4)>; + format = "a8r8g8b8"; + clocks = <&gcc GCC_DISP_HF_AXI_CLK>; + }; + }; + + gpio_keys: gpio-keys { + compatible = "gpio-keys"; + + key-vol-down { + label = "Volume Up"; + linux,code = ; + gpios = <&pm8150l_gpios 2 GPIO_ACTIVE_LOW>; + debounce-interval = <15>; + linux,can-disable; + wakeup-source; + }; + }; + + reserved-memory { + mpss_mem: memory@86000000 { + reg = <0x0 0x86000000 0x0 0x8400000>; + no-map; + }; + + venus_mem: memory@8ee00000 { + reg = <0x0 0x8ee00000 0x0 0x500000>; + no-map; + }; + + cdsp_mem: memory@8f300000 { + reg = <0x0 0x8f300000 0x0 0x1e00000>; + no-map; + }; + + adsp_mem: memory@91100000 { + reg = <0x0 0x91100000 0x0 0x2800000>; + no-map; + }; + + wlan_mem: memory@93900000 { + reg = <0x0 0x93900000 0x0 0x200000>; + no-map; + }; + + ipa_fw_mem: memory@93b00000 { + reg = <0x0 0x93b00000 0x0 0x10000>; + no-map; + }; + + gpu_mem: memory@93b15000 { + reg = <0x0 0x93b15000 0x0 0x2000>; + no-map; + }; + + cont_splash_mem: memory@9c000000 { + reg = <0x0 0x9c000000 0x0 (1080 * 2400 * 4)>; + no-map; + }; + + pstore_mem: ramoops@9d800000 { + compatible = "ramoops"; + reg = <0x0 0x9d800000 0x0 0x400000>; + record-size = <0x80000>; + pmsg-size = <0x200000>; + console-size = <0x100000>; + }; + + rmtfs_mem: memory@fa601000 { + compatible = "qcom,rmtfs-mem"; + reg = <0x0 0xfa601000 0x0 0x200000>; + no-map; + + qcom,client-id = <1>; + qcom,vmid = ; + }; + }; +}; + +&apps_rsc { + regulators-0 { + compatible = "qcom,pm6150-rpmh-regulators"; + qcom,pmic-id = "a"; + + vreg_s1a_1p1: smps1 { + regulator-min-microvolt = <1128000>; + regulator-max-microvolt = <1128000>; + }; + + vreg_s4a_1p0: smps4 { + regulator-min-microvolt = <824000>; + regulator-max-microvolt = <1120000>; + }; + + vreg_s5a_2p0: smps5 { + regulator-min-microvolt = <1744000>; + regulator-max-microvolt = <2040000>; + }; + + vreg_l1a_1p2: ldo1 { + regulator-min-microvolt = <1178000>; + regulator-max-microvolt = <1256000>; + regulator-initial-mode = ; + }; + + vreg_l2a_1p0: ldo2 { + regulator-min-microvolt = <944000>; + regulator-max-microvolt = <1056000>; + regulator-initial-mode = ; + }; + + vreg_l3a_1p0: ldo3 { + regulator-min-microvolt = <968000>; + regulator-max-microvolt = <1064000>; + regulator-initial-mode = ; + }; + + vreg_l4a_0p88: ldo4 { + regulator-min-microvolt = <824000>; + regulator-max-microvolt = <928000>; + regulator-initial-mode = ; + }; + + vreg_l5a_2p7: ldo5 { + regulator-min-microvolt = <2496000>; + regulator-max-microvolt = <3000000>; + regulator-initial-mode = ; + }; + + vreg_l6a_0p6: ldo6 { + regulator-min-microvolt = <568000>; + regulator-max-microvolt = <648000>; + regulator-initial-mode = ; + }; + + vreg_l9a_0p664: ldo9 { + regulator-min-microvolt = <488000>; + regulator-max-microvolt = <800000>; + regulator-initial-mode = ; + }; + + vreg_l10a_1p8: ldo10 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1832000>; + regulator-initial-mode = ; + }; + + vreg_l11a_1p8: ldo11 { + regulator-min-microvolt = <1696000>; + regulator-max-microvolt = <1904000>; + regulator-initial-mode = ; + }; + + vreg_l12a_1p8: ldo12 { + regulator-min-microvolt = <1696000>; + regulator-max-microvolt = <1952000>; + regulator-initial-mode = ; + }; + + vreg_l13a_1p8: ldo13 { + regulator-min-microvolt = <1696000>; + regulator-max-microvolt = <1904000>; + regulator-initial-mode = ; + }; + + vreg_l14a_1p8: ldo14 { + regulator-min-microvolt = <1728000>; + regulator-max-microvolt = <1832000>; + regulator-initial-mode = ; + }; + + vreg_l15a_1p8: ldo15 { + regulator-min-microvolt = <1696000>; + regulator-max-microvolt = <1904000>; + regulator-initial-mode = ; + }; + + vreg_l16a_2p7: ldo16 { + regulator-min-microvolt = <2496000>; + regulator-max-microvolt = <3304000>; + regulator-initial-mode = ; + }; + + vreg_l17a_3p1: ldo17 { + regulator-min-microvolt = <2920000>; + regulator-max-microvolt = <3232000>; + regulator-initial-mode = ; + }; + + vreg_l18a_3p0: ldo18 { + regulator-min-microvolt = <1696000>; + regulator-max-microvolt = <1904000>; + regulator-initial-mode = ; + }; + + vreg_l19a_3p0: ldo19 { + regulator-min-microvolt = <2696000>; + regulator-max-microvolt = <3304000>; + regulator-initial-mode = ; + }; + }; + + regulators-1 { + compatible = "qcom,pm6150l-rpmh-regulators"; + qcom,pmic-id = "c"; + + vreg_s8c_1p3: smps8 { + regulator-min-microvolt = <1120000>; + regulator-max-microvolt = <1408000>; + }; + + vreg_l1c_1p8: ldo1 { + regulator-min-microvolt = <1616000>; + regulator-max-microvolt = <1984000>; + regulator-initial-mode = ; + }; + + vreg_l2c_1p3: ldo2 { + regulator-min-microvolt = <1168000>; + regulator-max-microvolt = <1304000>; + regulator-initial-mode = ; + }; + + vreg_l3c_1p23: ldo3 { + regulator-min-microvolt = <1144000>; + regulator-max-microvolt = <1304000>; + regulator-initial-mode = ; + }; + + vreg_l4c_1p8: ldo4 { + regulator-min-microvolt = <1648000>; + regulator-max-microvolt = <3304000>; + regulator-initial-mode = ; + }; + + vreg_l5c_1p8: ldo5 { + regulator-min-microvolt = <1648000>; + regulator-max-microvolt = <3304000>; + regulator-initial-mode = ; + }; + + vreg_l6c_3p0: ldo6 { + regulator-min-microvolt = <1648000>; + regulator-max-microvolt = <3304000>; + regulator-initial-mode = ; + }; + + vreg_l7c_3p0: ldo7 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3312000>; + regulator-initial-mode = ; + }; + + vreg_l8c_1p8: ldo8 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1904000>; + regulator-initial-mode = ; + }; + + vreg_l9c_2p9: ldo9 { + regulator-min-microvolt = <2952000>; + regulator-max-microvolt = <3304000>; + regulator-initial-mode = ; + }; + + vreg_l10c_3p3: ldo10 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3400000>; + regulator-initial-mode = ; + }; + + vreg_l11c_3p3: ldo11 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3400000>; + regulator-initial-mode = ; + }; + + vreg_bob: bob { + regulator-min-microvolt = <3008000>; + regulator-max-microvolt = <3960000>; + regulator-initial-mode = ; + }; + }; +}; + +&dispcc { + /* HACK: disable until a panel driver is ready to retain simplefb */ + status = "disabled"; +}; + +&pm6150_resin { + linux,code = ; + status = "okay"; +}; + +&sdhc_2 { + cd-gpios = <&tlmm 69 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sdc2_on>; + pinctrl-1 = <&sdc2_off>; + vmmc-supply = <&vreg_l9c_2p9>; + vqmmc-supply = <&vreg_l6c_3p0>; + status = "okay"; +}; + +&tlmm { + gpio-reserved-ranges = <0 4>, <34 4>, <59 4>; + + sdc2_on: sdc2-on-state { + clk-pins { + pins = "sdc2_clk"; + bias-disable; + drive-strength = <16>; + }; + + cmd-pins { + pins = "sdc2_cmd"; + bias-pull-up; + drive-strength = <10>; + }; + + data-pins { + pins = "sdc2_data"; + bias-pull-up; + drive-strength = <10>; + }; + + sd-cd-pins { + pins = "gpio69"; + function = "gpio"; + bias-pull-up; + drive-strength = <2>; + }; + }; + + sdc2_off: sdc2-off-state { + clk-pins { + pins = "sdc2_clk"; + bias-disable; + drive-strength = <2>; + }; + + cmd-pins { + pins = "sdc2_cmd"; + bias-pull-up; + drive-strength = <2>; + }; + + data-pins { + pins = "sdc2_data"; + bias-pull-up; + drive-strength = <2>; + }; + + sd-cd-pins { + pins = "gpio69"; + function = "gpio"; + bias-pull-up; + drive-strength = <2>; + }; + }; +}; + +&usb_1 { + qcom,select-utmi-as-pipe-clk; + status = "okay"; +}; + +&usb_1_dwc3 { + dr_mode = "peripheral"; + maximum-speed = "high-speed"; + status = "okay"; +}; + +&usb_1_hsphy { + vdd-supply = <&vreg_l4a_0p88>; + vdda-phy-dpdm-supply = <&vreg_l17a_3p1>; + vdda-pll-supply = <&vreg_l11a_1p8>; + status = "okay"; +}; + +&usb_1_qmpphy { + vdda-phy-supply = <&vreg_l4a_0p88>; + vdda-pll-supply = <&vreg_l3c_1p23>; + status = "okay"; +};