Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: dt-bindings: simple-card: Fix 'make dt_binding_check' warnings

The following build warnings are seen with 'make dt_binding_check':

Documentation/devicetree/bindings/sound/simple-card.example.dts:209.46-211.15: Warning (unit_address_vs_reg): /example-4/sound/simple-audio-card,cpu@0: node has a unit name, but no reg or ranges property
Documentation/devicetree/bindings/sound/simple-card.example.dts:213.37-215.15: Warning (unit_address_vs_reg): /example-4/sound/simple-audio-card,cpu@1: node has a unit name, but no reg or ranges property
Documentation/devicetree/bindings/sound/simple-card.example.dts:250.42-261.15: Warning (unit_address_vs_reg): /example-5/sound/simple-audio-card,dai-link@0: node has a unit name, but no reg or ranges property
Documentation/devicetree/bindings/sound/simple-card.example.dts:263.42-288.15: Warning (unit_address_vs_reg): /example-5/sound/simple-audio-card,dai-link@1: node has a unit name, but no reg or ranges property
Documentation/devicetree/bindings/sound/simple-card.example.dts:270.32-272.19: Warning (unit_address_vs_reg): /example-5/sound/simple-audio-card,dai-link@1/cpu@0: node has a unit name, but no reg or ranges property
Documentation/devicetree/bindings/sound/simple-card.example.dts:273.23-275.19: Warning (unit_address_vs_reg): /example-5/sound/simple-audio-card,dai-link@1/cpu@1: node has a unit name, but no reg or ranges property
Documentation/devicetree/bindings/sound/simple-card.example.dts:276.23-278.19: Warning (unit_address_vs_reg): /example-5/sound/simple-audio-card,dai-link@1/cpu@2: node has a unit name, but no reg or ranges property
Documentation/devicetree/bindings/sound/simple-card.example.dts:279.23-281.19: Warning (unit_address_vs_reg): /example-5/sound/simple-audio-card,dai-link@1/cpu@3: node has a unit name, but no reg or ranges property
Documentation/devicetree/bindings/sound/simple-card.example.dts:290.42-303.15: Warning (unit_address_vs_reg): /example-5/sound/simple-audio-card,dai-link@2: node has a unit name, but no reg or ranges property

Fix them all.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Link: https://lore.kernel.org/r/20200630223020.25546-1-festevam@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Fabio Estevam and committed by
Mark Brown
5aaec71d 1eb96c19

+13 -4
+13 -4
Documentation/devicetree/bindings/sound/simple-card.yaml
··· 380 380 - | 381 381 sound { 382 382 compatible = "simple-audio-card"; 383 + #address-cells = <1>; 384 + #size-cells = <0>; 383 385 384 386 simple-audio-card,name = "rsnd-ak4643"; 385 387 simple-audio-card,format = "left_j"; ··· 395 393 "ak4642 Playback", "DAI1 Playback"; 396 394 397 395 dpcmcpu: simple-audio-card,cpu@0 { 396 + reg = <0>; 398 397 sound-dai = <&rcar_sound 0>; 399 398 }; 400 399 401 400 simple-audio-card,cpu@1 { 401 + reg = <1>; 402 402 sound-dai = <&rcar_sound 1>; 403 403 }; 404 404 ··· 424 420 - | 425 421 sound { 426 422 compatible = "simple-audio-card"; 423 + #address-cells = <1>; 424 + #size-cells = <0>; 427 425 428 426 simple-audio-card,routing = 429 427 "pcm3168a Playback", "DAI1 Playback", ··· 434 428 "pcm3168a Playback", "DAI4 Playback"; 435 429 436 430 simple-audio-card,dai-link@0 { 431 + reg = <0>; 437 432 format = "left_j"; 438 433 bitclock-master = <&sndcpu0>; 439 434 frame-master = <&sndcpu0>; ··· 448 441 }; 449 442 450 443 simple-audio-card,dai-link@1 { 444 + reg = <1>; 451 445 format = "i2s"; 452 446 bitclock-master = <&sndcpu1>; 453 447 frame-master = <&sndcpu1>; 454 448 455 449 convert-channels = <8>; /* TDM Split */ 456 450 457 - sndcpu1: cpu@0 { 451 + sndcpu1: cpu0 { 458 452 sound-dai = <&rcar_sound 1>; 459 453 }; 460 - cpu@1 { 454 + cpu1 { 461 455 sound-dai = <&rcar_sound 2>; 462 456 }; 463 - cpu@2 { 457 + cpu2 { 464 458 sound-dai = <&rcar_sound 3>; 465 459 }; 466 - cpu@3 { 460 + cpu3 { 467 461 sound-dai = <&rcar_sound 4>; 468 462 }; 469 463 codec { ··· 476 468 }; 477 469 478 470 simple-audio-card,dai-link@2 { 471 + reg = <2>; 479 472 format = "i2s"; 480 473 bitclock-master = <&sndcpu2>; 481 474 frame-master = <&sndcpu2>;