Skip to content

Commit 0db958b

Browse files
committed
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" <[email protected]> Cc: Ezequiel Garcia <[email protected]> Cc: Mauro Carvalho Chehab <[email protected]> Cc: Philipp Zabel <[email protected]> Cc: Miquel Raynal <[email protected]> Cc: Richard Weinberger <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Bjorn Andersson <[email protected]> Cc: Kishon Vijay Abraham I <[email protected]> Cc: Vinod Koul <[email protected]> Cc: Liam Girdwood <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Acked-by: Mark Brown <[email protected]> Signed-off-by: Rob Herring <[email protected]>
1 parent c0eca14 commit 0db958b

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

Documentation/devicetree/bindings/bus/baikal,bt1-apb.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ examples:
7171
7272
bus@1f059000 {
7373
compatible = "baikal,bt1-apb", "simple-bus";
74-
reg = <0 0x1f059000 0 0x1000>,
75-
<0 0x1d000000 0 0x2040000>;
74+
reg = <0x1f059000 0x1000>,
75+
<0x1d000000 0x2040000>;
7676
reg-names = "ehb", "nodev";
7777
#address-cells = <1>;
7878
#size-cells = <1>;

Documentation/devicetree/bindings/bus/baikal,bt1-axi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ examples:
8585
8686
bus@1f05a000 {
8787
compatible = "baikal,bt1-axi", "simple-bus";
88-
reg = <0 0x1f05a000 0 0x1000>,
89-
<0 0x1f04d110 0 0x8>;
88+
reg = <0x1f05a000 0x1000>,
89+
<0x1f04d110 0x8>;
9090
reg-names = "qos", "ehb";
9191
#address-cells = <1>;
9292
#size-cells = <1>;

Documentation/devicetree/bindings/display/rockchip/rockchip-vop.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ examples:
106106
#include <dt-bindings/power/rk3288-power.h>
107107
vopb: vopb@ff930000 {
108108
compatible = "rockchip,rk3288-vop";
109-
reg = <0x0 0xff930000 0x0 0x19c>,
110-
<0x0 0xff931000 0x0 0x1000>;
109+
reg = <0xff930000 0x19c>,
110+
<0xff931000 0x1000>;
111111
interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
112112
clocks = <&cru ACLK_VOP0>,
113113
<&cru DCLK_VOP0>,

Documentation/devicetree/bindings/mailbox/sprd-mailbox.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ examples:
5151
#include <dt-bindings/interrupt-controller/arm-gic.h>
5252
mailbox: mailbox@400a0000 {
5353
compatible = "sprd,sc9860-mailbox";
54-
reg = <0 0x400a0000 0 0x8000>, <0 0x400a8000 0 0x8000>;
54+
reg = <0x400a0000 0x8000>, <0x400a8000 0x8000>;
5555
#mbox-cells = <1>;
5656
clock-names = "enable";
5757
clocks = <&aon_gate 53>;

Documentation/devicetree/bindings/media/rockchip,vdec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ examples:
6161
6262
vdec: video-codec@ff660000 {
6363
compatible = "rockchip,rk3399-vdec";
64-
reg = <0x0 0xff660000 0x0 0x400>;
64+
reg = <0xff660000 0x400>;
6565
interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH 0>;
6666
clocks = <&cru ACLK_VDU>, <&cru HCLK_VDU>,
6767
<&cru SCLK_VDU_CA>, <&cru SCLK_VDU_CORE>;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ examples:
6666
6767
vpu: video-codec@ff9a0000 {
6868
compatible = "rockchip,rk3288-vpu";
69-
reg = <0x0 0xff9a0000 0x0 0x800>;
69+
reg = <0xff9a0000 0x800>;
7070
interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
7171
<GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
7272
interrupt-names = "vepu", "vdpu";

Documentation/devicetree/bindings/mtd/arasan,nand-controller.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ examples:
5353
- |
5454
nfc: nand-controller@ff100000 {
5555
compatible = "xlnx,zynqmp-nand-controller", "arasan,nfc-v3p10";
56-
reg = <0x0 0xff100000 0x0 0x1000>;
56+
reg = <0xff100000 0x1000>;
5757
clock-names = "controller", "bus";
5858
clocks = <&clk200>, <&clk100>;
5959
interrupt-parent = <&gic>;

Documentation/devicetree/bindings/net/ti,k3-am654-cpts.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ examples:
121121
122122
cpts@310d0000 {
123123
compatible = "ti,am65-cpts";
124-
reg = <0x0 0x310d0000 0x0 0x400>;
124+
reg = <0x310d0000 0x400>;
125125
reg-names = "cpts";
126126
clocks = <&main_cpts_mux>;
127127
clock-names = "cpts";

Documentation/devicetree/bindings/phy/qcom,usb-snps-femto-v2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ examples:
6565
#include <dt-bindings/clock/qcom,gcc-sm8150.h>
6666
phy@88e2000 {
6767
compatible = "qcom,sm8150-usb-hs-phy";
68-
reg = <0 0x088e2000 0 0x400>;
68+
reg = <0x088e2000 0x400>;
6969
#phy-cells = <0>;
7070
7171
clocks = <&rpmhcc RPMH_CXO_CLK>;

Documentation/devicetree/bindings/sound/fsl,easrc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ examples:
8080
8181
easrc: easrc@300c0000 {
8282
compatible = "fsl,imx8mn-easrc";
83-
reg = <0x0 0x300c0000 0x0 0x10000>;
83+
reg = <0x300c0000 0x10000>;
8484
interrupts = <0x0 122 0x4>;
8585
clocks = <&clk IMX8MN_CLK_ASRC_ROOT>;
8686
clock-names = "mem";

0 commit comments

Comments
 (0)