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

ARM: dts: sun9i: Fix Display Engine DTC warnings

Our display engine endpoints trigger some DTC warnings due to the fact that
we're having a single endpoint that doesn't need any reg property, and
since we don't have a reg property, we don't need the address-cells and
size-cells properties anymore.

Fix those

Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>

+15 -64
+3 -12
arch/arm/boot/dts/sun9i-a80-cubieboard4.dts
··· 89 89 vga-dac { 90 90 compatible = "corpro,gm7123", "adi,adv7123", "dumb-vga-dac"; 91 91 vdd-supply = <&reg_dcdc1>; 92 - #address-cells = <1>; 93 - #size-cells = <0>; 94 92 95 93 ports { 96 94 #address-cells = <1>; 97 95 #size-cells = <0>; 98 96 99 97 port@0 { 100 - #address-cells = <1>; 101 - #size-cells = <0>; 102 98 reg = <0>; 103 99 104 - vga_dac_in: endpoint@0 { 105 - reg = <0>; 100 + vga_dac_in: endpoint { 106 101 remote-endpoint = <&tcon0_out_vga>; 107 102 }; 108 103 }; 109 104 110 105 port@1 { 111 - #address-cells = <1>; 112 - #size-cells = <0>; 113 106 reg = <1>; 114 107 115 - vga_dac_out: endpoint@0 { 116 - reg = <0>; 108 + vga_dac_out: endpoint { 117 109 remote-endpoint = <&vga_con_in>; 118 110 }; 119 111 }; ··· 494 502 }; 495 503 496 504 &tcon0_out { 497 - tcon0_out_vga: endpoint@0 { 498 - reg = <0>; 505 + tcon0_out_vga: endpoint { 499 506 remote-endpoint = <&vga_dac_in>; 500 507 }; 501 508 };
+12 -52
arch/arm/boot/dts/sun9i-a80.dtsi
··· 596 596 #size-cells = <0>; 597 597 598 598 fe0_out: port@1 { 599 - #address-cells = <1>; 600 - #size-cells = <0>; 601 599 reg = <1>; 602 600 603 - fe0_out_deu0: endpoint@0 { 604 - reg = <0>; 601 + fe0_out_deu0: endpoint { 605 602 remote-endpoint = <&deu0_in_fe0>; 606 603 }; 607 604 }; ··· 620 623 #size-cells = <0>; 621 624 622 625 fe1_out: port@1 { 623 - #address-cells = <1>; 624 - #size-cells = <0>; 625 626 reg = <1>; 626 627 627 - fe1_out_deu1: endpoint@0 { 628 - reg = <0>; 628 + fe1_out_deu1: endpoint { 629 629 remote-endpoint = <&deu1_in_fe1>; 630 630 }; 631 631 }; ··· 660 666 }; 661 667 662 668 be0_out: port@1 { 663 - #address-cells = <1>; 664 - #size-cells = <0>; 665 669 reg = <1>; 666 670 667 - be0_out_drc0: endpoint@0 { 668 - reg = <0>; 671 + be0_out_drc0: endpoint { 669 672 remote-endpoint = <&drc0_in_be0>; 670 673 }; 671 674 }; ··· 700 709 }; 701 710 702 711 be1_out: port@1 { 703 - #address-cells = <1>; 704 - #size-cells = <0>; 705 712 reg = <1>; 706 713 707 - be1_out_drc1: endpoint@0 { 708 - reg = <0>; 714 + be1_out_drc1: endpoint { 709 715 remote-endpoint = <&drc1_in_be1>; 710 716 }; 711 717 }; ··· 726 738 #size-cells = <0>; 727 739 728 740 deu0_in: port@0 { 729 - #address-cells = <1>; 730 - #size-cells = <0>; 731 741 reg = <0>; 732 742 733 - deu0_in_fe0: endpoint@0 { 734 - reg = <0>; 743 + deu0_in_fe0: endpoint { 735 744 remote-endpoint = <&fe0_out_deu0>; 736 745 }; 737 746 }; ··· 768 783 #size-cells = <0>; 769 784 770 785 deu1_in: port@0 { 771 - #address-cells = <1>; 772 - #size-cells = <0>; 773 786 reg = <0>; 774 787 775 - deu1_in_fe1: endpoint@0 { 776 - reg = <0>; 788 + deu1_in_fe1: endpoint { 777 789 remote-endpoint = <&fe1_out_deu1>; 778 790 }; 779 791 }; ··· 810 828 #size-cells = <0>; 811 829 812 830 drc0_in: port@0 { 813 - #address-cells = <1>; 814 - #size-cells = <0>; 815 831 reg = <0>; 816 832 817 - drc0_in_be0: endpoint@0 { 818 - reg = <0>; 833 + drc0_in_be0: endpoint { 819 834 remote-endpoint = <&be0_out_drc0>; 820 835 }; 821 836 }; 822 837 823 838 drc0_out: port@1 { 824 - #address-cells = <1>; 825 - #size-cells = <0>; 826 839 reg = <1>; 827 840 828 - drc0_out_tcon0: endpoint@0 { 829 - reg = <0>; 841 + drc0_out_tcon0: endpoint { 830 842 remote-endpoint = <&tcon0_in_drc0>; 831 843 }; 832 844 }; ··· 844 868 #size-cells = <0>; 845 869 846 870 drc1_in: port@0 { 847 - #address-cells = <1>; 848 - #size-cells = <0>; 849 871 reg = <0>; 850 872 851 - drc1_in_be1: endpoint@0 { 852 - reg = <0>; 873 + drc1_in_be1: endpoint { 853 874 remote-endpoint = <&be1_out_drc1>; 854 875 }; 855 876 }; 856 877 857 878 drc1_out: port@1 { 858 - #address-cells = <1>; 859 - #size-cells = <0>; 860 879 reg = <1>; 861 880 862 - drc1_out_tcon1: endpoint@0 { 863 - reg = <0>; 881 + drc1_out_tcon1: endpoint { 864 882 remote-endpoint = <&tcon1_in_drc1>; 865 883 }; 866 884 }; ··· 876 906 #size-cells = <0>; 877 907 878 908 tcon0_in: port@0 { 879 - #address-cells = <1>; 880 - #size-cells = <0>; 881 909 reg = <0>; 882 910 883 - tcon0_in_drc0: endpoint@0 { 884 - reg = <0>; 911 + tcon0_in_drc0: endpoint { 885 912 remote-endpoint = <&drc0_out_tcon0>; 886 913 }; 887 914 }; 888 915 889 916 tcon0_out: port@1 { 890 - #address-cells = <1>; 891 - #size-cells = <0>; 892 917 reg = <1>; 893 918 }; 894 919 }; ··· 903 938 #size-cells = <0>; 904 939 905 940 tcon1_in: port@0 { 906 - #address-cells = <1>; 907 - #size-cells = <0>; 908 941 reg = <0>; 909 942 910 - tcon1_in_drc1: endpoint@0 { 911 - reg = <0>; 943 + tcon1_in_drc1: endpoint { 912 944 remote-endpoint = <&drc1_out_tcon1>; 913 945 }; 914 946 }; 915 947 916 948 tcon1_out: port@1 { 917 - #address-cells = <1>; 918 - #size-cells = <0>; 919 949 reg = <1>; 920 950 }; 921 951 };