From patchwork Sat Jul 15 09:16:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wronek X-Patchwork-Id: 13314416 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 19B57C04FE2 for ; Sat, 15 Jul 2023 09:20:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230308AbjGOJUq (ORCPT ); Sat, 15 Jul 2023 05:20:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230387AbjGOJU2 (ORCPT ); Sat, 15 Jul 2023 05:20:28 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C4233AB5; Sat, 15 Jul 2023 02:20:03 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-3fbf1b82de7so16536985e9.1; Sat, 15 Jul 2023 02:20:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689412802; x=1692004802; 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=WEzB1yK4ONu6RzeZXEjanCIg7xapsQp268NSP8ws/7ExCA+IXBkTY5LKcDcin/8Zjh uUgXinV4xkQVibnipIeG2rV3T0RFK/S5FbOEMNlKTlbQsfXocy7jfph6OtzGEjVm5nMg gQq/Tax55XKivN+A3zwygNsiQUB0/hfo0J7XnJP2+kGMs8v96JPZ0U7W5OWgeojOnKBo uM0AosEbxcUmamtsL/Hwrj3yBVCQsD2rsjOFjOd0ESi0FsB2GNIEhjnIlzBhbkyhb0dj WfBx+/7lcvmBtCw4Q0M/7QG0mb9GnnfOPMoamswGt3GHfxO49xjcvpp7OpQBUL+sY+xA rG6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689412802; x=1692004802; 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=HkPQQeZdyHRPFLbMzyiVi4gXO1yknlsXoshQ9qPrXaBbzw16qzuUP/BLA3aJNOKKiv Rw97E23q7qI0+nzqSUZrPGQAtD5zD85Fn9jNDTBAssJ5Hj5M0G5GfwPtFPid2IxgYEv0 O0EG31349lW9cJxDmUcNRV8V7BLNwYBE9gexbLnbJHK5sX16DbtS6Ew2wtvT3B6uBCp6 9+JQrXOYeAcbmgNKiI/FQGZF0rOtcIcjhbTn3dLvy5joXgrnFtyY8R5gr6KYCLfI6Tqk 8HUNZ6YM5mJdcFCq1CBHsC7hZnjOlgNinToQ8TUF5+PAAEvhWRIfWI5Hh4uQlx81GkN2 Tq0w== X-Gm-Message-State: ABy/qLaKz4PI4vZPsTbPO3QNQt44ooRw/IJ4xYnre3C9+u/Q9fWKudxD yUryvS7274MNOfT783WdO+M= X-Google-Smtp-Source: APBJJlGnM4FGqE3vWblVF678YNav3ff/lOOtXfCjSo53HpGrfUUKjr14ILxN6OSeJpdwuQTHQedSpw== X-Received: by 2002:a1c:6a0d:0:b0:3f6:d90:3db with SMTP id f13-20020a1c6a0d000000b003f60d9003dbmr4211358wmc.3.1689412801449; Sat, 15 Jul 2023 02:20:01 -0700 (PDT) Received: from david-ryuzu.fritz.box ([188.195.202.152]) by smtp.googlemail.com with ESMTPSA id f22-20020a7bc8d6000000b003fbb5142c4bsm3238133wml.18.2023.07.15.02.20.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jul 2023 02:20:01 -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, cros-qcom-dts-watchers@chromium.org, David Wronek Subject: [PATCH v3 1/7] clk: qcom: gcc-sc7180: Fix up gcc_sdcc2_apps_clk_src Date: Sat, 15 Jul 2023 11:16:07 +0200 Message-ID: <20230715091932.161507-2-davidwronek@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230715091932.161507-1-davidwronek@gmail.com> References: <20230715091932.161507-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 Reviewed-by: Konrad Dybcio --- 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 Sat Jul 15 09:16:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wronek X-Patchwork-Id: 13314420 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 75438C04FDF for ; Sat, 15 Jul 2023 09:20:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231238AbjGOJUv (ORCPT ); Sat, 15 Jul 2023 05:20:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230389AbjGOJU2 (ORCPT ); Sat, 15 Jul 2023 05:20:28 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3864E3C02; Sat, 15 Jul 2023 02:20:04 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3fb4146e8deso26956575e9.0; Sat, 15 Jul 2023 02:20:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689412803; x=1692004803; 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=hnVCby4OzPzkMY2F/B5v8SGADAGIqKWRP6OZFHSrWRw=; b=VkQi3RlvOhFSRYWKw9dMDmDiqjbmiZddvl4R4S0nQcI2Pu4uqN4elqX9SgHhzOcI0y tgADBbSRHXHN3JVd8DsmjRgOKOS+Bax/HLZ9nwH1xqntRMjQSNAYB5ppL6IiygNA1WMf Y6dnX/CwUb74MA2zyNeHw7Kv3tM9tJy3jdE1RM5kIwerLk8v89UBwN0yjC+aZTnVifMy R+jcfNs5Y3WWlyfQiOO8VC/EdHIU6vzxOweqxzbsnjRP6criyvNDyLMkI5Lalz4l2aH1 AfbMq1ez0Nna51Rc5oC7YA41IBeQAQBaDOiYMeGMByqZRaX3jq/K2O8tzyg19H3uRDct eigA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689412803; x=1692004803; 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=hnVCby4OzPzkMY2F/B5v8SGADAGIqKWRP6OZFHSrWRw=; b=Vc15Ze8ab5losw/w2OKKTUAu/PL++14OMnZVZV3WR1cAjVdrXKHvlv9arynOZLCAHM sYpF0GtMwdUntA3UCDIiO6iVipRWwjH8dEIpdfBTWO+FQ4hhUBXHtxHDwjEsUvXaeLFs haONzYvIV6/1RhsSbbA36zVNDsmpoDCU9Wlgy2rWxkroKGGIeOgRAou7P8hKNRVLthj6 HWSec+M0sPi0tU3P/ZAu6zCFyELR4yIXG3VnDP1hhXJsluzdTVcbj7X18HU4twOxqWZk W8OUhy8cldB1v3s3GBWPATvgIkICOj66I92P0eF0RD5svtHgcx25G5Jj+Z8qV6Oj7erQ 4eOA== X-Gm-Message-State: ABy/qLZMB/l9g28vWt9mWX4c1MyDIiyLa3nsMIC3RvtQnTOm7XJtzgvz 9KqmFSFemOgGJB+So5pa4Pc= X-Google-Smtp-Source: APBJJlHephmSGNo6yqNxglL8a1kuciWQYQvlLXQHxbUJ7SvTRxdl6PXgHC6AvEI3g34VvK+WvYHMDw== X-Received: by 2002:a7b:ce08:0:b0:3f6:1474:905 with SMTP id m8-20020a7bce08000000b003f614740905mr7127494wmc.29.1689412802500; Sat, 15 Jul 2023 02:20:02 -0700 (PDT) Received: from david-ryuzu.fritz.box ([188.195.202.152]) by smtp.googlemail.com with ESMTPSA id f22-20020a7bc8d6000000b003fbb5142c4bsm3238133wml.18.2023.07.15.02.20.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jul 2023 02:20:02 -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, cros-qcom-dts-watchers@chromium.org, David Wronek , Krzysztof Kozlowski Subject: [PATCH v3 2/7] dt-bindings: arm: qcom,ids: Add SoC ID for SM7125 Date: Sat, 15 Jul 2023 11:16:08 +0200 Message-ID: <20230715091932.161507-3-davidwronek@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230715091932.161507-1-davidwronek@gmail.com> References: <20230715091932.161507-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 Sat Jul 15 09:16:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wronek X-Patchwork-Id: 13314415 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 DE81DC04E69 for ; Sat, 15 Jul 2023 09:20:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230512AbjGOJUo (ORCPT ); Sat, 15 Jul 2023 05:20:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229549AbjGOJU2 (ORCPT ); Sat, 15 Jul 2023 05:20:28 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12A4D3C03; Sat, 15 Jul 2023 02:20:05 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-31434226a2eso2901566f8f.1; Sat, 15 Jul 2023 02:20:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689412803; x=1692004803; 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=WA3D4vJ6DdaktgKjCxj8Qv4Yp7ZHpCbyqHre06LdNGhh9wkgSH5ervHghkKWJCH/An Asdj2F/Oog06UcvVvgoydksFXy/pm/tXfnTdl3H9ogLsA/tAMvpclok9gQ7JuHExMZgZ SCzY47YelnEf3AdG0rkgffHU71MrOACRG/I2PUfbK5tJB1gE6DzkpzMBV6Wax2SGJ4gK OrWEBHHaHAaAVl+5SnWm2dhmmFyXERxd8hVUMfoyYnDQW1irpL4snpbXN+L2ke6XnwcJ vkLUZruQKbfXW9/OWYtyW0wX1XmuQ8Hx+PpfwcKx4Sry1MEPcq3Ey+Pw/zMO3omRRu16 D8yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689412803; x=1692004803; 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=GI4pJJqADDu4szHbt/vDR+g0ZPoNH2Uy2O3KmfNXCDMaEl5r0srMdHTPZZX5nCNzxi ILiJKmQEnIEyAEI2RL1evQd8jwPnSJmS09+Y+6YZpJXqKOul66tTQeqpNvmha0Z5Kd/q CoyukrPVQ8bkfIcDjoojwmbJLlPHeYREbme6scQrqVpFf4wDYb57ZaYY3hh5/2uNHXRi wFoBJRoMB2rI7oes+vP9o/1RcDV1uGzI9zmdsW39RybsJNnDSuHNXBd25+k3mb3zUilx ffvXrpJwMz9srmvL3rk0BIRw0dwBQHcAM6T9G7aryFVbif9nEM65ky6oarTSBGbD0gtT ZaPg== X-Gm-Message-State: ABy/qLZuZM/fWxfll8g2JTIN7UYCdnMGZzSDlWEifO9vYGToDzJudxzh +KFsAA16DmF9wkMWgthd1eE= X-Google-Smtp-Source: APBJJlGpCrsDeSmRkVSdUlcYFb9+bZKqeCEnnDzhSZco4W141np5iaGtH/emMEltDuBtCILgvsjhaA== X-Received: by 2002:adf:ed85:0:b0:313:f5f8:b6d2 with SMTP id c5-20020adfed85000000b00313f5f8b6d2mr6722235wro.48.1689412803493; Sat, 15 Jul 2023 02:20:03 -0700 (PDT) Received: from david-ryuzu.fritz.box ([188.195.202.152]) by smtp.googlemail.com with ESMTPSA id f22-20020a7bc8d6000000b003fbb5142c4bsm3238133wml.18.2023.07.15.02.20.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jul 2023 02:20:03 -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, cros-qcom-dts-watchers@chromium.org, David Wronek , Krzysztof Kozlowski Subject: [PATCH v3 3/7] dt-bindings: arm: qcom: Document SM7125 and xiaomi,joyeuse board Date: Sat, 15 Jul 2023 11:16:09 +0200 Message-ID: <20230715091932.161507-4-davidwronek@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230715091932.161507-1-davidwronek@gmail.com> References: <20230715091932.161507-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 Sat Jul 15 09:16:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wronek X-Patchwork-Id: 13314417 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 32024C05053 for ; Sat, 15 Jul 2023 09:20:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231128AbjGOJUp (ORCPT ); Sat, 15 Jul 2023 05:20:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230321AbjGOJU2 (ORCPT ); Sat, 15 Jul 2023 05:20:28 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DAE33C04; Sat, 15 Jul 2023 02:20:06 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-3fbca8935bfso24938235e9.3; Sat, 15 Jul 2023 02:20:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689412805; x=1692004805; 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=BTMQVQh48oncaObvCwMPfvKa0bWzXZnBK799pHg2Dv0=; b=OFu9BuALKJBZ4n3EogoL7nsJNvnyesWVGC/L6lnk9wsFPZKW8sL2ag8AMcIyg1sUiK +oW0aLrFNsQWBJfLLo4A5yY4keb6z6S9nESDOfzP3q0hFRs1VHYrkXaF3ieDIaVYotYY JJMdP4Nn+bNc4JkwzDpE8smQ7Ek/+91skCYH6Yfm7fRQGiTbcn4PcTp6BWX1WsBHDlPo xH6Os0z6Yetw9jMgyC3GesSh8cZ31eO9/E/gN6T1CxLm6sNkbFXZF4m9H7rM6jWu8hBK X92G4vDun8SgBNnOZQ9j2FIoqxcgZ9Bm1gr33cyTZBHOnHCmgiRj7mVLv7nLxqh/IfPm zilg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689412805; x=1692004805; 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=BTMQVQh48oncaObvCwMPfvKa0bWzXZnBK799pHg2Dv0=; b=Xh0hxEJzfCPJNz+KbPmQW4NZ3m1SPfpk8hTDTxKuaOigjUjCncfTQmHFZOx8zsL2f5 gomwztQFfev92Cla8SBs1ShHAn8UrrfOVT/fKsZ51ECptgHSrIVuUFB8IqLE2legno3d vdxVAR0WqqqEwFP+cbCLZRVgHi1B3o3fBdx04SFjEUE6rqLiAHlN7rRwCg1koUhsnH15 2UVi5XnlTdNlnmiUWNT2s/u9OeywqINgNtaVJaQG8O6xJ1lGkNUMEA1N61gSfGfCOhKL ogsmrIlboBD3wc54WrYf5cvzw3bJMBTdj5eT3p4ztV9ey0qQlJZMYukUQmdY3eQDlV/z Vw5Q== X-Gm-Message-State: ABy/qLaxcKzm0tZMmAQtnFRqDU/rbevi6jXLK6MaZPpe6O3A/uzzVxKA cNUdqRC9l72Gb52Lds3scZ4= X-Google-Smtp-Source: APBJJlGe5WNlzAnZQnjWkBYvOFkemYCghTl7dvPK7vHmlZd5JnAx/H1GUb56PQkGy7CW4yfbMSjROA== X-Received: by 2002:a05:600c:247:b0:3fb:b6fa:9871 with SMTP id 7-20020a05600c024700b003fbb6fa9871mr5184620wmj.14.1689412804527; Sat, 15 Jul 2023 02:20:04 -0700 (PDT) Received: from david-ryuzu.fritz.box ([188.195.202.152]) by smtp.googlemail.com with ESMTPSA id f22-20020a7bc8d6000000b003fbb5142c4bsm3238133wml.18.2023.07.15.02.20.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jul 2023 02:20:04 -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, cros-qcom-dts-watchers@chromium.org, David Wronek , Krzysztof Kozlowski Subject: [PATCH v3 4/7] soc: qcom: socinfo: Add SoC ID for SM7125 Date: Sat, 15 Jul 2023 11:16:10 +0200 Message-ID: <20230715091932.161507-5-davidwronek@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230715091932.161507-1-davidwronek@gmail.com> References: <20230715091932.161507-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 Reviewed-by: Krzysztof Kozlowski --- 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 Sat Jul 15 09:16:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wronek X-Patchwork-Id: 13314421 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 23096C10F1A for ; Sat, 15 Jul 2023 09:20:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231201AbjGOJUu (ORCPT ); Sat, 15 Jul 2023 05:20:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230328AbjGOJU3 (ORCPT ); Sat, 15 Jul 2023 05:20:29 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 161543C05; Sat, 15 Jul 2023 02:20:07 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3fbc6ab5ff5so24484465e9.1; Sat, 15 Jul 2023 02:20:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689412805; x=1692004805; 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=16dil7uZ1WaYzCMze6Rz4ebNuwh6PjdbRucSC4l5wwA=; b=PQ5HwDQAstwI8XvaYHRCnN5BPDOq3/zF/9r/cDfT7McPHFhmG+Z6SwIkBWvp5/lSLR ru7sUyy4zDkce54S/UJk1eGyDpS0ym4THJQtJjoQiuLjAL0195zE4YCU8ee/s8/mGlwB 6XYnZkI8xD804+jk7R7mlTt/LN7ov6GuaVGDI43cr0nN3Q3jJFKZdbcu/8XoB/52qiId h3cDKeMmCvyFgu018zO46oZVe+bD+ifPz8fqTAwBY10QgkCWXt/6V3RwclJanXqIrYMn Oh8p8JTQhGA28pn6Iq9H2IzgYLxuFyEZpIR5/xrmflE4+6KhlkowDq85dUcTZH2xuuGr AKcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689412805; x=1692004805; 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=16dil7uZ1WaYzCMze6Rz4ebNuwh6PjdbRucSC4l5wwA=; b=RRFlh+HdJRUOntNxW0iOT7l9i/ODl9oQzKEYpKu2SNp4WLd7zCBx9i8qHAM2Fcl8Mn G3ROQ7LVo8EAQFAt+skznMN84SaZ9U3rAmZz8CNmwQXffBbP9aCRWLXPsivqrkjl09JJ 7UOjCMorpN3G6Cw/i7MavB0Q15qTq9OD3Hc+K5XTtM9ykH7QEfSRkaNvFN0hgmXQPs1s IRlYHlv7PNwxvi+eiSpnzTcIfUSw5aXfqn9/JuTYgP/dxnhPJjl50q9FDk41xBN7XN6r xIoTwz3cl+kb03J24cDeLTNnrMRp+PgZ5gEyZ2fV62lgLBeuiMsR2219I7N861Ccm7o2 k69A== X-Gm-Message-State: ABy/qLa1x11e+zos5yW2AIQOUUyIFCSJ1YKOEAsnIuknJQkPUJmBWH1J gPvdW0IMZhKkkyvmz0SgZmk= X-Google-Smtp-Source: APBJJlHYP7HEns13EOIHz08VVyobQchPqzj3s+RZ6iWGV5V8JDGaWqeub3CgPcfCln225Ss0QmS8TA== X-Received: by 2002:a05:600c:22c4:b0:3fa:9767:c816 with SMTP id 4-20020a05600c22c400b003fa9767c816mr5339647wmg.39.1689412805593; Sat, 15 Jul 2023 02:20:05 -0700 (PDT) Received: from david-ryuzu.fritz.box ([188.195.202.152]) by smtp.googlemail.com with ESMTPSA id f22-20020a7bc8d6000000b003fbb5142c4bsm3238133wml.18.2023.07.15.02.20.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jul 2023 02:20:05 -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, cros-qcom-dts-watchers@chromium.org, David Wronek , Nikita Travkin Subject: [PATCH v3 5/7] arm64: dts: qcom: pm6150: Add resin and rtc nodes Date: Sat, 15 Jul 2023 11:16:11 +0200 Message-ID: <20230715091932.161507-6-davidwronek@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230715091932.161507-1-davidwronek@gmail.com> References: <20230715091932.161507-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, both disabled by default. Signed-off-by: David Wronek Tested-by: Nikita Travkin Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pm6150.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm6150.dtsi b/arch/arm64/boot/dts/qcom/pm6150.dtsi index 2e6afa296141..af51eb0646ba 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,14 @@ pm6150_adc_tm: adc-tm@3500 { status = "disabled"; }; + pm6150_rtc: rtc@6000 { + compatible = "qcom,pm8941-rtc"; + reg = <0x6000>, <0x6100>; + reg-names = "rtc", "alarm"; + interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; + status = "disabled"; + }; + pm6150_gpios: gpio@c000 { compatible = "qcom,pm6150-gpio", "qcom,spmi-gpio"; reg = <0xc000>; From patchwork Sat Jul 15 09:16:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wronek X-Patchwork-Id: 13314419 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 223A9C00528 for ; Sat, 15 Jul 2023 09:20:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230399AbjGOJUt (ORCPT ); Sat, 15 Jul 2023 05:20:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230103AbjGOJU3 (ORCPT ); Sat, 15 Jul 2023 05:20:29 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3498F3C0D; Sat, 15 Jul 2023 02:20:08 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3fbc59de0e2so24466965e9.3; Sat, 15 Jul 2023 02:20:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689412806; x=1692004806; 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=AkcQaKMBERDjTs1UIrpydrPTPsZ61nJCxnccPi60KmmMOcsVgLNr9hUAMdXiNbzaD4 q1D1OxfcioUs9Y0IHhuHnOTZHlCSRLvY/AXq/5iLRbSDh129e2kTZIkQwa74UFhdfF00 ZqYbH3ua5FkBDYNC9r+yRk6d0lEMaKu5aoCkkR3rJZtjoApL46xbMcocRomRpZhtQxIz A1ebtVVfQwgwNyGbir4Kr0yGMlt+XF4LJpbTBJcSOexSni0cnImqXhBU4Sfz9ZlAzVze 7IHwrHH4MJEP3f0IaqFeHs6qa0Ca6sBF8zEBhXLLOdyWMzxyvvDrolToQEhqW+7FORG5 J5ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689412806; x=1692004806; 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=K4hmlOphbWgWV0rLwqUPoCjQx7y+tYGJtdPkfI1lESJx+l4I3k+Ao5yfO00dSLwfWW zAcj46XCrCyFrHVpdpQpf3mdSGfmb+Qa+eznAKBEx5C4Za7fxSDrsPvoYOFmVJ45MK9M ntYOWJDRu9ivvFcWEXX2FBiqzy58V456cyknYowyhZXKGeYZaHA2atoV9K4u4zZgstmk +5t7qz77+6vJ6SFWDp/MbkYLDE96oxlYS30ih2pFJYd3/X4PyF3TX0Qm+VZM7jo+AQdb ReIp67i3ONbm7SdKdZ9Q1pKxO/2r6c6oHt75SLtT/HZqlkxG2F1nZ0jZTpWoKMK8xpxw ReHw== X-Gm-Message-State: ABy/qLZfJW8CYhjN3cr928FGQSQRItON1bdG378N+Q69KICxjy3D7202 /EKpe2xbWczstkWrlSPkTu3SqwUqIv0= X-Google-Smtp-Source: APBJJlGv8dHKCO/r29rQsgsQOIVVso/vVhMdbGJ51bXTdUlhMiljiUkWfMHrLjloHsgJomwyh1skMw== X-Received: by 2002:a05:600c:2489:b0:3fb:b3aa:1c8f with SMTP id 9-20020a05600c248900b003fbb3aa1c8fmr5896747wms.28.1689412806652; Sat, 15 Jul 2023 02:20:06 -0700 (PDT) Received: from david-ryuzu.fritz.box ([188.195.202.152]) by smtp.googlemail.com with ESMTPSA id f22-20020a7bc8d6000000b003fbb5142c4bsm3238133wml.18.2023.07.15.02.20.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jul 2023 02:20:06 -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, cros-qcom-dts-watchers@chromium.org, David Wronek Subject: [PATCH v3 6/7] arm64: dts: qcom: Add SM7125 device tree Date: Sat, 15 Jul 2023 11:16:12 +0200 Message-ID: <20230715091932.161507-7-davidwronek@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230715091932.161507-1-davidwronek@gmail.com> References: <20230715091932.161507-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 Reviewed-by: Konrad Dybcio --- 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 Sat Jul 15 09:16:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wronek X-Patchwork-Id: 13314418 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 D3B85C0729B for ; Sat, 15 Jul 2023 09:20:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230172AbjGOJUr (ORCPT ); Sat, 15 Jul 2023 05:20:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230190AbjGOJUa (ORCPT ); Sat, 15 Jul 2023 05:20:30 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50F2B3C01; Sat, 15 Jul 2023 02:20:09 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-3fbfa811667so23887285e9.1; Sat, 15 Jul 2023 02:20:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689412808; x=1692004808; 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=r8Ih9QONHUEJ7NhIIQ2aYQNVLh0fSU3axMBdQPuIZkw=; b=Wp6oR6VkIsAGhlQ8TVbthS+TgMwIrPNMq8ODrR9UlJInkkThKXKmWqMvNmKDvnL54B agkWy243/hGhw5n02TYG8rpA/VLX+6Ikr2GngoUrHIWwa2+uipB/cCjCEGJr+7oSVCNv Gb53jEMNl+VwElI+ivkuj7OWusAfTcBF+xuch8CXnWvsfQcb6q6kZlAlZcKfbOPnRXCa TUuG3Btw+/TAbrG1EMOn8E7pjE+XGA9YSuSZq7zi7ao6Kw+CEQvwqpvMeTDF2L+aJn1u 8IHLmRCqp4vVy6LZzDmKUsd8o1gQvBhZovUx951UbZe4ltt6GA6M41lfJreJhsyuIXCu htKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689412808; x=1692004808; 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=r8Ih9QONHUEJ7NhIIQ2aYQNVLh0fSU3axMBdQPuIZkw=; b=G/SlLrHUZEaJW6e9EjQiZWDotcgQ/O/9t+fkYIsPrpdPlpQts+tPcFF8cBnd6THL1M F14PtiexZvDBGnPXXCgN0AAK+7JbsqOG31ete3rfK24Pu+N6ezP/dYWG+LIK2+SU4MdZ mI9Uk4z3+T12SKpYpZzBEed3N+BVgCY8wSIoPcLxymfRUJbXCWpTUWM1/P7sInkqJif4 sfuIleHoPoG8MzY7QK7bS91LLw8KutRlruYKj5RmgTKyqc3SCf59RHWZFRnTe2vS2ohy 7HlZ81JGPJXurWOt16JMLVeU/zeCFR7fB8+2UzMlpEzWtr7gz0T0wsFGCUU68GJXvi2f Zk/w== X-Gm-Message-State: ABy/qLbuhMONZAc4IFNwjaU613gvpnq9tTKPDRwq2WSb+6bAtfxxipK0 kNVSMjIX0trBkNUA7L2YRO0= X-Google-Smtp-Source: APBJJlEUz0WRXnMgOKZfjATsCfX6f6jIzC1f85inM2IFN4iwwW8QUb4gha7XXcDfl2BfBE9R8HVK7w== X-Received: by 2002:adf:ed82:0:b0:314:2736:ba3e with SMTP id c2-20020adfed82000000b003142736ba3emr4058324wro.3.1689412807789; Sat, 15 Jul 2023 02:20:07 -0700 (PDT) Received: from david-ryuzu.fritz.box ([188.195.202.152]) by smtp.googlemail.com with ESMTPSA id f22-20020a7bc8d6000000b003fbb5142c4bsm3238133wml.18.2023.07.15.02.20.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jul 2023 02:20:07 -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, cros-qcom-dts-watchers@chromium.org, David Wronek Subject: [PATCH v3 7/7] arm64: dts: qcom: Add support for the Xiaomi SM7125 platform Date: Sat, 15 Jul 2023 11:16:13 +0200 Message-ID: <20230715091932.161507-8-davidwronek@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230715091932.161507-1-davidwronek@gmail.com> References: <20230715091932.161507-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 Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/sm7125-xiaomi-joyeuse.dts | 16 + .../boot/dts/qcom/sm7125-xiaomi-miatoll.dtsi | 423 ++++++++++++++++++ 3 files changed, 440 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..80073140e475 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sm7125-xiaomi-miatoll.dtsi @@ -0,0 +1,423 @@ +// 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 "pm6150l.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 = <&pm6150l_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"; +}; + +&pm6150_rtc { + 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"; +};