aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm4908/patches-5.4/082-v5.12-0001-dt-bindings-power-document-Broadcom-s-PMB-binding.patch
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2021-01-13 07:41:34 +0100
committerRafał Miłecki <rafal@milecki.pl>2021-01-13 07:44:04 +0100
commit56d64d8b5a47a2ce076661564c696445a5721338 (patch)
tree03564783536f67cdabea2e7d483871137b2759fb /target/linux/bcm4908/patches-5.4/082-v5.12-0001-dt-bindings-power-document-Broadcom-s-PMB-binding.patch
parent524b9aeb4c9ab6616cc3ee94161076b78bc29d1c (diff)
downloadupstream-56d64d8b5a47a2ce076661564c696445a5721338.tar.gz
upstream-56d64d8b5a47a2ce076661564c696445a5721338.tar.bz2
upstream-56d64d8b5a47a2ce076661564c696445a5721338.zip
bcm4908: backport PMB (Power Management Bus) driver
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'target/linux/bcm4908/patches-5.4/082-v5.12-0001-dt-bindings-power-document-Broadcom-s-PMB-binding.patch')
-rw-r--r--target/linux/bcm4908/patches-5.4/082-v5.12-0001-dt-bindings-power-document-Broadcom-s-PMB-binding.patch90
1 files changed, 90 insertions, 0 deletions
diff --git a/target/linux/bcm4908/patches-5.4/082-v5.12-0001-dt-bindings-power-document-Broadcom-s-PMB-binding.patch b/target/linux/bcm4908/patches-5.4/082-v5.12-0001-dt-bindings-power-document-Broadcom-s-PMB-binding.patch
new file mode 100644
index 0000000000..c5c1a5dc7e
--- /dev/null
+++ b/target/linux/bcm4908/patches-5.4/082-v5.12-0001-dt-bindings-power-document-Broadcom-s-PMB-binding.patch
@@ -0,0 +1,90 @@
+From 82853543057f78d8a331272b70bc3f1e8cb0cbf4 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
+Date: Mon, 14 Dec 2020 19:07:42 +0100
+Subject: [PATCH] dt-bindings: power: document Broadcom's PMB binding
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Broadcom's PMB is power controller used for disabling and enabling SoC
+devices.
+
+Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+Reviewed-by: Rob Herring <robh@kernel.org>
+Acked-by: Florian Fainelli <f.fainelli@gmail.com>
+Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
+Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
+---
+ .../bindings/power/brcm,bcm-pmb.yaml | 50 +++++++++++++++++++
+ include/dt-bindings/soc/bcm-pmb.h | 11 ++++
+ 2 files changed, 61 insertions(+)
+ create mode 100644 Documentation/devicetree/bindings/power/brcm,bcm-pmb.yaml
+ create mode 100644 include/dt-bindings/soc/bcm-pmb.h
+
+--- /dev/null
++++ b/Documentation/devicetree/bindings/power/brcm,bcm-pmb.yaml
+@@ -0,0 +1,50 @@
++# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
++%YAML 1.2
++---
++$id: http://devicetree.org/schemas/power/brcm,bcm-pmb.yaml#
++$schema: http://devicetree.org/meta-schemas/core.yaml#
++
++title: Broadcom PMB (Power Management Bus) controller
++
++description: This document describes Broadcom's PMB controller. It supports
++ powering various types of connected devices (e.g. PCIe, USB, SATA).
++
++maintainers:
++ - Rafał Miłecki <rafal@milecki.pl>
++
++properties:
++ compatible:
++ enum:
++ - brcm,bcm4908-pmb
++
++ reg:
++ description: register space of one or more buses
++ maxItems: 1
++
++ big-endian:
++ $ref: /schemas/types.yaml#/definitions/flag
++ description: Flag to use for block working in big endian mode.
++
++ "#power-domain-cells":
++ description: cell specifies device ID (see bcm-pmb.h)
++ const: 1
++
++required:
++ - reg
++ - "#power-domain-cells"
++
++additionalProperties: false
++
++examples:
++ - |
++ #include <dt-bindings/soc/bcm-pmb.h>
++
++ pmb: power-controller@802800e0 {
++ compatible = "brcm,bcm4908-pmb";
++ reg = <0x802800e0 0x40>;
++ #power-domain-cells = <1>;
++ };
++
++ foo {
++ power-domains = <&pmb BCM_PMB_PCIE0>;
++ };
+--- /dev/null
++++ b/include/dt-bindings/soc/bcm-pmb.h
+@@ -0,0 +1,11 @@
++/* SPDX-License-Identifier: GPL-2.0-or-later OR MIT */
++
++#ifndef __DT_BINDINGS_SOC_BCM_PMB_H
++#define __DT_BINDINGS_SOC_BCM_PMB_H
++
++#define BCM_PMB_PCIE0 0x01
++#define BCM_PMB_PCIE1 0x02
++#define BCM_PMB_PCIE2 0x03
++#define BCM_PMB_HOST_USB 0x04
++
++#endif