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

dt-bindings: clocks: Convert Allwinner A80 DE clocks to a schema

The Allwinner A80 SoC has a display clocks controller that is supported in
Linux, with a matching Device Tree binding.

Now that we have the DT validation in place, let's convert the device tree
bindings for that controller over to a YAML schemas.

Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>

+67 -28
+67
Documentation/devicetree/bindings/clock/allwinner,sun9i-a80-de-clks.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0+ 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/clock/allwinner,sun9i-a80-de-clks.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Allwinner A80 Display Engine Clock Controller Device Tree Bindings 8 + 9 + maintainers: 10 + - Chen-Yu Tsai <wens@csie.org> 11 + - Maxime Ripard <mripard@kernel.org> 12 + 13 + properties: 14 + "#clock-cells": 15 + const: 1 16 + 17 + "#reset-cells": 18 + const: 1 19 + 20 + compatible: 21 + const: allwinner,sun9i-a80-de-clks 22 + 23 + reg: 24 + maxItems: 1 25 + 26 + clocks: 27 + items: 28 + - description: Bus Clock 29 + - description: RAM Bus Clock 30 + - description: Module Clock 31 + 32 + clock-names: 33 + items: 34 + - const: mod 35 + - const: dram 36 + - const: bus 37 + 38 + resets: 39 + maxItems: 1 40 + 41 + required: 42 + - "#clock-cells" 43 + - "#reset-cells" 44 + - compatible 45 + - reg 46 + - clocks 47 + - clock-names 48 + - resets 49 + 50 + additionalProperties: false 51 + 52 + examples: 53 + - | 54 + #include <dt-bindings/clock/sun9i-a80-ccu.h> 55 + #include <dt-bindings/reset/sun9i-a80-ccu.h> 56 + 57 + de_clocks: clock@3000000 { 58 + compatible = "allwinner,sun9i-a80-de-clks"; 59 + reg = <0x03000000 0x30>; 60 + clocks = <&ccu CLK_DE>, <&ccu CLK_SDRAM>, <&ccu CLK_BUS_DE>; 61 + clock-names = "mod", "dram", "bus"; 62 + resets = <&ccu RST_BUS_DE>; 63 + #clock-cells = <1>; 64 + #reset-cells = <1>; 65 + }; 66 + 67 + ...
-28
Documentation/devicetree/bindings/clock/sun9i-de.txt
··· 1 - Allwinner A80 Display Engine Clock Control Binding 2 - -------------------------------------------------- 3 - 4 - Required properties : 5 - - compatible: must contain one of the following compatibles: 6 - - "allwinner,sun9i-a80-de-clks" 7 - 8 - - reg: Must contain the registers base address and length 9 - - clocks: phandle to the clocks feeding the display engine subsystem. 10 - Three are needed: 11 - - "mod": the display engine module clock 12 - - "dram": the DRAM bus clock for the system 13 - - "bus": the bus clock for the whole display engine subsystem 14 - - clock-names: Must contain the clock names described just above 15 - - resets: phandle to the reset control for the display engine subsystem. 16 - - #clock-cells : must contain 1 17 - - #reset-cells : must contain 1 18 - 19 - Example: 20 - de_clocks: clock@3000000 { 21 - compatible = "allwinner,sun9i-a80-de-clks"; 22 - reg = <0x03000000 0x30>; 23 - clocks = <&ccu CLK_DE>, <&ccu CLK_SDRAM>, <&ccu CLK_BUS_DE>; 24 - clock-names = "mod", "dram", "bus"; 25 - resets = <&ccu RST_BUS_DE>; 26 - #clock-cells = <1>; 27 - #reset-cells = <1>; 28 - };