Commit 0db958b6 authored by Rob Herring's avatar Rob Herring

dt-bindings: Fix more incorrect 'reg' property sizes in examples

The examples template is a 'simple-bus' with a size of 1 cell for
had between 2 and 4 cells which really only errors on I2C or SPI type
devices with a single cell.

The easiest fix in most cases is to change the 'reg' property to 1 cell
for address and size.

Cc: "Heiko Stübner" <heiko@sntech.de>
Cc: Ezequiel Garcia <ezequiel@collabora.com>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Cc: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Kishon Vijay Abraham I <kishon@ti.com>
Cc: Vinod Koul <vkoul@kernel.org>
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: linux-rockchip@lists.infradead.org
Cc: linux-media@vger.kernel.org
Cc: linux-mtd@lists.infradead.org
Cc: netdev@vger.kernel.org
Cc: alsa-devel@alsa-project.org
Acked-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent c0eca14c
...@@ -71,8 +71,8 @@ examples: ...@@ -71,8 +71,8 @@ examples:
bus@1f059000 { bus@1f059000 {
compatible = "baikal,bt1-apb", "simple-bus"; compatible = "baikal,bt1-apb", "simple-bus";
reg = <0 0x1f059000 0 0x1000>, reg = <0x1f059000 0x1000>,
<0 0x1d000000 0 0x2040000>; <0x1d000000 0x2040000>;
reg-names = "ehb", "nodev"; reg-names = "ehb", "nodev";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
......
...@@ -85,8 +85,8 @@ examples: ...@@ -85,8 +85,8 @@ examples:
bus@1f05a000 { bus@1f05a000 {
compatible = "baikal,bt1-axi", "simple-bus"; compatible = "baikal,bt1-axi", "simple-bus";
reg = <0 0x1f05a000 0 0x1000>, reg = <0x1f05a000 0x1000>,
<0 0x1f04d110 0 0x8>; <0x1f04d110 0x8>;
reg-names = "qos", "ehb"; reg-names = "qos", "ehb";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
......
...@@ -106,8 +106,8 @@ examples: ...@@ -106,8 +106,8 @@ examples:
#include <dt-bindings/power/rk3288-power.h> #include <dt-bindings/power/rk3288-power.h>
vopb: vopb@ff930000 { vopb: vopb@ff930000 {
compatible = "rockchip,rk3288-vop"; compatible = "rockchip,rk3288-vop";
reg = <0x0 0xff930000 0x0 0x19c>, reg = <0xff930000 0x19c>,
<0x0 0xff931000 0x0 0x1000>; <0xff931000 0x1000>;
interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru ACLK_VOP0>, clocks = <&cru ACLK_VOP0>,
<&cru DCLK_VOP0>, <&cru DCLK_VOP0>,
......
...@@ -51,7 +51,7 @@ examples: ...@@ -51,7 +51,7 @@ examples:
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
mailbox: mailbox@400a0000 { mailbox: mailbox@400a0000 {
compatible = "sprd,sc9860-mailbox"; compatible = "sprd,sc9860-mailbox";
reg = <0 0x400a0000 0 0x8000>, <0 0x400a8000 0 0x8000>; reg = <0x400a0000 0x8000>, <0x400a8000 0x8000>;
#mbox-cells = <1>; #mbox-cells = <1>;
clock-names = "enable"; clock-names = "enable";
clocks = <&aon_gate 53>; clocks = <&aon_gate 53>;
......
...@@ -61,7 +61,7 @@ examples: ...@@ -61,7 +61,7 @@ examples:
vdec: video-codec@ff660000 { vdec: video-codec@ff660000 {
compatible = "rockchip,rk3399-vdec"; compatible = "rockchip,rk3399-vdec";
reg = <0x0 0xff660000 0x0 0x400>; reg = <0xff660000 0x400>;
interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH 0>; interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH 0>;
clocks = <&cru ACLK_VDU>, <&cru HCLK_VDU>, clocks = <&cru ACLK_VDU>, <&cru HCLK_VDU>,
<&cru SCLK_VDU_CA>, <&cru SCLK_VDU_CORE>; <&cru SCLK_VDU_CA>, <&cru SCLK_VDU_CORE>;
......
...@@ -66,7 +66,7 @@ examples: ...@@ -66,7 +66,7 @@ examples:
vpu: video-codec@ff9a0000 { vpu: video-codec@ff9a0000 {
compatible = "rockchip,rk3288-vpu"; compatible = "rockchip,rk3288-vpu";
reg = <0x0 0xff9a0000 0x0 0x800>; reg = <0xff9a0000 0x800>;
interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>, interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>; <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "vepu", "vdpu"; interrupt-names = "vepu", "vdpu";
......
...@@ -53,7 +53,7 @@ examples: ...@@ -53,7 +53,7 @@ examples:
- | - |
nfc: nand-controller@ff100000 { nfc: nand-controller@ff100000 {
compatible = "xlnx,zynqmp-nand-controller", "arasan,nfc-v3p10"; compatible = "xlnx,zynqmp-nand-controller", "arasan,nfc-v3p10";
reg = <0x0 0xff100000 0x0 0x1000>; reg = <0xff100000 0x1000>;
clock-names = "controller", "bus"; clock-names = "controller", "bus";
clocks = <&clk200>, <&clk100>; clocks = <&clk200>, <&clk100>;
interrupt-parent = <&gic>; interrupt-parent = <&gic>;
......
...@@ -121,7 +121,7 @@ examples: ...@@ -121,7 +121,7 @@ examples:
cpts@310d0000 { cpts@310d0000 {
compatible = "ti,am65-cpts"; compatible = "ti,am65-cpts";
reg = <0x0 0x310d0000 0x0 0x400>; reg = <0x310d0000 0x400>;
reg-names = "cpts"; reg-names = "cpts";
clocks = <&main_cpts_mux>; clocks = <&main_cpts_mux>;
clock-names = "cpts"; clock-names = "cpts";
......
...@@ -65,7 +65,7 @@ examples: ...@@ -65,7 +65,7 @@ examples:
#include <dt-bindings/clock/qcom,gcc-sm8150.h> #include <dt-bindings/clock/qcom,gcc-sm8150.h>
phy@88e2000 { phy@88e2000 {
compatible = "qcom,sm8150-usb-hs-phy"; compatible = "qcom,sm8150-usb-hs-phy";
reg = <0 0x088e2000 0 0x400>; reg = <0x088e2000 0x400>;
#phy-cells = <0>; #phy-cells = <0>;
clocks = <&rpmhcc RPMH_CXO_CLK>; clocks = <&rpmhcc RPMH_CXO_CLK>;
......
...@@ -80,7 +80,7 @@ examples: ...@@ -80,7 +80,7 @@ examples:
easrc: easrc@300c0000 { easrc: easrc@300c0000 {
compatible = "fsl,imx8mn-easrc"; compatible = "fsl,imx8mn-easrc";
reg = <0x0 0x300c0000 0x0 0x10000>; reg = <0x300c0000 0x10000>;
interrupts = <0x0 122 0x4>; interrupts = <0x0 122 0x4>;
clocks = <&clk IMX8MN_CLK_ASRC_ROOT>; clocks = <&clk IMX8MN_CLK_ASRC_ROOT>;
clock-names = "mem"; clock-names = "mem";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment