From patchwork Thu Jul 15 09:56:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 477597 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=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham 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 9703BC07E96 for ; Thu, 15 Jul 2021 09:56:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6C5C2613BF for ; Thu, 15 Jul 2021 09:56:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240716AbhGOJ7l (ORCPT ); Thu, 15 Jul 2021 05:59:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231668AbhGOJ7k (ORCPT ); Thu, 15 Jul 2021 05:59:40 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03DCAC06175F for ; Thu, 15 Jul 2021 02:56:48 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id p22so4685186pfh.8 for ; Thu, 15 Jul 2021 02:56:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nigauri-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pAbGfmGIN7oGE7b33dBXT52a/I1Bp6/dyLoRt/OWcj0=; b=tTo1TsVkAEv4rRqKE9ive3ECR2+1oNoArkYcuQAMp/kYkBA5qGGL3X8aZF4aZc2wcK 1jNkwqdj8FZtiyRH5jFm6eRYexnIkUeQ2pFRp7jfrz5rIRfcYT5FOzTVNaG+cjteCNib pEgHeoZMBm8kZJASIgGXSRA/A0MWQYMBvZiNfFGQw6+3qirYmhKZrY9U8ker+v4zet0P /B/kW0a4appRkUVz3j0Y65CVqqWQSMIk4EF5efSNZHJl0Owm+4RDBySqQr+5/kBGfXas vMsn0DEvm1e+LoH3giTujAHTz8puFrUH01Cn3Q46Wt1HXkF2MjI8+r4lDpO7WgMo3/tA bwrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pAbGfmGIN7oGE7b33dBXT52a/I1Bp6/dyLoRt/OWcj0=; b=swNGWXPXea71bsRAukZXZ5FAd+lSJPUMpzvG+77BiRaD3/Vk693T/PiXZMrU3RCxHy ygS2XmF2DjXHXbYD9JdxvUqIzSZnrMhQjfl1auna0uVPEjeGXCkEIHepM227cPFp3op9 2FJzRuk0c3RfDJL2tHa9gL+6ouja1DuaGk4RlAO56jbabr1k/8hCpARUu7ndd1FrP9hX czhKagxMfkSYlBMSqODYLaxo1CcbtXoVLKVN8+fGHnhHIcIHWkRVOmUrlqnEoDiClV7g bw/BZOoaAKfIVrkCSKj65lHLZ3ORATHpqTxwh9IOm4SFjNaKya0OcRdETG8kqdb0Zo/z I4rA== X-Gm-Message-State: AOAM532v+z5iOKyj7mfHilYGiYvmLIvLwLFfT+S7DNKzceVZDFYYJGs9 JvA+5+Gs8Zuww3gowGH6drRa X-Google-Smtp-Source: ABdhPJxmoDfagR1oLYfii3pKQM3+qP53LIHABt0awxdsRdZLy6bY+e9CyUoxphzb0oSa7OzYEn5MoA== X-Received: by 2002:a63:d213:: with SMTP id a19mr3772584pgg.28.1626343007458; Thu, 15 Jul 2021 02:56:47 -0700 (PDT) Received: from localhost ([2405:6581:5360:1800:7285:c2ff:fec2:8f97]) by smtp.gmail.com with ESMTPSA id m34sm6764256pgb.85.2021.07.15.02.56.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jul 2021 02:56:47 -0700 (PDT) From: Nobuhiro Iwamatsu To: robh+dt@kernel.org, gregkh@linuxfoundation.org, michal.simek@xilinx.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, rajan.vaja@xilinx.com, jolly.shah@xilinx.com, Nobuhiro Iwamatsu Subject: [PATCH] dt-bindings: power: reset: convert Xilinx Zynq MPSoC bindings to YAML Date: Thu, 15 Jul 2021 18:56:27 +0900 Message-Id: <20210715095627.228176-1-iwamatsu@nigauri.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert power managemnet for Xilinx Zynq MPSoC bindings documentation to YAML. Signed-off-by: Nobuhiro Iwamatsu --- .../power/reset/xlnx,zynqmp-power.txt | 61 -------------- .../power/reset/xlnx,zynqmp-power.yaml | 83 +++++++++++++++++++ 2 files changed, 83 insertions(+), 61 deletions(-) delete mode 100644 Documentation/devicetree/bindings/power/reset/xlnx,zynqmp-power.txt create mode 100644 Documentation/devicetree/bindings/power/reset/xlnx,zynqmp-power.yaml diff --git a/Documentation/devicetree/bindings/power/reset/xlnx,zynqmp-power.txt b/Documentation/devicetree/bindings/power/reset/xlnx,zynqmp-power.txt deleted file mode 100644 index bb529ecf8a5768..00000000000000 --- a/Documentation/devicetree/bindings/power/reset/xlnx,zynqmp-power.txt +++ /dev/null @@ -1,61 +0,0 @@ --------------------------------------------------------------------- -Device Tree Bindings for the Xilinx Zynq MPSoC Power Management --------------------------------------------------------------------- -The zynqmp-power node describes the power management configurations. -It will control remote suspend/shutdown interfaces. - -Required properties: - - compatible: Must contain: "xlnx,zynqmp-power" - - interrupts: Interrupt specifier - -Optional properties: - - mbox-names : Name given to channels seen in the 'mboxes' property. - "tx" - Mailbox corresponding to transmit path - "rx" - Mailbox corresponding to receive path - - mboxes : Standard property to specify a Mailbox. Each value of - the mboxes property should contain a phandle to the - mailbox controller device node and an args specifier - that will be the phandle to the intended sub-mailbox - child node to be used for communication. See - Documentation/devicetree/bindings/mailbox/mailbox.txt - for more details about the generic mailbox controller - and client driver bindings. Also see - Documentation/devicetree/bindings/mailbox/ \ - xlnx,zynqmp-ipi-mailbox.txt for typical controller that - is used to communicate with this System controllers. - --------- -Examples --------- - -Example with interrupt method: - -firmware { - zynqmp_firmware: zynqmp-firmware { - compatible = "xlnx,zynqmp-firmware"; - method = "smc"; - - zynqmp_power: zynqmp-power { - compatible = "xlnx,zynqmp-power"; - interrupts = <0 35 4>; - }; - }; -}; - -Example with IPI mailbox method: - -firmware { - zynqmp_firmware: zynqmp-firmware { - compatible = "xlnx,zynqmp-firmware"; - method = "smc"; - - zynqmp_power: zynqmp-power { - compatible = "xlnx,zynqmp-power"; - interrupt-parent = <&gic>; - interrupts = <0 35 4>; - mboxes = <&ipi_mailbox_pmu0 0>, - <&ipi_mailbox_pmu0 1>; - mbox-names = "tx", "rx"; - }; - }; -}; diff --git a/Documentation/devicetree/bindings/power/reset/xlnx,zynqmp-power.yaml b/Documentation/devicetree/bindings/power/reset/xlnx,zynqmp-power.yaml new file mode 100644 index 00000000000000..68d7c14a716388 --- /dev/null +++ b/Documentation/devicetree/bindings/power/reset/xlnx,zynqmp-power.yaml @@ -0,0 +1,83 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/reset/xlnx,zynqmp-power.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Xilinx Zynq MPSoC Power Management Device Tree Bindings + +maintainers: + - Michal Simek + +description: | + The zynqmp-power node describes the power management configurations. + It will control remote suspend/shutdown interfaces. + +properties: + compatible: + const: "xlnx,zynqmp-power" + + interrupts: + maxItems: 1 + + mboxes: + description: | + Standard property to specify a Mailbox. Each value of + the mboxes property should contain a phandle to the + mailbox controller device node and an args specifier + that will be the phandle to the intended sub-mailbox + child node to be used for communication. See + Documentation/devicetree/bindings/mailbox/mailbox.txt + for more details about the generic mailbox controller + and client driver bindings. Also see + Documentation/devicetree/bindings/mailbox/ \ + xlnx,zynqmp-ipi-mailbox.txt for typical controller that + is used to communicate with this System controllers. + items: + - description: tx channel + - description: rx channel + + mbox-names: + description: + Name given to channels seen in the 'mboxes' property. + items: + - const: tx + - const: rx + +required: + - compatible + - interrupts + +additionalProperties: false + +examples: + - |+ + + // Example with interrupt method: + + firmware { + zynqmp-firmware { + zynqmp-power { + compatible = "xlnx,zynqmp-power"; + interrupts = <0 35 4>; + }; + }; + }; + + - |+ + + // Example with IPI mailbox method: + + firmware { + zynqmp-firmware { + zynqmp-power { + compatible = "xlnx,zynqmp-power"; + interrupt-parent = <&gic>; + interrupts = <0 35 4>; + mboxes = <&ipi_mailbox_pmu1 0>, + <&ipi_mailbox_pmu1 1>; + mbox-names = "tx", "rx"; + }; + }; + }; +...