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/input/input.h>
46 #include <dt-bindings/pwm/pwm.h>
47 #include "rk3399.dtsi"
53 * In general an attempt is made to include all rails called out by
54 * the schematic as long as those rails interact in some way with
56 * - Rails that only connect to the EC (or devices that the EC talks to)
58 * - Rails _are_ included if the rails go to the AP even if the AP
59 * doesn't currently care about them / they are always on. The idea
60 * here is that it makes it easier to map to the schematic or extend
63 * If two rails are substantially the same from the AP's point of
64 * view, though, we won't create a full fixed regulator. We'll just
65 * put the child rail as an alias of the parent rail. Sometimes rails
66 * look the same to the AP because one of these is true:
67 * - The EC controls the enable and the EC always enables a rail as
68 * long as the AP is running.
69 * - The rails are actually connected to each other by a jumper and
70 * the distinction is just there to add clarity/flexibility to the
74 /* parentless regulators */
76 ppvar_sys: ppvar-sys {
77 compatible = "regulator-fixed";
78 regulator-name = "ppvar_sys";
83 /* ppvar_sys children, sorted by name */
86 compatible = "regulator-fixed";
87 regulator-name = "pp900_ap";
89 /* EC turns on w/ pp900_ap_en; always on for AP */
93 regulator-min-microvolt = <900000>;
94 regulator-max-microvolt = <900000>;
96 vin-supply = <&ppvar_sys>;
99 pp1200_lpddr: pp1200-lpddr {
100 compatible = "regulator-fixed";
101 regulator-name = "pp1200_lpddr";
103 /* EC turns on w/ lpddr_pwr_en; always on for AP */
107 regulator-min-microvolt = <1200000>;
108 regulator-max-microvolt = <1200000>;
110 vin-supply = <&ppvar_sys>;
114 compatible = "regulator-fixed";
115 regulator-name = "pp1800";
117 /* Always on when ppvar_sys shows power good */
121 regulator-min-microvolt = <1800000>;
122 regulator-max-microvolt = <1800000>;
123 vin-supply = <&ppvar_sys>;
127 compatible = "regulator-fixed";
128 regulator-name = "pp3000";
129 pinctrl-names = "default";
130 pinctrl-0 = <&pp3000_en>;
133 gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
138 regulator-min-microvolt = <3000000>;
139 regulator-max-microvolt = <3000000>;
141 vin-supply = <&ppvar_sys>;
145 compatible = "regulator-fixed";
146 regulator-name = "pp3300";
148 /* Always on; plain and simple */
152 regulator-min-microvolt = <3300000>;
153 regulator-max-microvolt = <3300000>;
155 vin-supply = <&ppvar_sys>;
159 compatible = "regulator-fixed";
160 regulator-name = "pp5000";
162 /* EC turns on w/ pp5000_en; always on for AP */
166 regulator-min-microvolt = <5000000>;
167 regulator-max-microvolt = <5000000>;
169 vin-supply = <&ppvar_sys>;
172 ppvar_bigcpu: ppvar-bigcpu {
173 compatible = "pwm-regulator";
174 regulator-name = "ppvar_bigcpu";
177 pwms = <&pwm1 0 3333 0>;
179 // TODO: where's the mapping of duty cycle to voltage???
180 // TODO: we probably need in-flight PWM regulator series?
182 /* EC turns on w/ ap_core_en; always on for AP */
186 regulator-min-microvolt = <800000>;
187 regulator-max-microvolt = <1500000>;
189 pwm-supply = <&ppvar_sys>;
192 ppvar_litcpu: ppvar-litcpu {
193 compatible = "pwm-regulator";
194 regulator-name = "ppvar_litcpu";
197 pwms = <&pwm2 0 3333 0>;
199 /* EC turns on w/ ap_core_en; always on for AP */
203 regulator-min-microvolt = <800000>;
204 regulator-max-microvolt = <1500000>;
206 pwm-supply = <&ppvar_sys>;
209 ppvar_gpu: ppvar-gpu {
210 compatible = "pwm-regulator";
211 regulator-name = "ppvar_gpu";
214 pwms = <&pwm0 0 3333 0>;
216 /* EC turns on w/ ap_core_en; always on for AP */
220 regulator-min-microvolt = <800000>;
221 regulator-max-microvolt = <1500000>;
223 pwm-supply = <&ppvar_sys>;
226 ppvar_centerlogic: ppvar-centerlogic {
227 compatible = "pwm-regulator";
228 regulator-name = "ppvar_centerlogic";
231 pwms = <&pwm3 0 3333 0>;
233 /* EC turns on w/ ppvar_centerlogic_en; always on for AP */
237 regulator-min-microvolt = <800000>;
238 regulator-max-microvolt = <1500000>;
240 pwm-supply = <&ppvar_sys>;
243 /* Schematics call this PPVAR even though it's fixed */
244 ppvar_logic: ppvar-logic {
245 compatible = "regulator-fixed";
246 regulator-name = "ppvar_logic";
248 /* EC turns on w/ ppvar_logic_en; always on for AP */
252 regulator-min-microvolt = <900000>;
253 regulator-max-microvolt = <900000>;
255 vin-supply = <&ppvar_sys>;
258 /* pp900_ap aliases; these are always on for AP so just use alias */
260 /* EC turns on w/ pp900_ddrpll_en */
261 pp900_ddrpll: pp900_ap {
264 /* EC turns on w/ pp900_pcie_en */
265 pp900_pcie: pp900_ap {
268 /* EC turns on w/ pp900_pll_en */
269 pp900_pll: pp900_ap {
272 /* EC turns on w/ pp900_pmu_en */
273 pp900_pmu: pp900_ap {
276 /* EC turns on w/ pp900_usb_en */
277 pp900_usb: pp900_ap {
280 /* pp1800 aliases; these are always on for AP so just use alias */
282 /* EC turns on w/ pp1800_s0_en_l */
283 pp1800_ap_io: pp1800_emmc: pp1800_nfc: pp1800_s0: pp1800 {
286 /* EC turns on w/ pp1800_avdd_en_l */
287 pp1800_avdd: pp1800 {
290 /* EC turns on w/ pp1800_lid_en_l */
291 pp1800_lid: pp1800_mic: pp1800 {
294 /* EC turns on w/ lpddr_pwr_en */
295 pp1800_lpddr: pp1800 {
298 /* EC turns on w/ pp1800_pmu_en_l */
302 /* EC turns on w/ pp1800_sensor_en_l */
303 // TODO: Only for EC and things EC talks to I think; remove?
304 pp1800_sensor: pp1800 {
307 /* EC turns on w/ pp1800_usb_en_l */
311 /* pp1800 children */
313 /* EC turns on w/ pp1200_hsic_en */
314 // TODO: Might be removed in future schematics?
315 pp1200_hsic: pp1200-hsic {
316 compatible = "regulator-fixed";
317 regulator-name = "pp1200_hsic";
321 regulator-min-microvolt = <1200000>;
322 regulator-max-microvolt = <1200000>;
324 vin-supply = <&pp1800>;
327 pp1500_ap_io: pp1500-ap-io {
328 compatible = "regulator-fixed";
329 regulator-name = "pp1500_ap_io";
330 pinctrl-names = "default";
331 pinctrl-0 = <&pp1500_en>;
334 gpio = <&gpio1 11 GPIO_ACTIVE_HIGH>;
338 regulator-min-microvolt = <1500000>;
339 regulator-max-microvolt = <1500000>;
341 vin-supply = <&pp1800>; // TODO: DNS for 3.3??
344 pp1800_audio: pp1800-audio {
345 compatible = "regulator-fixed";
346 regulator-name = "pp1800_audio";
347 pinctrl-names = "default";
348 pinctrl-0 = <&pp1800_audio_en>;
354 gpio = <&gpio0 2 GPIO_ACTIVE_HIGH>;
356 vin-supply = <&pp1800>;
359 pp1800_pcie: pp1800-pcie {
360 compatible = "regulator-fixed";
361 regulator-name = "pp1800_pcie";
362 pinctrl-names = "default";
363 pinctrl-0 = <&wlan_module_pd_l>;
365 regulator-always-on; // TODO: for bringup???
366 regulator-boot-on; // TODO: for bringup???
368 gpio = <&gpio0 4 GPIO_ACTIVE_HIGH>;
370 vin-supply = <&pp1800>;
373 /* pp3000 aliases; these are always on for AP so just use alias */
375 /* Always on; plain and simple */
376 pp3000_ap: pp3000_emmc: pp3000 {
379 /* pp3000 children */
381 pp3000_sd_slot: pp3000-sd-slot {
382 compatible = "regulator-fixed";
383 regulator-name = "pp3000_sd_slot";
384 pinctrl-names = "default";
385 pinctrl-0 = <&sd_slot_pwr_en>;
387 // regulator-always-on; // TODO: for bringup???
388 // regulator-boot-on; // TODO: for bringup???
391 gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>;
393 vin-supply = <&pp3000>;
396 ppvar_sd_card_io: ppvar-sd-card-io {
397 compatible = "regulator-gpio";
398 regulator-name = "ppvar_sd_card_io";
399 pinctrl-names = "default";
400 pinctrl-0 = <&sd_io_pwr_en &sd_pwr_1800_sel>;
402 // regulator-always-on; // TODO: for bringup???
403 // regulator-boot-on; // TODO: for bringup???
406 enable-gpio = <&gpio2 2 GPIO_ACTIVE_HIGH>;
407 gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>;
408 states = <1800000 0x1
411 regulator-min-microvolt = <1800000>;
412 regulator-max-microvolt = <3000000>;
414 // TODO: add support in driver for input supplies.
415 // ...and specify pp3000 and pp1800.
418 /* pp3300 aliases; these are always on for AP so just use alias */
420 /* EC turns on w/ pp3300_trackpad_en_l */
421 pp3300_trackpad: pp3300-trackpad {
424 /* EC turns on w/ pp3300_usb_en_l */
428 /* pp3300 children */
430 pp3300_disp: pp3300-disp {
431 compatible = "regulator-fixed";
432 regulator-name = "pp3300_disp";
433 pinctrl-names = "default";
434 pinctrl-0 = <&pp3300_disp_en>;
438 // TODO: for bringup; we should reference (and enable) this
439 // regulator with a panel (?) or backlight (?) driver
443 gpio = <&gpio4 27 GPIO_ACTIVE_HIGH>;
445 vin-supply = <&pp3300>;
448 pp3300_wifi_bt:pp3300-wifi-bt {
449 compatible = "regulator-fixed";
450 regulator-name = "pp3300_wifi_bt";
451 /* NOTE: wlan_module_pd_l pinctrl in pp1800_pcie */
453 regulator-always-on; // TODO: for bringup???
454 regulator-boot-on; // TODO: for bringup???
457 // TODO: I _think_ it's OK to specify the same GPIO in two
458 // regulator-fixed regulators. See pp1800_pcie
459 gpio = <&gpio0 8 GPIO_ACTIVE_HIGH>;
461 vin-supply = <&pp3300>;
468 compatible = "rockchip,rk3399-io-voltage-domain";
469 rockchip,grf = <&grf>;
471 bt656-supply = <&pp1800_ap_io>; /* APIO2_VDD; 2a 2b */
472 audio-supply = <&pp1800_audio>; /* APIO5_VDD; 3d 4a */
473 sdmmc-supply = <&ppvar_sd_card_io>; /* SDMMC0_VDD; 4b */
474 gpio1830-supply = <&pp3000_ap>; /* APIO4_VDD; 4c 4d */
478 compatible = "rockchip,rk3399-pmu-io-voltage-domain";
479 rockchip,grf = <&pmugrf>;
481 pmu1830-supply = <&pp1800_pmu>; /* PMUIO2_VDD */
485 compatible = "rockchip,rockchip-audio-da7219";
486 rockchip,model = "audio-da7219";
487 rockchip,i2s-controller = <&i2s0>;
488 rockchip,audio-codec = <&codec>;
491 backlight: backlight {
492 compatible = "gpio-backlight";
493 pinctrl-names = "default";
494 pinctrl-0 = <&bl_en>;
495 gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
498 edp_panel: edp-panel {
499 compatible = "samsung,lsn122dl01-c01", "panel-simple";
500 backlight = <&backlight>;
501 power-supply = <&pp3300_disp>;
504 panel_in_edp: endpoint {
505 remote-endpoint = <&edp_out_panel>;
512 cpu-supply = <&ppvar_litcpu>;
516 cpu-supply = <&ppvar_litcpu>;
520 cpu-supply = <&ppvar_litcpu>;
524 cpu-supply = <&ppvar_litcpu>;
528 cpu-supply = <&ppvar_bigcpu>;
532 cpu-supply = <&ppvar_bigcpu>;
543 // ...with no speed, it should just use 100kHz
544 // TODO: rise / fall times?
546 // TODO: This is in mainline, but not the Rockchip private kernel
547 // TODO: Need to hook this into the rest of audio stuff...
549 // TODO: any pinctrl needed for this codec???
550 headsetcodec: rt5514@57 {
551 compatible = "realtek,rt5514";
553 pinctrl-names = "default";
554 pinctrl-0 = <&mic_int>;
557 * NOTE: Interrupts aren't part of the binding and driver
558 * doesn't support it, but throw it in anyway.
560 interrupt-parent = <&gpio1>;
561 interrupts = <13 IRQ_TYPE_LEVEL_HIGH>;
569 // ...with no speed, it should just use 100kHz
570 // TODO: rise / fall times?
572 // TODO: Add the proper touchscreen reference...
575 // TODO: Might need to go in sub boards????
582 * Note strange pullup enable. Apparently this avoids leakage but
583 * still allows us to get nice 4.7K pullups for high speed i2c
584 * transfers. Basically we want the pullup on whenever the ap is
585 * alive, so the "en" pin just gets set to output high.
587 pinctrl-0 = <&i2c5_xfer &ap_i2c_tp_pu_en>;
589 clock-frequency = <400000>;
591 /* These are relatively safe rise/fall times; TODO: measure */
592 i2c-scl-falling-time-ns = <50>;
593 i2c-scl-rising-time-ns = <300>;
596 ap_i2c_audio: &i2c8 {
600 // ...with no speed, it should just use 100kHz
601 // TODO: rise / fall times?
602 // ...on gru-gru this is on a sub board, so expect bad rise/fall times
604 // TODO: copied from sample. Double-check...
606 compatible = "dlg,da7219";
609 pinctrl-names = "default";
610 pinctrl-0 = <&headset_int_l>;
612 interrupt-parent = <&gpio1>;
613 interrupts = <23 IRQ_TYPE_LEVEL_LOW>;
615 VDD-supply = <&pp1800>;
616 VDDMIC-supply = <&pp3300>;
617 VDDIO-supply = <&pp1800>;
619 // TODO: I THINK this is right, but it's a bit of a guess.
620 clocks = <&cru SCLK_I2S_8CH_OUT>;
621 clock-names = "mclk";
623 // Below is from bindings; we need to adjust for our SoC / board.
624 dlg,ldo-lvl = <1200>;
625 dlg,micbias-lvl = <2600>;
626 dlg,mic-amp-in-sel = "diff";
630 dlg,mic-det-thr = <500>;
631 dlg,jack-ins-deb = <20>;
632 dlg,jack-det-rate = "32ms_64ms";
633 dlg,jack-rem-deb = <1>;
635 dlg,a-d-btn-thr = <0xa>;
636 dlg,d-b-btn-thr = <0x16>;
637 dlg,b-c-btn-thr = <0x21>;
638 dlg,c-mic-btn-thr = <0x3E>;
641 dlg,adc-1bit-rpt = <1>;
667 freq-sel = <200000000>;
685 * Note: configure "sdmmc_cd" as card detect even though it's actually
686 * hooked to ground. Because we specified "cd-gpios" below dw_mmc
687 * should be ignoring card detect anyway. Specifying the pin as
688 * sdmmc_cd means that even if you've got GRF_SOC_CON7[12] (force_jtag)
689 * turned on that the system will still make sure the port is
690 * configured as SDMMC and not JTAG.
692 pinctrl-names = "default";
693 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_cd_gpio
696 // HACK: supports-sd is not in mainline.
699 // HACK: Limit freq for now
700 // ...as of 160330 confirmed that things break if you remove this.
701 clock-frequency = <37500000>;
702 clock-freq-min-max = <400000 37500000>;
705 cd-gpios = <&gpio4 24 GPIO_ACTIVE_LOW>;
711 // TODO: enable once tested...
717 // Comment out until we turn on gpio-regulator config
718 vmmc-supply = <&pp3000_sd_slot>;
719 vqmmc-supply = <&ppvar_sd_card_io>;
725 // TODO: more properly. Hacky spidev for now???
727 // - We either have a Haven here or a Infineon SLB9670. The SLB9670
728 // is supposed to be a fallback if Haven is broken.
729 // - Either TPM is supposed to be TPM 2.0 hooked up to SPI. I see some
730 // kernel support for TPM 2.0 on x86 (hooked up with ACPI) but no
731 // generic way to say "we have a SPI TPM 2.0". We'll need to add
732 // a driver for whichever way we go.
733 // - wfrichar@ says that for Haven if it has gone to sleep we might
734 // need to add a delay after asserting chip select. Presumably
735 // haven-specific driver will need to handle this logic (keeping
736 // track when we last talked and adding an extra delay if it's been
739 compatible = "spidev";
740 // TODO: can run faster once verified.
741 // TODO: add rx-sample-delay-ns.
742 spi-max-frequency = <10000000>;
750 // TODO: Ideally we want to use MTD for this, but presumably
751 // we'll wait until we can test it and also bring it up in our
754 compatible = "spidev";
755 // TODO: can run faster once verified.
756 // TODO: add rx-sample-delay-ns.
757 spi-max-frequency = <10000000>;
765 // TODO: more properly. Hacky spidev for now???
767 compatible = "spidev";
769 // TODO: can run faster once verified.
770 // TODO: add rx-sample-delay-ns.
771 spi-max-frequency = <10000000>;
780 compatible = "google,cros-ec-spi";
782 pinctrl-names = "default";
783 pinctrl-0 = <&ec_ap_int_l>;
785 google,cros-ec-spi-pre-delay = <30>; // TODO: check
786 interrupt-parent = <&gpio0>;
787 interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
788 spi-max-frequency = <3000000>; // TODO: check; TODO: rx-sample-delay-ns?
790 i2c_tunnel: i2c-tunnel {
791 compatible = "google,cros-ec-i2c-tunnel";
792 google,remote-bus = <0>;
793 #address-cells = <1>;
800 // - double-check that hw-tshut-mode is same as EVB
801 // - double check that hw-tshut-polarity is the same as EVB
805 rockchip,hw-tshut-mode = <1>; /* tshut mode 0:CRU 1:GPIO */
806 rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */
835 dr_mode = "host"; // TODO: needed?
844 dr_mode = "host"; // TODO: needed?
853 #address-cells = <1>;
856 edp_out_panel: endpoint@0 {
858 remote-endpoint = <&panel_in_edp>;
885 mali-supply = <&ppvar_gpu>;
889 /* HACKS: Poorly formatted on purpose so you know they're hacks */
891 /* HACK THE PWM REGULATOR OUT
893 * We'll hack them all to pretend they are fixed regulators
894 * and at exactly .9V, which is where cpufreq wants them.
896 * We'll also set all PWMs to disabled so we know that the PWM
897 * framework won't touch them.
899 * This relies on PWM clock being a critical clock.
902 compatible = "regulator-fixed";
903 regulator-min-microvolt = <900000>;
904 regulator-max-microvolt = <900000>;
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>;
950 /* PINCTRL: always below everything else */
953 pcfg_output_high: pcfg-output-high {
958 ec_ap_int_l: ec-ap-int-l {
959 rockchip,pins = <RK_GPIO0 1 RK_FUNC_GPIO &pcfg_pull_up>;
963 discrete-regulators {
964 pp1500_en: pp1500-en {
965 rockchip,pins = <RK_GPIO0 10 RK_FUNC_GPIO
969 pp1800_audio_en: pp1800-audio-en {
970 rockchip,pins = <RK_GPIO0 2 RK_FUNC_GPIO
974 pp3300_disp_en: pp3300-disp-en {
975 rockchip,pins = <RK_GPIO4 27 RK_FUNC_GPIO
979 pp3000_en: pp3000-en {
980 rockchip,pins = <RK_GPIO0 12 RK_FUNC_GPIO
984 sd_io_pwr_en: sd-io-pwr-en {
985 rockchip,pins = <RK_GPIO2 2 RK_FUNC_GPIO
989 sd_pwr_1800_sel: sd-pwr-1800-sel {
990 rockchip,pins = <RK_GPIO2 28 RK_FUNC_GPIO
994 sd_slot_pwr_en: sd-slot-pwr-en {
995 rockchip,pins = <RK_GPIO4 29 RK_FUNC_GPIO
999 wlan_module_pd_l: wlan-module-pd-l {
1000 rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO
1006 /* Has external pullup */
1007 headset_int_l: headset-int-l {
1008 rockchip,pins = <1 23 RK_FUNC_GPIO &pcfg_pull_none>;
1011 // TODO: check pull. From signal name assume active high.
1013 rockchip,pins = <1 13 RK_FUNC_GPIO &pcfg_pull_down>;
1019 * We have external pulls on SDMMC, so diable internals
1022 * - On veyron we found that we needed to drive at 8mA. Do we
1023 * need to that here? If so, 8mA or 12mA?
1025 sdmmc_bus4: sdmmc-bus4 {
1027 <4 8 RK_FUNC_1 &pcfg_pull_none>,
1028 <4 9 RK_FUNC_1 &pcfg_pull_none>,
1029 <4 10 RK_FUNC_1 &pcfg_pull_none>,
1030 <4 11 RK_FUNC_1 &pcfg_pull_none>;
1033 sdmmc_clk: sdmmc-clk {
1035 <4 12 RK_FUNC_1 &pcfg_pull_none>;
1038 sdmmc_cmd: sdmmc-cmd {
1040 <4 13 RK_FUNC_1 &pcfg_pull_none>;
1044 * In our case the official card detect is hooked to ground
1045 * to avoid getting access to JTAG just by sticking something
1046 * in the SD card slot (see the force_jtag bit in the TRM).
1048 * We still configure it as card detect because it doesn't
1049 * hurt and dw_mmc will ignore it. We make sure to disable
1050 * the pull though so we don't burn needless power.
1052 sdmmc_cd: sdmcc-cd {
1054 <0 7 RK_FUNC_1 &pcfg_pull_none>;
1057 /* This is where we actually hook up CD; has external pull */
1058 sdmmc_cd_gpio: sdmmc-cd-gpio {
1059 rockchip,pins = <4 24 RK_FUNC_GPIO &pcfg_pull_none>;
1064 ap_i2c_tp_pu_en: ap-i2c-tp-pu-en {
1065 rockchip,pins = <3 12 RK_FUNC_GPIO &pcfg_output_high>;
1068 trackpad_int_l: trackpad-int-l {
1069 rockchip,pins = <1 4 RK_FUNC_GPIO &pcfg_pull_up>;
1075 rockchip,pins = <1 17 RK_FUNC_GPIO &pcfg_pull_none>;
1080 /* DON'T PUT ANYTHING BELOW HERE. PUT IT ABOVE PINCTRL */
1081 /* DON'T PUT ANYTHING BELOW HERE. PUT IT ABOVE PINCTRL */
1082 /* DON'T PUT ANYTHING BELOW HERE. PUT IT ABOVE PINCTRL */