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: 705605 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: 705603 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: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: 705604 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>;