diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2015-03-18 05:52:17 -0400 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2015-03-24 05:51:18 -0400 |
commit | 53d02858bce5eadd3882dcb83441b01d3511f486 (patch) | |
tree | badba291b0c906bc1e0d749a8e1cb82dcbe09caa | |
parent | 412e575dec93b91a2a1ee30ee47b7ddb742679a0 (diff) |
ARM: tegra: Move generic parts out of the nyan-big DT
In preparation for adding the DT for the nyan-blaze board.
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r-- | arch/arm/boot/dts/tegra124-nyan-big.dts | 689 | ||||
-rw-r--r-- | arch/arm/boot/dts/tegra124-nyan.dtsi | 672 |
2 files changed, 685 insertions, 676 deletions
diff --git a/arch/arm/boot/dts/tegra124-nyan-big.dts b/arch/arm/boot/dts/tegra124-nyan-big.dts index e167df2723e2..3995630b117c 100644 --- a/arch/arm/boot/dts/tegra124-nyan-big.dts +++ b/arch/arm/boot/dts/tegra124-nyan-big.dts | |||
@@ -1,46 +1,27 @@ | |||
1 | /dts-v1/; | 1 | /dts-v1/; |
2 | 2 | ||
3 | #include <dt-bindings/input/input.h> | 3 | #include "tegra124-nyan.dtsi" |
4 | #include "tegra124.dtsi" | ||
5 | 4 | ||
6 | / { | 5 | / { |
7 | model = "Acer Chromebook 13 CB5-311"; | 6 | model = "Acer Chromebook 13 CB5-311"; |
8 | compatible = "google,nyan-big", "nvidia,tegra124"; | 7 | compatible = "google,nyan-big", "nvidia,tegra124"; |
9 | 8 | ||
10 | aliases { | 9 | panel: panel { |
11 | rtc0 = "/i2c@0,7000d000/pmic@40"; | 10 | compatible = "auo,b133xtn01"; |
12 | rtc1 = "/rtc@0,7000e000"; | ||
13 | serial0 = &uarta; | ||
14 | }; | ||
15 | 11 | ||
16 | memory { | 12 | backlight = <&backlight>; |
17 | reg = <0x0 0x80000000 0x0 0x80000000>; | 13 | ddc-i2c-bus = <&dpaux>; |
18 | }; | 14 | }; |
19 | 15 | ||
20 | host1x@0,50000000 { | 16 | sdhci@0,700b0400 { /* SD Card on this bus */ |
21 | hdmi@0,54280000 { | 17 | wp-gpios = <&gpio TEGRA_GPIO(Q, 4) GPIO_ACTIVE_LOW>; |
22 | status = "okay"; | 18 | }; |
23 | |||
24 | vdd-supply = <&vdd_3v3_hdmi>; | ||
25 | pll-supply = <&vdd_hdmi_pll>; | ||
26 | hdmi-supply = <&vdd_5v0_hdmi>; | ||
27 | |||
28 | nvidia,ddc-i2c-bus = <&hdmi_ddc>; | ||
29 | nvidia,hpd-gpio = | ||
30 | <&gpio TEGRA_GPIO(N, 7) GPIO_ACTIVE_HIGH>; | ||
31 | }; | ||
32 | |||
33 | sor@0,54540000 { | ||
34 | status = "okay"; | ||
35 | |||
36 | nvidia,dpaux = <&dpaux>; | ||
37 | nvidia,panel = <&panel>; | ||
38 | }; | ||
39 | 19 | ||
40 | dpaux@0,545c0000 { | 20 | sound { |
41 | vdd-supply = <&vdd_3v3_panel>; | 21 | compatible = "nvidia,tegra-audio-max98090-nyan-big", |
42 | status = "okay"; | 22 | "nvidia,tegra-audio-max98090-nyan", |
43 | }; | 23 | "nvidia,tegra-audio-max98090"; |
24 | nvidia,model = "GoogleNyanBig"; | ||
44 | }; | 25 | }; |
45 | 26 | ||
46 | pinmux@0,70000868 { | 27 | pinmux@0,70000868 { |
@@ -492,648 +473,4 @@ | |||
492 | }; | 473 | }; |
493 | }; | 474 | }; |
494 | }; | 475 | }; |
495 | |||
496 | serial@0,70006000 { | ||
497 | /* Debug connector on the bottom of the board near SD card. */ | ||
498 | status = "okay"; | ||
499 | }; | ||
500 | |||
501 | pwm@0,7000a000 { | ||
502 | status = "okay"; | ||
503 | }; | ||
504 | |||
505 | i2c@0,7000c000 { | ||
506 | status = "okay"; | ||
507 | clock-frequency = <100000>; | ||
508 | |||
509 | acodec: audio-codec@10 { | ||
510 | compatible = "maxim,max98090"; | ||
511 | reg = <0x10>; | ||
512 | interrupt-parent = <&gpio>; | ||
513 | interrupts = <TEGRA_GPIO(H, 4) GPIO_ACTIVE_HIGH>; | ||
514 | }; | ||
515 | |||
516 | temperature-sensor@4c { | ||
517 | compatible = "ti,tmp451"; | ||
518 | reg = <0x4c>; | ||
519 | interrupt-parent = <&gpio>; | ||
520 | interrupts = <TEGRA_GPIO(I, 6) IRQ_TYPE_LEVEL_LOW>; | ||
521 | |||
522 | #thermal-sensor-cells = <1>; | ||
523 | }; | ||
524 | }; | ||
525 | |||
526 | i2c@0,7000c400 { | ||
527 | status = "okay"; | ||
528 | clock-frequency = <100000>; | ||
529 | }; | ||
530 | |||
531 | i2c@0,7000c500 { | ||
532 | status = "okay"; | ||
533 | clock-frequency = <400000>; | ||
534 | |||
535 | tpm@20 { | ||
536 | compatible = "infineon,slb9645tt"; | ||
537 | reg = <0x20>; | ||
538 | }; | ||
539 | }; | ||
540 | |||
541 | hdmi_ddc: i2c@0,7000c700 { | ||
542 | status = "okay"; | ||
543 | clock-frequency = <100000>; | ||
544 | }; | ||
545 | |||
546 | i2c@0,7000d000 { | ||
547 | status = "okay"; | ||
548 | clock-frequency = <400000>; | ||
549 | |||
550 | pmic: pmic@40 { | ||
551 | compatible = "ams,as3722"; | ||
552 | reg = <0x40>; | ||
553 | interrupts = <0 86 IRQ_TYPE_LEVEL_HIGH>; | ||
554 | |||
555 | ams,system-power-controller; | ||
556 | |||
557 | #interrupt-cells = <2>; | ||
558 | interrupt-controller; | ||
559 | |||
560 | gpio-controller; | ||
561 | #gpio-cells = <2>; | ||
562 | |||
563 | pinctrl-names = "default"; | ||
564 | pinctrl-0 = <&as3722_default>; | ||
565 | |||
566 | as3722_default: pinmux { | ||
567 | gpio0 { | ||
568 | pins = "gpio0"; | ||
569 | function = "gpio"; | ||
570 | bias-pull-down; | ||
571 | }; | ||
572 | |||
573 | gpio1 { | ||
574 | pins = "gpio1"; | ||
575 | function = "gpio"; | ||
576 | bias-pull-up; | ||
577 | }; | ||
578 | |||
579 | gpio2_4_7 { | ||
580 | pins = "gpio2", "gpio4", "gpio7"; | ||
581 | function = "gpio"; | ||
582 | bias-pull-up; | ||
583 | }; | ||
584 | |||
585 | gpio3_6 { | ||
586 | pins = "gpio3", "gpio6"; | ||
587 | bias-high-impedance; | ||
588 | }; | ||
589 | |||
590 | gpio5 { | ||
591 | pins = "gpio5"; | ||
592 | function = "clk32k-out"; | ||
593 | bias-pull-down; | ||
594 | }; | ||
595 | }; | ||
596 | |||
597 | regulators { | ||
598 | vsup-sd2-supply = <&vdd_5v0_sys>; | ||
599 | vsup-sd3-supply = <&vdd_5v0_sys>; | ||
600 | vsup-sd4-supply = <&vdd_5v0_sys>; | ||
601 | vsup-sd5-supply = <&vdd_5v0_sys>; | ||
602 | vin-ldo0-supply = <&vdd_1v35_lp0>; | ||
603 | vin-ldo1-6-supply = <&vdd_3v3_run>; | ||
604 | vin-ldo2-5-7-supply = <&vddio_1v8>; | ||
605 | vin-ldo3-4-supply = <&vdd_3v3_sys>; | ||
606 | vin-ldo9-10-supply = <&vdd_5v0_sys>; | ||
607 | vin-ldo11-supply = <&vdd_3v3_run>; | ||
608 | |||
609 | sd0 { | ||
610 | regulator-name = "+VDD_CPU_AP"; | ||
611 | regulator-min-microvolt = <700000>; | ||
612 | regulator-max-microvolt = <1350000>; | ||
613 | regulator-min-microamp = <3500000>; | ||
614 | regulator-max-microamp = <3500000>; | ||
615 | regulator-always-on; | ||
616 | regulator-boot-on; | ||
617 | ams,ext-control = <2>; | ||
618 | }; | ||
619 | |||
620 | sd1 { | ||
621 | regulator-name = "+VDD_CORE"; | ||
622 | regulator-min-microvolt = <700000>; | ||
623 | regulator-max-microvolt = <1350000>; | ||
624 | regulator-min-microamp = <2500000>; | ||
625 | regulator-max-microamp = <4000000>; | ||
626 | regulator-always-on; | ||
627 | regulator-boot-on; | ||
628 | ams,ext-control = <1>; | ||
629 | }; | ||
630 | |||
631 | vdd_1v35_lp0: sd2 { | ||
632 | regulator-name = "+1.35V_LP0(sd2)"; | ||
633 | regulator-min-microvolt = <1350000>; | ||
634 | regulator-max-microvolt = <1350000>; | ||
635 | regulator-always-on; | ||
636 | regulator-boot-on; | ||
637 | }; | ||
638 | |||
639 | sd3 { | ||
640 | regulator-name = "+1.35V_LP0(sd3)"; | ||
641 | regulator-min-microvolt = <1350000>; | ||
642 | regulator-max-microvolt = <1350000>; | ||
643 | regulator-always-on; | ||
644 | regulator-boot-on; | ||
645 | }; | ||
646 | |||
647 | vdd_1v05_run: sd4 { | ||
648 | regulator-name = "+1.05V_RUN"; | ||
649 | regulator-min-microvolt = <1050000>; | ||
650 | regulator-max-microvolt = <1050000>; | ||
651 | }; | ||
652 | |||
653 | vddio_1v8: sd5 { | ||
654 | regulator-name = "+1.8V_VDDIO"; | ||
655 | regulator-min-microvolt = <1800000>; | ||
656 | regulator-max-microvolt = <1800000>; | ||
657 | regulator-boot-on; | ||
658 | regulator-always-on; | ||
659 | }; | ||
660 | |||
661 | sd6 { | ||
662 | regulator-name = "+VDD_GPU_AP"; | ||
663 | regulator-min-microvolt = <650000>; | ||
664 | regulator-max-microvolt = <1200000>; | ||
665 | regulator-min-microamp = <3500000>; | ||
666 | regulator-max-microamp = <3500000>; | ||
667 | regulator-boot-on; | ||
668 | regulator-always-on; | ||
669 | }; | ||
670 | |||
671 | ldo0 { | ||
672 | regulator-name = "+1.05V_RUN_AVDD"; | ||
673 | regulator-min-microvolt = <1050000>; | ||
674 | regulator-max-microvolt = <1050000>; | ||
675 | regulator-boot-on; | ||
676 | regulator-always-on; | ||
677 | ams,ext-control = <1>; | ||
678 | }; | ||
679 | |||
680 | ldo1 { | ||
681 | regulator-name = "+1.8V_RUN_CAM"; | ||
682 | regulator-min-microvolt = <1800000>; | ||
683 | regulator-max-microvolt = <1800000>; | ||
684 | }; | ||
685 | |||
686 | ldo2 { | ||
687 | regulator-name = "+1.2V_GEN_AVDD"; | ||
688 | regulator-min-microvolt = <1200000>; | ||
689 | regulator-max-microvolt = <1200000>; | ||
690 | regulator-boot-on; | ||
691 | regulator-always-on; | ||
692 | }; | ||
693 | |||
694 | ldo3 { | ||
695 | regulator-name = "+1.00V_LP0_VDD_RTC"; | ||
696 | regulator-min-microvolt = <1000000>; | ||
697 | regulator-max-microvolt = <1000000>; | ||
698 | regulator-boot-on; | ||
699 | regulator-always-on; | ||
700 | ams,enable-tracking; | ||
701 | }; | ||
702 | |||
703 | vdd_run_cam: ldo4 { | ||
704 | regulator-name = "+3.3V_RUN_CAM"; | ||
705 | regulator-min-microvolt = <2800000>; | ||
706 | regulator-max-microvolt = <2800000>; | ||
707 | }; | ||
708 | |||
709 | ldo5 { | ||
710 | regulator-name = "+1.2V_RUN_CAM_FRONT"; | ||
711 | regulator-min-microvolt = <1200000>; | ||
712 | regulator-max-microvolt = <1200000>; | ||
713 | }; | ||
714 | |||
715 | vddio_sdmmc3: ldo6 { | ||
716 | regulator-name = "+VDDIO_SDMMC3"; | ||
717 | regulator-min-microvolt = <1800000>; | ||
718 | regulator-max-microvolt = <3300000>; | ||
719 | }; | ||
720 | |||
721 | ldo7 { | ||
722 | regulator-name = "+1.05V_RUN_CAM_REAR"; | ||
723 | regulator-min-microvolt = <1050000>; | ||
724 | regulator-max-microvolt = <1050000>; | ||
725 | }; | ||
726 | |||
727 | ldo9 { | ||
728 | regulator-name = "+2.8V_RUN_TOUCH"; | ||
729 | regulator-min-microvolt = <2800000>; | ||
730 | regulator-max-microvolt = <2800000>; | ||
731 | }; | ||
732 | |||
733 | ldo10 { | ||
734 | regulator-name = "+2.8V_RUN_CAM_AF"; | ||
735 | regulator-min-microvolt = <2800000>; | ||
736 | regulator-max-microvolt = <2800000>; | ||
737 | }; | ||
738 | |||
739 | ldo11 { | ||
740 | regulator-name = "+1.8V_RUN_VPP_FUSE"; | ||
741 | regulator-min-microvolt = <1800000>; | ||
742 | regulator-max-microvolt = <1800000>; | ||
743 | }; | ||
744 | }; | ||
745 | }; | ||
746 | }; | ||
747 | |||
748 | spi@0,7000d400 { | ||
749 | status = "okay"; | ||
750 | |||
751 | cros_ec: cros-ec@0 { | ||
752 | compatible = "google,cros-ec-spi"; | ||
753 | spi-max-frequency = <3000000>; | ||
754 | interrupt-parent = <&gpio>; | ||
755 | interrupts = <TEGRA_GPIO(C, 7) IRQ_TYPE_LEVEL_LOW>; | ||
756 | reg = <0>; | ||
757 | |||
758 | google,cros-ec-spi-msg-delay = <2000>; | ||
759 | |||
760 | i2c-tunnel { | ||
761 | compatible = "google,cros-ec-i2c-tunnel"; | ||
762 | #address-cells = <1>; | ||
763 | #size-cells = <0>; | ||
764 | |||
765 | google,remote-bus = <0>; | ||
766 | |||
767 | charger: bq24735@9 { | ||
768 | compatible = "ti,bq24735"; | ||
769 | reg = <0x9>; | ||
770 | interrupt-parent = <&gpio>; | ||
771 | interrupts = <TEGRA_GPIO(J, 0) | ||
772 | GPIO_ACTIVE_HIGH>; | ||
773 | ti,ac-detect-gpios = <&gpio | ||
774 | TEGRA_GPIO(J, 0) | ||
775 | GPIO_ACTIVE_HIGH>; | ||
776 | }; | ||
777 | |||
778 | battery: sbs-battery@b { | ||
779 | compatible = "sbs,sbs-battery"; | ||
780 | reg = <0xb>; | ||
781 | sbs,i2c-retry-count = <2>; | ||
782 | sbs,poll-retry-count = <10>; | ||
783 | power-supplies = <&charger>; | ||
784 | }; | ||
785 | }; | ||
786 | }; | ||
787 | }; | ||
788 | |||
789 | spi@0,7000da00 { | ||
790 | status = "okay"; | ||
791 | spi-max-frequency = <25000000>; | ||
792 | |||
793 | flash@0 { | ||
794 | compatible = "winbond,w25q32dw"; | ||
795 | reg = <0>; | ||
796 | }; | ||
797 | }; | ||
798 | |||
799 | pmc@0,7000e400 { | ||
800 | nvidia,invert-interrupt; | ||
801 | nvidia,suspend-mode = <0>; | ||
802 | nvidia,cpu-pwr-good-time = <500>; | ||
803 | nvidia,cpu-pwr-off-time = <300>; | ||
804 | nvidia,core-pwr-good-time = <641 3845>; | ||
805 | nvidia,core-pwr-off-time = <61036>; | ||
806 | nvidia,core-power-req-active-high; | ||
807 | nvidia,sys-clock-req-active-high; | ||
808 | }; | ||
809 | |||
810 | hda@0,70030000 { | ||
811 | status = "okay"; | ||
812 | }; | ||
813 | |||
814 | sdhci@0,700b0000 { /* WiFi/BT on this bus */ | ||
815 | status = "okay"; | ||
816 | power-gpios = <&gpio TEGRA_GPIO(X, 7) GPIO_ACTIVE_HIGH>; | ||
817 | bus-width = <4>; | ||
818 | no-1-8-v; | ||
819 | non-removable; | ||
820 | }; | ||
821 | |||
822 | sdhci@0,700b0400 { /* SD Card on this bus */ | ||
823 | status = "okay"; | ||
824 | cd-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>; | ||
825 | power-gpios = <&gpio TEGRA_GPIO(R, 0) GPIO_ACTIVE_HIGH>; | ||
826 | wp-gpios = <&gpio TEGRA_GPIO(Q, 4) GPIO_ACTIVE_LOW>; | ||
827 | bus-width = <4>; | ||
828 | no-1-8-v; | ||
829 | vqmmc-supply = <&vddio_sdmmc3>; | ||
830 | }; | ||
831 | |||
832 | sdhci@0,700b0600 { /* eMMC on this bus */ | ||
833 | status = "okay"; | ||
834 | bus-width = <8>; | ||
835 | no-1-8-v; | ||
836 | non-removable; | ||
837 | }; | ||
838 | |||
839 | ahub@0,70300000 { | ||
840 | i2s@0,70301100 { | ||
841 | status = "okay"; | ||
842 | }; | ||
843 | }; | ||
844 | |||
845 | usb@0,7d000000 { /* Rear external USB port. */ | ||
846 | status = "okay"; | ||
847 | }; | ||
848 | |||
849 | usb-phy@0,7d000000 { | ||
850 | status = "okay"; | ||
851 | vbus-supply = <&vdd_usb1_vbus>; | ||
852 | }; | ||
853 | |||
854 | usb@0,7d004000 { /* Internal webcam. */ | ||
855 | status = "okay"; | ||
856 | }; | ||
857 | |||
858 | usb-phy@0,7d004000 { | ||
859 | status = "okay"; | ||
860 | vbus-supply = <&vdd_run_cam>; | ||
861 | }; | ||
862 | |||
863 | usb@0,7d008000 { /* Left external USB port. */ | ||
864 | status = "okay"; | ||
865 | }; | ||
866 | |||
867 | usb-phy@0,7d008000 { | ||
868 | status = "okay"; | ||
869 | vbus-supply = <&vdd_usb3_vbus>; | ||
870 | }; | ||
871 | |||
872 | backlight: backlight { | ||
873 | compatible = "pwm-backlight"; | ||
874 | |||
875 | enable-gpios = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>; | ||
876 | power-supply = <&vdd_led>; | ||
877 | pwms = <&pwm 1 1000000>; | ||
878 | |||
879 | default-brightness-level = <224>; | ||
880 | brightness-levels = | ||
881 | < 0 1 2 3 4 5 6 7 | ||
882 | 8 9 10 11 12 13 14 15 | ||
883 | 16 17 18 19 20 21 22 23 | ||
884 | 24 25 26 27 28 29 30 31 | ||
885 | 32 33 34 35 36 37 38 39 | ||
886 | 40 41 42 43 44 45 46 47 | ||
887 | 48 49 50 51 52 53 54 55 | ||
888 | 56 57 58 59 60 61 62 63 | ||
889 | 64 65 66 67 68 69 70 71 | ||
890 | 72 73 74 75 76 77 78 79 | ||
891 | 80 81 82 83 84 85 86 87 | ||
892 | 88 89 90 91 92 93 94 95 | ||
893 | 96 97 98 99 100 101 102 103 | ||
894 | 104 105 106 107 108 109 110 111 | ||
895 | 112 113 114 115 116 117 118 119 | ||
896 | 120 121 122 123 124 125 126 127 | ||
897 | 128 129 130 131 132 133 134 135 | ||
898 | 136 137 138 139 140 141 142 143 | ||
899 | 144 145 146 147 148 149 150 151 | ||
900 | 152 153 154 155 156 157 158 159 | ||
901 | 160 161 162 163 164 165 166 167 | ||
902 | 168 169 170 171 172 173 174 175 | ||
903 | 176 177 178 179 180 181 182 183 | ||
904 | 184 185 186 187 188 189 190 191 | ||
905 | 192 193 194 195 196 197 198 199 | ||
906 | 200 201 202 203 204 205 206 207 | ||
907 | 208 209 210 211 212 213 214 215 | ||
908 | 216 217 218 219 220 221 222 223 | ||
909 | 224 225 226 227 228 229 230 231 | ||
910 | 232 233 234 235 236 237 238 239 | ||
911 | 240 241 242 243 244 245 246 247 | ||
912 | 248 249 250 251 252 253 254 255 | ||
913 | 256>; | ||
914 | }; | ||
915 | |||
916 | clocks { | ||
917 | compatible = "simple-bus"; | ||
918 | #address-cells = <1>; | ||
919 | #size-cells = <0>; | ||
920 | |||
921 | clk32k_in: clock@0 { | ||
922 | compatible = "fixed-clock"; | ||
923 | reg = <0>; | ||
924 | #clock-cells = <0>; | ||
925 | clock-frequency = <32768>; | ||
926 | }; | ||
927 | }; | ||
928 | |||
929 | gpio-keys { | ||
930 | compatible = "gpio-keys"; | ||
931 | |||
932 | lid { | ||
933 | label = "Lid"; | ||
934 | gpios = <&gpio TEGRA_GPIO(R, 4) GPIO_ACTIVE_LOW>; | ||
935 | linux,input-type = <5>; | ||
936 | linux,code = <KEY_RESERVED>; | ||
937 | debounce-interval = <1>; | ||
938 | gpio-key,wakeup; | ||
939 | }; | ||
940 | |||
941 | power { | ||
942 | label = "Power"; | ||
943 | gpios = <&gpio TEGRA_GPIO(Q, 0) GPIO_ACTIVE_LOW>; | ||
944 | linux,code = <KEY_POWER>; | ||
945 | debounce-interval = <30>; | ||
946 | gpio-key,wakeup; | ||
947 | }; | ||
948 | }; | ||
949 | |||
950 | panel: panel { | ||
951 | compatible = "auo,b133xtn01"; | ||
952 | |||
953 | backlight = <&backlight>; | ||
954 | ddc-i2c-bus = <&dpaux>; | ||
955 | }; | ||
956 | |||
957 | regulators { | ||
958 | compatible = "simple-bus"; | ||
959 | #address-cells = <1>; | ||
960 | #size-cells = <0>; | ||
961 | |||
962 | vdd_mux: regulator@0 { | ||
963 | compatible = "regulator-fixed"; | ||
964 | reg = <0>; | ||
965 | regulator-name = "+VDD_MUX"; | ||
966 | regulator-min-microvolt = <12000000>; | ||
967 | regulator-max-microvolt = <12000000>; | ||
968 | regulator-always-on; | ||
969 | regulator-boot-on; | ||
970 | }; | ||
971 | |||
972 | vdd_5v0_sys: regulator@1 { | ||
973 | compatible = "regulator-fixed"; | ||
974 | reg = <1>; | ||
975 | regulator-name = "+5V_SYS"; | ||
976 | regulator-min-microvolt = <5000000>; | ||
977 | regulator-max-microvolt = <5000000>; | ||
978 | regulator-always-on; | ||
979 | regulator-boot-on; | ||
980 | vin-supply = <&vdd_mux>; | ||
981 | }; | ||
982 | |||
983 | vdd_3v3_sys: regulator@2 { | ||
984 | compatible = "regulator-fixed"; | ||
985 | reg = <2>; | ||
986 | regulator-name = "+3.3V_SYS"; | ||
987 | regulator-min-microvolt = <3300000>; | ||
988 | regulator-max-microvolt = <3300000>; | ||
989 | regulator-always-on; | ||
990 | regulator-boot-on; | ||
991 | vin-supply = <&vdd_mux>; | ||
992 | }; | ||
993 | |||
994 | vdd_3v3_run: regulator@3 { | ||
995 | compatible = "regulator-fixed"; | ||
996 | reg = <3>; | ||
997 | regulator-name = "+3.3V_RUN"; | ||
998 | regulator-min-microvolt = <3300000>; | ||
999 | regulator-max-microvolt = <3300000>; | ||
1000 | regulator-always-on; | ||
1001 | regulator-boot-on; | ||
1002 | gpio = <&pmic 1 GPIO_ACTIVE_HIGH>; | ||
1003 | enable-active-high; | ||
1004 | vin-supply = <&vdd_3v3_sys>; | ||
1005 | }; | ||
1006 | |||
1007 | vdd_3v3_hdmi: regulator@4 { | ||
1008 | compatible = "regulator-fixed"; | ||
1009 | reg = <4>; | ||
1010 | regulator-name = "+3.3V_AVDD_HDMI_AP_GATED"; | ||
1011 | regulator-min-microvolt = <3300000>; | ||
1012 | regulator-max-microvolt = <3300000>; | ||
1013 | vin-supply = <&vdd_3v3_run>; | ||
1014 | }; | ||
1015 | |||
1016 | vdd_led: regulator@5 { | ||
1017 | compatible = "regulator-fixed"; | ||
1018 | reg = <5>; | ||
1019 | regulator-name = "+VDD_LED"; | ||
1020 | gpio = <&gpio TEGRA_GPIO(P, 2) GPIO_ACTIVE_HIGH>; | ||
1021 | enable-active-high; | ||
1022 | vin-supply = <&vdd_mux>; | ||
1023 | }; | ||
1024 | |||
1025 | vdd_5v0_ts: regulator@6 { | ||
1026 | compatible = "regulator-fixed"; | ||
1027 | reg = <6>; | ||
1028 | regulator-name = "+5V_VDD_TS_SW"; | ||
1029 | regulator-min-microvolt = <5000000>; | ||
1030 | regulator-max-microvolt = <5000000>; | ||
1031 | regulator-boot-on; | ||
1032 | gpio = <&gpio TEGRA_GPIO(K, 1) GPIO_ACTIVE_HIGH>; | ||
1033 | enable-active-high; | ||
1034 | vin-supply = <&vdd_5v0_sys>; | ||
1035 | }; | ||
1036 | |||
1037 | vdd_usb1_vbus: regulator@7 { | ||
1038 | compatible = "regulator-fixed"; | ||
1039 | reg = <7>; | ||
1040 | regulator-name = "+5V_USB_HS"; | ||
1041 | regulator-min-microvolt = <5000000>; | ||
1042 | regulator-max-microvolt = <5000000>; | ||
1043 | gpio = <&gpio TEGRA_GPIO(N, 4) GPIO_ACTIVE_HIGH>; | ||
1044 | enable-active-high; | ||
1045 | gpio-open-drain; | ||
1046 | vin-supply = <&vdd_5v0_sys>; | ||
1047 | }; | ||
1048 | |||
1049 | vdd_usb3_vbus: regulator@8 { | ||
1050 | compatible = "regulator-fixed"; | ||
1051 | reg = <8>; | ||
1052 | regulator-name = "+5V_USB_SS"; | ||
1053 | regulator-min-microvolt = <5000000>; | ||
1054 | regulator-max-microvolt = <5000000>; | ||
1055 | gpio = <&gpio TEGRA_GPIO(N, 5) GPIO_ACTIVE_HIGH>; | ||
1056 | enable-active-high; | ||
1057 | gpio-open-drain; | ||
1058 | vin-supply = <&vdd_5v0_sys>; | ||
1059 | }; | ||
1060 | |||
1061 | vdd_3v3_panel: regulator@9 { | ||
1062 | compatible = "regulator-fixed"; | ||
1063 | reg = <9>; | ||
1064 | regulator-name = "+3.3V_PANEL"; | ||
1065 | regulator-min-microvolt = <3300000>; | ||
1066 | regulator-max-microvolt = <3300000>; | ||
1067 | gpio = <&pmic 4 GPIO_ACTIVE_HIGH>; | ||
1068 | enable-active-high; | ||
1069 | vin-supply = <&vdd_3v3_run>; | ||
1070 | }; | ||
1071 | |||
1072 | vdd_3v3_lp0: regulator@10 { | ||
1073 | compatible = "regulator-fixed"; | ||
1074 | reg = <10>; | ||
1075 | regulator-name = "+3.3V_LP0"; | ||
1076 | regulator-min-microvolt = <3300000>; | ||
1077 | regulator-max-microvolt = <3300000>; | ||
1078 | /* | ||
1079 | * TODO: find a way to wire this up with the USB EHCI | ||
1080 | * controllers so that it can be enabled on demand. | ||
1081 | */ | ||
1082 | regulator-always-on; | ||
1083 | gpio = <&pmic 2 GPIO_ACTIVE_HIGH>; | ||
1084 | enable-active-high; | ||
1085 | vin-supply = <&vdd_3v3_sys>; | ||
1086 | }; | ||
1087 | |||
1088 | vdd_hdmi_pll: regulator@11 { | ||
1089 | compatible = "regulator-fixed"; | ||
1090 | reg = <11>; | ||
1091 | regulator-name = "+1.05V_RUN_AVDD_HDMI_PLL"; | ||
1092 | regulator-min-microvolt = <1050000>; | ||
1093 | regulator-max-microvolt = <1050000>; | ||
1094 | gpio = <&gpio TEGRA_GPIO(H, 7) GPIO_ACTIVE_LOW>; | ||
1095 | vin-supply = <&vdd_1v05_run>; | ||
1096 | }; | ||
1097 | |||
1098 | vdd_5v0_hdmi: regulator@12 { | ||
1099 | compatible = "regulator-fixed"; | ||
1100 | reg = <12>; | ||
1101 | regulator-name = "+5V_HDMI_CON"; | ||
1102 | regulator-min-microvolt = <5000000>; | ||
1103 | regulator-max-microvolt = <5000000>; | ||
1104 | gpio = <&gpio TEGRA_GPIO(K, 6) GPIO_ACTIVE_HIGH>; | ||
1105 | enable-active-high; | ||
1106 | vin-supply = <&vdd_5v0_sys>; | ||
1107 | }; | ||
1108 | }; | ||
1109 | |||
1110 | sound { | ||
1111 | compatible = "nvidia,tegra-audio-max98090-nyan-big", | ||
1112 | "nvidia,tegra-audio-max98090"; | ||
1113 | nvidia,model = "GoogleNyanBig"; | ||
1114 | |||
1115 | nvidia,audio-routing = | ||
1116 | "Headphones", "HPR", | ||
1117 | "Headphones", "HPL", | ||
1118 | "Speakers", "SPKR", | ||
1119 | "Speakers", "SPKL", | ||
1120 | "Mic Jack", "MICBIAS", | ||
1121 | "DMICL", "Int Mic", | ||
1122 | "DMICR", "Int Mic", | ||
1123 | "IN34", "Mic Jack"; | ||
1124 | |||
1125 | nvidia,i2s-controller = <&tegra_i2s1>; | ||
1126 | nvidia,audio-codec = <&acodec>; | ||
1127 | |||
1128 | clocks = <&tegra_car TEGRA124_CLK_PLL_A>, | ||
1129 | <&tegra_car TEGRA124_CLK_PLL_A_OUT0>, | ||
1130 | <&tegra_car TEGRA124_CLK_EXTERN1>; | ||
1131 | clock-names = "pll_a", "pll_a_out0", "mclk"; | ||
1132 | |||
1133 | nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(I, 7) GPIO_ACTIVE_HIGH>; | ||
1134 | nvidia,mic-det-gpios = | ||
1135 | <&gpio TEGRA_GPIO(R, 7) GPIO_ACTIVE_HIGH>; | ||
1136 | }; | ||
1137 | }; | 476 | }; |
1138 | |||
1139 | #include "cros-ec-keyboard.dtsi" | ||
diff --git a/arch/arm/boot/dts/tegra124-nyan.dtsi b/arch/arm/boot/dts/tegra124-nyan.dtsi new file mode 100644 index 000000000000..c0ee53f324e0 --- /dev/null +++ b/arch/arm/boot/dts/tegra124-nyan.dtsi | |||
@@ -0,0 +1,672 @@ | |||
1 | #include <dt-bindings/input/input.h> | ||
2 | #include "tegra124.dtsi" | ||
3 | |||
4 | / { | ||
5 | aliases { | ||
6 | rtc0 = "/i2c@0,7000d000/pmic@40"; | ||
7 | rtc1 = "/rtc@0,7000e000"; | ||
8 | serial0 = &uarta; | ||
9 | }; | ||
10 | |||
11 | memory { | ||
12 | reg = <0x0 0x80000000 0x0 0x80000000>; | ||
13 | }; | ||
14 | |||
15 | host1x@0,50000000 { | ||
16 | hdmi@0,54280000 { | ||
17 | status = "okay"; | ||
18 | |||
19 | vdd-supply = <&vdd_3v3_hdmi>; | ||
20 | pll-supply = <&vdd_hdmi_pll>; | ||
21 | hdmi-supply = <&vdd_5v0_hdmi>; | ||
22 | |||
23 | nvidia,ddc-i2c-bus = <&hdmi_ddc>; | ||
24 | nvidia,hpd-gpio = | ||
25 | <&gpio TEGRA_GPIO(N, 7) GPIO_ACTIVE_HIGH>; | ||
26 | }; | ||
27 | |||
28 | sor@0,54540000 { | ||
29 | status = "okay"; | ||
30 | |||
31 | nvidia,dpaux = <&dpaux>; | ||
32 | nvidia,panel = <&panel>; | ||
33 | }; | ||
34 | |||
35 | dpaux@0,545c0000 { | ||
36 | vdd-supply = <&vdd_3v3_panel>; | ||
37 | status = "okay"; | ||
38 | }; | ||
39 | }; | ||
40 | |||
41 | serial@0,70006000 { | ||
42 | /* Debug connector on the bottom of the board near SD card. */ | ||
43 | status = "okay"; | ||
44 | }; | ||
45 | |||
46 | pwm@0,7000a000 { | ||
47 | status = "okay"; | ||
48 | }; | ||
49 | |||
50 | i2c@0,7000c000 { | ||
51 | status = "okay"; | ||
52 | clock-frequency = <100000>; | ||
53 | |||
54 | acodec: audio-codec@10 { | ||
55 | compatible = "maxim,max98090"; | ||
56 | reg = <0x10>; | ||
57 | interrupt-parent = <&gpio>; | ||
58 | interrupts = <TEGRA_GPIO(H, 4) GPIO_ACTIVE_HIGH>; | ||
59 | }; | ||
60 | |||
61 | temperature-sensor@4c { | ||
62 | compatible = "ti,tmp451"; | ||
63 | reg = <0x4c>; | ||
64 | interrupt-parent = <&gpio>; | ||
65 | interrupts = <TEGRA_GPIO(I, 6) IRQ_TYPE_LEVEL_LOW>; | ||
66 | |||
67 | #thermal-sensor-cells = <1>; | ||
68 | }; | ||
69 | }; | ||
70 | |||
71 | i2c@0,7000c400 { | ||
72 | status = "okay"; | ||
73 | clock-frequency = <100000>; | ||
74 | }; | ||
75 | |||
76 | i2c@0,7000c500 { | ||
77 | status = "okay"; | ||
78 | clock-frequency = <400000>; | ||
79 | |||
80 | tpm@20 { | ||
81 | compatible = "infineon,slb9645tt"; | ||
82 | reg = <0x20>; | ||
83 | }; | ||
84 | }; | ||
85 | |||
86 | hdmi_ddc: i2c@0,7000c700 { | ||
87 | status = "okay"; | ||
88 | clock-frequency = <100000>; | ||
89 | }; | ||
90 | |||
91 | i2c@0,7000d000 { | ||
92 | status = "okay"; | ||
93 | clock-frequency = <400000>; | ||
94 | |||
95 | pmic: pmic@40 { | ||
96 | compatible = "ams,as3722"; | ||
97 | reg = <0x40>; | ||
98 | interrupts = <0 86 IRQ_TYPE_LEVEL_HIGH>; | ||
99 | |||
100 | ams,system-power-controller; | ||
101 | |||
102 | #interrupt-cells = <2>; | ||
103 | interrupt-controller; | ||
104 | |||
105 | gpio-controller; | ||
106 | #gpio-cells = <2>; | ||
107 | |||
108 | pinctrl-names = "default"; | ||
109 | pinctrl-0 = <&as3722_default>; | ||
110 | |||
111 | as3722_default: pinmux { | ||
112 | gpio0 { | ||
113 | pins = "gpio0"; | ||
114 | function = "gpio"; | ||
115 | bias-pull-down; | ||
116 | }; | ||
117 | |||
118 | gpio1 { | ||
119 | pins = "gpio1"; | ||
120 | function = "gpio"; | ||
121 | bias-pull-up; | ||
122 | }; | ||
123 | |||
124 | gpio2_4_7 { | ||
125 | pins = "gpio2", "gpio4", "gpio7"; | ||
126 | function = "gpio"; | ||
127 | bias-pull-up; | ||
128 | }; | ||
129 | |||
130 | gpio3_6 { | ||
131 | pins = "gpio3", "gpio6"; | ||
132 | bias-high-impedance; | ||
133 | }; | ||
134 | |||
135 | gpio5 { | ||
136 | pins = "gpio5"; | ||
137 | function = "clk32k-out"; | ||
138 | bias-pull-down; | ||
139 | }; | ||
140 | }; | ||
141 | |||
142 | regulators { | ||
143 | vsup-sd2-supply = <&vdd_5v0_sys>; | ||
144 | vsup-sd3-supply = <&vdd_5v0_sys>; | ||
145 | vsup-sd4-supply = <&vdd_5v0_sys>; | ||
146 | vsup-sd5-supply = <&vdd_5v0_sys>; | ||
147 | vin-ldo0-supply = <&vdd_1v35_lp0>; | ||
148 | vin-ldo1-6-supply = <&vdd_3v3_run>; | ||
149 | vin-ldo2-5-7-supply = <&vddio_1v8>; | ||
150 | vin-ldo3-4-supply = <&vdd_3v3_sys>; | ||
151 | vin-ldo9-10-supply = <&vdd_5v0_sys>; | ||
152 | vin-ldo11-supply = <&vdd_3v3_run>; | ||
153 | |||
154 | sd0 { | ||
155 | regulator-name = "+VDD_CPU_AP"; | ||
156 | regulator-min-microvolt = <700000>; | ||
157 | regulator-max-microvolt = <1350000>; | ||
158 | regulator-min-microamp = <3500000>; | ||
159 | regulator-max-microamp = <3500000>; | ||
160 | regulator-always-on; | ||
161 | regulator-boot-on; | ||
162 | ams,ext-control = <2>; | ||
163 | }; | ||
164 | |||
165 | sd1 { | ||
166 | regulator-name = "+VDD_CORE"; | ||
167 | regulator-min-microvolt = <700000>; | ||
168 | regulator-max-microvolt = <1350000>; | ||
169 | regulator-min-microamp = <2500000>; | ||
170 | regulator-max-microamp = <4000000>; | ||
171 | regulator-always-on; | ||
172 | regulator-boot-on; | ||
173 | ams,ext-control = <1>; | ||
174 | }; | ||
175 | |||
176 | vdd_1v35_lp0: sd2 { | ||
177 | regulator-name = "+1.35V_LP0(sd2)"; | ||
178 | regulator-min-microvolt = <1350000>; | ||
179 | regulator-max-microvolt = <1350000>; | ||
180 | regulator-always-on; | ||
181 | regulator-boot-on; | ||
182 | }; | ||
183 | |||
184 | sd3 { | ||
185 | regulator-name = "+1.35V_LP0(sd3)"; | ||
186 | regulator-min-microvolt = <1350000>; | ||
187 | regulator-max-microvolt = <1350000>; | ||
188 | regulator-always-on; | ||
189 | regulator-boot-on; | ||
190 | }; | ||
191 | |||
192 | vdd_1v05_run: sd4 { | ||
193 | regulator-name = "+1.05V_RUN"; | ||
194 | regulator-min-microvolt = <1050000>; | ||
195 | regulator-max-microvolt = <1050000>; | ||
196 | }; | ||
197 | |||
198 | vddio_1v8: sd5 { | ||
199 | regulator-name = "+1.8V_VDDIO"; | ||
200 | regulator-min-microvolt = <1800000>; | ||
201 | regulator-max-microvolt = <1800000>; | ||
202 | regulator-boot-on; | ||
203 | regulator-always-on; | ||
204 | }; | ||
205 | |||
206 | sd6 { | ||
207 | regulator-name = "+VDD_GPU_AP"; | ||
208 | regulator-min-microvolt = <650000>; | ||
209 | regulator-max-microvolt = <1200000>; | ||
210 | regulator-min-microamp = <3500000>; | ||
211 | regulator-max-microamp = <3500000>; | ||
212 | regulator-boot-on; | ||
213 | regulator-always-on; | ||
214 | }; | ||
215 | |||
216 | ldo0 { | ||
217 | regulator-name = "+1.05V_RUN_AVDD"; | ||
218 | regulator-min-microvolt = <1050000>; | ||
219 | regulator-max-microvolt = <1050000>; | ||
220 | regulator-boot-on; | ||
221 | regulator-always-on; | ||
222 | ams,ext-control = <1>; | ||
223 | }; | ||
224 | |||
225 | ldo1 { | ||
226 | regulator-name = "+1.8V_RUN_CAM"; | ||
227 | regulator-min-microvolt = <1800000>; | ||
228 | regulator-max-microvolt = <1800000>; | ||
229 | }; | ||
230 | |||
231 | ldo2 { | ||
232 | regulator-name = "+1.2V_GEN_AVDD"; | ||
233 | regulator-min-microvolt = <1200000>; | ||
234 | regulator-max-microvolt = <1200000>; | ||
235 | regulator-boot-on; | ||
236 | regulator-always-on; | ||
237 | }; | ||
238 | |||
239 | ldo3 { | ||
240 | regulator-name = "+1.00V_LP0_VDD_RTC"; | ||
241 | regulator-min-microvolt = <1000000>; | ||
242 | regulator-max-microvolt = <1000000>; | ||
243 | regulator-boot-on; | ||
244 | regulator-always-on; | ||
245 | ams,enable-tracking; | ||
246 | }; | ||
247 | |||
248 | vdd_run_cam: ldo4 { | ||
249 | regulator-name = "+3.3V_RUN_CAM"; | ||
250 | regulator-min-microvolt = <2800000>; | ||
251 | regulator-max-microvolt = <2800000>; | ||
252 | }; | ||
253 | |||
254 | ldo5 { | ||
255 | regulator-name = "+1.2V_RUN_CAM_FRONT"; | ||
256 | regulator-min-microvolt = <1200000>; | ||
257 | regulator-max-microvolt = <1200000>; | ||
258 | }; | ||
259 | |||
260 | vddio_sdmmc3: ldo6 { | ||
261 | regulator-name = "+VDDIO_SDMMC3"; | ||
262 | regulator-min-microvolt = <1800000>; | ||
263 | regulator-max-microvolt = <3300000>; | ||
264 | }; | ||
265 | |||
266 | ldo7 { | ||
267 | regulator-name = "+1.05V_RUN_CAM_REAR"; | ||
268 | regulator-min-microvolt = <1050000>; | ||
269 | regulator-max-microvolt = <1050000>; | ||
270 | }; | ||
271 | |||
272 | ldo9 { | ||
273 | regulator-name = "+2.8V_RUN_TOUCH"; | ||
274 | regulator-min-microvolt = <2800000>; | ||
275 | regulator-max-microvolt = <2800000>; | ||
276 | }; | ||
277 | |||
278 | ldo10 { | ||
279 | regulator-name = "+2.8V_RUN_CAM_AF"; | ||
280 | regulator-min-microvolt = <2800000>; | ||
281 | regulator-max-microvolt = <2800000>; | ||
282 | }; | ||
283 | |||
284 | ldo11 { | ||
285 | regulator-name = "+1.8V_RUN_VPP_FUSE"; | ||
286 | regulator-min-microvolt = <1800000>; | ||
287 | regulator-max-microvolt = <1800000>; | ||
288 | }; | ||
289 | }; | ||
290 | }; | ||
291 | }; | ||
292 | |||
293 | spi@0,7000d400 { | ||
294 | status = "okay"; | ||
295 | |||
296 | cros_ec: cros-ec@0 { | ||
297 | compatible = "google,cros-ec-spi"; | ||
298 | spi-max-frequency = <3000000>; | ||
299 | interrupt-parent = <&gpio>; | ||
300 | interrupts = <TEGRA_GPIO(C, 7) IRQ_TYPE_LEVEL_LOW>; | ||
301 | reg = <0>; | ||
302 | |||
303 | google,cros-ec-spi-msg-delay = <2000>; | ||
304 | |||
305 | i2c-tunnel { | ||
306 | compatible = "google,cros-ec-i2c-tunnel"; | ||
307 | #address-cells = <1>; | ||
308 | #size-cells = <0>; | ||
309 | |||
310 | google,remote-bus = <0>; | ||
311 | |||
312 | charger: bq24735@9 { | ||
313 | compatible = "ti,bq24735"; | ||
314 | reg = <0x9>; | ||
315 | interrupt-parent = <&gpio>; | ||
316 | interrupts = <TEGRA_GPIO(J, 0) | ||
317 | GPIO_ACTIVE_HIGH>; | ||
318 | ti,ac-detect-gpios = <&gpio | ||
319 | TEGRA_GPIO(J, 0) | ||
320 | GPIO_ACTIVE_HIGH>; | ||
321 | }; | ||
322 | |||
323 | battery: sbs-battery@b { | ||
324 | compatible = "sbs,sbs-battery"; | ||
325 | reg = <0xb>; | ||
326 | sbs,i2c-retry-count = <2>; | ||
327 | sbs,poll-retry-count = <10>; | ||
328 | power-supplies = <&charger>; | ||
329 | }; | ||
330 | }; | ||
331 | }; | ||
332 | }; | ||
333 | |||
334 | spi@0,7000da00 { | ||
335 | status = "okay"; | ||
336 | spi-max-frequency = <25000000>; | ||
337 | |||
338 | flash@0 { | ||
339 | compatible = "winbond,w25q32dw"; | ||
340 | reg = <0>; | ||
341 | }; | ||
342 | }; | ||
343 | |||
344 | pmc@0,7000e400 { | ||
345 | nvidia,invert-interrupt; | ||
346 | nvidia,suspend-mode = <0>; | ||
347 | nvidia,cpu-pwr-good-time = <500>; | ||
348 | nvidia,cpu-pwr-off-time = <300>; | ||
349 | nvidia,core-pwr-good-time = <641 3845>; | ||
350 | nvidia,core-pwr-off-time = <61036>; | ||
351 | nvidia,core-power-req-active-high; | ||
352 | nvidia,sys-clock-req-active-high; | ||
353 | }; | ||
354 | |||
355 | hda@0,70030000 { | ||
356 | status = "okay"; | ||
357 | }; | ||
358 | |||
359 | sdhci@0,700b0000 { /* WiFi/BT on this bus */ | ||
360 | status = "okay"; | ||
361 | power-gpios = <&gpio TEGRA_GPIO(X, 7) GPIO_ACTIVE_HIGH>; | ||
362 | bus-width = <4>; | ||
363 | no-1-8-v; | ||
364 | non-removable; | ||
365 | }; | ||
366 | |||
367 | sdhci@0,700b0400 { /* SD Card on this bus */ | ||
368 | status = "okay"; | ||
369 | cd-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>; | ||
370 | power-gpios = <&gpio TEGRA_GPIO(R, 0) GPIO_ACTIVE_HIGH>; | ||
371 | bus-width = <4>; | ||
372 | no-1-8-v; | ||
373 | vqmmc-supply = <&vddio_sdmmc3>; | ||
374 | }; | ||
375 | |||
376 | sdhci@0,700b0600 { /* eMMC on this bus */ | ||
377 | status = "okay"; | ||
378 | bus-width = <8>; | ||
379 | no-1-8-v; | ||
380 | non-removable; | ||
381 | }; | ||
382 | |||
383 | ahub@0,70300000 { | ||
384 | i2s@0,70301100 { | ||
385 | status = "okay"; | ||
386 | }; | ||
387 | }; | ||
388 | |||
389 | usb@0,7d000000 { /* Rear external USB port. */ | ||
390 | status = "okay"; | ||
391 | }; | ||
392 | |||
393 | usb-phy@0,7d000000 { | ||
394 | status = "okay"; | ||
395 | vbus-supply = <&vdd_usb1_vbus>; | ||
396 | }; | ||
397 | |||
398 | usb@0,7d004000 { /* Internal webcam. */ | ||
399 | status = "okay"; | ||
400 | }; | ||
401 | |||
402 | usb-phy@0,7d004000 { | ||
403 | status = "okay"; | ||
404 | vbus-supply = <&vdd_run_cam>; | ||
405 | }; | ||
406 | |||
407 | usb@0,7d008000 { /* Left external USB port. */ | ||
408 | status = "okay"; | ||
409 | }; | ||
410 | |||
411 | usb-phy@0,7d008000 { | ||
412 | status = "okay"; | ||
413 | vbus-supply = <&vdd_usb3_vbus>; | ||
414 | }; | ||
415 | |||
416 | backlight: backlight { | ||
417 | compatible = "pwm-backlight"; | ||
418 | |||
419 | enable-gpios = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>; | ||
420 | power-supply = <&vdd_led>; | ||
421 | pwms = <&pwm 1 1000000>; | ||
422 | |||
423 | default-brightness-level = <224>; | ||
424 | brightness-levels = | ||
425 | < 0 1 2 3 4 5 6 7 | ||
426 | 8 9 10 11 12 13 14 15 | ||
427 | 16 17 18 19 20 21 22 23 | ||
428 | 24 25 26 27 28 29 30 31 | ||
429 | 32 33 34 35 36 37 38 39 | ||
430 | 40 41 42 43 44 45 46 47 | ||
431 | 48 49 50 51 52 53 54 55 | ||
432 | 56 57 58 59 60 61 62 63 | ||
433 | 64 65 66 67 68 69 70 71 | ||
434 | 72 73 74 75 76 77 78 79 | ||
435 | 80 81 82 83 84 85 86 87 | ||
436 | 88 89 90 91 92 93 94 95 | ||
437 | 96 97 98 99 100 101 102 103 | ||
438 | 104 105 106 107 108 109 110 111 | ||
439 | 112 113 114 115 116 117 118 119 | ||
440 | 120 121 122 123 124 125 126 127 | ||
441 | 128 129 130 131 132 133 134 135 | ||
442 | 136 137 138 139 140 141 142 143 | ||
443 | 144 145 146 147 148 149 150 151 | ||
444 | 152 153 154 155 156 157 158 159 | ||
445 | 160 161 162 163 164 165 166 167 | ||
446 | 168 169 170 171 172 173 174 175 | ||
447 | 176 177 178 179 180 181 182 183 | ||
448 | 184 185 186 187 188 189 190 191 | ||
449 | 192 193 194 195 196 197 198 199 | ||
450 | 200 201 202 203 204 205 206 207 | ||
451 | 208 209 210 211 212 213 214 215 | ||
452 | 216 217 218 219 220 221 222 223 | ||
453 | 224 225 226 227 228 229 230 231 | ||
454 | 232 233 234 235 236 237 238 239 | ||
455 | 240 241 242 243 244 245 246 247 | ||
456 | 248 249 250 251 252 253 254 255 | ||
457 | 256>; | ||
458 | }; | ||
459 | |||
460 | clocks { | ||
461 | compatible = "simple-bus"; | ||
462 | #address-cells = <1>; | ||
463 | #size-cells = <0>; | ||
464 | |||
465 | clk32k_in: clock@0 { | ||
466 | compatible = "fixed-clock"; | ||
467 | reg = <0>; | ||
468 | #clock-cells = <0>; | ||
469 | clock-frequency = <32768>; | ||
470 | }; | ||
471 | }; | ||
472 | |||
473 | gpio-keys { | ||
474 | compatible = "gpio-keys"; | ||
475 | |||
476 | lid { | ||
477 | label = "Lid"; | ||
478 | gpios = <&gpio TEGRA_GPIO(R, 4) GPIO_ACTIVE_LOW>; | ||
479 | linux,input-type = <5>; | ||
480 | linux,code = <KEY_RESERVED>; | ||
481 | debounce-interval = <1>; | ||
482 | gpio-key,wakeup; | ||
483 | }; | ||
484 | |||
485 | power { | ||
486 | label = "Power"; | ||
487 | gpios = <&gpio TEGRA_GPIO(Q, 0) GPIO_ACTIVE_LOW>; | ||
488 | linux,code = <KEY_POWER>; | ||
489 | debounce-interval = <30>; | ||
490 | gpio-key,wakeup; | ||
491 | }; | ||
492 | }; | ||
493 | |||
494 | regulators { | ||
495 | compatible = "simple-bus"; | ||
496 | #address-cells = <1>; | ||
497 | #size-cells = <0>; | ||
498 | |||
499 | vdd_mux: regulator@0 { | ||
500 | compatible = "regulator-fixed"; | ||
501 | reg = <0>; | ||
502 | regulator-name = "+VDD_MUX"; | ||
503 | regulator-min-microvolt = <12000000>; | ||
504 | regulator-max-microvolt = <12000000>; | ||
505 | regulator-always-on; | ||
506 | regulator-boot-on; | ||
507 | }; | ||
508 | |||
509 | vdd_5v0_sys: regulator@1 { | ||
510 | compatible = "regulator-fixed"; | ||
511 | reg = <1>; | ||
512 | regulator-name = "+5V_SYS"; | ||
513 | regulator-min-microvolt = <5000000>; | ||
514 | regulator-max-microvolt = <5000000>; | ||
515 | regulator-always-on; | ||
516 | regulator-boot-on; | ||
517 | vin-supply = <&vdd_mux>; | ||
518 | }; | ||
519 | |||
520 | vdd_3v3_sys: regulator@2 { | ||
521 | compatible = "regulator-fixed"; | ||
522 | reg = <2>; | ||
523 | regulator-name = "+3.3V_SYS"; | ||
524 | regulator-min-microvolt = <3300000>; | ||
525 | regulator-max-microvolt = <3300000>; | ||
526 | regulator-always-on; | ||
527 | regulator-boot-on; | ||
528 | vin-supply = <&vdd_mux>; | ||
529 | }; | ||
530 | |||
531 | vdd_3v3_run: regulator@3 { | ||
532 | compatible = "regulator-fixed"; | ||
533 | reg = <3>; | ||
534 | regulator-name = "+3.3V_RUN"; | ||
535 | regulator-min-microvolt = <3300000>; | ||
536 | regulator-max-microvolt = <3300000>; | ||
537 | regulator-always-on; | ||
538 | regulator-boot-on; | ||
539 | gpio = <&pmic 1 GPIO_ACTIVE_HIGH>; | ||
540 | enable-active-high; | ||
541 | vin-supply = <&vdd_3v3_sys>; | ||
542 | }; | ||
543 | |||
544 | vdd_3v3_hdmi: regulator@4 { | ||
545 | compatible = "regulator-fixed"; | ||
546 | reg = <4>; | ||
547 | regulator-name = "+3.3V_AVDD_HDMI_AP_GATED"; | ||
548 | regulator-min-microvolt = <3300000>; | ||
549 | regulator-max-microvolt = <3300000>; | ||
550 | vin-supply = <&vdd_3v3_run>; | ||
551 | }; | ||
552 | |||
553 | vdd_led: regulator@5 { | ||
554 | compatible = "regulator-fixed"; | ||
555 | reg = <5>; | ||
556 | regulator-name = "+VDD_LED"; | ||
557 | gpio = <&gpio TEGRA_GPIO(P, 2) GPIO_ACTIVE_HIGH>; | ||
558 | enable-active-high; | ||
559 | vin-supply = <&vdd_mux>; | ||
560 | }; | ||
561 | |||
562 | vdd_5v0_ts: regulator@6 { | ||
563 | compatible = "regulator-fixed"; | ||
564 | reg = <6>; | ||
565 | regulator-name = "+5V_VDD_TS_SW"; | ||
566 | regulator-min-microvolt = <5000000>; | ||
567 | regulator-max-microvolt = <5000000>; | ||
568 | regulator-boot-on; | ||
569 | gpio = <&gpio TEGRA_GPIO(K, 1) GPIO_ACTIVE_HIGH>; | ||
570 | enable-active-high; | ||
571 | vin-supply = <&vdd_5v0_sys>; | ||
572 | }; | ||
573 | |||
574 | vdd_usb1_vbus: regulator@7 { | ||
575 | compatible = "regulator-fixed"; | ||
576 | reg = <7>; | ||
577 | regulator-name = "+5V_USB_HS"; | ||
578 | regulator-min-microvolt = <5000000>; | ||
579 | regulator-max-microvolt = <5000000>; | ||
580 | gpio = <&gpio TEGRA_GPIO(N, 4) GPIO_ACTIVE_HIGH>; | ||
581 | enable-active-high; | ||
582 | gpio-open-drain; | ||
583 | vin-supply = <&vdd_5v0_sys>; | ||
584 | }; | ||
585 | |||
586 | vdd_usb3_vbus: regulator@8 { | ||
587 | compatible = "regulator-fixed"; | ||
588 | reg = <8>; | ||
589 | regulator-name = "+5V_USB_SS"; | ||
590 | regulator-min-microvolt = <5000000>; | ||
591 | regulator-max-microvolt = <5000000>; | ||
592 | gpio = <&gpio TEGRA_GPIO(N, 5) GPIO_ACTIVE_HIGH>; | ||
593 | enable-active-high; | ||
594 | gpio-open-drain; | ||
595 | vin-supply = <&vdd_5v0_sys>; | ||
596 | }; | ||
597 | |||
598 | vdd_3v3_panel: regulator@9 { | ||
599 | compatible = "regulator-fixed"; | ||
600 | reg = <9>; | ||
601 | regulator-name = "+3.3V_PANEL"; | ||
602 | regulator-min-microvolt = <3300000>; | ||
603 | regulator-max-microvolt = <3300000>; | ||
604 | gpio = <&pmic 4 GPIO_ACTIVE_HIGH>; | ||
605 | enable-active-high; | ||
606 | vin-supply = <&vdd_3v3_run>; | ||
607 | }; | ||
608 | |||
609 | vdd_3v3_lp0: regulator@10 { | ||
610 | compatible = "regulator-fixed"; | ||
611 | reg = <10>; | ||
612 | regulator-name = "+3.3V_LP0"; | ||
613 | regulator-min-microvolt = <3300000>; | ||
614 | regulator-max-microvolt = <3300000>; | ||
615 | /* | ||
616 | * TODO: find a way to wire this up with the USB EHCI | ||
617 | * controllers so that it can be enabled on demand. | ||
618 | */ | ||
619 | regulator-always-on; | ||
620 | gpio = <&pmic 2 GPIO_ACTIVE_HIGH>; | ||
621 | enable-active-high; | ||
622 | vin-supply = <&vdd_3v3_sys>; | ||
623 | }; | ||
624 | |||
625 | vdd_hdmi_pll: regulator@11 { | ||
626 | compatible = "regulator-fixed"; | ||
627 | reg = <11>; | ||
628 | regulator-name = "+1.05V_RUN_AVDD_HDMI_PLL"; | ||
629 | regulator-min-microvolt = <1050000>; | ||
630 | regulator-max-microvolt = <1050000>; | ||
631 | gpio = <&gpio TEGRA_GPIO(H, 7) GPIO_ACTIVE_LOW>; | ||
632 | vin-supply = <&vdd_1v05_run>; | ||
633 | }; | ||
634 | |||
635 | vdd_5v0_hdmi: regulator@12 { | ||
636 | compatible = "regulator-fixed"; | ||
637 | reg = <12>; | ||
638 | regulator-name = "+5V_HDMI_CON"; | ||
639 | regulator-min-microvolt = <5000000>; | ||
640 | regulator-max-microvolt = <5000000>; | ||
641 | gpio = <&gpio TEGRA_GPIO(K, 6) GPIO_ACTIVE_HIGH>; | ||
642 | enable-active-high; | ||
643 | vin-supply = <&vdd_5v0_sys>; | ||
644 | }; | ||
645 | }; | ||
646 | |||
647 | sound { | ||
648 | nvidia,audio-routing = | ||
649 | "Headphones", "HPR", | ||
650 | "Headphones", "HPL", | ||
651 | "Speakers", "SPKR", | ||
652 | "Speakers", "SPKL", | ||
653 | "Mic Jack", "MICBIAS", | ||
654 | "DMICL", "Int Mic", | ||
655 | "DMICR", "Int Mic", | ||
656 | "IN34", "Mic Jack"; | ||
657 | |||
658 | nvidia,i2s-controller = <&tegra_i2s1>; | ||
659 | nvidia,audio-codec = <&acodec>; | ||
660 | |||
661 | clocks = <&tegra_car TEGRA124_CLK_PLL_A>, | ||
662 | <&tegra_car TEGRA124_CLK_PLL_A_OUT0>, | ||
663 | <&tegra_car TEGRA124_CLK_EXTERN1>; | ||
664 | clock-names = "pll_a", "pll_a_out0", "mclk"; | ||
665 | |||
666 | nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(I, 7) GPIO_ACTIVE_HIGH>; | ||
667 | nvidia,mic-det-gpios = | ||
668 | <&gpio TEGRA_GPIO(R, 7) GPIO_ACTIVE_HIGH>; | ||
669 | }; | ||
670 | }; | ||
671 | |||
672 | #include "cros-ec-keyboard.dtsi" | ||