From patchwork Sun Jul 23 19:05:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wronek X-Patchwork-Id: 13323322 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 424C0C04FDF for ; Sun, 23 Jul 2023 19:08:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229897AbjGWTII (ORCPT ); Sun, 23 Jul 2023 15:08:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229691AbjGWTIH (ORCPT ); Sun, 23 Jul 2023 15:08:07 -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 373BC1AB; Sun, 23 Jul 2023 12:08:04 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3fc0aecf15bso34760525e9.1; Sun, 23 Jul 2023 12:08:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690139283; x=1690744083; 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=U/M3a5j0snkGJL94r6ZU30PY9Mxj+amzifbo89H9YGU=; b=A2Hl2v1RIFNqEmPsL6eP7KVgZ8lOPJIAiUb65nx6ZiE7dQhdCi+3vbUtmdjIeGNNhy AagM9GcvRCQNS3Ks0gkQVNUSXY+ICRxyxKnb6P3AGZ2xX3AR7qxeiIFDg8eXKl9HkwF+ izeO6QVw2PHRIiZGB23BHOTh8U6HtvnX1yv7wxTTHooD1BRJr+ONgaK9tg4rIMSko2/F vs3fdwl3gOml9ZzorckB9DqtiTJEwKcnif//K0l/FqtzNRllypuQKUZh8vB77Xg2/bpx /UvUxwWXi42ZCBqpv1O/fiLjCqlz5l/JZshCJ23ugCAePU2AesVs061BJv1DKLMVj+7W jsag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690139283; x=1690744083; 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=U/M3a5j0snkGJL94r6ZU30PY9Mxj+amzifbo89H9YGU=; b=ZYvDm3/AMDyOWelJIk/9As8iwiqB65wUdmxRw2LxX69j4c1K1gYB3KSTiI7j+gBs9y vR8kBo0ZM4Fvccn9OW0YJHpBTJdgaSvuBspGxAsU87XZgeue6pAgGAMdXlIxE94AB70s r7Os33s2pgswSMFYkhOBJfKqoVTEKTt8nazkin+w7eSX3S3s4zWFT+YT289q3y0Jc7dI OkoD3hrOH2A0hwbLeE+SlmtMAjylkcqeIF9HAqcO717Kcd0MTUEMqUdFci09jRbhITLA C5uG/1wu9HUkUZRgZZIO19JfSCY44K4hS+tBzlnapfZLs601rSp9EQbwWiWDMMO5VJzC w3OQ== X-Gm-Message-State: ABy/qLb4tLM1QEmuvQdvsPNjmvfk8/yqcUz82LCCrv1EvT6r9q6XSMjr FB7XpsT3jkzUwayVWfp1oac= X-Google-Smtp-Source: APBJJlG2PqlVybd3mlg7npTuOjVqFav7S8bfyz92itrYO+/3YER2rSvJ0v5l9ISmBDpDPSjF4f3zXg== X-Received: by 2002:a05:600c:c3:b0:3fb:b67b:7f15 with SMTP id u3-20020a05600c00c300b003fbb67b7f15mr5961513wmm.21.1690139282393; Sun, 23 Jul 2023 12:08:02 -0700 (PDT) Received: from david-ryuzu.fritz.box ([188.195.170.196]) by smtp.googlemail.com with ESMTPSA id h19-20020a1ccc13000000b003fbcdba1a63sm2843320wmb.12.2023.07.23.12.08.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jul 2023 12:08: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 Subject: [PATCH v4 1/7] clk: qcom: gcc-sc7180: Fix up gcc_sdcc2_apps_clk_src Date: Sun, 23 Jul 2023 21:05:02 +0200 Message-ID: <20230723190725.1619193-2-davidwronek@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230723190725.1619193-1-davidwronek@gmail.com> References: <20230723190725.1619193-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 ede83c644716..a3406aadbd17 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 Sun Jul 23 19:05:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wronek X-Patchwork-Id: 13323323 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 788C3C05052 for ; Sun, 23 Jul 2023 19:08:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229493AbjGWTIJ (ORCPT ); Sun, 23 Jul 2023 15:08:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229726AbjGWTIH (ORCPT ); Sun, 23 Jul 2023 15:08:07 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17E6F1AE; Sun, 23 Jul 2023 12:08:05 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3fd18b1d924so27103925e9.1; Sun, 23 Jul 2023 12:08:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690139283; x=1690744083; 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=myY4y6lqv+gZbpfAr4n2l3Uhj5myynqvays3KJWseQYmQHr288mrgc4NPb0ft4n6Fj LDK9861O3Z+HhJtQw4Ef1XXC4uBmndf0xRIqNn8HvIAMhS2oI/Cl1xQwQQUXDAm/ttDq 4lMhxWsof7FYzgj3vVH+8xRz6QTPISrdxp0UmpcFRbnFZeYqhbIvPi6fAWhDEK6Qy97v MaNUbOPYG+bj2lxQJhcgkGDs1aMC+ydaD9M8qtAKqeg5HCZ2BoPxqp2yY4o0GdhnB9Xz Xv+8omk8D/zNsWGsH1WO7KWv2L8YUyQhlkEfUWDgRI20UqXakB2d4cwQgwaf8Z3ppyxl EktA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690139283; x=1690744083; 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=ZKm+tx8BJAVVdH8TWY+lNgJpHbQ5QijlHbJEa+hNKdSWqyYkzl0Biakk6urNNf9/R4 3u3iSe/iNQwXZxTMTmdP16URvUp6LcBdLJ2lalpRz7BbNBPSb7y0+Biq1qAIGtjAXLEz BN77I9givW24osydzL6LmzdsiP+BQOrSkqNMdCAPgS5h/bHWCb18cDPbEIabMR1spGg1 sE43YbUkOw0NmNfkwdIsweRARpFCD95QycX8G9WMT3h/wbdMtyDoxyf+KPWg/CemOMRN mn89vi2RxYjTeyWbdfKRo8VBZB1rs8BQffdsQ6n6mGK6Peor7hHWJ8l7wArsu3VPczio AXPQ== X-Gm-Message-State: ABy/qLY7Cu/fU7VHBOF9pGxrXDDgBI80H52KsYtLW/f3S8gDmAWhyS49 XEHHV4ETKAeGc8biLJ7DyERgKgQVSr8= X-Google-Smtp-Source: APBJJlHqn0YhhZCVqVS7II9n8ajUzO1Be23nmZhhpOdSrDSF2TC/5yEYdKko0VaR4qXz14uTcJBBGg== X-Received: by 2002:a7b:ce98:0:b0:3fb:ba04:6d5d with SMTP id q24-20020a7bce98000000b003fbba046d5dmr4801651wmj.12.1690139283378; Sun, 23 Jul 2023 12:08:03 -0700 (PDT) Received: from david-ryuzu.fritz.box ([188.195.170.196]) by smtp.googlemail.com with ESMTPSA id h19-20020a1ccc13000000b003fbcdba1a63sm2843320wmb.12.2023.07.23.12.08.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jul 2023 12:08: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 v4 2/7] dt-bindings: arm: qcom,ids: Add SoC ID for SM7125 Date: Sun, 23 Jul 2023 21:05:03 +0200 Message-ID: <20230723190725.1619193-3-davidwronek@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230723190725.1619193-1-davidwronek@gmail.com> References: <20230723190725.1619193-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 Sun Jul 23 19:05:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wronek X-Patchwork-Id: 13323327 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 84E02C25B4F for ; Sun, 23 Jul 2023 19:08:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229968AbjGWTIJ (ORCPT ); Sun, 23 Jul 2023 15:08:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229723AbjGWTIH (ORCPT ); Sun, 23 Jul 2023 15:08:07 -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 337931B2; Sun, 23 Jul 2023 12:08:06 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-3fbd33a57dcso34216795e9.0; Sun, 23 Jul 2023 12:08:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690139284; x=1690744084; 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=MSKn5ppJoNj4uOSJBjjxwsqTzZLkb26s2hVoSMOZ4VZOgSs6SudTzEmiLb2QPV/qjf 13zkxSGdCOOdhLE4C40hpez1xiv7yxF2LZBBGlFBup1lo43aqQICq6ypjg7WV9NFpjVr yB85IoTwCmZYXDPmmNWRJTeBoXV8dDZopNOqOtVszlsAxpCi9N+lRoQCZ4xIqGJitN24 DijQDUPrhyls3GZxDw4ZYYzdBkS29aSSozmUbKDsMrqr801kuh2ZSnHgq1d+Da3MmVan EjRI/H1gIO48rNwztraEV7lCCHVRfEfL8/EaVq2efabYb2+LQigNPEc3thaNtxWv3KA1 1HOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690139284; x=1690744084; 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=ggzGoNLqxs+xodhiIHow/cCET9zlbZuLQCDoqlfopyxCbKACNi5zwZpp1IuibmzUK4 RNbNGjqyQP2feDpqSFcd6m8Qdi721v3Hm6V5b4Cz569EUON5cdHOTougSGbfo4qXAt2k PKo7E4lHw86jCBd0UXqubZPC5K52Yg7hlQ7frs7O7DvAkpa7Eui9Emzt9PrUGGTiqxxy K3rpDwYWpKP5qyRQqS+76tMM4vGcGO//rieInRFRDXcYFkgu0m4aDR9EiPu3fnJKSsQa Su85aEhWcUmmfBOtr5ByQdcL/EueC441Ds0dqlmgrSsz0zgHY6gnoBuliqybPWP1SldK BsbQ== X-Gm-Message-State: ABy/qLaMtaVgv/4F0UjkmfNurLKVsb6+Vtkrt9iTgbIKSuls0G52myR4 eh4YTVTPvvE3cVhDF0DIee0= X-Google-Smtp-Source: APBJJlEM/0IP6cBw0lEnvpSyXLcdCjTSWR/m2kF1tlLSb9RFu83wGQqw7KvOrBFDIHcb68Igcc7sTg== X-Received: by 2002:a05:600c:2308:b0:3f7:3991:e12e with SMTP id 8-20020a05600c230800b003f73991e12emr6418892wmo.1.1690139284357; Sun, 23 Jul 2023 12:08:04 -0700 (PDT) Received: from david-ryuzu.fritz.box ([188.195.170.196]) by smtp.googlemail.com with ESMTPSA id h19-20020a1ccc13000000b003fbcdba1a63sm2843320wmb.12.2023.07.23.12.08.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jul 2023 12:08: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 v4 3/7] dt-bindings: arm: qcom: Document SM7125 and xiaomi,joyeuse board Date: Sun, 23 Jul 2023 21:05:04 +0200 Message-ID: <20230723190725.1619193-4-davidwronek@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230723190725.1619193-1-davidwronek@gmail.com> References: <20230723190725.1619193-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 Sun Jul 23 19:05:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wronek X-Patchwork-Id: 13323324 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 A98E6C07E8D for ; Sun, 23 Jul 2023 19:08:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229981AbjGWTIK (ORCPT ); Sun, 23 Jul 2023 15:08:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229883AbjGWTII (ORCPT ); Sun, 23 Jul 2023 15:08:08 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3631E64; Sun, 23 Jul 2023 12:08:06 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3fbc12181b6so34110915e9.2; Sun, 23 Jul 2023 12:08:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690139285; x=1690744085; 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=bCiMZktGad9BSboHOC65EBv2cGtO7o93KwBe3/7kTNjYRnrcrQH+c9Z2PKKuxBeN3M nmKZHzmHVqbv5CUrXiN61FYYGeRxZGHXFvjWVtInpJvCbqEOoh7sgaHM+VnjZM23sfGj uSye6FBC0Ur4gbBSWfwaMShh1ipioZPf2Vy/q76t8OSdWz4tyumkdZoYPZJfUQqUivDi a6r65ZwKuWYuPPaTc9Bp/NLSSz81RcusgpuGF9EzfaFZdPoOPGHX42QQK19uyJtcBNd3 IttBU2yceUrvzY6pge0FolGG4WXJr7P7jvcX7tg8tdSVhPDnl1emmd71NAXYcYhmc2tQ dNQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690139285; x=1690744085; 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=Xor49jaSUZK4lMuD6qsc16I4InlEwWqtoZraU++5MgeP0C+d5RC2yZOAQW5i22lBCi jHStiQc1dd69IWcEijIp1BtGq0PjQLXKhg9M6xGc9zlzmllyEmIuys/VAb6n16/LaTA3 eBon7Pb/9pN4k5RJUcLqLuweKhp6iGQI01JPGazSLqDCnGlabXcHUuoDRf74W/Sm4boQ tjlLm2baTRI00peCbBs+KFZ+J7LWXmE3LIn/ufv/DaObN6OuT0/UyKMsGTmAtnccxlJW HGLHTTBjeaCaKksaUicf2yJQxi8RoGZ3et4cSRI3nW7EV40mcLIOTkdNCdYjVmjX0N8u OU5w== X-Gm-Message-State: ABy/qLYmnWciDhxbAbw7c6o7q+pFZKKvc9h1PBjOxaAzja8YaiG59J4J gTnFhLmj/VTgpRu8mCHDBFd138CpqYM= X-Google-Smtp-Source: APBJJlGXt9j47otiy1K2DcM5J5hDiWrm7wM7aVR+zKsxvs+1wLmy0GncLeRkQojl75zJTqyTAI+UAg== X-Received: by 2002:a05:600c:2990:b0:3f5:146a:c79d with SMTP id r16-20020a05600c299000b003f5146ac79dmr6548215wmd.15.1690139285300; Sun, 23 Jul 2023 12:08:05 -0700 (PDT) Received: from david-ryuzu.fritz.box ([188.195.170.196]) by smtp.googlemail.com with ESMTPSA id h19-20020a1ccc13000000b003fbcdba1a63sm2843320wmb.12.2023.07.23.12.08.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jul 2023 12:08: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 , Krzysztof Kozlowski Subject: [PATCH v4 4/7] soc: qcom: socinfo: Add SoC ID for SM7125 Date: Sun, 23 Jul 2023 21:05:05 +0200 Message-ID: <20230723190725.1619193-5-davidwronek@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230723190725.1619193-1-davidwronek@gmail.com> References: <20230723190725.1619193-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 Sun Jul 23 19:05:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wronek X-Patchwork-Id: 13323325 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 EBFF9C41513 for ; Sun, 23 Jul 2023 19:08:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229998AbjGWTIL (ORCPT ); Sun, 23 Jul 2023 15:08:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229955AbjGWTIJ (ORCPT ); Sun, 23 Jul 2023 15:08:09 -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 D8D981A7; Sun, 23 Jul 2023 12:08:07 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3fbc77e76abso27757605e9.1; Sun, 23 Jul 2023 12:08:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690139286; x=1690744086; 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=xWeuqWnbSSn6X2EkIFav6eXiR7PeL3CtJQIDIe+6znM=; b=KNORkfVcvisrnRLV33cs2yMu003YtogDAZSlWtzk/IcVFHdzSDClSwfsjCUbEgFjJn tJ3FyhaqakFx7NqW+lJi8qchUDSz0f9sdZVfwb/k2FzCEbexHjwa+ISTKTjxtQ+I+Cbw rfs1INqmhLEHgp/yq969GRfjJDYwvVt8fyXTuZw5RZIOoVVR2QUQFJzAq+KF4IXQBqWQ +QcbeojUIYlFWeki0opROGi1PYkgN8tEjDupZaAcFhHLxu3mmG6/CaEiLYb1j2zouYNA BjlIwbcBbM158OIVPGK7Mw+FdPlkvaW0OaXdrwkhES5inZrH8y1mJJP5Vgn7TwHuS+Kk vg2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690139286; x=1690744086; 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=xWeuqWnbSSn6X2EkIFav6eXiR7PeL3CtJQIDIe+6znM=; b=GfHxhW9hUBzKIVTK6kZRUSEiUHWljUP7QMmsC0CDZIueOkf8fbLl3z8SR0VcndyxNl 6C/JyLbBTIx1S3u4oNFypv5PtuoH1pfA6hJOYW0Rb+dXTSR5VYSsdKMEYl/iI2U3bh6x fDvPW/zBdv5nV3Dn0Rq75XQF0qto/IH5ZH9lBvYwVIcoAHwAClR7IpGXCvRiNpgEhrqU TgzUupk+lRQ0ZSp/y7xKESYJ6iPCgmmZdSBCBNAnX5HJDb5F9JqPoDTXy1tf/XBipI4a 4J8u+QNafmBmPQ/FV4uaKJ844aTuVN8xSU3vQAJiZSEMXOen5tK9861RSmUvpV8MR53N gMXg== X-Gm-Message-State: ABy/qLYj0jWrzfijhZLLOihJfKiBCuZnpZL08xA5RTcLYyBXC4/PJKAg tBheCWrHE+SXZVw9Cu4LtxI= X-Google-Smtp-Source: APBJJlFOyJFTta57g3XgG/Z4ZgJwxJ/fkzPyGdhI+5lWS6FNXZswrz2e8NX898M/5HQq2Gy1by2Ksw== X-Received: by 2002:a7b:cc93:0:b0:3fd:30c8:963f with SMTP id p19-20020a7bcc93000000b003fd30c8963fmr2658023wma.27.1690139286279; Sun, 23 Jul 2023 12:08:06 -0700 (PDT) Received: from david-ryuzu.fritz.box ([188.195.170.196]) by smtp.googlemail.com with ESMTPSA id h19-20020a1ccc13000000b003fbcdba1a63sm2843320wmb.12.2023.07.23.12.08.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jul 2023 12:08: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 v4 5/7] arm64: dts: qcom: pm6150: Add resin and rtc nodes Date: Sun, 23 Jul 2023 21:05:06 +0200 Message-ID: <20230723190725.1619193-6-davidwronek@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230723190725.1619193-1-davidwronek@gmail.com> References: <20230723190725.1619193-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 Sun Jul 23 19:05: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: 13323326 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 11A78C18E72 for ; Sun, 23 Jul 2023 19:08:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230015AbjGWTIL (ORCPT ); Sun, 23 Jul 2023 15:08:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229764AbjGWTIJ (ORCPT ); Sun, 23 Jul 2023 15:08:09 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC81D1AE; Sun, 23 Jul 2023 12:08:08 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3fbc77e76abso27757665e9.1; Sun, 23 Jul 2023 12:08:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690139287; x=1690744087; 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=In+Nbgpp4Ts/8QxOtUkYSlQfGp22n+NCuDjC/vLoUgk=; b=muL1ww666UbsSuYWZyb+oTA0BHPnCi0ChyK0OpIAR1VoDLUY4EUKqPgkdOdaqtAVAE 1ZrVnRCdGZA/kIbBJ/76EyTvEDIw1pO13ArRyR6gOZ2NoJJJ2kHxLJsaW0S1ZUrR5nuO XEFK3s1cybfPrJU5Q8/NSbgNGyoeBeqe4elyml+C6YgTtIIjwgBdPAOtkZj6oMz9voYJ vA6mm8jczOEmrSACaYPI056wONZcXTp5HKyNHyPJqepKowiLl2YJRGk9BcgPEWTOo1// 987JvyntS3N3+voc9+DcgkJu7LMOxGr/VVYAJNRaFSB6VjP3bM+gZmDKyRWL1pMEzw4U oElQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690139287; x=1690744087; 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=In+Nbgpp4Ts/8QxOtUkYSlQfGp22n+NCuDjC/vLoUgk=; b=J+NAS50lMB0hlAN3f9NjUJKpw7AYUhAuKrNX0R+gvBvW/sZ3MGCdbnJMskWxomuGmT 19VCPfx4MgpN555dbPqL4pYLsZZRaOPG53430Yek0YrRNdLB4cpT3W7rM2AosSP4f6Z6 4x+RCaGFv0BTI+ESJ2aBi32vZVWaelSlx/agv9IU8AgRsEFzGK4BpVPl76uOd/YsE/OD nGQFyd2WBPnAg8RawuWIDXfDUpOoikpRGyhWpiE8bILoETTpcH8Z+D1yNIzq3FAxGInh phTvg/G5lUF6VTo09QkZTBtAaGDJCKXa0bK+xU+nWWyggzt4BklJVAbJ0PSionHRg1YL 6C2A== X-Gm-Message-State: ABy/qLacVufqTmZqZXwIHNndRgRY9pNtR10aKxKqlErCr3IikBoU3/+/ uEisMR47pzcphT6zCE3N4sU= X-Google-Smtp-Source: APBJJlG/eav1BPFSifwunUCA8aiTN/3usCKWi016aDKfJvGcjZqbRdpc3Z6A8RSTjQc3Q/OJF60sTQ== X-Received: by 2002:a7b:c5d6:0:b0:3fb:a2b6:8dfd with SMTP id n22-20020a7bc5d6000000b003fba2b68dfdmr5637493wmk.32.1690139287261; Sun, 23 Jul 2023 12:08:07 -0700 (PDT) Received: from david-ryuzu.fritz.box ([188.195.170.196]) by smtp.googlemail.com with ESMTPSA id h19-20020a1ccc13000000b003fbcdba1a63sm2843320wmb.12.2023.07.23.12.08.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jul 2023 12:08: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 v4 6/7] arm64: dts: qcom: Add SM7125 device tree Date: Sun, 23 Jul 2023 21:05:07 +0200 Message-ID: <20230723190725.1619193-7-davidwronek@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230723190725.1619193-1-davidwronek@gmail.com> References: <20230723190725.1619193-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 Sun Jul 23 19:05: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: 13323328 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 7F862C04FE0 for ; Sun, 23 Jul 2023 19:08:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230078AbjGWTIU (ORCPT ); Sun, 23 Jul 2023 15:08:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230002AbjGWTIM (ORCPT ); Sun, 23 Jul 2023 15:08:12 -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 CBB7D180; Sun, 23 Jul 2023 12:08:09 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-99b78fda9a8so295883366b.1; Sun, 23 Jul 2023 12:08:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690139288; x=1690744088; 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=11NGdJNCDs947Iwm2g95whLNXhlGadq+55ANyrgEFt4=; b=YjKC4t8LxK1tV7pv66VmJyL8NtmphbF1BBYiUEDfFfBB6SerWJ8jwMK+YKGdYACWcF cEtv/YRUqWAlzKoYido5SQKdK5p8wVDvyF/YiwHRy0iNrlO7qDBtsZ2TU6LMRY7MiKl+ 7Qtijuq28BLUi+i67iNuFf1ItKQWrVJN/sl1KS2vuqHgkoCospOEekVgHrAn5mJSXxYC eOahPb5CX02LOtmfbJpYUFB9vUT6ocHZeSLWaW9FNOjvOVeQGjkJ4nDZLF6mA2wz4sZH jWCOixpAx83XxsWpWZlez59Dg77CKnk/8Vs65Aug2HW9UMj1iW+GMqpy3l+bir/CY5Fa ZyBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690139288; x=1690744088; 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=11NGdJNCDs947Iwm2g95whLNXhlGadq+55ANyrgEFt4=; b=coXpD/a+P4C+o+sPo2OXOsajjp7w2JRF4BUy0Ki+91zuKg25QOoTJRLRR/m35jOYsH XK//QtMRi/LVvuQ7aqCiC0KtnqA+XrnMszWyCsmPTJG147gM7E6mf7PzxZf8WaIALNIH jc57J1lzEMB1fTOLwWI35bRmRK4+WDjna0SLw/lI4dVzPhq0xumO1XyzjGQeffIc87yx ClSNvN1n/CgtLfEkRDoSq0uBx6M5VrFojm2rXBl3NA27GSgZyAXdJfW9Wk/ghSrUWiKT ssdmLnftE7VVF6PFtDqWX94RSa8jUXbBcF+/AUYGOJcSlPbmjFVRdKE34VYe3uer8RzT wtkg== X-Gm-Message-State: ABy/qLbBBxw4CvE/+J6BIK4WBvfW/AVOfZHB8V79RleKjG09aNOSk1By G7jqLqhfYEvxxOQcgYuUsj4= X-Google-Smtp-Source: APBJJlEE8Dkdsc49GVweQfoeZqQ0jjcvtt/BUieBVx7Sv/Ews67Wy12HAko+YfE0SZWbS0LExzS22A== X-Received: by 2002:a17:906:2208:b0:998:de72:4c89 with SMTP id s8-20020a170906220800b00998de724c89mr8786553ejs.50.1690139288261; Sun, 23 Jul 2023 12:08:08 -0700 (PDT) Received: from david-ryuzu.fritz.box ([188.195.170.196]) by smtp.googlemail.com with ESMTPSA id h19-20020a1ccc13000000b003fbcdba1a63sm2843320wmb.12.2023.07.23.12.08.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jul 2023 12:08: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 v4 7/7] arm64: dts: qcom: Add support for the Xiaomi SM7125 platform Date: Sun, 23 Jul 2023 21:05:08 +0200 Message-ID: <20230723190725.1619193-8-davidwronek@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230723190725.1619193-1-davidwronek@gmail.com> References: <20230723190725.1619193-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..e55cd83c19b8 --- /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-up { + 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"; +};