@@ -50,43 +50,43 @@ additionalProperties: true
examples:
- |
- #include <dt-bindings/gpio/gpio.h>
+ #include <dt-bindings/gpio/gpio.h>
- qfprom: eeprom@700000 {
- compatible = "qcom,msm8974-qfprom", "qcom,qfprom";
- #address-cells = <1>;
- #size-cells = <1>;
- reg = <0x00700000 0x100000>;
+ qfprom: eeprom@700000 {
+ compatible = "qcom,msm8974-qfprom", "qcom,qfprom";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ reg = <0x00700000 0x100000>;
- wp-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
+ wp-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
- /* ... */
+ /* ... */
- nvmem-layout {
- compatible = "fixed-layout";
- #address-cells = <1>;
- #size-cells = <1>;
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- /* Data cells */
- tsens_calibration: calib@404 {
- reg = <0x404 0x10>;
- };
+ /* Data cells */
+ tsens_calibration: calib@404 {
+ reg = <0x404 0x10>;
+ };
- tsens_calibration_bckp: calib_bckp@504 {
- reg = <0x504 0x11>;
- bits = <6 128>;
- };
+ tsens_calibration_bckp: calib_bckp@504 {
+ reg = <0x504 0x11>;
+ bits = <6 128>;
+ };
- pvs_version: pvs-version@6 {
- reg = <0x6 0x2>;
- bits = <7 2>;
- };
+ pvs_version: pvs-version@6 {
+ reg = <0x6 0x2>;
+ bits = <7 2>;
+ };
- speed_bin: speed-bin@c{
- reg = <0xc 0x1>;
- bits = <2 3>;
- };
- };
- };
+ speed_bin: speed-bin@c{
+ reg = <0xc 0x1>;
+ bits = <2 3>;
+ };
+ };
+ };
...
@@ -38,17 +38,17 @@ unevaluatedProperties: false
examples:
- |
- reserved-memory {
- #address-cells = <1>;
- #size-cells = <1>;
+ reserved-memory {
+ #address-cells = <1>;
+ #size-cells = <1>;
- blconfig: nvram@10000000 {
- compatible = "raspberrypi,bootloader-config", "nvmem-rmem";
- #address-cells = <1>;
- #size-cells = <1>;
- reg = <0x10000000 0x1000>;
- no-map;
- };
+ nvram@10000000 {
+ compatible = "raspberrypi,bootloader-config", "nvmem-rmem";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ reg = <0x10000000 0x1000>;
+ no-map;
};
+ };
...
@@ -58,16 +58,16 @@ examples:
- |
#include <dt-bindings/clock/rk3288-cru.h>
efuse: efuse@ffb40000 {
- compatible = "rockchip,rk3288-efuse";
- reg = <0xffb40000 0x20>;
- #address-cells = <1>;
- #size-cells = <1>;
- clocks = <&cru PCLK_EFUSE256>;
- clock-names = "pclk_efuse";
+ compatible = "rockchip,rk3288-efuse";
+ reg = <0xffb40000 0x20>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ clocks = <&cru PCLK_EFUSE256>;
+ clock-names = "pclk_efuse";
- /* Data cells */
- cpu_leakage: cpu_leakage@17 {
- reg = <0x17 0x1>;
- };
+ /* Data cells */
+ cpu_leakage@17 {
+ reg = <0x17 0x1>;
+ };
};
...
DTS example in the bindings should be indented with 2- or 4-spaces and aligned with opening '- |', so correct any differences like 3-spaces or mixtures 2- and 4-spaces in one binding. While re-indenting, drop unused labels. No functional changes here, but saves some comments during reviews of new patches built on existing code. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> --- .../devicetree/bindings/nvmem/nvmem.yaml | 60 +++++++++---------- .../devicetree/bindings/nvmem/rmem.yaml | 20 +++---- .../bindings/nvmem/rockchip-efuse.yaml | 20 +++---- 3 files changed, 50 insertions(+), 50 deletions(-)