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

dt-bindings: hwlock: sprd-hwspinlock: convert to YAML

Convert the Spreadtrum hardware spinlock bindings to DT schema.

Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>
Link: https://lore.kernel.org/r/ZrB2S71BsxGAVXfQ@standask-GA-A55M-S2HP
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Stanislav Jakubek and committed by
Bjorn Andersson
8dc1bffd 8400291e

+50 -23
+50
Documentation/devicetree/bindings/hwlock/sprd,hwspinlock-r3p0.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/hwlock/sprd,hwspinlock-r3p0.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Spreadtrum hardware spinlock 8 + 9 + maintainers: 10 + - Orson Zhai <orsonzhai@gmail.com> 11 + - Baolin Wang <baolin.wang7@gmail.com> 12 + - Chunyan Zhang <zhang.lyra@gmail.com> 13 + 14 + properties: 15 + compatible: 16 + const: sprd,hwspinlock-r3p0 17 + 18 + reg: 19 + maxItems: 1 20 + 21 + clocks: 22 + maxItems: 1 23 + 24 + clock-names: 25 + const: enable 26 + 27 + '#hwlock-cells': 28 + const: 1 29 + 30 + required: 31 + - compatible 32 + - reg 33 + - clocks 34 + - clock-names 35 + - '#hwlock-cells' 36 + 37 + additionalProperties: false 38 + 39 + examples: 40 + - | 41 + #include <dt-bindings/clock/sprd,sc9860-clk.h> 42 + 43 + hwlock@40500000 { 44 + compatible = "sprd,hwspinlock-r3p0"; 45 + reg = <0x40500000 0x1000>; 46 + clocks = <&aon_gate CLK_SPLK_EB>; 47 + clock-names = "enable"; 48 + #hwlock-cells = <1>; 49 + }; 50 + ...
-23
Documentation/devicetree/bindings/hwlock/sprd-hwspinlock.txt
··· 1 - SPRD Hardware Spinlock Device Binding 2 - ------------------------------------- 3 - 4 - Required properties : 5 - - compatible : should be "sprd,hwspinlock-r3p0". 6 - - reg : the register address of hwspinlock. 7 - - #hwlock-cells : hwlock users only use the hwlock id to represent a specific 8 - hwlock, so the number of cells should be <1> here. 9 - - clock-names : Must contain "enable". 10 - - clocks : Must contain a phandle entry for the clock in clock-names, see the 11 - common clock bindings. 12 - 13 - Please look at the generic hwlock binding for usage information for consumers, 14 - "Documentation/devicetree/bindings/hwlock/hwlock.txt" 15 - 16 - Example of hwlock provider: 17 - hwspinlock@40500000 { 18 - compatible = "sprd,hwspinlock-r3p0"; 19 - reg = <0 0x40500000 0 0x1000>; 20 - #hwlock-cells = <1>; 21 - clock-names = "enable"; 22 - clocks = <&clk_aon_apb_gates0 22>; 23 - };