Commit 51a21e0e authored by Rob Herring's avatar Rob Herring

dt-bindings: Fix dtc warnings in examples

Fix all the warnings in the DT binding schema examples when built with
'W=1'. This is in preparation to make that the default for examples.
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Acked-by: default avatarStephen Boyd <sboyd@kernel.org>
Acked-by: default avatarSam Ravnborg <sam@ravnborg.org>
Acked-by: default avatarVinod Koul <vkoul@kernel.org>
Acked-by: default avatarLee Jones <lee.jones@linaro.org>
Acked-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Acked-by: default avatarMark Brown <broonie@kernel.org>
Acked-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Kishon Vijay Abraham I <kishon@ti.com>
Cc: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Kukjin Kim <kgene@kernel.org>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Chen-Yu Tsai <wens@csie.org>
Cc: Maxime Ripard <mripard@kernel.org>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent a40df28c
...@@ -52,7 +52,7 @@ required: ...@@ -52,7 +52,7 @@ required:
examples: examples:
- | - |
mlahb: ahb { mlahb: ahb@38000000 {
compatible = "st,mlahb", "simple-bus"; compatible = "st,mlahb", "simple-bus";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
......
...@@ -40,7 +40,7 @@ additionalProperties: false ...@@ -40,7 +40,7 @@ additionalProperties: false
examples: examples:
- | - |
osc24M: clk@01c20050 { osc24M: clk@1c20050 {
#clock-cells = <0>; #clock-cells = <0>;
compatible = "allwinner,sun4i-a10-osc-clk"; compatible = "allwinner,sun4i-a10-osc-clk";
reg = <0x01c20050 0x4>; reg = <0x01c20050 0x4>;
......
...@@ -41,7 +41,7 @@ additionalProperties: false ...@@ -41,7 +41,7 @@ additionalProperties: false
examples: examples:
- | - |
clk@0600005c { clk@600005c {
#clock-cells = <0>; #clock-cells = <0>;
compatible = "allwinner,sun9i-a80-gt-clk"; compatible = "allwinner,sun9i-a80-gt-clk";
reg = <0x0600005c 0x4>; reg = <0x0600005c 0x4>;
......
...@@ -49,11 +49,7 @@ examples: ...@@ -49,11 +49,7 @@ examples:
resets = <&tcon_ch0_clk 0>; resets = <&tcon_ch0_clk 0>;
port { port {
#address-cells = <1>; tve0_in_tcon0: endpoint {
#size-cells = <0>;
tve0_in_tcon0: endpoint@0 {
reg = <0>;
remote-endpoint = <&tcon0_out_tve0>; remote-endpoint = <&tcon0_out_tve0>;
}; };
}; };
......
...@@ -79,21 +79,15 @@ examples: ...@@ -79,21 +79,15 @@ examples:
#size-cells = <0>; #size-cells = <0>;
anx6345_in: port@0 { anx6345_in: port@0 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0>; reg = <0>;
anx6345_in_tcon0: endpoint@0 { anx6345_in_tcon0: endpoint {
reg = <0>;
remote-endpoint = <&tcon0_out_anx6345>; remote-endpoint = <&tcon0_out_anx6345>;
}; };
}; };
anx6345_out: port@1 { anx6345_out: port@1 {
#address-cells = <1>;
#size-cells = <0>;
reg = <1>; reg = <1>;
anx6345_out_panel: endpoint@0 { anx6345_out_panel: endpoint {
reg = <0>;
remote-endpoint = <&panel_in_edp>; remote-endpoint = <&panel_in_edp>;
}; };
}; };
......
...@@ -37,6 +37,8 @@ examples: ...@@ -37,6 +37,8 @@ examples:
dsi@ff450000 { dsi@ff450000 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
reg = <0xff450000 0x1000>;
panel@0 { panel@0 {
compatible = "leadtek,ltk500hd1829"; compatible = "leadtek,ltk500hd1829";
reg = <0>; reg = <0>;
......
...@@ -37,6 +37,8 @@ examples: ...@@ -37,6 +37,8 @@ examples:
dsi@ff450000 { dsi@ff450000 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
reg = <0xff450000 0x1000>;
panel@0 { panel@0 {
compatible = "xinpeng,xpp055c272"; compatible = "xinpeng,xpp055c272";
reg = <0>; reg = <0>;
......
...@@ -174,10 +174,6 @@ examples: ...@@ -174,10 +174,6 @@ examples:
}; };
}; };
soc@1c00000 { lcdc0: lcdc { };
lcdc0: lcdc@1c0c000 {
compatible = "allwinner,sun4i-a10-lcdc";
};
};
... ...
...@@ -143,7 +143,7 @@ examples: ...@@ -143,7 +143,7 @@ examples:
#size-cells = <2>; #size-cells = <2>;
dma-coherent; dma-coherent;
dma-ranges; dma-ranges;
ranges; ranges = <0x0 0x30800000 0x0 0x30800000 0x0 0x05000000>;
ti,sci-dev-id = <118>; ti,sci-dev-id = <118>;
...@@ -169,16 +169,4 @@ examples: ...@@ -169,16 +169,4 @@ examples:
ti,sci-rm-range-rflow = <0x6>; /* GP RFLOW */ ti,sci-rm-range-rflow = <0x6>; /* GP RFLOW */
}; };
}; };
mcasp0: mcasp@02B00000 {
dmas = <&main_udmap 0xc400>, <&main_udmap 0x4400>;
dma-names = "tx", "rx";
};
crypto: crypto@4E00000 {
compatible = "ti,sa2ul-crypto";
dmas = <&main_udmap 0xc000>, <&main_udmap 0x4000>, <&main_udmap 0x4001>;
dma-names = "tx", "rx1", "rx2";
};
}; };
...@@ -84,31 +84,31 @@ examples: ...@@ -84,31 +84,31 @@ examples:
gpu_opp_table: opp_table0 { gpu_opp_table: opp_table0 {
compatible = "operating-points-v2"; compatible = "operating-points-v2";
opp@533000000 { opp-533000000 {
opp-hz = /bits/ 64 <533000000>; opp-hz = /bits/ 64 <533000000>;
opp-microvolt = <1250000>; opp-microvolt = <1250000>;
}; };
opp@450000000 { opp-450000000 {
opp-hz = /bits/ 64 <450000000>; opp-hz = /bits/ 64 <450000000>;
opp-microvolt = <1150000>; opp-microvolt = <1150000>;
}; };
opp@400000000 { opp-400000000 {
opp-hz = /bits/ 64 <400000000>; opp-hz = /bits/ 64 <400000000>;
opp-microvolt = <1125000>; opp-microvolt = <1125000>;
}; };
opp@350000000 { opp-350000000 {
opp-hz = /bits/ 64 <350000000>; opp-hz = /bits/ 64 <350000000>;
opp-microvolt = <1075000>; opp-microvolt = <1075000>;
}; };
opp@266000000 { opp-266000000 {
opp-hz = /bits/ 64 <266000000>; opp-hz = /bits/ 64 <266000000>;
opp-microvolt = <1025000>; opp-microvolt = <1025000>;
}; };
opp@160000000 { opp-160000000 {
opp-hz = /bits/ 64 <160000000>; opp-hz = /bits/ 64 <160000000>;
opp-microvolt = <925000>; opp-microvolt = <925000>;
}; };
opp@100000000 { opp-100000000 {
opp-hz = /bits/ 64 <100000000>; opp-hz = /bits/ 64 <100000000>;
opp-microvolt = <912500>; opp-microvolt = <912500>;
}; };
......
...@@ -138,31 +138,31 @@ examples: ...@@ -138,31 +138,31 @@ examples:
gpu_opp_table: opp_table0 { gpu_opp_table: opp_table0 {
compatible = "operating-points-v2"; compatible = "operating-points-v2";
opp@533000000 { opp-533000000 {
opp-hz = /bits/ 64 <533000000>; opp-hz = /bits/ 64 <533000000>;
opp-microvolt = <1250000>; opp-microvolt = <1250000>;
}; };
opp@450000000 { opp-450000000 {
opp-hz = /bits/ 64 <450000000>; opp-hz = /bits/ 64 <450000000>;
opp-microvolt = <1150000>; opp-microvolt = <1150000>;
}; };
opp@400000000 { opp-400000000 {
opp-hz = /bits/ 64 <400000000>; opp-hz = /bits/ 64 <400000000>;
opp-microvolt = <1125000>; opp-microvolt = <1125000>;
}; };
opp@350000000 { opp-350000000 {
opp-hz = /bits/ 64 <350000000>; opp-hz = /bits/ 64 <350000000>;
opp-microvolt = <1075000>; opp-microvolt = <1075000>;
}; };
opp@266000000 { opp-266000000 {
opp-hz = /bits/ 64 <266000000>; opp-hz = /bits/ 64 <266000000>;
opp-microvolt = <1025000>; opp-microvolt = <1025000>;
}; };
opp@160000000 { opp-160000000 {
opp-hz = /bits/ 64 <160000000>; opp-hz = /bits/ 64 <160000000>;
opp-microvolt = <925000>; opp-microvolt = <925000>;
}; };
opp@100000000 { opp-100000000 {
opp-hz = /bits/ 64 <100000000>; opp-hz = /bits/ 64 <100000000>;
opp-microvolt = <912500>; opp-microvolt = <912500>;
}; };
......
...@@ -123,7 +123,7 @@ examples: ...@@ -123,7 +123,7 @@ examples:
samsung,syscon-phandle = <&pmu_system_controller>; samsung,syscon-phandle = <&pmu_system_controller>;
/* NTC thermistor is a hwmon device */ /* NTC thermistor is a hwmon device */
ncp15wb473@0 { ncp15wb473 {
compatible = "murata,ncp15wb473"; compatible = "murata,ncp15wb473";
pullup-uv = <1800000>; pullup-uv = <1800000>;
pullup-ohm = <47000>; pullup-ohm = <47000>;
......
...@@ -62,7 +62,7 @@ required: ...@@ -62,7 +62,7 @@ required:
examples: examples:
- | - |
i2c@00000000 { i2c {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
gt928@5d { gt928@5d {
......
...@@ -177,7 +177,7 @@ examples: ...@@ -177,7 +177,7 @@ examples:
}; };
}; };
i2c5: i2c@4807c000 { i2c {
clock-frequency = <400000>; clock-frequency = <400000>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
......
...@@ -97,14 +97,14 @@ examples: ...@@ -97,14 +97,14 @@ examples:
regulators { regulators {
compatible = "maxim,max77650-regulator"; compatible = "maxim,max77650-regulator";
max77650_ldo: regulator@0 { max77650_ldo: regulator-ldo {
regulator-compatible = "ldo"; regulator-compatible = "ldo";
regulator-name = "max77650-ldo"; regulator-name = "max77650-ldo";
regulator-min-microvolt = <1350000>; regulator-min-microvolt = <1350000>;
regulator-max-microvolt = <2937500>; regulator-max-microvolt = <2937500>;
}; };
max77650_sbb0: regulator@1 { max77650_sbb0: regulator-sbb0 {
regulator-compatible = "sbb0"; regulator-compatible = "sbb0";
regulator-name = "max77650-sbb0"; regulator-name = "max77650-sbb0";
regulator-min-microvolt = <800000>; regulator-min-microvolt = <800000>;
......
...@@ -370,6 +370,7 @@ examples: ...@@ -370,6 +370,7 @@ examples:
mmc3: mmc@1c12000 { mmc3: mmc@1c12000 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
reg = <0x1c12000 0x200>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&mmc3_pins_a>; pinctrl-0 = <&mmc3_pins_a>;
vmmc-supply = <&reg_vmmc3>; vmmc-supply = <&reg_vmmc3>;
......
...@@ -76,6 +76,8 @@ examples: ...@@ -76,6 +76,8 @@ examples:
qfprom: eeprom@700000 { qfprom: eeprom@700000 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
reg = <0x00700000 0x100000>;
wp-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>; wp-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
/* ... */ /* ... */
......
...@@ -86,7 +86,7 @@ examples: ...@@ -86,7 +86,7 @@ examples:
#include <dt-bindings/clock/sun4i-a10-ccu.h> #include <dt-bindings/clock/sun4i-a10-ccu.h>
#include <dt-bindings/reset/sun4i-a10-ccu.h> #include <dt-bindings/reset/sun4i-a10-ccu.h>
usbphy: phy@01c13400 { usbphy: phy@1c13400 {
#phy-cells = <1>; #phy-cells = <1>;
compatible = "allwinner,sun4i-a10-usb-phy"; compatible = "allwinner,sun4i-a10-usb-phy";
reg = <0x01c13400 0x10>, <0x01c14800 0x4>, <0x01c1c800 0x4>; reg = <0x01c13400 0x10>, <0x01c14800 0x4>, <0x01c1c800 0x4>;
......
...@@ -248,7 +248,7 @@ examples: ...@@ -248,7 +248,7 @@ examples:
}; };
//Example 3 pin groups //Example 3 pin groups
pinctrl@60020000 { pinctrl {
usart1_pins_a: usart1-0 { usart1_pins_a: usart1-0 {
pins1 { pins1 {
pinmux = <STM32_PINMUX('A', 9, AF7)>; pinmux = <STM32_PINMUX('A', 9, AF7)>;
......
...@@ -191,7 +191,7 @@ patternProperties: ...@@ -191,7 +191,7 @@ patternProperties:
examples: examples:
- | - |
xyzreg: regulator@0 { xyzreg: regulator {
regulator-min-microvolt = <1000000>; regulator-min-microvolt = <1000000>;
regulator-max-microvolt = <2500000>; regulator-max-microvolt = <2500000>;
regulator-always-on; regulator-always-on;
......
...@@ -125,7 +125,7 @@ examples: ...@@ -125,7 +125,7 @@ examples:
#size-cells = <1>; #size-cells = <1>;
ranges; ranges;
sram_a: sram@00000000 { sram_a: sram@0 {
compatible = "mmio-sram"; compatible = "mmio-sram";
reg = <0x00000000 0xc000>; reg = <0x00000000 0xc000>;
#address-cells = <1>; #address-cells = <1>;
......
...@@ -87,7 +87,7 @@ additionalProperties: false ...@@ -87,7 +87,7 @@ additionalProperties: false
examples: examples:
- | - |
timer { timer@1c20c00 {
compatible = "allwinner,sun4i-a10-timer"; compatible = "allwinner,sun4i-a10-timer";
reg = <0x01c20c00 0x400>; reg = <0x01c20c00 0x400>;
interrupts = <22>, interrupts = <22>,
......
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