Message ID | 20221031-b4-odroid-go-ultra-initial-v1-1-42e3dbea86d5@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2422229wru; Mon, 31 Oct 2022 09:52:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5liXqgpqLMcBBZRCND55KvNhTRTHZwuTKVLi3EZurdsNAFlogIJYqsX8oksEqGq9YA5V1E X-Received: by 2002:a17:902:8e84:b0:178:57e4:805b with SMTP id bg4-20020a1709028e8400b0017857e4805bmr15348813plb.144.1667235160353; Mon, 31 Oct 2022 09:52:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667235160; cv=none; d=google.com; s=arc-20160816; b=W9urxwoz3LSb0kHsRJMR8qQ4+7g+3DbzNMDLQY8eKAgMhakHWnb42DAYori+VGZ6G2 bh0kvnG/BdCmOCMhwFMeOpYXJJFXc6LFmiKfyRNCFKBohpxWdVxnqIKQYe2LGqaJlSBB Jo/PiOR3RYX3wvBOXltPo9INvBOvwHaGLECbHsl7IbTG6zyvt/x+5DG2JGibSlepOfUQ 5/LzXpfBZFdTih+7tDIkhyz69KY0h528iCo5mOeUfDBpg+b1msqBPl/NOrIHmQxxrCOc uqsrnoMk12XwMFG7NAiwL/yLved0vopBQwraUic5yQL5fBARH77VhUn4rEeQ3AQ3jVwu Bi7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=NOvjAXevhTkIKEozXkDl99JqlY+Qi6ewDIiwMUqw+eI=; b=pbAhIACAzWrDfZgwK6YFgycO36lcJFA3bzVUy9OTFkFH5bJ3o+q4aXggWU2nfFP4XD HMAAcJJHm0CAK9NQtW551hFqpnG/6AUpye9AePTkr2mDcEWCbVlVXFY7d+g9+wLO744x nGU7BaBXau7NBm4ys1b6BT3WcL1bleh5wx3Zjji9A50P4CmxH49v55M8xYEFPm+CVk5J aE0c4nCW0oBqg5kzI0i7tZAmAsJICuNRIYbirlCdJoTxIpGQehfbDHg7OtVZ7pObfyXk QY1x2KK6x+0v+6gjPZ1WaylJqRei8lvX69WC5MAaRUSdijgU7/iH27uxJVNyQDW8J/GW Z0rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qY2IeKDR; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b8-20020a170902e94800b00180d51f70cfsi9907023pll.107.2022.10.31.09.52.27; Mon, 31 Oct 2022 09:52:40 -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=@linaro.org header.s=google header.b=qY2IeKDR; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231727AbiJaQri (ORCPT <rfc822;kartikey406@gmail.com> + 99 others); Mon, 31 Oct 2022 12:47:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231709AbiJaQrb (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 31 Oct 2022 12:47:31 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45C5B12AA3 for <linux-kernel@vger.kernel.org>; Mon, 31 Oct 2022 09:47:30 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id o4so16817434wrq.6 for <linux-kernel@vger.kernel.org>; Mon, 31 Oct 2022 09:47:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=NOvjAXevhTkIKEozXkDl99JqlY+Qi6ewDIiwMUqw+eI=; b=qY2IeKDRG1F4poEQPiAWWwD+glIBmz2L95iZxZiagfOCWZPnnMTf3cBx/VNmUR3OSl O2CLdUJ8mHfln5H75LZ1mzfbQ/cAL6C3oMFXSNSbbavXhhQNkMD2qQ897BCUKTSa+SHS L4bV0YSEwLQQeIegTJV3MIJgFJSYs5K5tdIR8H2MRRYvESbxB8zqP7qdblVFmAIFgm5o IycEid4/5BbtDlltxbKqLS9INDgq8xCg13tVBe+RaIVPMTe6gCdrWRLx8yjueLjRmeC+ JWLK42+UZHM2V5bL1ZYpVuUu1r3KY9BDCEn/a5Z1YyiuGrHONQQ2NKE7BnRGprS0Mqev vV0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NOvjAXevhTkIKEozXkDl99JqlY+Qi6ewDIiwMUqw+eI=; b=Xx8ic7cCQkDqt8SFK58XmA595cAE+zwnwLD7yv1BHj0aWPpg0qvVI01rYtZ475KAvq mDZn8/md449+8LTIpQL7dOuX+G7XkTCr0+InO0MnLpONxCsZfHpd866+Fyhni3SUYp5P PjlSa6pLYQnFCtkkepVBQBwbDUr54r6PbGFt8Pk44QTLORMvpZkyBwaAgv8ZQq348k8a Jxcil29FZciAo53Y/B+oQwZmZqev+8zeXAKYiGTP0gGXK52OpsQpPRlC/b7DIJIGhDaH 2hITbebpne/Jzv8vyCXh8hoZMD9HGzZe10gI7hHcpua4g6HF3cBpex4eHiuz/fgBAubm jupQ== X-Gm-Message-State: ACrzQf0ny9vH+CKq7H7aGePTyMbCJF+PhLvUbvx6UUIu5dg11pQZP0WU 5Zo3ZGnjenCcUv7f+QRbM1DrTA== X-Received: by 2002:adf:da4f:0:b0:236:cdd4:4ce2 with SMTP id r15-20020adfda4f000000b00236cdd44ce2mr3330832wrl.626.1667234848824; Mon, 31 Oct 2022 09:47:28 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id q8-20020a05600c46c800b003b4868eb71bsm7488871wmo.25.2022.10.31.09.47.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Oct 2022 09:47:28 -0700 (PDT) From: Neil Armstrong <neil.armstrong@linaro.org> Date: Mon, 31 Oct 2022 17:47:25 +0100 Subject: [PATCH 1/4] dt-bindings: reset: document Odroid Go Ultra power-off MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20221031-b4-odroid-go-ultra-initial-v1-1-42e3dbea86d5@linaro.org> References: <20221031-b4-odroid-go-ultra-initial-v1-0-42e3dbea86d5@linaro.org> In-Reply-To: <20221031-b4-odroid-go-ultra-initial-v1-0-42e3dbea86d5@linaro.org> To: Martin Blumenstingl <martin.blumenstingl@googlemail.com>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Rob Herring <robh+dt@kernel.org>, Kevin Hilman <khilman@baylibre.com>, Sebastian Reichel <sre@kernel.org>, Jerome Brunet <jbrunet@baylibre.com> Cc: linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, Neil Armstrong <neil.armstrong@linaro.org> X-Mailer: b4 0.10.1 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=ham 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?1748222775448742081?= X-GMAIL-MSGID: =?utf-8?q?1748222775448742081?= |
Series |
arm64: amlogic: add initial Odroid Go Ultra DTS
|
|
Commit Message
Neil Armstrong
Oct. 31, 2022, 4:47 p.m. UTC
The Hardkernel Odroid Go Ultra poweroff scheme requires requesting a poweroff
to its two PMICs in order, this represents the poweroff scheme needed to complet
a clean poeroff of the system.
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
.../reset/hardkernel,odroid-go-ultra-poweroff.yaml | 42 ++++++++++++++++++++++
1 file changed, 42 insertions(+)
Comments
Hi Neil, On Mon, Oct 31, 2022 at 5:47 PM Neil Armstrong <neil.armstrong@linaro.org> wrote: > > The Hardkernel Odroid Go Ultra poweroff scheme requires requesting a poweroff > to its two PMICs in order, this represents the poweroff scheme needed to complet s/complet/complete/ > a clean poeroff of the system. s/poeroff/poweroff/ Please wait with re-sending this patch in case the dt-bindings and reset experts have more to say than finding typos. Best regards, Martin
On 31/10/2022 22:16, Martin Blumenstingl wrote: > Hi Neil, > > On Mon, Oct 31, 2022 at 5:47 PM Neil Armstrong > <neil.armstrong@linaro.org> wrote: >> >> The Hardkernel Odroid Go Ultra poweroff scheme requires requesting a poweroff >> to its two PMICs in order, this represents the poweroff scheme needed to complet > s/complet/complete/ >> a clean poeroff of the system. > s/poeroff/poweroff/ > > Please wait with re-sending this patch in case the dt-bindings and > reset experts have more to say than finding typos. Thx for spotting those typos ! > > > Best regards, > Martin Neil
On Mon, Oct 31, 2022 at 05:47:25PM +0100, Neil Armstrong wrote: > The Hardkernel Odroid Go Ultra poweroff scheme requires requesting a poweroff > to its two PMICs in order, this represents the poweroff scheme needed to complet > a clean poeroff of the system. > > Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> > --- > .../reset/hardkernel,odroid-go-ultra-poweroff.yaml | 42 ++++++++++++++++++++++ > 1 file changed, 42 insertions(+) > > diff --git a/Documentation/devicetree/bindings/power/reset/hardkernel,odroid-go-ultra-poweroff.yaml b/Documentation/devicetree/bindings/power/reset/hardkernel,odroid-go-ultra-poweroff.yaml > new file mode 100644 > index 000000000000..65e42258717c > --- /dev/null > +++ b/Documentation/devicetree/bindings/power/reset/hardkernel,odroid-go-ultra-poweroff.yaml > @@ -0,0 +1,42 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/power/reset/hardkernel,odroid-go-ultra-poweroff.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Hardkernel Odroid Go Ultra poweroff > + > +maintainers: > + - Neil Armstrong <neil.armstrong@linaro.org> > + > +description: > + The Hardkernel Odroid Go Ultra poweroff scheme requires requesting a poweroff > + to its two PMICs in order, this represents the poweroff scheme needed to complete > + a clean poeroff of the system. You don't really need a node for this. Test against the top level compatible and then find the PMIC nodes by their compatible strings. > + > +properties: > + compatible: > + const: hardkernel,odroid-go-ultra-poweroff > + > + hardkernel,rk817-pmic: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: Phandle to the RK817 PMIC node > + > + hardkernel,rk818-pmic: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: Phandle to the RK818 PMIC node > + > +required: > + - compatible > + - hardkernel,rk817-pmic > + - hardkernel,rk818-pmic > + > +additionalProperties: false > + > +examples: > + - | > + poweroff { > + compatible = "hardkernel,odroid-go-ultra-poweroff"; > + hardkernel,rk817-pmic = <&rk817>; > + hardkernel,rk818-pmic = <&rk818>; > + }; > > -- > b4 0.10.1 >
Hi, On 02/11/2022 17:23, Rob Herring wrote: > On Mon, Oct 31, 2022 at 05:47:25PM +0100, Neil Armstrong wrote: >> The Hardkernel Odroid Go Ultra poweroff scheme requires requesting a poweroff >> to its two PMICs in order, this represents the poweroff scheme needed to complet >> a clean poeroff of the system. >> >> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> >> --- >> .../reset/hardkernel,odroid-go-ultra-poweroff.yaml | 42 ++++++++++++++++++++++ >> 1 file changed, 42 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/power/reset/hardkernel,odroid-go-ultra-poweroff.yaml b/Documentation/devicetree/bindings/power/reset/hardkernel,odroid-go-ultra-poweroff.yaml >> new file mode 100644 >> index 000000000000..65e42258717c >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/power/reset/hardkernel,odroid-go-ultra-poweroff.yaml >> @@ -0,0 +1,42 @@ >> +# SPDX-License-Identifier: GPL-2.0 >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/power/reset/hardkernel,odroid-go-ultra-poweroff.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Hardkernel Odroid Go Ultra poweroff >> + >> +maintainers: >> + - Neil Armstrong <neil.armstrong@linaro.org> >> + >> +description: >> + The Hardkernel Odroid Go Ultra poweroff scheme requires requesting a poweroff >> + to its two PMICs in order, this represents the poweroff scheme needed to complete >> + a clean poeroff of the system. > > You don't really need a node for this. Test against the top level > compatible and then find the PMIC nodes by their compatible strings. Hmm ok, indeed would be simpler. Neil > >> + >> +properties: >> + compatible: >> + const: hardkernel,odroid-go-ultra-poweroff >> + >> + hardkernel,rk817-pmic: >> + $ref: /schemas/types.yaml#/definitions/phandle >> + description: Phandle to the RK817 PMIC node >> + >> + hardkernel,rk818-pmic: >> + $ref: /schemas/types.yaml#/definitions/phandle >> + description: Phandle to the RK818 PMIC node >> + >> +required: >> + - compatible >> + - hardkernel,rk817-pmic >> + - hardkernel,rk818-pmic >> + >> +additionalProperties: false >> + >> +examples: >> + - | >> + poweroff { >> + compatible = "hardkernel,odroid-go-ultra-poweroff"; >> + hardkernel,rk817-pmic = <&rk817>; >> + hardkernel,rk818-pmic = <&rk818>; >> + }; >> >> -- >> b4 0.10.1 >>
diff --git a/Documentation/devicetree/bindings/power/reset/hardkernel,odroid-go-ultra-poweroff.yaml b/Documentation/devicetree/bindings/power/reset/hardkernel,odroid-go-ultra-poweroff.yaml new file mode 100644 index 000000000000..65e42258717c --- /dev/null +++ b/Documentation/devicetree/bindings/power/reset/hardkernel,odroid-go-ultra-poweroff.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/reset/hardkernel,odroid-go-ultra-poweroff.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Hardkernel Odroid Go Ultra poweroff + +maintainers: + - Neil Armstrong <neil.armstrong@linaro.org> + +description: + The Hardkernel Odroid Go Ultra poweroff scheme requires requesting a poweroff + to its two PMICs in order, this represents the poweroff scheme needed to complete + a clean poeroff of the system. + +properties: + compatible: + const: hardkernel,odroid-go-ultra-poweroff + + hardkernel,rk817-pmic: + $ref: /schemas/types.yaml#/definitions/phandle + description: Phandle to the RK817 PMIC node + + hardkernel,rk818-pmic: + $ref: /schemas/types.yaml#/definitions/phandle + description: Phandle to the RK818 PMIC node + +required: + - compatible + - hardkernel,rk817-pmic + - hardkernel,rk818-pmic + +additionalProperties: false + +examples: + - | + poweroff { + compatible = "hardkernel,odroid-go-ultra-poweroff"; + hardkernel,rk817-pmic = <&rk817>; + hardkernel,rk818-pmic = <&rk818>; + };