Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp170827rwi; Wed, 2 Nov 2022 10:31:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6C+y+B4GVBtDVYv0tqrAVpX+dmf5vfXXe4ZwBQB9ypy7vrjxp1PBHgJWhuwaqmEO+A41dv X-Received: by 2002:a17:902:ec92:b0:186:9fc6:868c with SMTP id x18-20020a170902ec9200b001869fc6868cmr25638989plg.12.1667410295654; Wed, 02 Nov 2022 10:31:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667410295; cv=none; d=google.com; s=arc-20160816; b=U/DLyWz/InKEJcV4qJ49ZGcRrbfRtbeTZ74yToN0zSqfxzJTnPmS6T3Cz47XwIgjT3 hJ3o2++nirqzYISVbyexTv+5sXkB64VGzSv7ereIbMSgR0QO5QLY+dvgEZVXR34fS7Fc BCOHaZ8zuiIf1ZOLuqpYqm09ikCUCebIp3yOiLGb7yPJRWOiGvXj1oYbc4I41ENTKFlf orhFj+vz9SorisRO5JIxEE/MJtKI53TQLD6DtnNG7MGRXCZ9OpIPperhspVAQKp7vMBR Bjnz2BJ9PDyRkw3y+zrb68RGzJ9dx4GM59sqapbsUCbTKzWLzTuLncUd26hdXpajamOe X18A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:references:cc:to:content-language:subject:reply-to :from:user-agent:mime-version:date:message-id:dkim-signature; bh=zv7Fq5k50QWQLxnPbss2vXizhHRaHgo0CLWyEMOtNXY=; b=XyrgXDi5g9+MXANhQbdsni/Vr+kJjA5GeA017eu+eSZvY8Myx0fOpZ7YiU9MHkbmH7 ulI46BJnSpwFpK8NStjbCMJ6r+bWmdNtIHqBrFSIlW/RbAYFgx6hynYqjbEELpgs5Nu1 DCdssRVWBafndK2fZWNsgPFOx2G+CWRTc/IZxISI1YQsBzuixBW7YAR7vcmPrHcXgGnO k+W67r85LV+cRzPZPX7GPBoVyHOWD+2AWyhIHrb8UrZyOMcyoS6IbMn4jZLd43NIRCfW sq/3d9jAIjEoRk3QhPypJF/1MyFPE/GQ4eTk93GjNCYHFvxLZPQV353XJgd8Nakp7c9X b5bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XLT+2bOf; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l12-20020a17090270cc00b00187204b35besi10922428plt.203.2022.11.02.10.31.21; Wed, 02 Nov 2022 10:31:35 -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=XLT+2bOf; 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 S231491AbiKBQai (ORCPT + 98 others); Wed, 2 Nov 2022 12:30:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231673AbiKBQaL (ORCPT ); Wed, 2 Nov 2022 12:30:11 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDF0618349 for ; Wed, 2 Nov 2022 09:26:18 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id p16so5430911wmc.3 for ; Wed, 02 Nov 2022 09:26:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=zv7Fq5k50QWQLxnPbss2vXizhHRaHgo0CLWyEMOtNXY=; b=XLT+2bOf52xM6JdQqN+Tbi3UN/LLLCaptLMtL5KvSTYPvI/lUr4ONN2+m47aatNmUE rdrtReOAY4RmLpenQiqcMEofRRUhxktec1oIjlF4j6H6wmkxi5XEDnpOZ9QGJaSBxv+F LhWZTjMyJ0KzHsT2tice4ZplDy8smvhGjPpxQ+xekviGu2gOZfr+P+dYshaOnkeqsqVi uLKwI/Sm12ueV22i0iRvO64/ABCyk4cZb6c2neFCEhma60LYtaOmfJBEUoWMY7xkEKJ/ WLGsayqA2AIVW/hhoObdJU0oqJ/+fBkdyyFvsfYKhIOtXxaDfx5ozca5oUxePLiG0MUO U5Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zv7Fq5k50QWQLxnPbss2vXizhHRaHgo0CLWyEMOtNXY=; b=Zs9ly2UgGl+VAS3eGCIJQG1e4cYfa/9VlbxjfXdbG7Pa9QLHFkcnJEKrLqxNUVWJRg OHf+sqUONz1wCi6MY5sMtUenRv8c/L/e82aCL2p9fjKVrJxRg6PkD5FKkfKcji4edr09 7UzkS47gnf9zfSyWfvkJT2L1iocQoBI+6w8USVDQlSkWYA7WsMuwzIWeXSYK3kA1LRZX lsbCK72iJlUqdde5xEUwup6Ekc9tUwn7TYpo0VvHonf3ZgspwcSc6KhZ3pxncxyhyYF/ 3P4yeIRu6wqU5TQFMJXx5wKVPkCPEkpEDz3lObwJQNwAvLMcyfy+0eAVX8AV3bQb7aTV /1ww== X-Gm-Message-State: ACrzQf0xn4h9eQMvygRyHHOprUC7kR35oquDW7U3cm1ld9navO8+YXvA nP3qf1H2r8mNKnDc0gGsrWQboQ== X-Received: by 2002:a05:600c:4ed1:b0:3cf:86ab:3a0f with SMTP id g17-20020a05600c4ed100b003cf86ab3a0fmr2853053wmq.106.1667406377451; Wed, 02 Nov 2022 09:26:17 -0700 (PDT) Received: from ?IPV6:2a01:e0a:982:cbb0:3541:e8cb:4c8c:e204? ([2a01:e0a:982:cbb0:3541:e8cb:4c8c:e204]) by smtp.gmail.com with ESMTPSA id v7-20020a05600c444700b003c70191f267sm2844571wmn.39.2022.11.02.09.26.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Nov 2022 09:26:17 -0700 (PDT) Message-ID: Date: Wed, 2 Nov 2022 17:26:16 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 From: Neil Armstrong Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH 1/4] dt-bindings: reset: document Odroid Go Ultra power-off Content-Language: en-US To: Rob Herring Cc: Martin Blumenstingl , Krzysztof Kozlowski , Kevin Hilman , Sebastian Reichel , Jerome Brunet , 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 References: <20221031-b4-odroid-go-ultra-initial-v1-0-42e3dbea86d5@linaro.org> <20221031-b4-odroid-go-ultra-initial-v1-1-42e3dbea86d5@linaro.org> <20221102162344.GA3993882-robh@kernel.org> Organization: Linaro Developer Services In-Reply-To: <20221102162344.GA3993882-robh@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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: X-Mailing-List: linux-kernel@vger.kernel.org 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 >> --- >> .../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 >> + >> +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 >>