|
683 | 683 | status = "ok"; |
684 | 684 | }; |
685 | 685 |
|
| 686 | + i2c0: i2c@f7100000 { |
| 687 | + compatible = "snps,designware-i2c"; |
| 688 | + #address-cells = <1>; |
| 689 | + #size-cells = <0>; |
| 690 | + reg = <0x0 0xf7100000 0x0 0x1000>; |
| 691 | + interrupts = <0 44 4>; |
| 692 | + |
| 693 | + clocks = <&clock_sys HI6220_I2C0_CLK>; |
| 694 | + clock-names = "clk_i2c0"; |
| 695 | + i2c-sda-hold-time-ns = <300>; |
| 696 | + #delay-reg = <0x0 0x0f8 0x0 4>; |
| 697 | + reset-controller-reg = <0x330 0x334 0x338 1>; |
| 698 | + pinctrl-names = "default"; |
| 699 | + pinctrl-0 = <&i2c0_pmx_func &i2c0_cfg_func>; |
| 700 | + status = "ok"; |
| 701 | + }; |
| 702 | + |
| 703 | + i2c1: i2c@f7101000 { |
| 704 | + compatible = "snps,designware-i2c"; |
| 705 | + #address-cells = <1>; |
| 706 | + #size-cells = <0>; |
| 707 | + reg = <0x0 0xf7101000 0x0 0x1000>; |
| 708 | + interrupts = <0 45 4>; |
| 709 | + |
| 710 | + clocks = <&clock_sys HI6220_I2C1_CLK>; |
| 711 | + clock-names = "clk_i2c1"; |
| 712 | + i2c-sda-hold-time-ns = <300>; |
| 713 | + clock-frequency = <100000>; |
| 714 | + #delay-reg = <0x0 0x0f8 0x0 4>; |
| 715 | + reset-controller-reg = <0x330 0x334 0x338 2>; |
| 716 | + pinctrl-names = "default"; |
| 717 | + pinctrl-0 = <&i2c1_pmx_func &i2c1_cfg_func>; |
| 718 | + status = "ok"; |
| 719 | + }; |
| 720 | + |
686 | 721 | i2c2: i2c@f7102000 { |
687 | 722 | compatible = "snps,designware-i2c"; |
688 | 723 | #address-cells = <1>; |
|
715 | 750 |
|
716 | 751 | spi_0: spi@f7106000 { |
717 | 752 | compatible = "arm,pl022", "arm,primecell"; |
| 753 | + #address-cells = <1>; |
| 754 | + #size-cells = <0>; |
718 | 755 | reg = <0x0 0xf7106000 0x0 0x1000>; |
719 | 756 | interrupts = <0 50 4>; |
720 | 757 | bus-id = <0>; |
|
726 | 763 | clock-names = "apb_pclk"; |
727 | 764 | pinctrl-names = "default"; |
728 | 765 | pinctrl-0 = <&spi0_pmx_func &spi0_cfg_func>; |
729 | | - num-cs = <4>; |
730 | | - cs-gpios = <&gpio6 2 0>,<&gpio6 3 0>,<&gpio6 4 0>,<&gpio6 5 0>; |
| 766 | + num-cs = <2>; |
| 767 | + cs-gpios = <&gpio2 2 0>,<&gpio2 3 0>; |
731 | 768 |
|
732 | 769 | status = "ok"; |
| 770 | + |
| 771 | + spidev@0 { |
| 772 | + compatible = "linux,spidev"; |
| 773 | + spi-max-frequency = <500000>; |
| 774 | + reg = <0>; |
| 775 | + }; |
| 776 | + |
| 777 | + spidev@1 { |
| 778 | + compatible = "linux,spidev"; |
| 779 | + spi-max-frequency = <500000>; |
| 780 | + reg = <1>; |
| 781 | + }; |
733 | 782 | }; |
734 | 783 |
|
735 | 784 | display-subsystem { |
|
0 commit comments