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: 12379735 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=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, 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=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 EC072C07E96 for ; Thu, 15 Jul 2021 09:58:53 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AAAF8608FE for ; Thu, 15 Jul 2021 09:58:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AAAF8608FE Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=nigauri.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=cU7t84SfvpeB/fuIlS5/N1e+LefV1cLBt+mS633D/4o=; b=i6T44u9nf/25ay oKG2439w0simi/6OqyKXFml2gJ0XEe4mJW97vbGoDMdhCunmpAr7DA4ocq0FXIC2YaxEwEMxlxFvX kfqhz5Z6WJ/uAgUHYxJZRC1hUOKsamXlaFIK62muAHiic1H2wtbY0rL5oBXppC3ehGJIU3oT8GbZT XsT+rBEzkpzyVyKHCCQUu4q2aBQsP6ahZgeb6Vho4tRLinSordlK5h8Mjih5Squq9OKRniVmM5o5y kJnXhuO0suk9eUSU9xGVwX3trmC3OFerFszoxNezznq9rMXVb7kxkd/HyV8EFXYlTDYN+PbPrzXlQ tuqneOfAdNJ1WSi/I8qQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m3y70-000MsS-0W; Thu, 15 Jul 2021 09:56:59 +0000 Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m3y6q-000Mpn-7Q for linux-arm-kernel@lists.infradead.org; Thu, 15 Jul 2021 09:56:50 +0000 Received: by mail-pg1-x52d.google.com with SMTP id d12so5540629pgd.9 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=AO1zjnofnOQH1a5s2ymORPUKe6khZOqYfyXsR+oLs/oHmMiG8ZX5BgGjkd6Eau7Kfy AwbEdqKFStDIsoyFNeK+q+Vy9tXs02hxv5A5W2ySPjbEqux5XWC8+sK28G8O203LvgQW AZxraAXzstMwunPDUyGXrT2AOZTWZ+VboMw/LyX34HQDAcsLUIBZE7f+mmuXzL3ABtJK 7ID8/vooA7imijrdfLJvfWTQQvihracUpEBfcBZ+iIWFLL+wHA6bIOXUbHKhl0NZv4m8 pyVf1weO37hKiHih7uD3dR8Le7VfO6NN7CEtA545P6knMbIm0Ph4GhZ96Jcn8ccIaojm 3yVQ== X-Gm-Message-State: AOAM530CJAJxnto26v7CMQI9e+aPZJ27OORbWC3PbZaJ8289uvGgTn66 azq1I/ttsoheCieaLDbY1YRO 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210715_025648_333974_1296DABE X-CRM114-Status: GOOD ( 18.70 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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"; + }; + }; + }; +...