Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: power: Convert raspberrypi,bcm2835-power to Dt schema

Convert the raspberrypi,bcm2835-power binding to Dt schema

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Karan Sanghavi <karansanghvi98@gmail.com>
Link: https://lore.kernel.org/r/20241216-raspberrypi-bcm2835-power-v5-1-222fc244132b@gmail.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

authored by

Karan Sanghavi and committed by
Rob Herring (Arm)
a0e583b6 b9e58c93

+42 -47
+42
Documentation/devicetree/bindings/power/raspberrypi,bcm2835-power.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/power/raspberrypi,bcm2835-power.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Broadcom BCM2835 power domain 8 + 9 + maintainers: 10 + - Alexander Aring <alex.aring@gmail.com> 11 + - Florian Fainelli <florian.fainelli@broadcom.com> 12 + 13 + description: 14 + The Raspberry Pi power domain manages power for various subsystems 15 + in the Raspberry Pi BCM2835 SoC. 16 + 17 + properties: 18 + compatible: 19 + enum: 20 + - raspberrypi,bcm2835-power 21 + 22 + firmware: 23 + $ref: /schemas/types.yaml#/definitions/phandle 24 + description: Reference to the RPi firmware device node 25 + 26 + "#power-domain-cells": 27 + const: 1 28 + 29 + required: 30 + - compatible 31 + - firmware 32 + - "#power-domain-cells" 33 + 34 + unevaluatedProperties: false 35 + 36 + examples: 37 + - | 38 + power-controller { 39 + compatible = "raspberrypi,bcm2835-power"; 40 + firmware = <&firmware>; 41 + #power-domain-cells = <1>; 42 + };
-47
Documentation/devicetree/bindings/soc/bcm/raspberrypi,bcm2835-power.txt
··· 1 - Raspberry Pi power domain driver 2 - 3 - Required properties: 4 - 5 - - compatible: Should be "raspberrypi,bcm2835-power". 6 - - firmware: Reference to the RPi firmware device node. 7 - - #power-domain-cells: Should be <1>, we providing multiple power domains. 8 - 9 - The valid defines for power domain are: 10 - 11 - RPI_POWER_DOMAIN_I2C0 12 - RPI_POWER_DOMAIN_I2C1 13 - RPI_POWER_DOMAIN_I2C2 14 - RPI_POWER_DOMAIN_VIDEO_SCALER 15 - RPI_POWER_DOMAIN_VPU1 16 - RPI_POWER_DOMAIN_HDMI 17 - RPI_POWER_DOMAIN_USB 18 - RPI_POWER_DOMAIN_VEC 19 - RPI_POWER_DOMAIN_JPEG 20 - RPI_POWER_DOMAIN_H264 21 - RPI_POWER_DOMAIN_V3D 22 - RPI_POWER_DOMAIN_ISP 23 - RPI_POWER_DOMAIN_UNICAM0 24 - RPI_POWER_DOMAIN_UNICAM1 25 - RPI_POWER_DOMAIN_CCP2RX 26 - RPI_POWER_DOMAIN_CSI2 27 - RPI_POWER_DOMAIN_CPI 28 - RPI_POWER_DOMAIN_DSI0 29 - RPI_POWER_DOMAIN_DSI1 30 - RPI_POWER_DOMAIN_TRANSPOSER 31 - RPI_POWER_DOMAIN_CCP2TX 32 - RPI_POWER_DOMAIN_CDP 33 - RPI_POWER_DOMAIN_ARM 34 - 35 - Example: 36 - 37 - power: power { 38 - compatible = "raspberrypi,bcm2835-power"; 39 - firmware = <&firmware>; 40 - #power-domain-cells = <1>; 41 - }; 42 - 43 - Example for using power domain: 44 - 45 - &usb { 46 - power-domains = <&power RPI_POWER_DOMAIN_USB>; 47 - };