From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D27FDC433E1 for ; Tue, 18 Aug 2020 18:54:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B13B020786 for ; Tue, 18 Aug 2020 18:54:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=mg.codeaurora.org header.i=@mg.codeaurora.org header.b="nDbOjidc" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726630AbgHRSyf (ORCPT ); Tue, 18 Aug 2020 14:54:35 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:25544 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726635AbgHRSyd (ORCPT ); Tue, 18 Aug 2020 14:54:33 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1597776873; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=vfiuCTct4hAHdpafOBx0+18YNtmCRa6E9a+yCwaEzcU=; b=nDbOjidcTnW/CNXGIJm9LVfq37twQUmdEM2nabuYIPgPiSff+Kub5niTMCkz/k68Zae5mQAi ViefWgRhTK8ZlyEktrmdlFqh+qHXZG9UFotdFWV3tq71MSXkI9LKaF+6DsUgsCcrBxWlZF48 sAEs2iERLgC7DmuC1Te5ZlI4I+I= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI1YmJiNiIsICJkZXZpY2V0cmVlQHZnZXIua2VybmVsLm9yZyIsICJiZTllNGEiXQ== Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-east-1.postgun.com with SMTP id 5f3c23e0f2b697637a94b24a (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 18 Aug 2020 18:54:24 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id D8DA6C43395; Tue, 18 Aug 2020 18:54:23 +0000 (UTC) Received: from eberman-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: eberman) by smtp.codeaurora.org (Postfix) with ESMTPSA id F28BCC433CA; Tue, 18 Aug 2020 18:54:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org F28BCC433CA Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=eberman@codeaurora.org From: Elliot Berman To: Sebastian Reichel , Andy Yan , Bjorn Andersson , Andy Gross , Rob Herring Cc: Elliot Berman , linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Trilok Soni , Prasad Sodagudi Subject: [RESEND PATCH v1 0/4] Support spaces in reboot mode framework Date: Tue, 18 Aug 2020 11:54:12 -0700 Message-Id: <1597776856-12014-1-git-send-email-eberman@codeaurora.org> X-Mailer: git-send-email 2.7.4 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Resending with updated recepients and cover subject. PM8150 uses reboot-mode framework to set magic values for bootloader to read during next boot. dm-verity wants to use "dm-verity device corrupted" [1] as the restart command, however the reboot-mode framework does not support spaces in the command line as devicetree property names cannot have spaces. In order to support the PM8150 comamnds, this patch series adds two new optional array properties to reboot-mode framework: reboot-mode-names and reboot-mode-magic. The arrays supply the commands and magic values, respectively. [1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/md/dm-verity-target.c?h=v5.5#n255 Elliot Berman (4): dt-bindings: power: reset: Convert reboot-mode to YAML dt-bindings: power: reset: Add alternate reboot mode format power: reset: Add support for reboot mode alternate properties arm64: dts: qcom: pm8150: Add reboot magic .../bindings/power/reset/reboot-mode.txt | 25 --------- .../bindings/power/reset/reboot-mode.yaml | 64 ++++++++++++++++++++++ arch/arm64/boot/dts/qcom/pm8150.dtsi | 5 ++ drivers/power/reset/reboot-mode.c | 42 +++++++++++++- 4 files changed, 110 insertions(+), 26 deletions(-) delete mode 100644 Documentation/devicetree/bindings/power/reset/reboot-mode.txt create mode 100644 Documentation/devicetree/bindings/power/reset/reboot-mode.yaml -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project