From patchwork Tue Jul 4 16:31:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wronek X-Patchwork-Id: 699028 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 F24A9C001DB for ; Tue, 4 Jul 2023 16:42:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231876AbjGDQmX (ORCPT ); Tue, 4 Jul 2023 12:42:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231773AbjGDQmN (ORCPT ); Tue, 4 Jul 2023 12:42:13 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF53210F5; Tue, 4 Jul 2023 09:42:11 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2b6adef5c22so89906741fa.3; Tue, 04 Jul 2023 09:42:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688488929; x=1691080929; 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=P1NPQO00RUvISCaGkH2p3FM3CNMfuB7h4Q8LwRfFEJw=; b=lDIAAiA3BLp1hltTyOfOxPdCVmgnDofgCD/aIDcYnz3YoR9RAjvz8AoPHTt7eCJXNq vKW6Xw/JgB8JwFhTdaXZo7Z7Wb1w9rhUhJIDrDOwasqEfFQmOyCWirVscu2m4e0w6UN8 MZpGQjnGdmPSEDokfSy3pP1xk3ejDrS7nsdjbqjvRoPDVPSoXbblln0BZUfQkdrpNYCr UWt78eo+QwZR1SyFdmJNhrEjZxdP3aTip6rrpU4/5N+z9TXDL/1A+g1EeRI5a4YtySjU 8adGZVROMY0LkGaYb91GfMRqwupA/sFKFiXY/Uy5hRp4IeBuaRZFquJ7nZ3vkLUKEsZ6 3h3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688488929; x=1691080929; 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=P1NPQO00RUvISCaGkH2p3FM3CNMfuB7h4Q8LwRfFEJw=; b=cCCSILPCuF54Tl6fPnSN3dvsw1opBfvyRHxUnCmH4zZcbI7oM4BxEe/EvBpagkHdfi hIRhKoDb8Gbpb5WjtCgS/r5vXSn/ZxfSlnKWK4GYhDNQPLC9YYD0SkiUqsjWevao9n8z XsMKqjVPHmxJUEZbviFWAOY+ZKYffPTFMIbQ4I5nsiKKW22M7s8iRYXCHfAyTCuOs6vx D9YavLvRbl+GxKX3Vn5uAtq5hHRjlxgyH7W6yT7SVj58Kij22B+WfVBVU6ppGbmeEtjR TfOTDWEKpd3lhxUsm9nLt+fYgbv5dcasbIY5kI3YW6+Z16ZaqrusM9i3K/ZQEkx7tcDm p9Dg== X-Gm-Message-State: ABy/qLZKb5BevA03eXQE3Sl8wd3+r5VwX8iTuoiBvqP9ulah+HtHK2+y bdJAB7Dtc+bdMZvwIW9MYpYcLJSPNjvFx7lX X-Google-Smtp-Source: APBJJlFURqjBvJzRH1SX5FGs3z/RLlJBfF1I4//xlj5p9fhahlmFRbC5tiQ/0FGwyMMBcMKnBZLDTA== X-Received: by 2002:a2e:86d1:0:b0:2b5:7f12:413f with SMTP id n17-20020a2e86d1000000b002b57f12413fmr10162964ljj.7.1688488929396; Tue, 04 Jul 2023 09:42:09 -0700 (PDT) Received: from david-ryuzu.fritz.box ([188.195.169.176]) by smtp.googlemail.com with ESMTPSA id u15-20020a2e2e0f000000b002b6eb5db863sm1181920lju.43.2023.07.04.09.42.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jul 2023 09:42:09 -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, map220v , David Wronek Subject: [PATCH 1/7] dt-bindings: arm: qcom,ids: Add SoC ID for SM7125 Date: Tue, 4 Jul 2023 18:31:54 +0200 Message-ID: <20230704163848.169853-3-davidwronek@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230704163848.169853-2-davidwronek@gmail.com> References: <20230704163848.169853-2-davidwronek@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: map220v Add the SoC ID for Qualcomm SM7125. Signed-off-by: map220v Signed-off-by: David Wronek --- 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 Tue Jul 4 16:31:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wronek X-Patchwork-Id: 700572 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 CEA31C04E69 for ; Tue, 4 Jul 2023 16:42:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231766AbjGDQmZ (ORCPT ); Tue, 4 Jul 2023 12:42:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231789AbjGDQmO (ORCPT ); Tue, 4 Jul 2023 12:42:14 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D277210FD; Tue, 4 Jul 2023 09:42:12 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2b69e6d324aso93768851fa.0; Tue, 04 Jul 2023 09:42:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688488931; x=1691080931; 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=yEUe4ghhfetmw/fCeUTDTMc801j3sRXLiEJrKSWT/UQ=; b=rMMOsB+v0x3Q5r+BEUgXQJOpot1P7bGTCXUAkRfhBsAlL/lzzbWBMKs8v5pkyaEVca +ytyjS4AsaeSOJAgm2pl7Jxx1aPBZSka/4OR2eabj2pm4AJ3TY5CnCCq+bYP81g3cukL 5q9Cm+AOClxNirOqrUgbzKC9GojKyStKPsnSrsT9z5rxyVEPkVTDniWD3SUQO9vK0m1P V1FAwApTuThb8K8ArwTd3zz/rlaFH9ugqc/CT9U6tyO8ED3VuA0OCoXXCjpRkFaDyvAb HEHMMi3VeZ8eVb+OFMeWTUi/LFpb2FAOLTWXYErSGdjyiux7ri6yNFR+XYFpq9pHVv2R uVtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688488931; x=1691080931; 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=yEUe4ghhfetmw/fCeUTDTMc801j3sRXLiEJrKSWT/UQ=; b=Inez5/+NLBAuKyhT53axlGiAQdSLurU+IZ46ANQqN3EefngHZqPXeHGTiUS3wUKLex dNHmv4Nlk3dbReb3+WaIS2lrpBdWd3ZerMQnApz1aHtAdtDaODm4oSS8FjW3bGULS9Nr bb5eZUHpLf8zhAEaaNwHzsVloLlunpMbRajQuXb+SxW2fvaq6rmzNzeS7PNN03icyNiz xT21tiAvpY+TiYOKP/npdmBpviwkqaoZq8PE/mzNBondU8qAj7wlDCHTffpHBomBp54B 021PrEWQymY0l6CaiRV9dxgWas+fl71hyyyD9lKSOiUbicqclpPj4Hsd32PFunipCPFQ V0KA== X-Gm-Message-State: ABy/qLYw6wRuHlCbeypQMqV6WRUQu946UvO6qPgTPuk7HRtBc+dDW8SN Dey18ehqbvOQ+bsDxLoxIQw= X-Google-Smtp-Source: APBJJlFMtQF7T6uEdmN+jTwHy84oFCpCf7dl6KqwV9Qo6/EPWbp/L0rY4k+TPkM0WjCKfMvDfHaxyQ== X-Received: by 2002:a2e:868b:0:b0:2b6:d0af:effd with SMTP id l11-20020a2e868b000000b002b6d0afeffdmr8998391lji.4.1688488930838; Tue, 04 Jul 2023 09:42:10 -0700 (PDT) Received: from david-ryuzu.fritz.box ([188.195.169.176]) by smtp.googlemail.com with ESMTPSA id u15-20020a2e2e0f000000b002b6eb5db863sm1181920lju.43.2023.07.04.09.42.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jul 2023 09:42:10 -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 2/7] dt-bindings: arm: qcom: Document SM7125 and xiaomi,joyeuse board Date: Tue, 4 Jul 2023 18:31:55 +0200 Message-ID: <20230704163848.169853-4-davidwronek@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230704163848.169853-2-davidwronek@gmail.com> References: <20230704163848.169853-2-davidwronek@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Document the xiaomi,joyeuse board based on the Qualcomm SM7125 SoC. Signed-off-by: David Wronek --- Documentation/devicetree/bindings/arm/qcom.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml index 450f616774e0..862957f845f6 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 From patchwork Tue Jul 4 16:31:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wronek X-Patchwork-Id: 699027 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 8D29FC001B0 for ; Tue, 4 Jul 2023 16:42:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231890AbjGDQm3 (ORCPT ); Tue, 4 Jul 2023 12:42:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230206AbjGDQmR (ORCPT ); Tue, 4 Jul 2023 12:42:17 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35DA31710; Tue, 4 Jul 2023 09:42:14 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2b6a0e36d42so70563701fa.0; Tue, 04 Jul 2023 09:42:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688488932; x=1691080932; 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=HzU070hbK1FElWT7EUzEAp3muC4IoMd2UxaR356EEfE=; b=M7430e9/s0MrEcwW/eCffTM7rJLCy/EhaiyYU9P8R9kz7bltGuIE9xWFLmB4oc3ZHp 9dcY64QPYblnB3cBqc2VSFHo7MT4t3vFOOcFfw0uPVO2aRWUR+nSUa83CBZrGAlEkduL 95wz4qzhu8uaIiQvZNlWkbGpaXCde8OiX49qwtUpUJ1W/0JaRziAdYMgb0ChCLK/Awos tnDFPU+AfHwFPc7vMD2BPNKvmjF+3zT2uvXKfjYKMaCAcB+AqXLDe1W/pIbPvmawkm7o uPQjztKwehYrAEy2L9ui2CQwUk4UeQiB+QfaK6wFbnVtRrZn33HGXekUMfnJcW6BccG9 lbdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688488932; x=1691080932; 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=HzU070hbK1FElWT7EUzEAp3muC4IoMd2UxaR356EEfE=; b=hDdWsL5+z4rr8PSLSS8rqPBCZHrC/PWyzXTsDZpcm0Ggwgd5YJH1xwi48adCtl7bWx m+BS6mPVFiPPzHkrUOz5bumODksQ+nF86kMVr3YXjr5xKWWeU2ZKIPZkffw9oPX5jHo6 sAZMOv/W7TIBQkEVUEbv5VtK0F1jx/AeHSFil2V3b6r+xk4L3D99Y2fMRdKvq1P60Cl2 eEDWg37bB7fhKI8OQKQPmUBDjcTNjun7xH7jROTBva06QOsANsiCg+gawumCVS373xEV dTWxmVY2PAqe7hCIHjZBDtBmyK4OaXKHmy49onp3rHawnw0CyonBkcgUTAZ8xkI8nmLy BnMw== X-Gm-Message-State: AC+VfDx0jbuSfNOeDermx2Qs9p2a6unp/EhPGuaa1bhpdqGW72NsZy5p inJqA9GoNxmycLst0uiSBjo= X-Google-Smtp-Source: ACHHUZ4ngiwOkMysm/pxe567oRbv4EKi8pMbQ4YroPRp1YYtpas/KFuYcoMcmwcTYKF9ejO1jhg7WQ== X-Received: by 2002:a2e:a453:0:b0:2b6:a570:1d5 with SMTP id v19-20020a2ea453000000b002b6a57001d5mr6742975ljn.10.1688488932161; Tue, 04 Jul 2023 09:42:12 -0700 (PDT) Received: from david-ryuzu.fritz.box ([188.195.169.176]) by smtp.googlemail.com with ESMTPSA id u15-20020a2e2e0f000000b002b6eb5db863sm1181920lju.43.2023.07.04.09.42.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jul 2023 09:42:11 -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, map220v , David Wronek Subject: [PATCH 3/7] soc: qcom: socinfo: Add SoC ID for SM7125 Date: Tue, 4 Jul 2023 18:31:56 +0200 Message-ID: <20230704163848.169853-5-davidwronek@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230704163848.169853-2-davidwronek@gmail.com> References: <20230704163848.169853-2-davidwronek@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: map220v Add the SoC ID entry for Qualcomm SM7125. Signed-off-by: map220v 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 Tue Jul 4 16:31:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wronek X-Patchwork-Id: 700571 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 033CAC001B0 for ; Tue, 4 Jul 2023 16:42:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231940AbjGDQmj (ORCPT ); Tue, 4 Jul 2023 12:42:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231608AbjGDQmS (ORCPT ); Tue, 4 Jul 2023 12:42:18 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86D961725; Tue, 4 Jul 2023 09:42:15 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2b6a675743dso89876401fa.2; Tue, 04 Jul 2023 09:42:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688488933; x=1691080933; 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=5JYO2M7vRZa1/xxbWLBVMXjKnA4nuseIujdVy5vF91g=; b=pghI0t5YBwzJ3AdI9JYwld77J9hsXvrdpqlHWa4dWVonfYfm44QXaNRh+YfZCxbrFx Ui4/SBBIR4TO5sFJUPj3JbCZppLZyUMBCi0DdDu115H+uY8HDVryj908wbmSpSLzIx/p uvOEvszbow4ocbt6fR5PjQ2onKt2IM19GMm7sG2Ya1GJaRmiQj+0beuoD2tQgL2wndNw Q9Fy3h3h46COYjJpslEjsmvTyplzvPzDIGjZFbUJjKKclFcsb0x9HgEp65kKS/N8kRxd CyWoP8nWIajomXQXYfjcRBC/OyS0ybqFydicmyk4ushObSVnKJ0G8qHtcdZTCI6QPPX/ 649g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688488933; x=1691080933; 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=5JYO2M7vRZa1/xxbWLBVMXjKnA4nuseIujdVy5vF91g=; b=fqmYt4mXyeYEBiO9S9CaMVLW9L+EnVgIePHdaixsJfDTRT2wbCNARdgsMDX7OttF+D D+h6BsByIuxA3IlnzGV2ITEv7FX67AvURlTdEqzE836sJIHMZMcb4keMW/DXvq9xAWwJ qy5uzFmLdqYOKkzjMZUX/6RaZsIYiJDDYd1iCuLSCYO9ns4gD7kgLVfT8tjllXd46SpO sEB1UebSS4vglhswz2seZX4ajQCRRCMjbPTw8xNXOGRE7bj/Cv+sPlK5xtlEB2EA9d6N 0Vs+omX/vJAhMb0c1zmf0RXIkhnYDCHLKAh053xXEn3zL9gPe0Es5nZLajdZCui1ipz1 Y2DA== X-Gm-Message-State: ABy/qLbODHOw2DTdFnMIzwJ3axvXVY6wseK4SoHWTVtKQIslRSwM6G0L srfkziT5W4DMTA+rZk8YQKg= X-Google-Smtp-Source: APBJJlGsWqDe80udi5tHeC5ZuJvG13BJTy0Ip/B55ZgMSwqho6eBYiMId5M6RQdizGvi5IeOKGLzoA== X-Received: by 2002:a2e:9105:0:b0:2b6:af60:6342 with SMTP id m5-20020a2e9105000000b002b6af606342mr10121385ljg.40.1688488933622; Tue, 04 Jul 2023 09:42:13 -0700 (PDT) Received: from david-ryuzu.fritz.box ([188.195.169.176]) by smtp.googlemail.com with ESMTPSA id u15-20020a2e2e0f000000b002b6eb5db863sm1181920lju.43.2023.07.04.09.42.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jul 2023 09:42:13 -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, map220v , David Wronek Subject: [PATCH 4/7] clk: qcom: gcc-sc7180: Fix up gcc_sdcc2_apps_clk_src Date: Tue, 4 Jul 2023 18:31:57 +0200 Message-ID: <20230704163848.169853-6-davidwronek@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230704163848.169853-2-davidwronek@gmail.com> References: <20230704163848.169853-2-davidwronek@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: map220v Add the PARENT_ENABLE flag to prevent the clock from getting stuck at boot. Fixes: 17269568f726 ("clk: qcom: Add Global Clock controller (GCC) driver for SC7180") Signed-off-by: map220v 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 Tue Jul 4 16:31:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wronek X-Patchwork-Id: 699026 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 E1E29EB64DD for ; Tue, 4 Jul 2023 16:42:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231842AbjGDQml (ORCPT ); Tue, 4 Jul 2023 12:42:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231344AbjGDQmV (ORCPT ); Tue, 4 Jul 2023 12:42:21 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52E101984; Tue, 4 Jul 2023 09:42:17 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2b6a084a34cso87120461fa.1; Tue, 04 Jul 2023 09:42:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688488935; x=1691080935; 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=JazmJwoS+QUKiY3Y4s7xGpV3TmYB/IflMd4mhIwdcIQ=; b=PUdACvo3tY9qL6ip/NwFK9RNrEZpMZ/AW0wLOfb8GKZqa5BqSkv8mGtLumfRlDEbMR RXFSMJLOYg6V+WcCEt8Ywbkuc472hPlbc/5sUlyFVl1i79VByr+as+Ud7/5bHohzC3GT ThhXwnUrTi+0Cj6EW/bSV6wpT+lvvEq0QesjA0qP0VNT7t4lIGwxavWisR/V7kloHTEI M7xcTvdVJP+5RDHuKSIAUsknNrxllkoOZ2sbrwds4zMK6wnha3S2HWPcqfrB1D91shi6 wYK5XmL90F0q5PH7GugD4lQtKtCrbsbU9mbeyF1MMJwgc2PlRXvw/XtT/Fee4Uz6JawL eV4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688488935; x=1691080935; 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=JazmJwoS+QUKiY3Y4s7xGpV3TmYB/IflMd4mhIwdcIQ=; b=N85ME6jWfY/QCcMEeSxEmDqoh+qvoX5EfnZBgK3wZbFrtTzhVFw5+3kWVCWOwcYnGW cuGsmWwolvzP+U5p7qj9V/CGgjYLHZo0+2fK1t3RhToA/C02OinkvHc0klTDPkWT7+oc aWVEyW6rP66xhlUCm07YKNf+krUtpGGrbhm7X+Yy3yT38EEBbUc/OMLT63fR0GtEodnx dYiKyR6nyc8uj3V457wdTLVags+lvPFOXdrFXWqF0tswa93iDcU1SiYOZW3fwQdAXUlb s1U+M3so8luETCmSOCajpOFIRb76Z2M+XBHp4ooSx59BtzNJ98Rz0tMSWvDXAHKQL7ZM TBag== X-Gm-Message-State: ABy/qLakevO0OcoogC6r5Z6jAwYsIcz4jcnc8pGj4C4+Cv29YjAtMZEm NSpseB4Wcn9qAMaSVbVUcIM= X-Google-Smtp-Source: APBJJlEF0IvXOK/PkMKZQI6B0t3SDMWpOpRzqzQ/3s+Ml+HWa6vUGeesEyJ/qMfOXc1XI8I65DPVbA== X-Received: by 2002:a2e:7c0f:0:b0:2b6:d7a0:c27d with SMTP id x15-20020a2e7c0f000000b002b6d7a0c27dmr7077749ljc.37.1688488935094; Tue, 04 Jul 2023 09:42:15 -0700 (PDT) Received: from david-ryuzu.fritz.box ([188.195.169.176]) by smtp.googlemail.com with ESMTPSA id u15-20020a2e2e0f000000b002b6eb5db863sm1181920lju.43.2023.07.04.09.42.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jul 2023 09:42:14 -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 5/7] arm64: dts: qcom: pm6150: Add resin and rtc nodes Date: Tue, 4 Jul 2023 18:31:58 +0200 Message-ID: <20230704163848.169853-7-davidwronek@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230704163848.169853-2-davidwronek@gmail.com> References: <20230704163848.169853-2-davidwronek@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@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 --- 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..9a7c532f7a12 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 = ; + 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_NONE>; + }; + pm6150_gpios: gpio@c000 { compatible = "qcom,pm6150-gpio", "qcom,spmi-gpio"; reg = <0xc000>; From patchwork Tue Jul 4 16:31:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wronek X-Patchwork-Id: 700570 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 8884DC001B1 for ; Tue, 4 Jul 2023 16:42:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231976AbjGDQmm (ORCPT ); Tue, 4 Jul 2023 12:42:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231852AbjGDQmV (ORCPT ); Tue, 4 Jul 2023 12:42:21 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE5EA1721; Tue, 4 Jul 2023 09:42:18 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2b6afc1ceffso95421001fa.0; Tue, 04 Jul 2023 09:42:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688488937; x=1691080937; 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=fKeDDjtxz1ZQI75QbUkXD6YDTxAzeUfWv1d+xUfqO7U=; b=Ns+YGBiWzxQru39ryw0Mxwc6oejcjv4eSdIXbgTh8roV3uHhB4J7E3+A3XSPElDTLv Im1XZ0f0SBacqdaN95RAlR5PH1dQwmRcWBo52vpXWGMlQXfyQIa0cGuhNo4BmbtnbD66 pMKxDEsmofFjTuLDE8oGoxQT6Uc0ztmhN5vDBJTf6Ip6DpVEYyDYWFBE+fBhGgh58rO2 dw0dkaLmXeW7e+QViwni3LLdFPupepsn5k5FciPy9QqJbVANV7ZojCEC9AxH3tx1mhOp yWrPTjGE04+enyQS2M3a8/oy0qeQb38/FdkiDAqNJJ3J0E4ABVGm+tU3K+9/S2UH4S0y 8XBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688488937; x=1691080937; 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=fKeDDjtxz1ZQI75QbUkXD6YDTxAzeUfWv1d+xUfqO7U=; b=PmRrP05Fg6wuPiMEsCyRJfxXddetHNj/nT8+MSQnkTBBgZTqXQL10fZNnhUytLQJPg Ch3M1jmAhT8I0fs3JtjbUJq+cylzbjon9IieWUSrIDp7MzX6FWr1zxV3NK59EWKxp24t WRz9yOAH51Oywtq9MJ5m+bc120PIoe3aEFznsBiHgyjMhNkXNwi1Zp8HbmVXouWVcLJD COc34YUQ/WBAT/8vO3RtLTEbP40+3en08sZ25EIwJurtMM8PywUhgm1T4jakKvlcHSV9 u5Q10yVqaQfoQVgNeHVabt91A/B4CWzeIer1NpgC4Wec/DpCU8G5YlcgQ3EtxU2z+mVQ +jhA== X-Gm-Message-State: ABy/qLZYcOrxHs4sDomJS7oOW9Npcx02c8HfqA7xodod98z1KgEInuRS 9lgkw0CKP9D81oqilQtbfSg= X-Google-Smtp-Source: APBJJlGjWy05nTx4HVL7xaMl3tfy14qIDhXB4p5ufpBoOJ+JOAlGgjSbBfHxCg2Irq3HqYA/w/9nww== X-Received: by 2002:a2e:9348:0:b0:2b6:dfef:d526 with SMTP id m8-20020a2e9348000000b002b6dfefd526mr5645681ljh.11.1688488936543; Tue, 04 Jul 2023 09:42:16 -0700 (PDT) Received: from david-ryuzu.fritz.box ([188.195.169.176]) by smtp.googlemail.com with ESMTPSA id u15-20020a2e2e0f000000b002b6eb5db863sm1181920lju.43.2023.07.04.09.42.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jul 2023 09:42:16 -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, map220v , David Wronek Subject: [PATCH 6/7] arm64: dts: qcom: Add SM7125 device tree Date: Tue, 4 Jul 2023 18:31:59 +0200 Message-ID: <20230704163848.169853-8-davidwronek@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230704163848.169853-2-davidwronek@gmail.com> References: <20230704163848.169853-2-davidwronek@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: map220v 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: map220v 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..8d7a745014db --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sm7125.dtsi @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) 2023, map220v + */ + +#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 Tue Jul 4 16:32:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wronek X-Patchwork-Id: 699025 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 B37E4EB64DD for ; Tue, 4 Jul 2023 16:42:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232001AbjGDQmp (ORCPT ); Tue, 4 Jul 2023 12:42:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231879AbjGDQmX (ORCPT ); Tue, 4 Jul 2023 12:42:23 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E49701B7; Tue, 4 Jul 2023 09:42:19 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2b69ea3b29fso93551701fa.3; Tue, 04 Jul 2023 09:42:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688488938; x=1691080938; 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=GR7RJMw/HsXq4AZe4AuZIysY5rH9af+8d0UnFd3X2RQ=; b=Bjvs8fb2mGbqtKreMSt29jyrx+cZeYGmkgasqfqMkhGyPS7yt0Od611VB17IIUUkyN 68KCEdl4KmrU10mj/71jq82k/ebu/bTdIgP3HWWuPrPYWlLfHVgHqPN0EjQDm6ip56bd A5lDdmwjXlBopRyh6Ydc/UTftFXu6Rtc2NTyUhN133HqTrF/3I0tRdHb/PFyT5S3UxiU wR4c5PsoiIkU5kzrLbIUpfBBS80GM7TkaXmHQ44w1IwnI3KmhC+v4ouNz2CfZLD0rECR xYnK38mVxypgaImmQZx6wl175zZjz2kKabn+jgbiYtxJCzMv3NcLrf1J9raG+z39/a0O wvLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688488938; x=1691080938; 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=GR7RJMw/HsXq4AZe4AuZIysY5rH9af+8d0UnFd3X2RQ=; b=LzRw8nbKR0eJwAiO+a1RO33WPdE9bfML7DobpJ6HMh4NF6l5n2RfZ0zyrzitlwen4b /+AWSMM7UHewfKdLIBg/SIOV6jr1IEE3PQ4KzQidjBKvIAgHLLGjV+Cjr6JKcoNwJymK YNqgeHsQRsO0M5haFQoOsrsMy4Gr8FXILRgLU4CNhJLgsuOe85dwmisfnTCrrMsmXAdP cPvVQWbZmKkakf/Sc9kFtwX66lxotS4zzRfetahTr3J/B5ZPy56O9seTOQVPRnFupo0E Tl1adeCVmND9eAqkHayqY11wynFqKG3N7uAlXG66H98YLmQccFs1q+eUekKr9zsAaHIZ sLLQ== X-Gm-Message-State: ABy/qLZEO/gdQdiW1ARukRJHmIyOaVwyKzxaIAjvb6B8KiEC9wj/oMVL HstBA97txTwaxMsEbmklOkg= X-Google-Smtp-Source: APBJJlHfbx1lrV5X8QgwVKaU5e3hQ4j+0gM+DG6X3QFpimsbVbyN5dtmSP+ZprhQ0uORV9MXhaSwAw== X-Received: by 2002:a2e:9590:0:b0:2b6:e296:bd68 with SMTP id w16-20020a2e9590000000b002b6e296bd68mr5592152ljh.35.1688488937857; Tue, 04 Jul 2023 09:42:17 -0700 (PDT) Received: from david-ryuzu.fritz.box ([188.195.169.176]) by smtp.googlemail.com with ESMTPSA id u15-20020a2e2e0f000000b002b6eb5db863sm1181920lju.43.2023.07.04.09.42.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jul 2023 09:42:17 -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 7/7] arm64: dts: qcom: Add support for the Xiaomi SM7125 platform Date: Tue, 4 Jul 2023 18:32:00 +0200 Message-ID: <20230704163848.169853-9-davidwronek@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230704163848.169853-2-davidwronek@gmail.com> References: <20230704163848.169853-2-davidwronek@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@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 | 420 ++++++++++++++++++ 3 files changed, 437 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..670fd63f3416 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sm7125-xiaomi-joyeuse.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) 2023, David Wronek + */ + +/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..54a1eff9f0c1 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sm7125-xiaomi-miatoll.dtsi @@ -0,0 +1,420 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) 2023, David Wronek + */ + +/dts-v1/; + +#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 = <15>; + }; + }; +}; + +&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 { + status = "okay"; + + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sdc2_on>; + pinctrl-1 = <&sdc2_off>; + vmmc-supply = <&vreg_l9c_2p9>; + vqmmc-supply = <&vreg_l6c_3p0>; + + cd-gpios = <&tlmm 69 GPIO_ACTIVE_HIGH>; +}; + +&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 { + maximum-speed = "high-speed"; + dr_mode = "peripheral"; + status = "okay"; +}; + +&usb_1_hsphy { + vdd-supply = <&vreg_l4a_0p88>; + vdda-pll-supply = <&vreg_l11a_1p8>; + vdda-phy-dpdm-supply = <&vreg_l17a_3p1>; + status = "okay"; +}; + +&usb_1_qmpphy { + status = "okay"; + vdda-phy-supply = <&vreg_l4a_0p88>; + vdda-pll-supply = <&vreg_l3c_1p23>; +};