| .. | .. |
|---|
| 42 | 42 | * OTHER DEALINGS IN THE SOFTWARE. |
|---|
| 43 | 43 | */ |
|---|
| 44 | 44 | |
|---|
| 45 | | -#include "skeleton.dtsi" |
|---|
| 46 | | - |
|---|
| 47 | 45 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
|---|
| 48 | 46 | #include <dt-bindings/thermal/thermal.h> |
|---|
| 49 | 47 | #include <dt-bindings/dma/sun4i-a10.h> |
|---|
| 50 | 48 | #include <dt-bindings/clock/sun7i-a20-ccu.h> |
|---|
| 51 | 49 | #include <dt-bindings/reset/sun4i-a10-ccu.h> |
|---|
| 50 | +#include <dt-bindings/pinctrl/sun4i-a10.h> |
|---|
| 52 | 51 | |
|---|
| 53 | 52 | / { |
|---|
| 54 | 53 | interrupt-parent = <&gic>; |
|---|
| 54 | + #address-cells = <1>; |
|---|
| 55 | + #size-cells = <1>; |
|---|
| 55 | 56 | |
|---|
| 56 | 57 | aliases { |
|---|
| 57 | 58 | ethernet0 = &gmac; |
|---|
| .. | .. |
|---|
| 62 | 63 | #size-cells = <1>; |
|---|
| 63 | 64 | ranges; |
|---|
| 64 | 65 | |
|---|
| 65 | | - framebuffer@0 { |
|---|
| 66 | + framebuffer-lcd0-hdmi { |
|---|
| 66 | 67 | compatible = "allwinner,simple-framebuffer", |
|---|
| 67 | 68 | "simple-framebuffer"; |
|---|
| 68 | 69 | allwinner,pipeline = "de_be0-lcd0-hdmi"; |
|---|
| .. | .. |
|---|
| 73 | 74 | status = "disabled"; |
|---|
| 74 | 75 | }; |
|---|
| 75 | 76 | |
|---|
| 76 | | - framebuffer@1 { |
|---|
| 77 | + framebuffer-lcd0 { |
|---|
| 77 | 78 | compatible = "allwinner,simple-framebuffer", |
|---|
| 78 | 79 | "simple-framebuffer"; |
|---|
| 79 | 80 | allwinner,pipeline = "de_be0-lcd0"; |
|---|
| .. | .. |
|---|
| 83 | 84 | status = "disabled"; |
|---|
| 84 | 85 | }; |
|---|
| 85 | 86 | |
|---|
| 86 | | - framebuffer@2 { |
|---|
| 87 | + framebuffer-lcd0-tve0 { |
|---|
| 87 | 88 | compatible = "allwinner,simple-framebuffer", |
|---|
| 88 | 89 | "simple-framebuffer"; |
|---|
| 89 | 90 | allwinner,pipeline = "de_be0-lcd0-tve0"; |
|---|
| .. | .. |
|---|
| 118 | 119 | #cooling-cells = <2>; |
|---|
| 119 | 120 | }; |
|---|
| 120 | 121 | |
|---|
| 121 | | - cpu@1 { |
|---|
| 122 | + cpu1: cpu@1 { |
|---|
| 122 | 123 | compatible = "arm,cortex-a7"; |
|---|
| 123 | 124 | device_type = "cpu"; |
|---|
| 124 | 125 | reg = <1>; |
|---|
| .. | .. |
|---|
| 148 | 149 | cooling-maps { |
|---|
| 149 | 150 | map0 { |
|---|
| 150 | 151 | trip = <&cpu_alert0>; |
|---|
| 151 | | - cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
|---|
| 152 | + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
|---|
| 153 | + <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
|---|
| 152 | 154 | }; |
|---|
| 153 | 155 | }; |
|---|
| 154 | 156 | |
|---|
| .. | .. |
|---|
| 170 | 172 | }; |
|---|
| 171 | 173 | }; |
|---|
| 172 | 174 | |
|---|
| 173 | | - memory { |
|---|
| 174 | | - reg = <0x40000000 0x80000000>; |
|---|
| 175 | + reserved-memory { |
|---|
| 176 | + #address-cells = <1>; |
|---|
| 177 | + #size-cells = <1>; |
|---|
| 178 | + ranges; |
|---|
| 179 | + |
|---|
| 180 | + /* Address must be kept in the lower 256 MiBs of DRAM for VE. */ |
|---|
| 181 | + default-pool { |
|---|
| 182 | + compatible = "shared-dma-pool"; |
|---|
| 183 | + size = <0x6000000>; |
|---|
| 184 | + alloc-ranges = <0x40000000 0x10000000>; |
|---|
| 185 | + reusable; |
|---|
| 186 | + linux,cma-default; |
|---|
| 187 | + }; |
|---|
| 175 | 188 | }; |
|---|
| 176 | 189 | |
|---|
| 177 | 190 | timer { |
|---|
| .. | .. |
|---|
| 193 | 206 | #size-cells = <1>; |
|---|
| 194 | 207 | ranges; |
|---|
| 195 | 208 | |
|---|
| 196 | | - osc24M: clk@1c20050 { |
|---|
| 209 | + osc24M: clk-24M { |
|---|
| 197 | 210 | #clock-cells = <0>; |
|---|
| 198 | 211 | compatible = "fixed-clock"; |
|---|
| 199 | 212 | clock-frequency = <24000000>; |
|---|
| 200 | 213 | clock-output-names = "osc24M"; |
|---|
| 201 | 214 | }; |
|---|
| 202 | 215 | |
|---|
| 203 | | - osc32k: clk@0 { |
|---|
| 216 | + osc32k: clk-32k { |
|---|
| 204 | 217 | #clock-cells = <0>; |
|---|
| 205 | 218 | compatible = "fixed-clock"; |
|---|
| 206 | 219 | clock-frequency = <32768>; |
|---|
| .. | .. |
|---|
| 216 | 229 | * The actual TX clock rate is not controlled by the |
|---|
| 217 | 230 | * gmac_tx clock. |
|---|
| 218 | 231 | */ |
|---|
| 219 | | - mii_phy_tx_clk: clk@1 { |
|---|
| 232 | + mii_phy_tx_clk: clk-mii-phy-tx { |
|---|
| 220 | 233 | #clock-cells = <0>; |
|---|
| 221 | 234 | compatible = "fixed-clock"; |
|---|
| 222 | 235 | clock-frequency = <25000000>; |
|---|
| 223 | 236 | clock-output-names = "mii_phy_tx"; |
|---|
| 224 | 237 | }; |
|---|
| 225 | 238 | |
|---|
| 226 | | - gmac_int_tx_clk: clk@2 { |
|---|
| 239 | + gmac_int_tx_clk: clk-gmac-int-tx { |
|---|
| 227 | 240 | #clock-cells = <0>; |
|---|
| 228 | 241 | compatible = "fixed-clock"; |
|---|
| 229 | 242 | clock-frequency = <125000000>; |
|---|
| .. | .. |
|---|
| 246 | 259 | status = "disabled"; |
|---|
| 247 | 260 | }; |
|---|
| 248 | 261 | |
|---|
| 249 | | - soc@1c00000 { |
|---|
| 262 | + soc { |
|---|
| 250 | 263 | compatible = "simple-bus"; |
|---|
| 251 | 264 | #address-cells = <1>; |
|---|
| 252 | 265 | #size-cells = <1>; |
|---|
| .. | .. |
|---|
| 321 | 334 | #dma-cells = <2>; |
|---|
| 322 | 335 | }; |
|---|
| 323 | 336 | |
|---|
| 324 | | - nfc: nand@1c03000 { |
|---|
| 337 | + nfc: nand-controller@1c03000 { |
|---|
| 325 | 338 | compatible = "allwinner,sun4i-a10-nand"; |
|---|
| 326 | 339 | reg = <0x01c03000 0x1000>; |
|---|
| 327 | 340 | interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; |
|---|
| .. | .. |
|---|
| 364 | 377 | num-cs = <1>; |
|---|
| 365 | 378 | }; |
|---|
| 366 | 379 | |
|---|
| 380 | + csi0: csi@1c09000 { |
|---|
| 381 | + compatible = "allwinner,sun7i-a20-csi0"; |
|---|
| 382 | + reg = <0x01c09000 0x1000>; |
|---|
| 383 | + interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>; |
|---|
| 384 | + clocks = <&ccu CLK_AHB_CSI0>, <&ccu CLK_CSI_SCLK>, <&ccu CLK_DRAM_CSI0>; |
|---|
| 385 | + clock-names = "bus", "isp", "ram"; |
|---|
| 386 | + resets = <&ccu RST_CSI0>; |
|---|
| 387 | + status = "disabled"; |
|---|
| 388 | + }; |
|---|
| 389 | + |
|---|
| 367 | 390 | emac: ethernet@1c0b000 { |
|---|
| 368 | 391 | compatible = "allwinner,sun4i-a10-emac"; |
|---|
| 369 | 392 | reg = <0x01c0b000 0x1000>; |
|---|
| .. | .. |
|---|
| 382 | 405 | }; |
|---|
| 383 | 406 | |
|---|
| 384 | 407 | tcon0: lcd-controller@1c0c000 { |
|---|
| 385 | | - compatible = "allwinner,sun7i-a20-tcon"; |
|---|
| 408 | + compatible = "allwinner,sun7i-a20-tcon0", |
|---|
| 409 | + "allwinner,sun7i-a20-tcon"; |
|---|
| 386 | 410 | reg = <0x01c0c000 0x1000>; |
|---|
| 387 | 411 | interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>; |
|---|
| 388 | | - resets = <&ccu RST_TCON0>; |
|---|
| 389 | | - reset-names = "lcd"; |
|---|
| 412 | + resets = <&ccu RST_TCON0>, <&ccu RST_LVDS>; |
|---|
| 413 | + reset-names = "lcd", "lvds"; |
|---|
| 390 | 414 | clocks = <&ccu CLK_AHB_LCD0>, |
|---|
| 391 | 415 | <&ccu CLK_TCON0_CH0>, |
|---|
| 392 | 416 | <&ccu CLK_TCON0_CH1>; |
|---|
| .. | .. |
|---|
| 394 | 418 | "tcon-ch0", |
|---|
| 395 | 419 | "tcon-ch1"; |
|---|
| 396 | 420 | clock-output-names = "tcon0-pixel-clock"; |
|---|
| 421 | + #clock-cells = <0>; |
|---|
| 397 | 422 | dmas = <&dma SUN4I_DMA_DEDICATED 14>; |
|---|
| 398 | 423 | |
|---|
| 399 | 424 | ports { |
|---|
| .. | .. |
|---|
| 431 | 456 | }; |
|---|
| 432 | 457 | |
|---|
| 433 | 458 | tcon1: lcd-controller@1c0d000 { |
|---|
| 434 | | - compatible = "allwinner,sun7i-a20-tcon"; |
|---|
| 459 | + compatible = "allwinner,sun7i-a20-tcon1", |
|---|
| 460 | + "allwinner,sun7i-a20-tcon"; |
|---|
| 435 | 461 | reg = <0x01c0d000 0x1000>; |
|---|
| 436 | 462 | interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>; |
|---|
| 437 | 463 | resets = <&ccu RST_TCON1>; |
|---|
| .. | .. |
|---|
| 443 | 469 | "tcon-ch0", |
|---|
| 444 | 470 | "tcon-ch1"; |
|---|
| 445 | 471 | clock-output-names = "tcon1-pixel-clock"; |
|---|
| 472 | + #clock-cells = <0>; |
|---|
| 446 | 473 | dmas = <&dma SUN4I_DMA_DEDICATED 15>; |
|---|
| 447 | 474 | |
|---|
| 448 | 475 | ports { |
|---|
| .. | .. |
|---|
| 479 | 506 | }; |
|---|
| 480 | 507 | }; |
|---|
| 481 | 508 | |
|---|
| 509 | + video-codec@1c0e000 { |
|---|
| 510 | + compatible = "allwinner,sun7i-a20-video-engine"; |
|---|
| 511 | + reg = <0x01c0e000 0x1000>; |
|---|
| 512 | + clocks = <&ccu CLK_AHB_VE>, <&ccu CLK_VE>, |
|---|
| 513 | + <&ccu CLK_DRAM_VE>; |
|---|
| 514 | + clock-names = "ahb", "mod", "ram"; |
|---|
| 515 | + resets = <&ccu RST_VE>; |
|---|
| 516 | + interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>; |
|---|
| 517 | + allwinner,sram = <&ve_sram 1>; |
|---|
| 518 | + }; |
|---|
| 519 | + |
|---|
| 482 | 520 | mmc0: mmc@1c0f000 { |
|---|
| 483 | 521 | compatible = "allwinner,sun7i-a20-mmc"; |
|---|
| 484 | 522 | reg = <0x01c0f000 0x1000>; |
|---|
| .. | .. |
|---|
| 491 | 529 | "output", |
|---|
| 492 | 530 | "sample"; |
|---|
| 493 | 531 | interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; |
|---|
| 532 | + pinctrl-names = "default"; |
|---|
| 533 | + pinctrl-0 = <&mmc0_pins>; |
|---|
| 494 | 534 | status = "disabled"; |
|---|
| 495 | 535 | #address-cells = <1>; |
|---|
| 496 | 536 | #size-cells = <0>; |
|---|
| .. | .. |
|---|
| 525 | 565 | "output", |
|---|
| 526 | 566 | "sample"; |
|---|
| 527 | 567 | interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>; |
|---|
| 568 | + pinctrl-names = "default"; |
|---|
| 569 | + pinctrl-0 = <&mmc2_pins>; |
|---|
| 528 | 570 | status = "disabled"; |
|---|
| 529 | 571 | #address-cells = <1>; |
|---|
| 530 | 572 | #size-cells = <0>; |
|---|
| .. | .. |
|---|
| 542 | 584 | "output", |
|---|
| 543 | 585 | "sample"; |
|---|
| 544 | 586 | interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>; |
|---|
| 587 | + pinctrl-names = "default"; |
|---|
| 588 | + pinctrl-0 = <&mmc3_pins>; |
|---|
| 545 | 589 | status = "disabled"; |
|---|
| 546 | 590 | #address-cells = <1>; |
|---|
| 547 | 591 | #size-cells = <0>; |
|---|
| .. | .. |
|---|
| 557 | 601 | phy-names = "usb"; |
|---|
| 558 | 602 | extcon = <&usbphy 0>; |
|---|
| 559 | 603 | allwinner,sram = <&otg_sram 1>; |
|---|
| 604 | + dr_mode = "otg"; |
|---|
| 560 | 605 | status = "disabled"; |
|---|
| 561 | 606 | }; |
|---|
| 562 | 607 | |
|---|
| 563 | 608 | usbphy: phy@1c13400 { |
|---|
| 564 | 609 | #phy-cells = <1>; |
|---|
| 565 | 610 | compatible = "allwinner,sun7i-a20-usb-phy"; |
|---|
| 566 | | - reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>; |
|---|
| 611 | + reg = <0x01c13400 0x10>, <0x01c14800 0x4>, <0x01c1c800 0x4>; |
|---|
| 567 | 612 | reg-names = "phy_ctrl", "pmu1", "pmu2"; |
|---|
| 568 | 613 | clocks = <&ccu CLK_USB_PHY>; |
|---|
| 569 | 614 | clock-names = "usb_phy"; |
|---|
| .. | .. |
|---|
| 687 | 732 | status = "disabled"; |
|---|
| 688 | 733 | }; |
|---|
| 689 | 734 | |
|---|
| 735 | + csi1: csi@1c1d000 { |
|---|
| 736 | + compatible = "allwinner,sun7i-a20-csi1", |
|---|
| 737 | + "allwinner,sun4i-a10-csi1"; |
|---|
| 738 | + reg = <0x01c1d000 0x1000>; |
|---|
| 739 | + interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>; |
|---|
| 740 | + clocks = <&ccu CLK_AHB_CSI1>, <&ccu CLK_DRAM_CSI1>; |
|---|
| 741 | + clock-names = "bus", "ram"; |
|---|
| 742 | + resets = <&ccu RST_CSI1>; |
|---|
| 743 | + status = "disabled"; |
|---|
| 744 | + }; |
|---|
| 745 | + |
|---|
| 690 | 746 | spi3: spi@1c1f000 { |
|---|
| 691 | 747 | compatible = "allwinner,sun4i-a10-spi"; |
|---|
| 692 | 748 | reg = <0x01c1f000 0x1000>; |
|---|
| .. | .. |
|---|
| 722 | 778 | #interrupt-cells = <3>; |
|---|
| 723 | 779 | #gpio-cells = <3>; |
|---|
| 724 | 780 | |
|---|
| 725 | | - can0_pins_a: can0@0 { |
|---|
| 781 | + /omit-if-no-ref/ |
|---|
| 782 | + can_pa_pins: can-pa-pins { |
|---|
| 783 | + pins = "PA16", "PA17"; |
|---|
| 784 | + function = "can"; |
|---|
| 785 | + }; |
|---|
| 786 | + |
|---|
| 787 | + /omit-if-no-ref/ |
|---|
| 788 | + can_ph_pins: can-ph-pins { |
|---|
| 726 | 789 | pins = "PH20", "PH21"; |
|---|
| 727 | 790 | function = "can"; |
|---|
| 728 | 791 | }; |
|---|
| 729 | 792 | |
|---|
| 730 | | - clk_out_a_pins_a: clk_out_a@0 { |
|---|
| 793 | + /omit-if-no-ref/ |
|---|
| 794 | + clk_out_a_pin: clk-out-a-pin { |
|---|
| 731 | 795 | pins = "PI12"; |
|---|
| 732 | 796 | function = "clk_out_a"; |
|---|
| 733 | 797 | }; |
|---|
| 734 | 798 | |
|---|
| 735 | | - clk_out_b_pins_a: clk_out_b@0 { |
|---|
| 799 | + /omit-if-no-ref/ |
|---|
| 800 | + clk_out_b_pin: clk-out-b-pin { |
|---|
| 736 | 801 | pins = "PI13"; |
|---|
| 737 | 802 | function = "clk_out_b"; |
|---|
| 738 | 803 | }; |
|---|
| 739 | 804 | |
|---|
| 740 | | - emac_pins_a: emac0@0 { |
|---|
| 805 | + /omit-if-no-ref/ |
|---|
| 806 | + csi0_8bits_pins: csi-8bits-pins { |
|---|
| 807 | + pins = "PE0", "PE2", "PE3", "PE4", "PE5", |
|---|
| 808 | + "PE6", "PE7", "PE8", "PE9", "PE10", |
|---|
| 809 | + "PE11"; |
|---|
| 810 | + function = "csi0"; |
|---|
| 811 | + }; |
|---|
| 812 | + |
|---|
| 813 | + /omit-if-no-ref/ |
|---|
| 814 | + csi0_clk_pin: csi-clk-pin { |
|---|
| 815 | + pins = "PE1"; |
|---|
| 816 | + function = "csi0"; |
|---|
| 817 | + }; |
|---|
| 818 | + |
|---|
| 819 | + /omit-if-no-ref/ |
|---|
| 820 | + csi1_8bits_pg_pins: csi1-8bits-pg-pins { |
|---|
| 821 | + pins = "PG0", "PG2", "PG3", "PG4", "PG5", |
|---|
| 822 | + "PG6", "PG7", "PG8", "PG9", "PG10", |
|---|
| 823 | + "PG11"; |
|---|
| 824 | + function = "csi1"; |
|---|
| 825 | + }; |
|---|
| 826 | + |
|---|
| 827 | + /omit-if-no-ref/ |
|---|
| 828 | + csi1_24bits_ph_pins: csi1-24bits-ph-pins { |
|---|
| 829 | + pins = "PH0", "PH1", "PH2", "PH3", "PH4", |
|---|
| 830 | + "PH5", "PH6", "PH7", "PH8", "PH9", |
|---|
| 831 | + "PH10", "PH11", "PH12", "PH13", "PH14", |
|---|
| 832 | + "PH15", "PH16", "PH17", "PH18", "PH19", |
|---|
| 833 | + "PH20", "PH21", "PH22", "PH23", "PH24", |
|---|
| 834 | + "PH25", "PH26", "PH27"; |
|---|
| 835 | + function = "csi1"; |
|---|
| 836 | + }; |
|---|
| 837 | + |
|---|
| 838 | + /omit-if-no-ref/ |
|---|
| 839 | + csi1_clk_pg_pin: csi1-clk-pg-pin { |
|---|
| 840 | + pins = "PG1"; |
|---|
| 841 | + function = "csi1"; |
|---|
| 842 | + }; |
|---|
| 843 | + |
|---|
| 844 | + /omit-if-no-ref/ |
|---|
| 845 | + emac_pa_pins: emac-pa-pins { |
|---|
| 741 | 846 | pins = "PA0", "PA1", "PA2", |
|---|
| 742 | 847 | "PA3", "PA4", "PA5", "PA6", |
|---|
| 743 | 848 | "PA7", "PA8", "PA9", "PA10", |
|---|
| .. | .. |
|---|
| 746 | 851 | function = "emac"; |
|---|
| 747 | 852 | }; |
|---|
| 748 | 853 | |
|---|
| 749 | | - gmac_pins_mii_a: gmac_mii@0 { |
|---|
| 854 | + /omit-if-no-ref/ |
|---|
| 855 | + emac_ph_pins: emac-ph-pins { |
|---|
| 856 | + pins = "PH8", "PH9", "PH10", "PH11", |
|---|
| 857 | + "PH14", "PH15", "PH16", "PH17", |
|---|
| 858 | + "PH18", "PH19", "PH20", "PH21", |
|---|
| 859 | + "PH22", "PH23", "PH24", "PH25", |
|---|
| 860 | + "PH26"; |
|---|
| 861 | + function = "emac"; |
|---|
| 862 | + }; |
|---|
| 863 | + |
|---|
| 864 | + /omit-if-no-ref/ |
|---|
| 865 | + gmac_mii_pins: gmac-mii-pins { |
|---|
| 750 | 866 | pins = "PA0", "PA1", "PA2", |
|---|
| 751 | 867 | "PA3", "PA4", "PA5", "PA6", |
|---|
| 752 | 868 | "PA7", "PA8", "PA9", "PA10", |
|---|
| .. | .. |
|---|
| 755 | 871 | function = "gmac"; |
|---|
| 756 | 872 | }; |
|---|
| 757 | 873 | |
|---|
| 758 | | - gmac_pins_rgmii_a: gmac_rgmii@0 { |
|---|
| 874 | + /omit-if-no-ref/ |
|---|
| 875 | + gmac_rgmii_pins: gmac-rgmii-pins { |
|---|
| 759 | 876 | pins = "PA0", "PA1", "PA2", |
|---|
| 760 | 877 | "PA3", "PA4", "PA5", "PA6", |
|---|
| 761 | 878 | "PA7", "PA8", "PA10", |
|---|
| .. | .. |
|---|
| 769 | 886 | drive-strength = <40>; |
|---|
| 770 | 887 | }; |
|---|
| 771 | 888 | |
|---|
| 772 | | - i2c0_pins_a: i2c0@0 { |
|---|
| 889 | + /omit-if-no-ref/ |
|---|
| 890 | + i2c0_pins: i2c0-pins { |
|---|
| 773 | 891 | pins = "PB0", "PB1"; |
|---|
| 774 | 892 | function = "i2c0"; |
|---|
| 775 | 893 | }; |
|---|
| 776 | 894 | |
|---|
| 777 | | - i2c1_pins_a: i2c1@0 { |
|---|
| 895 | + /omit-if-no-ref/ |
|---|
| 896 | + i2c1_pins: i2c1-pins { |
|---|
| 778 | 897 | pins = "PB18", "PB19"; |
|---|
| 779 | 898 | function = "i2c1"; |
|---|
| 780 | 899 | }; |
|---|
| 781 | 900 | |
|---|
| 782 | | - i2c2_pins_a: i2c2@0 { |
|---|
| 901 | + /omit-if-no-ref/ |
|---|
| 902 | + i2c2_pins: i2c2-pins { |
|---|
| 783 | 903 | pins = "PB20", "PB21"; |
|---|
| 784 | 904 | function = "i2c2"; |
|---|
| 785 | 905 | }; |
|---|
| 786 | 906 | |
|---|
| 787 | | - i2c3_pins_a: i2c3@0 { |
|---|
| 907 | + /omit-if-no-ref/ |
|---|
| 908 | + i2c3_pins: i2c3-pins { |
|---|
| 788 | 909 | pins = "PI0", "PI1"; |
|---|
| 789 | 910 | function = "i2c3"; |
|---|
| 790 | 911 | }; |
|---|
| 791 | 912 | |
|---|
| 792 | | - ir0_rx_pins_a: ir0@0 { |
|---|
| 913 | + /omit-if-no-ref/ |
|---|
| 914 | + ir0_rx_pin: ir0-rx-pin { |
|---|
| 793 | 915 | pins = "PB4"; |
|---|
| 794 | 916 | function = "ir0"; |
|---|
| 795 | 917 | }; |
|---|
| 796 | 918 | |
|---|
| 797 | | - ir0_tx_pins_a: ir0@1 { |
|---|
| 919 | + /omit-if-no-ref/ |
|---|
| 920 | + ir0_tx_pin: ir0-tx-pin { |
|---|
| 798 | 921 | pins = "PB3"; |
|---|
| 799 | 922 | function = "ir0"; |
|---|
| 800 | 923 | }; |
|---|
| 801 | 924 | |
|---|
| 802 | | - ir1_rx_pins_a: ir1@0 { |
|---|
| 925 | + /omit-if-no-ref/ |
|---|
| 926 | + ir1_rx_pin: ir1-rx-pin { |
|---|
| 803 | 927 | pins = "PB23"; |
|---|
| 804 | 928 | function = "ir1"; |
|---|
| 805 | 929 | }; |
|---|
| 806 | 930 | |
|---|
| 807 | | - ir1_tx_pins_a: ir1@1 { |
|---|
| 931 | + /omit-if-no-ref/ |
|---|
| 932 | + ir1_tx_pin: ir1-tx-pin { |
|---|
| 808 | 933 | pins = "PB22"; |
|---|
| 809 | 934 | function = "ir1"; |
|---|
| 810 | 935 | }; |
|---|
| 811 | 936 | |
|---|
| 812 | | - mmc0_pins_a: mmc0@0 { |
|---|
| 937 | + /omit-if-no-ref/ |
|---|
| 938 | + lcd_lvds0_pins: lcd-lvds0-pins { |
|---|
| 939 | + pins = "PD0", "PD1", "PD2", "PD3", "PD4", |
|---|
| 940 | + "PD5", "PD6", "PD7", "PD8", "PD9"; |
|---|
| 941 | + function = "lvds0"; |
|---|
| 942 | + }; |
|---|
| 943 | + |
|---|
| 944 | + /omit-if-no-ref/ |
|---|
| 945 | + lcd_lvds1_pins: lcd-lvds1-pins { |
|---|
| 946 | + pins = "PD10", "PD11", "PD12", "PD13", "PD14", |
|---|
| 947 | + "PD15", "PD16", "PD17", "PD18", "PD19"; |
|---|
| 948 | + function = "lvds1"; |
|---|
| 949 | + }; |
|---|
| 950 | + |
|---|
| 951 | + /omit-if-no-ref/ |
|---|
| 952 | + mmc0_pins: mmc0-pins { |
|---|
| 813 | 953 | pins = "PF0", "PF1", "PF2", |
|---|
| 814 | 954 | "PF3", "PF4", "PF5"; |
|---|
| 815 | 955 | function = "mmc0"; |
|---|
| .. | .. |
|---|
| 817 | 957 | bias-pull-up; |
|---|
| 818 | 958 | }; |
|---|
| 819 | 959 | |
|---|
| 820 | | - mmc2_pins_a: mmc2@0 { |
|---|
| 960 | + /omit-if-no-ref/ |
|---|
| 961 | + mmc2_pins: mmc2-pins { |
|---|
| 821 | 962 | pins = "PC6", "PC7", "PC8", |
|---|
| 822 | 963 | "PC9", "PC10", "PC11"; |
|---|
| 823 | 964 | function = "mmc2"; |
|---|
| .. | .. |
|---|
| 825 | 966 | bias-pull-up; |
|---|
| 826 | 967 | }; |
|---|
| 827 | 968 | |
|---|
| 828 | | - mmc3_pins_a: mmc3@0 { |
|---|
| 969 | + /omit-if-no-ref/ |
|---|
| 970 | + mmc3_pins: mmc3-pins { |
|---|
| 829 | 971 | pins = "PI4", "PI5", "PI6", |
|---|
| 830 | 972 | "PI7", "PI8", "PI9"; |
|---|
| 831 | 973 | function = "mmc3"; |
|---|
| .. | .. |
|---|
| 833 | 975 | bias-pull-up; |
|---|
| 834 | 976 | }; |
|---|
| 835 | 977 | |
|---|
| 836 | | - ps20_pins_a: ps20@0 { |
|---|
| 978 | + /omit-if-no-ref/ |
|---|
| 979 | + ps2_0_pins: ps2-0-pins { |
|---|
| 837 | 980 | pins = "PI20", "PI21"; |
|---|
| 838 | 981 | function = "ps2"; |
|---|
| 839 | 982 | }; |
|---|
| 840 | 983 | |
|---|
| 841 | | - ps21_pins_a: ps21@0 { |
|---|
| 984 | + /omit-if-no-ref/ |
|---|
| 985 | + ps2_1_ph_pins: ps2-1-ph-pins { |
|---|
| 842 | 986 | pins = "PH12", "PH13"; |
|---|
| 843 | 987 | function = "ps2"; |
|---|
| 844 | 988 | }; |
|---|
| 845 | 989 | |
|---|
| 846 | | - pwm0_pins_a: pwm0@0 { |
|---|
| 990 | + /omit-if-no-ref/ |
|---|
| 991 | + pwm0_pin: pwm0-pin { |
|---|
| 847 | 992 | pins = "PB2"; |
|---|
| 848 | 993 | function = "pwm"; |
|---|
| 849 | 994 | }; |
|---|
| 850 | 995 | |
|---|
| 851 | | - pwm1_pins_a: pwm1@0 { |
|---|
| 996 | + /omit-if-no-ref/ |
|---|
| 997 | + pwm1_pin: pwm1-pin { |
|---|
| 852 | 998 | pins = "PI3"; |
|---|
| 853 | 999 | function = "pwm"; |
|---|
| 854 | 1000 | }; |
|---|
| 855 | 1001 | |
|---|
| 856 | | - spdif_tx_pins_a: spdif@0 { |
|---|
| 1002 | + /omit-if-no-ref/ |
|---|
| 1003 | + spdif_tx_pin: spdif-tx-pin { |
|---|
| 857 | 1004 | pins = "PB13"; |
|---|
| 858 | 1005 | function = "spdif"; |
|---|
| 859 | 1006 | bias-pull-up; |
|---|
| 860 | 1007 | }; |
|---|
| 861 | 1008 | |
|---|
| 862 | | - spi0_pins_a: spi0@0 { |
|---|
| 1009 | + /omit-if-no-ref/ |
|---|
| 1010 | + spi0_pi_pins: spi0-pi-pins { |
|---|
| 863 | 1011 | pins = "PI11", "PI12", "PI13"; |
|---|
| 864 | 1012 | function = "spi0"; |
|---|
| 865 | 1013 | }; |
|---|
| 866 | 1014 | |
|---|
| 867 | | - spi0_cs0_pins_a: spi0_cs0@0 { |
|---|
| 1015 | + /omit-if-no-ref/ |
|---|
| 1016 | + spi0_cs0_pi_pin: spi0-cs0-pi-pin { |
|---|
| 868 | 1017 | pins = "PI10"; |
|---|
| 869 | 1018 | function = "spi0"; |
|---|
| 870 | 1019 | }; |
|---|
| 871 | 1020 | |
|---|
| 872 | | - spi0_cs1_pins_a: spi0_cs1@0 { |
|---|
| 1021 | + /omit-if-no-ref/ |
|---|
| 1022 | + spi0_cs1_pi_pin: spi0-cs1-pi-pin { |
|---|
| 873 | 1023 | pins = "PI14"; |
|---|
| 874 | 1024 | function = "spi0"; |
|---|
| 875 | 1025 | }; |
|---|
| 876 | 1026 | |
|---|
| 877 | | - spi1_pins_a: spi1@0 { |
|---|
| 1027 | + /omit-if-no-ref/ |
|---|
| 1028 | + spi1_pi_pins: spi1-pi-pins { |
|---|
| 878 | 1029 | pins = "PI17", "PI18", "PI19"; |
|---|
| 879 | 1030 | function = "spi1"; |
|---|
| 880 | 1031 | }; |
|---|
| 881 | 1032 | |
|---|
| 882 | | - spi1_cs0_pins_a: spi1_cs0@0 { |
|---|
| 1033 | + /omit-if-no-ref/ |
|---|
| 1034 | + spi1_cs0_pi_pin: spi1-cs0-pi-pin { |
|---|
| 883 | 1035 | pins = "PI16"; |
|---|
| 884 | 1036 | function = "spi1"; |
|---|
| 885 | 1037 | }; |
|---|
| 886 | 1038 | |
|---|
| 887 | | - spi2_pins_a: spi2@0 { |
|---|
| 888 | | - pins = "PC20", "PC21", "PC22"; |
|---|
| 889 | | - function = "spi2"; |
|---|
| 890 | | - }; |
|---|
| 891 | | - |
|---|
| 892 | | - spi2_pins_b: spi2@1 { |
|---|
| 1039 | + /omit-if-no-ref/ |
|---|
| 1040 | + spi2_pb_pins: spi2-pb-pins { |
|---|
| 893 | 1041 | pins = "PB15", "PB16", "PB17"; |
|---|
| 894 | 1042 | function = "spi2"; |
|---|
| 895 | 1043 | }; |
|---|
| 896 | 1044 | |
|---|
| 897 | | - spi2_cs0_pins_a: spi2_cs0@0 { |
|---|
| 898 | | - pins = "PC19"; |
|---|
| 899 | | - function = "spi2"; |
|---|
| 900 | | - }; |
|---|
| 901 | | - |
|---|
| 902 | | - spi2_cs0_pins_b: spi2_cs0@1 { |
|---|
| 1045 | + /omit-if-no-ref/ |
|---|
| 1046 | + spi2_cs0_pb_pin: spi2-cs0-pb-pin { |
|---|
| 903 | 1047 | pins = "PB14"; |
|---|
| 904 | 1048 | function = "spi2"; |
|---|
| 905 | 1049 | }; |
|---|
| 906 | 1050 | |
|---|
| 907 | | - uart0_pins_a: uart0@0 { |
|---|
| 1051 | + /omit-if-no-ref/ |
|---|
| 1052 | + spi2_pc_pins: spi2-pc-pins { |
|---|
| 1053 | + pins = "PC20", "PC21", "PC22"; |
|---|
| 1054 | + function = "spi2"; |
|---|
| 1055 | + }; |
|---|
| 1056 | + |
|---|
| 1057 | + /omit-if-no-ref/ |
|---|
| 1058 | + spi2_cs0_pc_pin: spi2-cs0-pc-pin { |
|---|
| 1059 | + pins = "PC19"; |
|---|
| 1060 | + function = "spi2"; |
|---|
| 1061 | + }; |
|---|
| 1062 | + |
|---|
| 1063 | + /omit-if-no-ref/ |
|---|
| 1064 | + uart0_pb_pins: uart0-pb-pins { |
|---|
| 908 | 1065 | pins = "PB22", "PB23"; |
|---|
| 909 | 1066 | function = "uart0"; |
|---|
| 910 | 1067 | }; |
|---|
| 911 | 1068 | |
|---|
| 912 | | - uart2_pins_a: uart2@0 { |
|---|
| 913 | | - pins = "PI16", "PI17", "PI18", "PI19"; |
|---|
| 1069 | + /omit-if-no-ref/ |
|---|
| 1070 | + uart0_pf_pins: uart0-pf-pins { |
|---|
| 1071 | + pins = "PF2", "PF4"; |
|---|
| 1072 | + function = "uart0"; |
|---|
| 1073 | + }; |
|---|
| 1074 | + |
|---|
| 1075 | + /omit-if-no-ref/ |
|---|
| 1076 | + uart1_pa_pins: uart1-pa-pins { |
|---|
| 1077 | + pins = "PA10", "PA11"; |
|---|
| 1078 | + function = "uart1"; |
|---|
| 1079 | + }; |
|---|
| 1080 | + |
|---|
| 1081 | + /omit-if-no-ref/ |
|---|
| 1082 | + uart1_cts_rts_pa_pins: uart1-cts-rts-pa-pins { |
|---|
| 1083 | + pins = "PA12", "PA13"; |
|---|
| 1084 | + function = "uart1"; |
|---|
| 1085 | + }; |
|---|
| 1086 | + |
|---|
| 1087 | + /omit-if-no-ref/ |
|---|
| 1088 | + uart2_pa_pins: uart2-pa-pins { |
|---|
| 1089 | + pins = "PA2", "PA3"; |
|---|
| 914 | 1090 | function = "uart2"; |
|---|
| 915 | 1091 | }; |
|---|
| 916 | 1092 | |
|---|
| 917 | | - uart3_pins_a: uart3@0 { |
|---|
| 918 | | - pins = "PG6", "PG7", "PG8", "PG9"; |
|---|
| 1093 | + /omit-if-no-ref/ |
|---|
| 1094 | + uart2_cts_rts_pa_pins: uart2-cts-rts-pa-pins { |
|---|
| 1095 | + pins = "PA0", "PA1"; |
|---|
| 1096 | + function = "uart2"; |
|---|
| 1097 | + }; |
|---|
| 1098 | + |
|---|
| 1099 | + /omit-if-no-ref/ |
|---|
| 1100 | + uart2_pi_pins: uart2-pi-pins { |
|---|
| 1101 | + pins = "PI18", "PI19"; |
|---|
| 1102 | + function = "uart2"; |
|---|
| 1103 | + }; |
|---|
| 1104 | + |
|---|
| 1105 | + /omit-if-no-ref/ |
|---|
| 1106 | + uart2_cts_rts_pi_pins: uart2-cts-rts-pi-pins { |
|---|
| 1107 | + pins = "PI16", "PI17"; |
|---|
| 1108 | + function = "uart2"; |
|---|
| 1109 | + }; |
|---|
| 1110 | + |
|---|
| 1111 | + /omit-if-no-ref/ |
|---|
| 1112 | + uart3_pg_pins: uart3-pg-pins { |
|---|
| 1113 | + pins = "PG6", "PG7"; |
|---|
| 919 | 1114 | function = "uart3"; |
|---|
| 920 | 1115 | }; |
|---|
| 921 | 1116 | |
|---|
| 922 | | - uart3_pins_b: uart3@1 { |
|---|
| 1117 | + /omit-if-no-ref/ |
|---|
| 1118 | + uart3_cts_rts_pg_pins: uart3-cts-rts-pg-pins { |
|---|
| 1119 | + pins = "PG8", "PG9"; |
|---|
| 1120 | + function = "uart3"; |
|---|
| 1121 | + }; |
|---|
| 1122 | + |
|---|
| 1123 | + /omit-if-no-ref/ |
|---|
| 1124 | + uart3_ph_pins: uart3-ph-pins { |
|---|
| 923 | 1125 | pins = "PH0", "PH1"; |
|---|
| 924 | 1126 | function = "uart3"; |
|---|
| 925 | 1127 | }; |
|---|
| 926 | 1128 | |
|---|
| 927 | | - uart4_pins_a: uart4@0 { |
|---|
| 1129 | + /omit-if-no-ref/ |
|---|
| 1130 | + uart3_cts_rts_ph_pins: uart3-cts-rts-ph-pins { |
|---|
| 1131 | + pins = "PH2", "PH3"; |
|---|
| 1132 | + function = "uart3"; |
|---|
| 1133 | + }; |
|---|
| 1134 | + |
|---|
| 1135 | + /omit-if-no-ref/ |
|---|
| 1136 | + uart4_pg_pins: uart4-pg-pins { |
|---|
| 928 | 1137 | pins = "PG10", "PG11"; |
|---|
| 929 | 1138 | function = "uart4"; |
|---|
| 930 | 1139 | }; |
|---|
| 931 | 1140 | |
|---|
| 932 | | - uart4_pins_b: uart4@1 { |
|---|
| 1141 | + /omit-if-no-ref/ |
|---|
| 1142 | + uart4_ph_pins: uart4-ph-pins { |
|---|
| 933 | 1143 | pins = "PH4", "PH5"; |
|---|
| 934 | 1144 | function = "uart4"; |
|---|
| 935 | 1145 | }; |
|---|
| 936 | 1146 | |
|---|
| 937 | | - uart5_pins_a: uart5@0 { |
|---|
| 1147 | + /omit-if-no-ref/ |
|---|
| 1148 | + uart5_ph_pins: uart5-ph-pins { |
|---|
| 1149 | + pins = "PH6", "PH7"; |
|---|
| 1150 | + function = "uart5"; |
|---|
| 1151 | + }; |
|---|
| 1152 | + |
|---|
| 1153 | + /omit-if-no-ref/ |
|---|
| 1154 | + uart5_pi_pins: uart5-pi-pins { |
|---|
| 938 | 1155 | pins = "PI10", "PI11"; |
|---|
| 939 | 1156 | function = "uart5"; |
|---|
| 940 | 1157 | }; |
|---|
| 941 | 1158 | |
|---|
| 942 | | - uart6_pins_a: uart6@0 { |
|---|
| 1159 | + /omit-if-no-ref/ |
|---|
| 1160 | + uart6_pa_pins: uart6-pa-pins { |
|---|
| 1161 | + pins = "PA12", "PA13"; |
|---|
| 1162 | + function = "uart6"; |
|---|
| 1163 | + }; |
|---|
| 1164 | + |
|---|
| 1165 | + /omit-if-no-ref/ |
|---|
| 1166 | + uart6_pi_pins: uart6-pi-pins { |
|---|
| 943 | 1167 | pins = "PI12", "PI13"; |
|---|
| 944 | 1168 | function = "uart6"; |
|---|
| 945 | 1169 | }; |
|---|
| 946 | 1170 | |
|---|
| 947 | | - uart7_pins_a: uart7@0 { |
|---|
| 1171 | + /omit-if-no-ref/ |
|---|
| 1172 | + uart7_pa_pins: uart7-pa-pins { |
|---|
| 1173 | + pins = "PA14", "PA15"; |
|---|
| 1174 | + function = "uart7"; |
|---|
| 1175 | + }; |
|---|
| 1176 | + |
|---|
| 1177 | + /omit-if-no-ref/ |
|---|
| 1178 | + uart7_pi_pins: uart7-pi-pins { |
|---|
| 948 | 1179 | pins = "PI20", "PI21"; |
|---|
| 949 | 1180 | function = "uart7"; |
|---|
| 950 | 1181 | }; |
|---|
| .. | .. |
|---|
| 965 | 1196 | wdt: watchdog@1c20c90 { |
|---|
| 966 | 1197 | compatible = "allwinner,sun4i-a10-wdt"; |
|---|
| 967 | 1198 | reg = <0x01c20c90 0x10>; |
|---|
| 1199 | + interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>; |
|---|
| 1200 | + clocks = <&osc24M>; |
|---|
| 968 | 1201 | }; |
|---|
| 969 | 1202 | |
|---|
| 970 | 1203 | rtc: rtc@1c20d00 { |
|---|
| .. | .. |
|---|
| 1185 | 1418 | reg = <0x01c2ac00 0x400>; |
|---|
| 1186 | 1419 | interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; |
|---|
| 1187 | 1420 | clocks = <&ccu CLK_APB1_I2C0>; |
|---|
| 1421 | + pinctrl-names = "default"; |
|---|
| 1422 | + pinctrl-0 = <&i2c0_pins>; |
|---|
| 1188 | 1423 | status = "disabled"; |
|---|
| 1189 | 1424 | #address-cells = <1>; |
|---|
| 1190 | 1425 | #size-cells = <0>; |
|---|
| .. | .. |
|---|
| 1196 | 1431 | reg = <0x01c2b000 0x400>; |
|---|
| 1197 | 1432 | interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; |
|---|
| 1198 | 1433 | clocks = <&ccu CLK_APB1_I2C1>; |
|---|
| 1434 | + pinctrl-names = "default"; |
|---|
| 1435 | + pinctrl-0 = <&i2c1_pins>; |
|---|
| 1199 | 1436 | status = "disabled"; |
|---|
| 1200 | 1437 | #address-cells = <1>; |
|---|
| 1201 | 1438 | #size-cells = <0>; |
|---|
| .. | .. |
|---|
| 1207 | 1444 | reg = <0x01c2b400 0x400>; |
|---|
| 1208 | 1445 | interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>; |
|---|
| 1209 | 1446 | clocks = <&ccu CLK_APB1_I2C2>; |
|---|
| 1447 | + pinctrl-names = "default"; |
|---|
| 1448 | + pinctrl-0 = <&i2c2_pins>; |
|---|
| 1210 | 1449 | status = "disabled"; |
|---|
| 1211 | 1450 | #address-cells = <1>; |
|---|
| 1212 | 1451 | #size-cells = <0>; |
|---|
| .. | .. |
|---|
| 1218 | 1457 | reg = <0x01c2b800 0x400>; |
|---|
| 1219 | 1458 | interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>; |
|---|
| 1220 | 1459 | clocks = <&ccu CLK_APB1_I2C3>; |
|---|
| 1460 | + pinctrl-names = "default"; |
|---|
| 1461 | + pinctrl-0 = <&i2c3_pins>; |
|---|
| 1221 | 1462 | status = "disabled"; |
|---|
| 1222 | 1463 | #address-cells = <1>; |
|---|
| 1223 | 1464 | #size-cells = <0>; |
|---|
| .. | .. |
|---|
| 1279 | 1520 | snps,fixed-burst; |
|---|
| 1280 | 1521 | snps,force_sf_dma_mode; |
|---|
| 1281 | 1522 | status = "disabled"; |
|---|
| 1282 | | - #address-cells = <1>; |
|---|
| 1283 | | - #size-cells = <0>; |
|---|
| 1523 | + |
|---|
| 1524 | + gmac_mdio: mdio { |
|---|
| 1525 | + compatible = "snps,dwmac-mdio"; |
|---|
| 1526 | + #address-cells = <1>; |
|---|
| 1527 | + #size-cells = <0>; |
|---|
| 1528 | + }; |
|---|
| 1284 | 1529 | }; |
|---|
| 1285 | 1530 | |
|---|
| 1286 | 1531 | hstimer@1c60000 { |
|---|
| .. | .. |
|---|
| 1294 | 1539 | }; |
|---|
| 1295 | 1540 | |
|---|
| 1296 | 1541 | gic: interrupt-controller@1c81000 { |
|---|
| 1297 | | - compatible = "arm,gic-400", "arm,cortex-a7-gic", "arm,cortex-a15-gic"; |
|---|
| 1542 | + compatible = "arm,gic-400"; |
|---|
| 1298 | 1543 | reg = <0x01c81000 0x1000>, |
|---|
| 1299 | 1544 | <0x01c82000 0x2000>, |
|---|
| 1300 | 1545 | <0x01c84000 0x2000>, |
|---|