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

dt-bindings: power: add Amlogic Everything-Else power domains bindings

Add the bindings for the Amlogic Everything-Else power domains,
controlling the Everything-Else peripherals power domains.

The bindings targets the Amlogic G12A and SM1 compatible SoCs,
support for earlier SoCs will be added later.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>

authored by

Neil Armstrong and committed by
Kevin Hilman
bd9eccf1 eef3c2ba

+124
+93
Documentation/devicetree/bindings/power/amlogic,meson-ee-pwrc.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + # Copyright 2019 BayLibre, SAS 3 + %YAML 1.2 4 + --- 5 + $id: "http://devicetree.org/schemas/power/amlogic,meson-ee-pwrc.yaml#" 6 + $schema: "http://devicetree.org/meta-schemas/core.yaml#" 7 + 8 + title: Amlogic Meson Everything-Else Power Domains 9 + 10 + maintainers: 11 + - Neil Armstrong <narmstrong@baylibre.com> 12 + 13 + description: |+ 14 + The Everything-Else Power Domains node should be the child of a syscon 15 + node with the required property: 16 + 17 + - compatible: Should be the following: 18 + "amlogic,meson-gx-hhi-sysctrl", "simple-mfd", "syscon" 19 + 20 + Refer to the the bindings described in 21 + Documentation/devicetree/bindings/mfd/syscon.txt 22 + 23 + properties: 24 + compatible: 25 + enum: 26 + - amlogic,meson-g12a-pwrc 27 + - amlogic,meson-sm1-pwrc 28 + 29 + clocks: 30 + minItems: 2 31 + 32 + clock-names: 33 + items: 34 + - const: vpu 35 + - const: vapb 36 + 37 + resets: 38 + minItems: 11 39 + 40 + reset-names: 41 + items: 42 + - const: viu 43 + - const: venc 44 + - const: vcbus 45 + - const: bt656 46 + - const: rdma 47 + - const: venci 48 + - const: vencp 49 + - const: vdac 50 + - const: vdi6 51 + - const: vencl 52 + - const: vid_lock 53 + 54 + "#power-domain-cells": 55 + const: 1 56 + 57 + amlogic,ao-sysctrl: 58 + description: phandle to the AO sysctrl node 59 + allOf: 60 + - $ref: /schemas/types.yaml#/definitions/phandle 61 + 62 + required: 63 + - compatible 64 + - clocks 65 + - clock-names 66 + - resets 67 + - reset-names 68 + - "#power-domain-cells" 69 + - amlogic,ao-sysctrl 70 + 71 + examples: 72 + - | 73 + pwrc: power-controller { 74 + compatible = "amlogic,meson-sm1-pwrc"; 75 + #power-domain-cells = <1>; 76 + amlogic,ao-sysctrl = <&rti>; 77 + resets = <&reset_viu>, 78 + <&reset_venc>, 79 + <&reset_vcbus>, 80 + <&reset_bt656>, 81 + <&reset_rdma>, 82 + <&reset_venci>, 83 + <&reset_vencp>, 84 + <&reset_vdac>, 85 + <&reset_vdi6>, 86 + <&reset_vencl>, 87 + <&reset_vid_lock>; 88 + reset-names = "viu", "venc", "vcbus", "bt656", 89 + "rdma", "venci", "vencp", "vdac", 90 + "vdi6", "vencl", "vid_lock"; 91 + clocks = <&clk_vpu>, <&clk_vapb>; 92 + clock-names = "vpu", "vapb"; 93 + };
+13
include/dt-bindings/power/meson-g12a-power.h
··· 1 + /* SPDX-License-Identifier: (GPL-2.0+ or MIT) */ 2 + /* 3 + * Copyright (c) 2019 BayLibre, SAS 4 + * Author: Neil Armstrong <narmstrong@baylibre.com> 5 + */ 6 + 7 + #ifndef _DT_BINDINGS_MESON_G12A_POWER_H 8 + #define _DT_BINDINGS_MESON_G12A_POWER_H 9 + 10 + #define PWRC_G12A_VPU_ID 0 11 + #define PWRC_G12A_ETH_ID 1 12 + 13 + #endif
+18
include/dt-bindings/power/meson-sm1-power.h
··· 1 + /* SPDX-License-Identifier: (GPL-2.0+ or MIT) */ 2 + /* 3 + * Copyright (c) 2019 BayLibre, SAS 4 + * Author: Neil Armstrong <narmstrong@baylibre.com> 5 + */ 6 + 7 + #ifndef _DT_BINDINGS_MESON_SM1_POWER_H 8 + #define _DT_BINDINGS_MESON_SM1_POWER_H 9 + 10 + #define PWRC_SM1_VPU_ID 0 11 + #define PWRC_SM1_NNA_ID 1 12 + #define PWRC_SM1_USB_ID 2 13 + #define PWRC_SM1_PCIE_ID 3 14 + #define PWRC_SM1_GE2D_ID 4 15 + #define PWRC_SM1_AUDIO_ID 5 16 + #define PWRC_SM1_ETH_ID 6 17 + 18 + #endif