Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1742712rwl; Mon, 26 Dec 2022 04:12:36 -0800 (PST) X-Google-Smtp-Source: AMrXdXtgr+F6r3bbv6VGQ87z9efLMjw/k8KgCjFdd15AvgcxZW2evZd+Y3BCr0AnqYOm6iYNR4l7 X-Received: by 2002:a05:6a20:1b02:b0:aa:7d04:109b with SMTP id ch2-20020a056a201b0200b000aa7d04109bmr22730993pzb.40.1672056756454; Mon, 26 Dec 2022 04:12:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672056756; cv=none; d=google.com; s=arc-20160816; b=MYkmluLfHR+0dpppCOdmV2C2U8rcKgL81QYqxW1+ftdEOFGq9OZ95Kc/DTMblGUQ3O 4YIP+dnIJp1LE/8XO00Vmc+f42uQRqX2AvuSARZL0U7QyCFs/h339J2B6e87kzlIZLaZ m+5xmTiyTufe4C84WPF4Lh2p6NvF3m6A547filqpKVblpGm1QKPFQEx88jWmLq3Ms9nf 0hVHETKhdlh24lVgFSAMFl2DrH4HACMlaeW0Q2fjR8pVZ00uQI4Vg4VKF3PI24kbtCDD J7G91rSFjoBGZwXifkoPEWpGj5owTB/WuLng41ninDIz3VNkbf1UBBE/DjC6lV/8mq5d 2a0A== 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=/ry8kqgYptsOjnYTlYWS6Ba/5GFwgqINLVRHY31EHJk=; b=uDZpxCPlPdrecP04EnFnnslb1IwoQNBYSDWZuowiD1QV4GseevhMmXg7ed1X+hG+3L 9wKIHpOpEiuVILHgWMer5Yn2ORABhISX/PB9Ylbs9iuTnXr7N4rk/R7KWSzjKK15N9cO FIrOijiKIw4zmOY1Ifc0wVMcZs7PmxUJQCZ8Gr5qgg/7TZVbXbRAVbENsK7h/ncvX0Ya 9iDb8Y3u++qRv/N/pWusaPSm2tpIGvbSwPB4yImOjCc3gaQdx6YAlINBlc9pjXlwoWex PPgfn6cxFrJFGX98DHzSlx8WVzZc1GDpb4MetKMZ/7zDgpFupFH6KdvUCcBZglMlmuvW 450A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="te4U/bKJ"; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r6-20020a63b106000000b004779a46866csi11721717pgf.563.2022.12.26.04.12.25; Mon, 26 Dec 2022 04:12:36 -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=@kernel.org header.s=k20201202 header.b="te4U/bKJ"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231910AbiLZL6M (ORCPT + 67 others); Mon, 26 Dec 2022 06:58:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229686AbiLZL6G (ORCPT ); Mon, 26 Dec 2022 06:58:06 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E2C16179; Mon, 26 Dec 2022 03:58:05 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3AA24B80C75; Mon, 26 Dec 2022 11:58:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 895F8C433EF; Mon, 26 Dec 2022 11:58:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672055882; bh=BCmdieMBicJXuI4/ZzBxG2C09Q8TUmVSKdBVNnqsWpU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=te4U/bKJZYL4EQq81SVivnn5sAAcIlPZSoc8sgbMclBd6VwxkgzF/U449dFkQGQy+ c6fLeqQ1NzSM2BW0L3AD0BhSaV+h7beqCBfjXtXDjzGCVfYh9IW/nXXSDdy4sax1yy QXyXhpZXX+KeyY93fGKGpgtWJveehZdNgZ+BNKJY3Ki/CUQLyw9UuddKrLtXZtoBrx N56P9F1qyQuPWFyvmRhTXjmakqk4bB5mpKoEe3SlQTofARTV4vzWfSElvPWRPBnLld KKCHDiVjimTxpRFN7nVBYDzwoaa4GcNpHAP4vKns7souAh0XrUWjJEiJixhyIAMUMq +EyBEB9UvCr5Q== Received: by pali.im (Postfix) id A794D77D; Mon, 26 Dec 2022 12:57:59 +0100 (CET) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: "Krzysztof Kozlowski" , Rob Herring , Sebastian Reichel Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 1/3] dt-bindings: reset: syscon-reboot: Add priority property Date: Mon, 26 Dec 2022 12:45:11 +0100 Message-Id: <20221226114513.4569-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220820102925.29476-1-pali@kernel.org> References: <20220820102925.29476-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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: X-Mailing-List: linux-kernel@vger.kernel.org This new optional priority property allows to specify custom priority level of reset device. Prior this change priority level was hardcoded to 192 and not possible to specify or change. Specifying other value is needed for some boards. Default level when not specified stays at 192 as before. Signed-off-by: Pali Rohár --- Changes in v4: * Use restart-handler.yaml Changes in v3: * Add explanation into commit message Changes in v2: * Change sint32 to int32 * Add default --- .../devicetree/bindings/power/reset/syscon-reboot.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/power/reset/syscon-reboot.yaml b/Documentation/devicetree/bindings/power/reset/syscon-reboot.yaml index da2509724812..f721bdf63a98 100644 --- a/Documentation/devicetree/bindings/power/reset/syscon-reboot.yaml +++ b/Documentation/devicetree/bindings/power/reset/syscon-reboot.yaml @@ -19,6 +19,9 @@ description: |+ sub-node of a "syscon", "simple-mfd" node. Though the regmap property pointing to the system controller node is also supported. +allOf: + - $ref: restart-handler.yaml# + properties: compatible: const: syscon-reboot @@ -42,6 +45,9 @@ properties: $ref: /schemas/types.yaml#/definitions/uint32 description: The reset value written to the reboot register (32 bit access). + priority: + default: 192 + required: - compatible - offset -- 2.20.1