Skip to content

Commit c5aa327

Browse files
krzkhverkuil
authored andcommitted
media: dt-bindings: trivial white-space and example cleanup
Minor cleanups without funcitonal impact: - There should not be an empty blank line after SPDX tag, - Convention is to indent DTS examples in coding style with 2- or 4-space indentation (4 is preferred), - Drop unused labels in DTS examples. Reviewed-by: Rob Herring (Arm) <[email protected]> Reviewed-by: Bryan O'Donoghue <[email protected]> Reviewed-by: Heiko Stuebner <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Acked-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
1 parent 80aa73e commit c5aa327

16 files changed

+44
-60
lines changed

Documentation/devicetree/bindings/media/allwinner,sun50i-h6-vpu-g2.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2-
32
%YAML 1.2
43
---
54
$id: http://devicetree.org/schemas/media/allwinner,sun50i-h6-vpu-g2.yaml#

Documentation/devicetree/bindings/media/amlogic,meson-ir-tx.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2-
32
%YAML 1.2
43
---
54
$id: http://devicetree.org/schemas/media/amlogic,meson-ir-tx.yaml#

Documentation/devicetree/bindings/media/amphion,vpu.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2-
32
%YAML 1.2
43
---
54
$id: http://devicetree.org/schemas/media/amphion,vpu.yaml#

Documentation/devicetree/bindings/media/fsl,imx6ull-pxp.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2-
32
%YAML 1.2
43
---
54
$id: http://devicetree.org/schemas/media/fsl,imx6ull-pxp.yaml#

Documentation/devicetree/bindings/media/mediatek,vcodec-decoder.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2-
32
%YAML 1.2
43
---
54
$id: http://devicetree.org/schemas/media/mediatek,vcodec-decoder.yaml#

Documentation/devicetree/bindings/media/mediatek,vcodec-encoder.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2-
32
%YAML 1.2
43
---
54
$id: http://devicetree.org/schemas/media/mediatek,vcodec-encoder.yaml#

Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2-
32
%YAML 1.2
43
---
54
$id: http://devicetree.org/schemas/media/mediatek,vcodec-subdev-decoder.yaml#

Documentation/devicetree/bindings/media/microchip,sama5d4-vdec.yaml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2-
32
%YAML 1.2
43
---
54
$id: http://devicetree.org/schemas/media/microchip,sama5d4-vdec.yaml#
@@ -36,12 +35,12 @@ additionalProperties: false
3635

3736
examples:
3837
- |
39-
#include <dt-bindings/clock/at91.h>
40-
#include <dt-bindings/interrupt-controller/irq.h>
41-
42-
vdec0: vdec@300000 {
43-
compatible = "microchip,sama5d4-vdec";
44-
reg = <0x00300000 0x100000>;
45-
interrupts = <19 IRQ_TYPE_LEVEL_HIGH 4>;
46-
clocks = <&pmc PMC_TYPE_PERIPHERAL 19>;
47-
};
38+
#include <dt-bindings/clock/at91.h>
39+
#include <dt-bindings/interrupt-controller/irq.h>
40+
41+
vdec@300000 {
42+
compatible = "microchip,sama5d4-vdec";
43+
reg = <0x00300000 0x100000>;
44+
interrupts = <19 IRQ_TYPE_LEVEL_HIGH 4>;
45+
clocks = <&pmc PMC_TYPE_PERIPHERAL 19>;
46+
};

Documentation/devicetree/bindings/media/nxp,imx8mq-vpu.yaml

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2-
32
%YAML 1.2
43
---
54
$id: http://devicetree.org/schemas/media/nxp,imx8mq-vpu.yaml#
@@ -44,26 +43,26 @@ additionalProperties: false
4443

4544
examples:
4645
- |
47-
#include <dt-bindings/clock/imx8mq-clock.h>
48-
#include <dt-bindings/power/imx8mq-power.h>
49-
#include <dt-bindings/interrupt-controller/arm-gic.h>
46+
#include <dt-bindings/clock/imx8mq-clock.h>
47+
#include <dt-bindings/power/imx8mq-power.h>
48+
#include <dt-bindings/interrupt-controller/arm-gic.h>
5049
51-
vpu_g1: video-codec@38300000 {
52-
compatible = "nxp,imx8mq-vpu-g1";
53-
reg = <0x38300000 0x10000>;
54-
interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
55-
clocks = <&clk IMX8MQ_CLK_VPU_G1_ROOT>;
56-
power-domains = <&vpu_blk_ctrl IMX8MQ_VPUBLK_PD_G1>;
57-
};
50+
video-codec@38300000 {
51+
compatible = "nxp,imx8mq-vpu-g1";
52+
reg = <0x38300000 0x10000>;
53+
interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
54+
clocks = <&clk IMX8MQ_CLK_VPU_G1_ROOT>;
55+
power-domains = <&vpu_blk_ctrl IMX8MQ_VPUBLK_PD_G1>;
56+
};
5857
- |
59-
#include <dt-bindings/clock/imx8mq-clock.h>
60-
#include <dt-bindings/power/imx8mq-power.h>
61-
#include <dt-bindings/interrupt-controller/arm-gic.h>
58+
#include <dt-bindings/clock/imx8mq-clock.h>
59+
#include <dt-bindings/power/imx8mq-power.h>
60+
#include <dt-bindings/interrupt-controller/arm-gic.h>
6261
63-
vpu_g2: video-codec@38300000 {
64-
compatible = "nxp,imx8mq-vpu-g2";
65-
reg = <0x38310000 0x10000>;
66-
interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
67-
clocks = <&clk IMX8MQ_CLK_VPU_G2_ROOT>;
68-
power-domains = <&vpu_blk_ctrl IMX8MQ_VPUBLK_PD_G2>;
69-
};
62+
video-codec@38300000 {
63+
compatible = "nxp,imx8mq-vpu-g2";
64+
reg = <0x38310000 0x10000>;
65+
interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
66+
clocks = <&clk IMX8MQ_CLK_VPU_G2_ROOT>;
67+
power-domains = <&vpu_blk_ctrl IMX8MQ_VPUBLK_PD_G2>;
68+
};

Documentation/devicetree/bindings/media/qcom,msm8916-camss.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2-
32
%YAML 1.2
43
---
54
$id: http://devicetree.org/schemas/media/qcom,msm8916-camss.yaml#

Documentation/devicetree/bindings/media/qcom,msm8996-camss.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2-
32
%YAML 1.2
43
---
54
$id: http://devicetree.org/schemas/media/qcom,msm8996-camss.yaml#

Documentation/devicetree/bindings/media/qcom,sdm660-camss.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2-
32
%YAML 1.2
43
---
54
$id: http://devicetree.org/schemas/media/qcom,sdm660-camss.yaml#

Documentation/devicetree/bindings/media/qcom,sdm845-camss.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2-
32
%YAML 1.2
43
---
54
$id: http://devicetree.org/schemas/media/qcom,sdm845-camss.yaml#

Documentation/devicetree/bindings/media/qcom,sm8250-camss.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2-
32
%YAML 1.2
43
---
54
$id: http://devicetree.org/schemas/media/qcom,sm8250-camss.yaml#

Documentation/devicetree/bindings/media/rockchip,rk3568-vepu.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2-
32
%YAML 1.2
43
---
54
$id: http://devicetree.org/schemas/media/rockchip,rk3568-vepu.yaml#

Documentation/devicetree/bindings/media/rockchip-vpu.yaml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2-
32
%YAML 1.2
43
---
54
$id: http://devicetree.org/schemas/media/rockchip-vpu.yaml#
@@ -92,18 +91,18 @@ additionalProperties: false
9291

9392
examples:
9493
- |
95-
#include <dt-bindings/clock/rk3288-cru.h>
96-
#include <dt-bindings/interrupt-controller/arm-gic.h>
97-
#include <dt-bindings/power/rk3288-power.h>
98-
99-
vpu: video-codec@ff9a0000 {
100-
compatible = "rockchip,rk3288-vpu";
101-
reg = <0xff9a0000 0x800>;
102-
interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
103-
<GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
104-
interrupt-names = "vepu", "vdpu";
105-
clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>;
106-
clock-names = "aclk", "hclk";
107-
power-domains = <&power RK3288_PD_VIDEO>;
108-
iommus = <&vpu_mmu>;
109-
};
94+
#include <dt-bindings/clock/rk3288-cru.h>
95+
#include <dt-bindings/interrupt-controller/arm-gic.h>
96+
#include <dt-bindings/power/rk3288-power.h>
97+
98+
video-codec@ff9a0000 {
99+
compatible = "rockchip,rk3288-vpu";
100+
reg = <0xff9a0000 0x800>;
101+
interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
102+
<GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
103+
interrupt-names = "vepu", "vdpu";
104+
clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>;
105+
clock-names = "aclk", "hclk";
106+
power-domains = <&power RK3288_PD_VIDEO>;
107+
iommus = <&vpu_mmu>;
108+
};

0 commit comments

Comments
 (0)