2 * Google Gru (and derivatives) board device tree source
4 * Copyright 2016 Google, Inc
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
11 * a) This file is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of the
14 * License, or (at your option) any later version.
16 * This file is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
23 * b) Permission is hereby granted, free of charge, to any person
24 * obtaining a copy of this software and associated documentation
25 * files (the "Software"), to deal in the Software without
26 * restriction, including without limitation the rights to use,
27 * copy, modify, merge, publish, distribute, sublicense, and/or
28 * sell copies of the Software, and to permit persons to whom the
29 * Software is furnished to do so, subject to the following
32 * The above copyright notice and this permission notice shall be
33 * included in all copies or substantial portions of the Software.
35 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42 * OTHER DEALINGS IN THE SOFTWARE.
45 #include <dt-bindings/pwm/pwm.h>
46 #include "rk3399.dtsi"
52 * In general an attempt is made to include all rails called out by
53 * the schematic as long as those rails interact in some way with
55 * - Rails that only connect to the EC (or devices that the EC talks to)
57 * - Rails _are_ included if the rails go to the AP even if the AP
58 * doesn't currently care about them / they are always on. The idea
59 * here is that it makes it easier to map to the schematic or extend
62 * If two rails are substantially the same from the AP's point of
63 * view, though, we won't create a full fixed regulator. We'll just
64 * put the child rail as an alias of the parent rail. Sometimes rails
65 * look the same to the AP because one of these is true:
66 * - The EC controls the enable and the EC always enables a rail as
67 * long as the AP is running.
68 * - The rails are actually connected to each other by a jumper and
69 * the distinction is just there to add clarity/flexibility to the
73 /* parentless regulators */
75 ppvar_sys: ppvar-sys {
76 compatible = "regulator-fixed";
77 regulator-name = "ppvar_sys";
82 /* ppvar_sys children, sorted by name */
85 compatible = "regulator-fixed";
86 regulator-name = "pp900_ap";
88 /* EC turns on w/ pp900_ap_en; always on for AP */
92 regulator-min-microvolt = <900000>;
93 regulator-max-microvolt = <900000>;
95 vin-supply = <&ppvar_sys>;
98 pp1200_lpddr: pp1200-lpddr {
99 compatible = "regulator-fixed";
100 regulator-name = "pp1200_lpddr";
102 /* EC turns on w/ lpddr_pwr_en; always on for AP */
106 regulator-min-microvolt = <1200000>;
107 regulator-max-microvolt = <1200000>;
109 vin-supply = <&ppvar_sys>;
113 compatible = "regulator-fixed";
114 regulator-name = "pp1800";
116 /* Always on when ppvar_sys shows power good */
120 regulator-min-microvolt = <1800000>;
121 regulator-max-microvolt = <1800000>;
122 vin-supply = <&ppvar_sys>;
126 compatible = "regulator-fixed";
127 regulator-name = "pp3000";
128 pinctrl-names = "default";
129 pinctrl-0 = <&pp3000_en>;
132 gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
137 regulator-min-microvolt = <3000000>;
138 regulator-max-microvolt = <3000000>;
140 vin-supply = <&ppvar_sys>;
144 compatible = "regulator-fixed";
145 regulator-name = "pp3300";
147 /* Always on; plain and simple */
151 regulator-min-microvolt = <3300000>;
152 regulator-max-microvolt = <3300000>;
154 vin-supply = <&ppvar_sys>;
158 compatible = "regulator-fixed";
159 regulator-name = "pp5000";
161 /* EC turns on w/ pp5000_en; always on for AP */
165 regulator-min-microvolt = <5000000>;
166 regulator-max-microvolt = <5000000>;
168 vin-supply = <&ppvar_sys>;
171 ppvar_bigcpu: ppvar-bigcpu {
172 compatible = "pwm-regulator";
173 regulator-name = "ppvar_bigcpu";
176 pwms = <&pwm1 0 3333 0>;
178 // TODO: where's the mapping of duty cycle to voltage???
179 // TODO: we probably need in-flight PWM regulator series?
181 /* EC turns on w/ ap_core_en; always on for AP */
185 regulator-min-microvolt = <800000>;
186 regulator-max-microvolt = <1500000>;
188 vin-supply = <&ppvar_sys>;
191 ppvar_litcpu: ppvar-litcpu {
192 compatible = "pwm-regulator";
193 regulator-name = "ppvar_litcpu";
196 pwms = <&pwm2 0 3333 0>;
198 /* EC turns on w/ ap_core_en; always on for AP */
202 regulator-min-microvolt = <800000>;
203 regulator-max-microvolt = <1500000>;
205 vin-supply = <&ppvar_sys>;
208 ppvar_gpu: ppvar-gpu {
209 compatible = "pwm-regulator";
210 regulator-name = "ppvar_gpu";
213 pwms = <&pwm0 0 3333 0>;
215 /* EC turns on w/ ap_core_en; always on for AP */
219 regulator-min-microvolt = <800000>;
220 regulator-max-microvolt = <1500000>;
222 vin-supply = <&ppvar_sys>;
225 ppvar_centerlogic: ppvar-centerlogic {
226 compatible = "pwm-regulator";
227 regulator-name = "ppvar_centerlogic";
230 pwms = <&pwm3 0 3333 0>;
232 /* EC turns on w/ ppvar_centerlogic_en; always on for AP */
236 regulator-min-microvolt = <800000>;
237 regulator-max-microvolt = <1500000>;
239 vin-supply = <&ppvar_sys>;
242 /* Schematics call this PPVAR even though it's fixed */
243 ppvar_logic: ppvar-logic {
244 compatible = "regulator-fixed";
245 regulator-name = "ppvar_logic";
247 /* EC turns on w/ ppvar_logic_en; always on for AP */
251 regulator-min-microvolt = <900000>;
252 regulator-max-microvolt = <900000>;
254 vin-supply = <&ppvar_sys>;
257 /* pp900_ap aliases; these are always on for AP so just use alias */
259 /* EC turns on w/ pp900_ddrpll_en */
260 pp900_ddrpll: pp900_ap {
263 /* EC turns on w/ pp900_pcie_en */
264 pp900_pcie: pp900_ap {
267 /* EC turns on w/ pp900_pll_en */
268 pp900_pll: pp900_ap {
271 /* EC turns on w/ pp900_pmu_en */
272 pp900_pmu: pp900_ap {
275 /* EC turns on w/ pp900_usb_en */
276 pp900_usb: pp900_ap {
279 /* pp1800 aliases; these are always on for AP so just use alias */
281 /* EC turns on w/ pp1800_s0_en_l */
282 pp1800_ap_io: pp1800_emmc: pp1800_nfc: pp1800_s0: pp1800 {
285 /* EC turns on w/ pp1800_avdd_en_l */
286 pp1800_avdd: pp1800 {
289 /* EC turns on w/ pp1800_lid_en_l */
290 pp1800_lid: pp1800_mic: pp1800 {
293 /* EC turns on w/ lpddr_pwr_en */
294 pp1800_lpddr: pp1800 {
297 /* EC turns on w/ pp1800_pmu_en_l */
301 /* EC turns on w/ pp1800_sensor_en_l */
302 // TODO: Only for EC and things EC talks to I think; remove?
303 pp1800_sensor: pp1800 {
306 /* EC turns on w/ pp1800_usb_en_l */
310 /* pp1800 children */
312 /* EC turns on w/ pp1200_hsic_en */
313 // TODO: Might be removed in future schematics?
314 pp1200_hsic: pp1200-hsic {
315 compatible = "regulator-fixed";
316 regulator-name = "pp1200_hsic";
320 regulator-min-microvolt = <1200000>;
321 regulator-max-microvolt = <1200000>;
323 vin-supply = <&pp1800>;
326 pp1500_ap_io: pp1500-ap-io {
327 compatible = "regulator-fixed";
328 regulator-name = "pp1500_ap_io";
329 pinctrl-names = "default";
330 pinctrl-0 = <&pp1500_en>;
333 gpio = <&gpio1 11 GPIO_ACTIVE_HIGH>;
337 regulator-min-microvolt = <1500000>;
338 regulator-max-microvolt = <1500000>;
340 vin-supply = <&pp1800>; // TODO: DNS for 3.3??
343 pp1800_audio: pp1800-audio {
344 compatible = "regulator-fixed";
345 regulator-name = "pp1800_audio";
346 pinctrl-names = "default";
347 pinctrl-0 = <&pp1800_audio_en>;
353 gpio = <&gpio0 1 GPIO_ACTIVE_HIGH>;
355 vin-supply = <&pp1800>;
358 pp1800_pcie: pp1800-pcie {
359 compatible = "regulator-fixed";
360 regulator-name = "pp1800_pcie";
361 pinctrl-names = "default";
362 pinctrl-0 = <&wlan_module_pd_l>;
364 regulator-always-on; // TODO: for bringup???
365 regulator-boot-on; // TODO: for bringup???
367 gpio = <&gpio0 8 GPIO_ACTIVE_HIGH>;
369 vin-supply = <&pp1800>;
372 /* pp3000 aliases; these are always on for AP so just use alias */
374 /* Always on; plain and simple */
375 pp3000_ap: pp3000_emmc: pp3000 {
378 /* pp3000 children */
380 pp3000_sd_slot: pp3000-sd-slot {
381 compatible = "regulator-fixed";
382 regulator-name = "pp3000_sd_slot";
383 pinctrl-names = "default";
384 pinctrl-0 = <&sd_slot_pwr_en>;
386 // regulator-always-on; // TODO: for bringup???
387 // regulator-boot-on; // TODO: for bringup???
390 gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>;
392 vin-supply = <&pp3000>;
395 ppvar_sd_card_io: ppvar-sd-card-io {
396 compatible = "regulator-gpio";
397 regulator-name = "ppvar_sd_card_io";
398 pinctrl-names = "default";
399 pinctrl-0 = <&sd_io_pwr_en &sd_pwr_1800_sel>;
401 // regulator-always-on; // TODO: for bringup???
402 // regulator-boot-on; // TODO: for bringup???
405 enable-gpio = <&gpio2 2 GPIO_ACTIVE_HIGH>;
406 gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>;
407 states = <1800000 0x1
410 regulator-min-microvolt = <1800000>;
411 regulator-max-microvolt = <3000000>;
413 // TODO: add support in driver for input supplies.
414 // ...and specify pp3000 and pp1800.
417 /* pp3300 aliases; these are always on for AP so just use alias */
419 /* EC turns on w/ pp3300_trackpad_en_l */
420 pp3300_trackpad: pp3300-trackpad {
423 /* EC turns on w/ pp3300_usb_en_l */
427 /* pp3300 children */
429 pp3300_disp: pp3300-disp {
430 compatible = "regulator-fixed";
431 regulator-name = "pp3300_disp";
432 pinctrl-names = "default";
433 pinctrl-0 = <&pp3300_disp_en>;
437 // TODO: for bringup; we should reference (and enable) this
438 // regulator with a panel (?) or backlight (?) driver
442 gpio = <&gpio4 27 GPIO_ACTIVE_HIGH>;
444 vin-supply = <&pp3300>;
447 pp3300_wifi_bt:pp3300-wifi-bt {
448 compatible = "regulator-fixed";
449 regulator-name = "pp3300_wifi_bt";
450 /* NOTE: wlan_module_pd_l pinctrl in pp1800_pcie */
452 regulator-always-on; // TODO: for bringup???
453 regulator-boot-on; // TODO: for bringup???
456 // TODO: I _think_ it's OK to specify the same GPIO in two
457 // regulator-fixed regulators. See pp1800_pcie
458 gpio = <&gpio0 8 GPIO_ACTIVE_HIGH>;
460 vin-supply = <&pp3300>;
467 compatible = "rockchip,rk3399-io-voltage-domain";
468 rockchip,grf = <&grf>;
470 bt656-supply = <&pp1800_ap_io>; /* APIO2_VDD; 2a 2b */
471 audio-supply = <&pp1800_audio>; /* APIO5_VDD; 3d 4a */
472 sdmmc-supply = <&ppvar_sd_card_io>; /* SDMMC0_VDD; 4b */
473 gpio1830-supply = <&pp3000_ap>; /* APIO4_VDD; 4c 4d */
477 compatible = "rockchip,rk3399-pmu-io-voltage-domain";
478 rockchip,grf = <&pmugrf>;
480 pmu1830-supply = <&pp1800_pmu>; /* PMUIO2_VDD */
484 compatible = "rockchip,rockchip-audio-da7219";
485 rockchip,model = "audio-da7219";
486 rockchip,i2s-controller = <&i2s0>;
487 rockchip,audio-codec = <&codec>;
490 backlight: backlight {
491 compatible = "gpio-backlight";
492 pinctrl-names = "default";
493 pinctrl-0 = <&bl_en>;
494 gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
497 edp_panel: edp-panel {
498 compatible = "samsung,lsn122dl01-c01", "panel-simple";
499 backlight = <&backlight>;
500 power-supply = <&pp3300_disp>;
503 panel_in_edp: endpoint {
504 remote-endpoint = <&edp_out_panel>;
511 cpu-supply = <&ppvar_litcpu>;
515 cpu-supply = <&ppvar_litcpu>;
519 cpu-supply = <&ppvar_litcpu>;
523 cpu-supply = <&ppvar_litcpu>;
527 cpu-supply = <&ppvar_bigcpu>;
531 cpu-supply = <&ppvar_bigcpu>;
542 // ...with no speed, it should just use 100kHz
543 // TODO: rise / fall times?
545 // TODO: This is in mainline, but not the Rockchip private kernel
546 // TODO: Need to hook this into the rest of audio stuff...
548 // TODO: any pinctrl needed for this codec???
549 headsetcodec: rt5514@57 {
550 compatible = "realtek,rt5514";
552 pinctrl-names = "default";
553 pinctrl-0 = <&mic_int>;
556 * NOTE: Interrupts aren't part of the binding and driver
557 * doesn't support it, but throw it in anyway.
559 interrupt-parent = <&gpio1>;
560 interrupts = <13 IRQ_TYPE_LEVEL_HIGH>;
568 // ...with no speed, it should just use 100kHz
569 // TODO: rise / fall times?
571 // TODO: Add the proper touchscreen reference...
574 // TODO: Might need to go in sub boards????
579 * Note strange pullup enable. Apparently this avoids leakage but
580 * still allows us to get nice 4.7K pullups for high speed i2c
581 * transfers. Basically we want the pullup on whenever the ap is
582 * alive, so the "en" pin just gets set to output high.
584 pinctrl-0 = <&i2c5_xfer &ap_i2c_tp_pu_en>;
589 // ...with no speed, it should just use 100kHz
590 // TODO: rise / fall times?
592 // TODO: Add the proper touchpanel reference...
595 ap_i2c_audio: &i2c8 {
599 // ...with no speed, it should just use 100kHz
600 // TODO: rise / fall times?
601 // ...on gru-gru this is on a sub board, so expect bad rise/fall times
603 // TODO: copied from sample. Double-check...
605 compatible = "dlg,da7219";
608 pinctrl-names = "default";
609 pinctrl-0 = <&headset_int_l>;
611 interrupt-parent = <&gpio1>;
612 interrupts = <23 IRQ_TYPE_LEVEL_LOW>;
614 VDD-supply = <&pp1800>;
615 VDDMIC-supply = <&pp3300>;
616 VDDIO-supply = <&pp1800>;
618 // TODO: I THINK this is right, but it's a bit of a guess.
619 clocks = <&cru SCLK_I2S_8CH_OUT>;
620 clock-names = "mclk";
622 // Below is from bindings; we need to adjust for our SoC / board.
623 dlg,ldo-lvl = <1200>;
624 dlg,micbias-lvl = <2600>;
625 dlg,mic-amp-in-sel = "diff";
629 dlg,mic-det-thr = <500>;
630 dlg,jack-ins-deb = <20>;
631 dlg,jack-det-rate = "32ms_64ms";
632 dlg,jack-rem-deb = <1>;
634 dlg,a-d-btn-thr = <0xa>;
635 dlg,d-b-btn-thr = <0x16>;
636 dlg,b-c-btn-thr = <0x21>;
637 dlg,c-mic-btn-thr = <0x3E>;
640 dlg,adc-1bit-rpt = <1>;
668 // HACK: supports-emmc is not mainline.
671 // HACK: limit to 50MHz to avoid tuning during bringup.
672 max-frequency = <50000000>;
682 vmmc-supply = <&pp3000>;
683 vqmmc-supply = <&pp1800_emmc>;
690 * Note: configure "sdmmc_cd" as card detect even though it's actually
691 * hooked to ground. Because we specified "cd-gpios" below dw_mmc
692 * should be ignoring card detect anyway. Specifying the pin as
693 * sdmmc_cd means that even if you've got GRF_SOC_CON7[12] (force_jtag)
694 * turned on that the system will still make sure the port is
695 * configured as SDMMC and not JTAG.
697 pinctrl-names = "default";
698 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_cd_gpio
701 // HACK: supports-sd is not in mainline.
704 // HACK: Limit freq for now
705 // ...as of 160330 confirmed that things break if you remove this.
706 clock-frequency = <37500000>;
707 clock-freq-min-max = <400000 37500000>;
710 cd-gpios = <&gpio4 26 GPIO_ACTIVE_LOW>;
716 // TODO: enable once tested...
722 // Comment out until we turn on gpio-regulator config
723 vmmc-supply = <&pp3000_sd_slot>;
724 vqmmc-supply = <&ppvar_sd_card_io>;
730 // TODO: more properly. Hacky spidev for now???
732 // - We either have a Haven here or a Infineon SLB9670. The SLB9670
733 // is supposed to be a fallback if Haven is broken.
734 // - Either TPM is supposed to be TPM 2.0 hooked up to SPI. I see some
735 // kernel support for TPM 2.0 on x86 (hooked up with ACPI) but no
736 // generic way to say "we have a SPI TPM 2.0". We'll need to add
737 // a driver for whichever way we go.
738 // - wfrichar@ says that for Haven if it has gone to sleep we might
739 // need to add a delay after asserting chip select. Presumably
740 // haven-specific driver will need to handle this logic (keeping
741 // track when we last talked and adding an extra delay if it's been
744 compatible = "spidev";
745 // TODO: can run faster once verified.
746 // TODO: add rx-sample-delay-ns.
747 spi-max-frequency = <10000000>;
755 // TODO: Ideally we want to use MTD for this, but presumably
756 // we'll wait until we can test it and also bring it up in our
759 compatible = "spidev";
760 // TODO: can run faster once verified.
761 // TODO: add rx-sample-delay-ns.
762 spi-max-frequency = <10000000>;
770 // TODO: more properly. Hacky spidev for now???
772 compatible = "spidev";
774 // TODO: can run faster once verified.
775 // TODO: add rx-sample-delay-ns.
776 spi-max-frequency = <10000000>;
785 compatible = "google,cros-ec-spi";
787 pinctrl-names = "default";
788 pinctrl-0 = <&ec_ap_int_l>;
790 google,cros-ec-spi-pre-delay = <30>; // TODO: check
791 interrupt-parent = <&gpio0>;
792 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
793 spi-max-frequency = <3000000>; // TODO: check; TODO: rx-sample-delay-ns?
795 i2c_tunnel: i2c-tunnel {
796 compatible = "google,cros-ec-i2c-tunnel";
797 google,remote-bus = <0>;
798 #address-cells = <1>;
805 // - double-check that hw-tshut-mode is same as EVB
806 // - double check that hw-tshut-polarity is the same as EVB
810 rockchip,hw-tshut-mode = <1>; /* tshut mode 0:CRU 1:GPIO */
811 rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */
840 dr_mode = "host"; // TODO: needed?
849 dr_mode = "host"; // TODO: needed?
858 #address-cells = <1>;
861 edp_out_panel: endpoint@0 {
863 remote-endpoint = <&panel_in_edp>;
887 ports = <&vopb_out>, <&vopl_out>;
891 mali-supply = <&ppvar_gpu>;
895 /* HACKS: Poorly formatted on purpose so you know they're hacks */
897 /* HACK THE PWM REGULATOR OUT
899 * We'll hack them all to pretend they are fixed regulators
900 * and at exactly .9V, which is where cpufreq wants them.
902 * We'll also set all PWMs to disabled so we know that the PWM
903 * framework won't touch them.
905 * This relies on PWM clock being a critical clock.
908 compatible = "regulator-fixed";
909 regulator-min-microvolt = <900000>;
910 regulator-max-microvolt = <900000>;
914 compatible = "regulator-fixed";
915 regulator-min-microvolt = <900000>;
916 regulator-max-microvolt = <900000>;
920 compatible = "regulator-fixed";
921 regulator-min-microvolt = <900000>;
922 regulator-max-microvolt = <900000>;
926 compatible = "regulator-fixed";
927 regulator-min-microvolt = <900000>;
928 regulator-max-microvolt = <900000>;
948 /* PINCTRL: always below everything else */
951 pcfg_output_high: pcfg-output-high {
956 ec_ap_int_l: ec-ap-int-l {
957 rockchip,pins = <0 2 RK_FUNC_GPIO &pcfg_pull_up>;
961 discrete-regulators {
962 pp1500_en: pp1500-en {
963 rockchip,pins = <RK_GPIO1 11 RK_FUNC_GPIO
967 pp1800_audio_en: pp1800-audio-en {
968 rockchip,pins = <RK_GPIO0 1 RK_FUNC_GPIO
972 pp3300_disp_en: pp3300-disp-en {
973 rockchip,pins = <RK_GPIO4 27 RK_FUNC_GPIO
977 pp3000_en: pp3000-en {
978 rockchip,pins = <RK_GPIO1 12 RK_FUNC_GPIO
982 sd_io_pwr_en: sd-io-pwr-en {
983 rockchip,pins = <RK_GPIO2 2 RK_FUNC_GPIO
987 sd_pwr_1800_sel: sd-pwr-1800-sel {
988 rockchip,pins = <RK_GPIO2 28 RK_FUNC_GPIO
992 sd_slot_pwr_en: sd-slot-pwr-en {
993 rockchip,pins = <RK_GPIO4 29 RK_FUNC_GPIO
997 wlan_module_pd_l: wlan-module-pd-l {
998 rockchip,pins = <RK_GPIO0 8 RK_FUNC_GPIO
1004 /* Has external pullup */
1005 headset_int_l: headset-int-l {
1006 rockchip,pins = <1 23 RK_FUNC_GPIO &pcfg_pull_none>;
1009 // TODO: check pull. From signal name assume active high.
1011 rockchip,pins = <1 13 RK_FUNC_GPIO &pcfg_pull_down>;
1017 * We have external pulls on SDMMC, so diable internals
1020 * - On veyron we found that we needed to drive at 8mA. Do we
1021 * need to that here? If so, 8mA or 12mA?
1023 sdmmc_bus4: sdmmc-bus4 {
1025 <4 8 RK_FUNC_1 &pcfg_pull_none>,
1026 <4 9 RK_FUNC_1 &pcfg_pull_none>,
1027 <4 10 RK_FUNC_1 &pcfg_pull_none>,
1028 <4 11 RK_FUNC_1 &pcfg_pull_none>;
1031 sdmmc_clk: sdmmc-clk {
1033 <4 12 RK_FUNC_1 &pcfg_pull_none>;
1036 sdmmc_cmd: sdmmc-cmd {
1038 <4 13 RK_FUNC_1 &pcfg_pull_none>;
1042 * In our case the official card detect is hooked to ground
1043 * to avoid getting access to JTAG just by sticking something
1044 * in the SD card slot (see the force_jtag bit in the TRM).
1046 * We still configure it as card detect because it doesn't
1047 * hurt and dw_mmc will ignore it. We make sure to disable
1048 * the pull though so we don't burn needless power.
1050 sdmmc_cd: sdmcc-cd {
1052 <0 7 RK_FUNC_1 &pcfg_pull_none>;
1055 /* This is where we actually hook up CD; has external pull */
1056 sdmmc_cd_gpio: sdmmc-cd-gpio {
1057 rockchip,pins = <4 26 RK_FUNC_GPIO &pcfg_pull_none>;
1062 ap_i2c_tp_pu_en: ap-i2c-tp-pu-en {
1063 rockchip,pins = <3 12 RK_FUNC_GPIO &pcfg_output_high>;
1069 rockchip,pins = <1 17 RK_FUNC_GPIO &pcfg_pull_none>;
1074 /* DON'T PUT ANYTHING BELOW HERE. PUT IT ABOVE PINCTRL */
1075 /* DON'T PUT ANYTHING BELOW HERE. PUT IT ABOVE PINCTRL */
1076 /* DON'T PUT ANYTHING BELOW HERE. PUT IT ABOVE PINCTRL */