diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2013-12-18 07:52:59 -0500 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2013-12-19 13:40:39 -0500 |
commit | fcacaba7326628e854865f59b169d3054e27b77f (patch) | |
tree | 74781306ac233bdd958e5ac015c70c3e294b76d9 | |
parent | 365c483f190fea03971b3eca8d68406f425777b5 (diff) |
ARM: tegra: add ams AS3722 device to Venice2 DT
Add ams AS3722 entry for gpio/pincontrol and regulators
to venice2 DT.
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
-rw-r--r-- | arch/arm/boot/dts/tegra124-venice2.dts | 297 |
1 files changed, 296 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/tegra124-venice2.dts b/arch/arm/boot/dts/tegra124-venice2.dts index 6bc4e07ba839..a9f0df9faf50 100644 --- a/arch/arm/boot/dts/tegra124-venice2.dts +++ b/arch/arm/boot/dts/tegra124-venice2.dts | |||
@@ -603,7 +603,201 @@ | |||
603 | 603 | ||
604 | i2c@7000d000 { | 604 | i2c@7000d000 { |
605 | status = "okay"; | 605 | status = "okay"; |
606 | clock-frequency = <100000>; | 606 | clock-frequency = <400000>; |
607 | |||
608 | as3722: as3722@40 { | ||
609 | compatible = "ams,as3722"; | ||
610 | reg = <0x40>; | ||
611 | interrupts = <0 86 IRQ_TYPE_LEVEL_HIGH>; | ||
612 | |||
613 | #interrupt-cells = <2>; | ||
614 | interrupt-controller; | ||
615 | |||
616 | gpio-controller; | ||
617 | #gpio-cells = <2>; | ||
618 | |||
619 | pinctrl-names = "default"; | ||
620 | pinctrl-0 = <&as3722_default>; | ||
621 | |||
622 | as3722_default: pinmux { | ||
623 | gpio0 { | ||
624 | pins = "gpio0"; | ||
625 | function = "gpio"; | ||
626 | bias-pull-down; | ||
627 | }; | ||
628 | |||
629 | gpio1_2_4_7 { | ||
630 | pins = "gpio1", "gpio2", "gpio4", "gpio7"; | ||
631 | function = "gpio"; | ||
632 | bias-pull-up; | ||
633 | }; | ||
634 | |||
635 | gpio3_6 { | ||
636 | pins = "gpio3", "gpio6"; | ||
637 | bias-high-impedance; | ||
638 | }; | ||
639 | |||
640 | gpio5 { | ||
641 | pins = "gpio5"; | ||
642 | function = "clk32k-out"; | ||
643 | }; | ||
644 | }; | ||
645 | |||
646 | regulators { | ||
647 | vsup-sd2-supply = <&vdd_ac_bat_reg>; | ||
648 | vsup-sd3-supply = <&vdd_ac_bat_reg>; | ||
649 | vsup-sd4-supply = <&vdd_ac_bat_reg>; | ||
650 | vsup-sd5-supply = <&vdd_ac_bat_reg>; | ||
651 | vin-ldo0-supply = <&as3722_sd2>; | ||
652 | vin-ldo1-6-supply = <&vdd_ac_bat_reg>; | ||
653 | vin-ldo2-5-7-supply = <&as3722_sd5>; | ||
654 | vin-ldo3-4-supply = <&vdd_ac_bat_reg>; | ||
655 | vin-ldo9-10-supply = <&vdd_ac_bat_reg>; | ||
656 | vin-ldo11-supply = <&vdd_ac_bat_reg>; | ||
657 | |||
658 | sd0 { | ||
659 | regulator-name = "vdd-cpu"; | ||
660 | regulator-min-microvolt = <700000>; | ||
661 | regulator-max-microvolt = <1400000>; | ||
662 | regulator-min-microamp = <3500000>; | ||
663 | regulator-max-microamp = <3500000>; | ||
664 | regulator-always-on; | ||
665 | regulator-boot-on; | ||
666 | ams,external-control = <2>; | ||
667 | }; | ||
668 | |||
669 | sd1 { | ||
670 | regulator-name = "vdd-core"; | ||
671 | regulator-min-microvolt = <700000>; | ||
672 | regulator-max-microvolt = <1350000>; | ||
673 | regulator-min-microamp = <2500000>; | ||
674 | regulator-max-microamp = <2500000>; | ||
675 | regulator-always-on; | ||
676 | regulator-boot-on; | ||
677 | ams,external-control = <1>; | ||
678 | }; | ||
679 | |||
680 | as3722_sd2: sd2 { | ||
681 | regulator-name = "vddio-ddr"; | ||
682 | regulator-min-microvolt = <1350000>; | ||
683 | regulator-max-microvolt = <1350000>; | ||
684 | regulator-always-on; | ||
685 | regulator-boot-on; | ||
686 | }; | ||
687 | |||
688 | sd3 { | ||
689 | regulator-name = "vddio-ddr-2phase"; | ||
690 | regulator-min-microvolt = <1350000>; | ||
691 | regulator-max-microvolt = <1350000>; | ||
692 | regulator-always-on; | ||
693 | regulator-boot-on; | ||
694 | }; | ||
695 | |||
696 | sd4 { | ||
697 | regulator-name = "avdd-pex-sata"; | ||
698 | regulator-min-microvolt = <1050000>; | ||
699 | regulator-max-microvolt = <1050000>; | ||
700 | regulator-boot-on; | ||
701 | regulator-always-on; | ||
702 | }; | ||
703 | |||
704 | as3722_sd5: sd5 { | ||
705 | regulator-name = "vddio-sys"; | ||
706 | regulator-min-microvolt = <1800000>; | ||
707 | regulator-max-microvolt = <1800000>; | ||
708 | regulator-boot-on; | ||
709 | regulator-always-on; | ||
710 | }; | ||
711 | |||
712 | sd6 { | ||
713 | regulator-name = "vdd-gpu"; | ||
714 | regulator-min-microvolt = <650000>; | ||
715 | regulator-max-microvolt = <1200000>; | ||
716 | regulator-min-microamp = <3500000>; | ||
717 | regulator-max-microamp = <3500000>; | ||
718 | regulator-boot-on; | ||
719 | regulator-always-on; | ||
720 | }; | ||
721 | |||
722 | ldo0 { | ||
723 | regulator-name = "avdd_pll"; | ||
724 | regulator-min-microvolt = <1050000>; | ||
725 | regulator-max-microvolt = <1050000>; | ||
726 | regulator-boot-on; | ||
727 | regulator-always-on; | ||
728 | ams,external-control = <1>; | ||
729 | }; | ||
730 | |||
731 | ldo1 { | ||
732 | regulator-name = "run-cam-1.8"; | ||
733 | regulator-min-microvolt = <1800000>; | ||
734 | regulator-max-microvolt = <1800000>; | ||
735 | }; | ||
736 | |||
737 | ldo2 { | ||
738 | regulator-name = "gen-avdd,vddio-hsic"; | ||
739 | regulator-min-microvolt = <1200000>; | ||
740 | regulator-max-microvolt = <1200000>; | ||
741 | regulator-boot-on; | ||
742 | regulator-always-on; | ||
743 | }; | ||
744 | |||
745 | ldo3 { | ||
746 | regulator-name = "vdd-rtc"; | ||
747 | regulator-min-microvolt = <1000000>; | ||
748 | regulator-max-microvolt = <1000000>; | ||
749 | regulator-boot-on; | ||
750 | regulator-always-on; | ||
751 | ams,enable-tracking; | ||
752 | }; | ||
753 | |||
754 | ldo4 { | ||
755 | regulator-name = "vdd-cam"; | ||
756 | regulator-min-microvolt = <2800000>; | ||
757 | regulator-max-microvolt = <2800000>; | ||
758 | regulator-boot-on; | ||
759 | regulator-always-on; | ||
760 | }; | ||
761 | |||
762 | ldo5 { | ||
763 | regulator-name = "vdd-cam-front"; | ||
764 | regulator-min-microvolt = <1200000>; | ||
765 | regulator-max-microvolt = <1200000>; | ||
766 | }; | ||
767 | |||
768 | ldo6 { | ||
769 | regulator-name = "vddio-sdmmc3"; | ||
770 | regulator-min-microvolt = <1800000>; | ||
771 | regulator-max-microvolt = <3300000>; | ||
772 | regulator-boot-on; | ||
773 | regulator-always-on; | ||
774 | }; | ||
775 | |||
776 | ldo7 { | ||
777 | regulator-name = "vdd-cam-rear"; | ||
778 | regulator-min-microvolt = <1050000>; | ||
779 | regulator-max-microvolt = <1050000>; | ||
780 | }; | ||
781 | |||
782 | ldo9 { | ||
783 | regulator-name = "vdd-touch"; | ||
784 | regulator-min-microvolt = <2800000>; | ||
785 | regulator-max-microvolt = <2800000>; | ||
786 | }; | ||
787 | |||
788 | ldo10 { | ||
789 | regulator-name = "vdd-cam-af"; | ||
790 | regulator-min-microvolt = <2800000>; | ||
791 | regulator-max-microvolt = <2800000>; | ||
792 | }; | ||
793 | |||
794 | ldo11 { | ||
795 | regulator-name = "vpp-fuse"; | ||
796 | regulator-min-microvolt = <1800000>; | ||
797 | regulator-max-microvolt = <1800000>; | ||
798 | }; | ||
799 | }; | ||
800 | }; | ||
607 | }; | 801 | }; |
608 | 802 | ||
609 | pmc@7000e400 { | 803 | pmc@7000e400 { |
@@ -648,6 +842,107 @@ | |||
648 | }; | 842 | }; |
649 | }; | 843 | }; |
650 | 844 | ||
845 | regulators { | ||
846 | compatible = "simple-bus"; | ||
847 | #address-cells = <1>; | ||
848 | #size-cells = <0>; | ||
849 | |||
850 | vdd_ac_bat_reg: regulator@0 { | ||
851 | compatible = "regulator-fixed"; | ||
852 | reg = <0>; | ||
853 | regulator-name = "vdd_ac_bat"; | ||
854 | regulator-min-microvolt = <5000000>; | ||
855 | regulator-max-microvolt = <5000000>; | ||
856 | regulator-always-on; | ||
857 | }; | ||
858 | |||
859 | vdd_3v3_reg: regulator@1 { | ||
860 | compatible = "regulator-fixed"; | ||
861 | reg = <1>; | ||
862 | regulator-name = "vdd_3v3"; | ||
863 | regulator-min-microvolt = <3300000>; | ||
864 | regulator-max-microvolt = <3300000>; | ||
865 | regulator-always-on; | ||
866 | regulator-boot-on; | ||
867 | enable-active-high; | ||
868 | gpio = <&as3722 1 GPIO_ACTIVE_HIGH>; | ||
869 | }; | ||
870 | |||
871 | vdd_3v3_modem_reg: regulator@2 { | ||
872 | compatible = "regulator-fixed"; | ||
873 | reg = <2>; | ||
874 | regulator-name = "vdd-modem-3v3"; | ||
875 | regulator-min-microvolt = <3300000>; | ||
876 | regulator-max-microvolt = <3300000>; | ||
877 | enable-active-high; | ||
878 | gpio = <&as3722 2 GPIO_ACTIVE_HIGH>; | ||
879 | }; | ||
880 | |||
881 | vdd_hdmi_5v0_reg: regulator@3 { | ||
882 | compatible = "regulator-fixed"; | ||
883 | reg = <3>; | ||
884 | regulator-name = "vdd-hdmi-5v0"; | ||
885 | regulator-min-microvolt = <5000000>; | ||
886 | regulator-max-microvolt = <5000000>; | ||
887 | enable-active-high; | ||
888 | gpio = <&gpio TEGRA_GPIO(K, 6) GPIO_ACTIVE_HIGH>; | ||
889 | }; | ||
890 | |||
891 | vdd_bl_reg: regulator@4 { | ||
892 | compatible = "regulator-fixed"; | ||
893 | reg = <4>; | ||
894 | regulator-name = "vdd-bl"; | ||
895 | regulator-min-microvolt = <3300000>; | ||
896 | regulator-max-microvolt = <3300000>; | ||
897 | gpio = <&gpio TEGRA_GPIO(P, 2) GPIO_ACTIVE_LOW>; | ||
898 | }; | ||
899 | |||
900 | vdd_ts_sw_5v0: regulator@5 { | ||
901 | compatible = "regulator-fixed"; | ||
902 | reg = <5>; | ||
903 | regulator-name = "vdd_ts_sw"; | ||
904 | regulator-min-microvolt = <5000000>; | ||
905 | regulator-max-microvolt = <5000000>; | ||
906 | enable-active-high; | ||
907 | regulator-boot-on; | ||
908 | gpio = <&gpio TEGRA_GPIO(K, 1) GPIO_ACTIVE_LOW>; | ||
909 | }; | ||
910 | |||
911 | usb1_vbus_reg: regulator@6 { | ||
912 | compatible = "regulator-fixed"; | ||
913 | reg = <6>; | ||
914 | regulator-name = "usb1_vbus"; | ||
915 | regulator-min-microvolt = <5000000>; | ||
916 | regulator-max-microvolt = <5000000>; | ||
917 | regulator-boot-on; | ||
918 | enable-active-high; | ||
919 | gpio = <&gpio TEGRA_GPIO(N, 4) GPIO_ACTIVE_HIGH>; | ||
920 | gpio-open-drain; | ||
921 | }; | ||
922 | |||
923 | usb3_vbus_reg: regulator@7 { | ||
924 | compatible = "regulator-fixed"; | ||
925 | reg = <7>; | ||
926 | regulator-name = "usb3_vbus"; | ||
927 | regulator-min-microvolt = <5000000>; | ||
928 | regulator-max-microvolt = <5000000>; | ||
929 | regulator-boot-on; | ||
930 | enable-active-high; | ||
931 | gpio = <&gpio TEGRA_GPIO(N, 5) GPIO_ACTIVE_HIGH>; | ||
932 | gpio-open-drain; | ||
933 | }; | ||
934 | |||
935 | panel_3v3_reg: regulator@8 { | ||
936 | compatible = "regulator-fixed"; | ||
937 | reg = <8>; | ||
938 | regulator-name = "panel_3v3"; | ||
939 | regulator-min-microvolt = <3300000>; | ||
940 | regulator-max-microvolt = <3300000>; | ||
941 | enable-active-high; | ||
942 | gpio = <&as3722 4 GPIO_ACTIVE_HIGH>; | ||
943 | }; | ||
944 | }; | ||
945 | |||
651 | sound { | 946 | sound { |
652 | compatible = "nvidia,tegra-audio-max98090-venice2", | 947 | compatible = "nvidia,tegra-audio-max98090-venice2", |
653 | "nvidia,tegra-audio-max98090"; | 948 | "nvidia,tegra-audio-max98090"; |