Message ID | 20230314183043.619997-9-brgl@bgdev.pl |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1919199wrd; Tue, 14 Mar 2023 11:34:05 -0700 (PDT) X-Google-Smtp-Source: AK7set94mvgM2H6srzDOsQHfKT5zCF/dIitZgeg1gkmuPAZWKHQRrqkvseqGH8x9FoZG0vi2g8pb X-Received: by 2002:a17:90a:8a05:b0:23d:3bc5:a0b6 with SMTP id w5-20020a17090a8a0500b0023d3bc5a0b6mr2378639pjn.23.1678818845150; Tue, 14 Mar 2023 11:34:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678818845; cv=none; d=google.com; s=arc-20160816; b=M+p8dOkJaF2BkrtiKxuJOARLiaJz4SfRTWdyYGAdfK5JkVecsMUZm9Wy83cG8w2zyR Vg2yffLJhBrR1lNJyW4Vl9Z+LWWkelN6vzPBrzgBPiIZ9fFbzBmwfnli4SJXmTLErQJk QE6T7W2Rsxk0w1Jfume6gDTbKUapXYolZXJjq3GfyyfHjtrSWvUfcAk4vHRx4RiMdrIl Wh/5w3Dr10K/mvi25xZ4/qZIdhh5NOTfnYO9Lor7/a0GkktlvVCgdRLjM0fF7YxlYKQA 6nv+DN/Fdf2yIRPoDQlg5Ot5Lw/v+eQ6svUCkTf93xmRT4UfFGyHaGi68Zi/hcNuZDH9 G7lA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dRTaCzYY0Zr8GLr8g1wP4DjAykkl6qzoi7oFjU1DC6s=; b=R/eCuUBJx1kLE9F3Py9qM5enySn8SbdeHfEn++5NbDkU1gPoRlWI5TjGmFuCgtvjpa /3k/ILSbs4uSqNNJhrOBytKfCLSNPaxre830LGV4MEuNkbdbiJPilEKgV2pBbiVLIYej caryi0o53AMyR9/mSSrYADBHx83+Nns6wmpdd4fWyFxZYDHoCjWOCL9M/uOFCyJvG8KD z9KEnSZ3yPFKQzOJhkbh3Ga8FnhRnoASX1OCvdt9Yp2Ve/+5eGocnz50NZmVqTmpPHxK OfBxE9QNiUhybHj4gFSBuOVhAMf1QxQEHjNHK+55y8AV8Ih9yw6G9rszh73aQmDVK3ix beDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=1iKche64; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s198-20020a632ccf000000b005004b2acf6dsi2730092pgs.810.2023.03.14.11.33.50; Tue, 14 Mar 2023 11:34:05 -0700 (PDT) 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=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=1iKche64; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231139AbjCNSbg (ORCPT <rfc822;realc9580@gmail.com> + 99 others); Tue, 14 Mar 2023 14:31:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230414AbjCNSbP (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 14 Mar 2023 14:31:15 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3FAF5F214 for <linux-kernel@vger.kernel.org>; Tue, 14 Mar 2023 11:31:02 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id l7-20020a05600c4f0700b003e79fa98ce1so10828760wmq.2 for <linux-kernel@vger.kernel.org>; Tue, 14 Mar 2023 11:31:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1678818661; 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=dRTaCzYY0Zr8GLr8g1wP4DjAykkl6qzoi7oFjU1DC6s=; b=1iKche64yoAEpkrTLDdKrwTBnwtIxUC0j0z807wsjhXbvqKMTxM7rKFWzGV4Cbj+pf 51feleAWKkPhlbjut4BGYmYgUlO6jJNWQip89ibxb+cWeDRNYdBZ3accu9xIayzI1W8f rnfCw9keND+OKGi61kjHX8T/DrIBn+kI7BdJ1+avPKR1Jg9zqxZtwsZ1/d5qBgyaKS5G eqAAKxeC1K+7a+FQNwmYF0RFF7qoX0n3X+6xqjbQ0p+F6Qp0sgVkgfsG2fLNBPfYo+3P JnZsM9jZaqwR16Tp2HKaebto8KGleqCdMFP+LmX3zSG9LFXmfjlpxoUVUhV7GoXAuLFM K/TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678818661; 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=dRTaCzYY0Zr8GLr8g1wP4DjAykkl6qzoi7oFjU1DC6s=; b=fvSQE94SDeQPFyuGEdIU6nsBL11UYWpb3MHkOJ33ZCHJS1HbR6onzY4espqvaUL27a gGpll3dbr7aQM5UEZqwL647/D+zaMzhgy0SKffqBDqr2c7M7krFqSKZU4o4cc6eR2lOd /RpFO0Iw+jz50jYR9AXyF1WlQtOl7F+SmXmB56E5PmzGe5WRWpwqnL4bWD7TDo3ivYMV nhAGOXBmTR/oC1B/H81maTN392oWXzr+cp7N8uhG5X9A+oDsVJckZJu1vIwZlEEmyNPK 38KVxtleyDY0FUpbQkGv7VXQ1xS4AtK3Uwf7iQUd91rVdGWUOmT9//Ou6ZABlMAgdMbr oyzA== X-Gm-Message-State: AO0yUKVWKjbFnAHtZrC5ql39ZSxtY87MTWoJH8w6EZ0V3fA2tUaXDUWY FtsRxAg/kfs+z9U8InNitLx+cA== X-Received: by 2002:a05:600c:4f96:b0:3ed:2702:feea with SMTP id n22-20020a05600c4f9600b003ed2702feeamr5922506wmq.41.1678818661327; Tue, 14 Mar 2023 11:31:01 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:fd14:bd52:b53b:d94c]) by smtp.gmail.com with ESMTPSA id k28-20020a05600c1c9c00b003e209b45f6bsm4083938wms.29.2023.03.14.11.31.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 11:31:00 -0700 (PDT) From: Bartosz Golaszewski <brgl@bgdev.pl> To: 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> Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Subject: [PATCH 08/14] arm64: dts: qcom: sa8775p: pmic: add the power key Date: Tue, 14 Mar 2023 19:30:37 +0100 Message-Id: <20230314183043.619997-9-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230314183043.619997-1-brgl@bgdev.pl> References: <20230314183043.619997-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE 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?1760369149184074386?= X-GMAIL-MSGID: =?utf-8?q?1760369149184074386?= |
Series |
arm64: dts: qcom: sa8775p: add basic PMIC support
|
|
Commit Message
Bartosz Golaszewski
March 14, 2023, 6:30 p.m. UTC
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Add the power key node under the PON node for PMIC #0 on sa8775p. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> --- arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 7 +++++++ 1 file changed, 7 insertions(+)
Comments
On 14.03.2023 19:30, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > Add the power key node under the PON node for PMIC #0 on sa8775p. > > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > --- > arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi > index 5d73212fbd16..874460d087db 100644 > --- a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi > +++ b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi > @@ -18,6 +18,13 @@ pmk8775_0_pon: pon@1200 { > reg = <0x1200>, <0x800>; > mode-recovery = <0x1>; > mode-bootloader = <0x2>; > + > + pmk8775_0_pon_pwrkey: pwrkey { > + compatible = "qcom,pmk8350-pwrkey"; > + interrupts-extended = <&spmi_bus 0x0 0x12 0x7 IRQ_TYPE_EDGE_BOTH>; > + linux,code = <KEY_POWER>; > + status = "disabled"; Does it make any sense to disable the power button? Konrad > + }; > }; > }; >
On Tue, Mar 14, 2023 at 9:26 PM Konrad Dybcio <konrad.dybcio@linaro.org> wrote: > > > > On 14.03.2023 19:30, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > > > Add the power key node under the PON node for PMIC #0 on sa8775p. > > > > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > --- > > arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 7 +++++++ > > 1 file changed, 7 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi > > index 5d73212fbd16..874460d087db 100644 > > --- a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi > > +++ b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi > > @@ -18,6 +18,13 @@ pmk8775_0_pon: pon@1200 { > > reg = <0x1200>, <0x800>; > > mode-recovery = <0x1>; > > mode-bootloader = <0x2>; > > + > > + pmk8775_0_pon_pwrkey: pwrkey { > > + compatible = "qcom,pmk8350-pwrkey"; > > + interrupts-extended = <&spmi_bus 0x0 0x12 0x7 IRQ_TYPE_EDGE_BOTH>; > > + linux,code = <KEY_POWER>; > > + status = "disabled"; > Does it make any sense to disable the power button? > Since this is an automotive platform, I'd say yes - you wouldn't normally have physical access to the board or even be sure for it to have a power button? But if you prefer it the other way, I won't be dying on this hill. Bart > Konrad > > + }; > > }; > > }; > >
On 20.03.2023 11:52, Bartosz Golaszewski wrote: > On Tue, Mar 14, 2023 at 9:26 PM Konrad Dybcio <konrad.dybcio@linaro.org> wrote: >> >> >> >> On 14.03.2023 19:30, Bartosz Golaszewski wrote: >>> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> >>> >>> Add the power key node under the PON node for PMIC #0 on sa8775p. >>> >>> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> >>> --- >>> arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 7 +++++++ >>> 1 file changed, 7 insertions(+) >>> >>> diff --git a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi >>> index 5d73212fbd16..874460d087db 100644 >>> --- a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi >>> +++ b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi >>> @@ -18,6 +18,13 @@ pmk8775_0_pon: pon@1200 { >>> reg = <0x1200>, <0x800>; >>> mode-recovery = <0x1>; >>> mode-bootloader = <0x2>; >>> + >>> + pmk8775_0_pon_pwrkey: pwrkey { >>> + compatible = "qcom,pmk8350-pwrkey"; >>> + interrupts-extended = <&spmi_bus 0x0 0x12 0x7 IRQ_TYPE_EDGE_BOTH>; >>> + linux,code = <KEY_POWER>; >>> + status = "disabled"; >> Does it make any sense to disable the power button? >> > > Since this is an automotive platform, I'd say yes - you wouldn't > normally have physical access to the board or even be sure for it to > have a power button? On Qualcomm platforms there's little different ways to turn on the device short of giving it DC power (though that may also be config dependent), so I'd expect *something* would be connected to PON_PWR.. >But if you prefer it the other way, I won't be > dying on this hill. Yeah if you could, please leave it on (unless somebody has strong arguments against that) Konrad > > Bart > >> Konrad >>> + }; >>> }; >>> }; >>>
diff --git a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi index 5d73212fbd16..874460d087db 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi @@ -18,6 +18,13 @@ pmk8775_0_pon: pon@1200 { reg = <0x1200>, <0x800>; mode-recovery = <0x1>; mode-bootloader = <0x2>; + + pmk8775_0_pon_pwrkey: pwrkey { + compatible = "qcom,pmk8350-pwrkey"; + interrupts-extended = <&spmi_bus 0x0 0x12 0x7 IRQ_TYPE_EDGE_BOTH>; + linux,code = <KEY_POWER>; + status = "disabled"; + }; }; };