Message ID | 20221207084045.270172-1-luca.weiss@fairphone.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp59813wrr; Wed, 7 Dec 2022 00:46:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf4ZNdWuwT4jpndlkMUNhXD4VWuZ3NgU2CoIEy0mcziXUI4+HObRZlhj6ujVCeE8PrPKrTO4 X-Received: by 2002:a17:90b:11d6:b0:219:ce92:17a1 with SMTP id gv22-20020a17090b11d600b00219ce9217a1mr15220173pjb.235.1670402774110; Wed, 07 Dec 2022 00:46:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670402774; cv=none; d=google.com; s=arc-20160816; b=eW0FLeHFota1uWKEyRydlpvcIlYrV+Y1pTBkBP6Ppv7n/fpudob8TIsf/4HyjbUgou ywM1aOhWsd0qwgjOmJIPlaPAwWXYM7uOMIf8XCG1v9VzglqykZcWhAQA/ViOEdDa6QQm 6mWx2bXLK0MHs8snKihsqFTr2BHEk8wSY/H7ZhLFT3nvBfAxCWpaczmoarjbY/3oH6SW 67NCstRAVkwVs7nMJuCrgwp4c+pjIpIBJyh8Ds+tLp/BGT2yer0O8Zq/KNzvoChhzHUV xIyYF1GmjsDBM6ln7JamBjYHR6fxm01vp8ZO1CPlKsB/y2kqinaZDwnK3A92R2OUQU2+ rTCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=8XELo1fO300N0txX2bi3UEYRaJ+M60DVCY2RyFyvGz8=; b=bBtp4a7hT6/gvk2O09R3vDUL+pnOYZqPP5zg62hmXNQEa8bfSMEMZwW43FEFcOpI8H T5U2fDsHA+YVtD/jXaRvbNW02RWYdYghRb57lsBtJNJtVocs55fQfnyhHTvPDW4MvwpQ ZZnl7Cf+Pb/Gpk0rCy/AoNqOZ8hzx/J4UvmjxVxPkH5VKvTo6jHnnRcNOoumF1YNQ5Rs BawPC8A6i6FdyqOuNbWPloA+Or4mvF81vxOrteK455h0FtzELApkTnOu06n9o54WvFdL D183+2Vs0mad8LOS9E/GS1ZMVMPNKx8dTa7Azvnx6iAVcB4TAqEs+kZRLJcVm31CafnK wAzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b="TCecy/H/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ik7-20020a170902ab0700b00188a63e129csi19302532plb.332.2022.12.07.00.46.01; Wed, 07 Dec 2022 00:46:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b="TCecy/H/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229784AbiLGIk6 (ORCPT <rfc822;b08248@gmail.com> + 99 others); Wed, 7 Dec 2022 03:40:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229756AbiLGIkz (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 7 Dec 2022 03:40:55 -0500 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 241EF6599 for <linux-kernel@vger.kernel.org>; Wed, 7 Dec 2022 00:40:54 -0800 (PST) Received: by mail-ej1-x629.google.com with SMTP id t17so12315847eju.1 for <linux-kernel@vger.kernel.org>; Wed, 07 Dec 2022 00:40:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=8XELo1fO300N0txX2bi3UEYRaJ+M60DVCY2RyFyvGz8=; b=TCecy/H/WK1gAkBTJ5GIKc+X1XC31M66Rla7gAYR1wRrlgJCAcTCRyXbsYXA03JzXx JOcEi6F4tQYRZLWJirYh5RmB0UIdHH2tuRtnrGMM1mX38mq61gNNs3OIdk2xJsUa6Mqk mCuAZ6/rIKB2BpF1G+vwRJLGuN2P98C7xvOBhJSIQWAkpOssgKkGh/kJ2ih2Yvn12pcG ZpCedigP6QoDhTc5NVkItdJHsfTOM2j82buah4N42FtSwGZUyniCYdxgJY+sd0n6ESMc PhPbrCkjOvVnnKaIaofP3r/tX35vnvZvB/XqDWuzN8BNApw1owEG6LIb7dswyal38tWW mMlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8XELo1fO300N0txX2bi3UEYRaJ+M60DVCY2RyFyvGz8=; b=oOkI8q1LmA1IlrL3x6/VvmU9QGCf+1SRn2V/+MOmL7jKwIubfKhlE5g54f0np5aXS7 l5rt/jg8qoremvRRhBdftFtynBO13k4/FLONFjxanZd0BLN+PwwLgcuvdR/4GpZoTMQw EYOvDVrcRprr9gHdWgTSuzayUyuyf59c2+wTZhkSJm9PJXB4xpQXOVWfhzhLYXeJj81M XXR76AUGD8OfB6tUlzYMejk+rAyDSAldEOqTA/qMEeysW2SiIfsQ9yqO4eYPzPiqo0iG NfVw53NvsPRdIWTfQEvWSY7WHrH6H/Qm5rHx3SnHlxnbW/jzw3d455StuRmWSf0HpDW+ ujRw== X-Gm-Message-State: ANoB5pmT1/bCC/s8H0nRPv7mL9DvtTXxZCI74Ak0MwqajBi+fibt2Zou 2eybzhNLmEYiCAFaTWoOxyMBrQ== X-Received: by 2002:a17:906:9f09:b0:7bc:db1b:206f with SMTP id fy9-20020a1709069f0900b007bcdb1b206fmr12269924ejc.719.1670402452588; Wed, 07 Dec 2022 00:40:52 -0800 (PST) Received: from otso.. (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id kx4-20020a170907774400b0079e11b8e891sm8183619ejc.125.2022.12.07.00.40.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Dec 2022 00:40:52 -0800 (PST) From: Luca Weiss <luca.weiss@fairphone.com> To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Luca Weiss <luca.weiss@fairphone.com>, Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: qcom: sm7225-fairphone-fp4: Add pmk8350 PMIC Date: Wed, 7 Dec 2022 09:40:45 +0100 Message-Id: <20221207084045.270172-1-luca.weiss@fairphone.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751544259384578594?= X-GMAIL-MSGID: =?utf-8?q?1751544259384578594?= |
Series |
arm64: dts: qcom: sm7225-fairphone-fp4: Add pmk8350 PMIC
|
|
Commit Message
Luca Weiss
Dec. 7, 2022, 8:40 a.m. UTC
The PMK8350 (which is actually a PMK8003) is used for the RTC and has
ADC for thermals.
Since the adc_tm compatible used in PMK8350 is not yet supported, skip
configuring that and the associated thermal zone for now.
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
---
.../boot/dts/qcom/sm7225-fairphone-fp4.dts | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
Comments
On 07/12/2022 09:40, Luca Weiss wrote: > The PMK8350 (which is actually a PMK8003) is used for the RTC and has > ADC for thermals. > > Since the adc_tm compatible used in PMK8350 is not yet supported, skip > configuring that and the associated thermal zone for now. > > Signed-off-by: Luca Weiss <luca.weiss@fairphone.com> > --- Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Konrad > .../boot/dts/qcom/sm7225-fairphone-fp4.dts | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts > index c456e9594ea5..df05e5dc8696 100644 > --- a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts > +++ b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts > @@ -5,7 +5,11 @@ > > /dts-v1/; > > +/* PMK8350 (in reality a PMK8003) is configured to use SID6 instead of 0 */ > +#define PMK8350_SID 6 > + > #include <dt-bindings/gpio/gpio.h> > +#include <dt-bindings/iio/qcom,spmi-adc7-pmk8350.h> > #include <dt-bindings/input/input.h> > #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> > #include <dt-bindings/regulator/qcom,rpmh-regulator.h> > @@ -13,6 +17,7 @@ > #include "pm6150l.dtsi" > #include "pm6350.dtsi" > #include "pm7250b.dtsi" > +#include "pmk8350.dtsi" > > / { > model = "Fairphone 4"; > @@ -426,6 +431,20 @@ conn-therm@1 { > }; > }; > > +&pmk8350_rtc { > + status = "okay"; > +}; > + > +&pmk8350_vadc { > + adc-chan@644 { > + reg = <PMK8350_ADC7_AMUX_THM1_100K_PU>; > + qcom,ratiometric; > + qcom,hw-settle-time = <200>; > + qcom,pre-scaling = <1 1>; > + label = "xo_therm"; > + }; > +}; > + > &qupv3_id_1 { > status = "okay"; > };
On Wed, 7 Dec 2022 09:40:45 +0100, Luca Weiss wrote: > The PMK8350 (which is actually a PMK8003) is used for the RTC and has > ADC for thermals. > > Since the adc_tm compatible used in PMK8350 is not yet supported, skip > configuring that and the associated thermal zone for now. > > > [...] Applied, thanks! [1/1] arm64: dts: qcom: sm7225-fairphone-fp4: Add pmk8350 PMIC commit: 582e7c1026fa848a918a1db159bcae7c5fa7f0ce Best regards,
diff --git a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts index c456e9594ea5..df05e5dc8696 100644 --- a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts +++ b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts @@ -5,7 +5,11 @@ /dts-v1/; +/* PMK8350 (in reality a PMK8003) is configured to use SID6 instead of 0 */ +#define PMK8350_SID 6 + #include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/iio/qcom,spmi-adc7-pmk8350.h> #include <dt-bindings/input/input.h> #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> #include <dt-bindings/regulator/qcom,rpmh-regulator.h> @@ -13,6 +17,7 @@ #include "pm6150l.dtsi" #include "pm6350.dtsi" #include "pm7250b.dtsi" +#include "pmk8350.dtsi" / { model = "Fairphone 4"; @@ -426,6 +431,20 @@ conn-therm@1 { }; }; +&pmk8350_rtc { + status = "okay"; +}; + +&pmk8350_vadc { + adc-chan@644 { + reg = <PMK8350_ADC7_AMUX_THM1_100K_PU>; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + label = "xo_therm"; + }; +}; + &qupv3_id_1 { status = "okay"; };