From: "Rafał Miłecki" <zajec5@gmail.com>
To: Philipp Zabel <p.zabel@pengutronix.de>, Rob Herring <robh+dt@kernel.org>
Cc: devicetree@vger.kernel.org,
bcm-kernel-feedback-list@broadcom.com,
"Rafał Miłecki" <rafal@milecki.pl>,
"Florian Fainelli" <f.fainelli@gmail.com>
Subject: [PATCH V2 1/2] dt-bindings: reset: document Broadcom's PMB binding
Date: Thu, 19 Nov 2020 13:55:59 +0100 [thread overview]
Message-ID: <20201119125600.8559-2-zajec5@gmail.com> (raw)
In-Reply-To: <20201119125600.8559-1-zajec5@gmail.com>
From: Rafał Miłecki <rafal@milecki.pl>
Broadcom's PMB is reset controller used for disabling and enabling SoC
devices.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
---
V2: Fix example compilation
Describe #reset-cells
---
.../devicetree/bindings/reset/brcm,pmb.yaml | 54 +++++++++++++++++++
include/dt-bindings/reset/brcm,pmb.h | 9 ++++
2 files changed, 63 insertions(+)
create mode 100644 Documentation/devicetree/bindings/reset/brcm,pmb.yaml
create mode 100644 include/dt-bindings/reset/brcm,pmb.h
diff --git a/Documentation/devicetree/bindings/reset/brcm,pmb.yaml b/Documentation/devicetree/bindings/reset/brcm,pmb.yaml
new file mode 100644
index 000000000000..2b5dd2faa4b2
--- /dev/null
+++ b/Documentation/devicetree/bindings/reset/brcm,pmb.yaml
@@ -0,0 +1,54 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/reset/brcm,pmb.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Broadcom PMB Master reset controller
+
+description: This document describes Broadcom's PMB controller. It supports
+ resetting various types of connected devices (e.g. PCIe, USB, SATA). It
+ requires specifying device address.
+
+maintainers:
+ - Rafał Miłecki <rafal@milecki.pl>
+
+properties:
+ compatible:
+ enum:
+ - brcm,bcm4908-pmb # PMB on BCM4908 and compatible SoCs
+
+ reg:
+ maxItems: 1
+
+ big-endian:
+ $ref: /schemas/types.yaml#/definitions/flag
+ description:
+ Flag to use for block working in big endian mode.
+
+ "#reset-cells":
+ description: |
+ The first cell defines type of device to reset (see brcm,pmb.h)
+ The second cell specifies device address (range: 0 - 255)
+ const: 2
+
+required:
+ - compatible
+ - reg
+ - "#reset-cells"
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/reset/brcm,pmb.h>
+
+ pmb: reset-controller@802800e0 {
+ compatible = "brcm,bcm4908-pmb";
+ reg = <0x802800e0 0x20>;
+ #reset-cells = <2>;
+ };
+
+ foo {
+ resets = <&pmb BRCM_PMB_USB 17>;
+ };
diff --git a/include/dt-bindings/reset/brcm,pmb.h b/include/dt-bindings/reset/brcm,pmb.h
new file mode 100644
index 000000000000..1b724e451de1
--- /dev/null
+++ b/include/dt-bindings/reset/brcm,pmb.h
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later OR MIT */
+
+#ifndef _DT_BINDINGS_RESET_BRCM_PMB
+#define _DT_BINDINGS_RESET_BRCM_PMB
+
+#define BRCM_PMB_USB 0x01
+#define BRCM_PMB_PCIE 0x02
+
+#endif
--
2.26.2
next prev parent reply other threads:[~2020-11-19 12:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-19 12:55 [PATCH V2 0/2] reset: support Broadcom's PMB Rafał Miłecki
2020-11-19 12:55 ` Rafał Miłecki [this message]
2020-12-07 22:05 ` [PATCH V2 1/2] dt-bindings: reset: document Broadcom's PMB binding Rob Herring
2020-11-19 12:56 ` [PATCH V2 2/2] reset: brcm-pmb: add driver for Broadcom's PMB Rafał Miłecki
2020-12-08 11:02 ` Philipp Zabel
2020-12-08 20:20 ` Florian Fainelli
2020-12-09 11:24 ` Philipp Zabel
2020-12-11 11:34 ` Rafał Miłecki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201119125600.8559-2-zajec5@gmail.com \
--to=zajec5@gmail.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=devicetree@vger.kernel.org \
--cc=f.fainelli@gmail.com \
--cc=p.zabel@pengutronix.de \
--cc=rafal@milecki.pl \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).