hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/arch/arm64/boot/dts/rockchip/px30-evb-ddr3-v10.dtsi
....@@ -3,14 +3,11 @@
33 * Copyright (c) 2017-2019 Fuzhou Rockchip Electronics Co., Ltd
44 */
55
6
-/dts-v1/;
76 #include <dt-bindings/gpio/gpio.h>
87 #include <dt-bindings/pinctrl/rockchip.h>
98 #include <dt-bindings/input/input.h>
109 #include <dt-bindings/display/drm_mipi_dsi.h>
1110 #include <dt-bindings/sensor-dev.h>
12
-#include "px30.dtsi"
13
-#include "px30-android.dtsi"
1411
1512 / {
1613 adc-keys {
....@@ -21,14 +18,14 @@
2118 keyup-threshold-microvolt = <1800000>;
2219
2320 esc-key {
24
- linux,code = <KEY_ESC>;
25
- label = "esc";
21
+ linux,code = <KEY_BACK>;
22
+ label = "back";
2623 press-threshold-microvolt = <1310000>;
2724 };
2825
2926 home-key {
30
- linux,code = <KEY_HOME>;
31
- label = "home";
27
+ linux,code = <KEY_HOMEPAGE>;
28
+ label = "homepage";
3229 press-threshold-microvolt = <624000>;
3330 };
3431
....@@ -99,33 +96,26 @@
9996 status = "okay";
10097 };
10198
102
- rk809-sound {
103
- compatible = "simple-audio-card";
104
- simple-audio-card,format = "i2s";
105
- simple-audio-card,name = "rockchip,rk809-codec";
106
- simple-audio-card,mclk-fs = <256>;
107
- simple-audio-card,widgets =
108
- "Microphone", "Mic Jack",
109
- "Headphone", "Headphone Jack";
110
- simple-audio-card,routing =
111
- "Mic Jack", "MICBIAS1",
112
- "IN1P", "Mic Jack",
113
- "Headphone Jack", "HPOL",
114
- "Headphone Jack", "HPOR";
115
- simple-audio-card,cpu {
116
- sound-dai = <&i2s1_2ch>;
117
- };
118
- simple-audio-card,codec {
119
- sound-dai = <&rk809_codec>;
120
- };
121
- };
122
-
123
- rk_headset: rk-headset {
124
- compatible = "rockchip_headset";
125
- headset_gpio = <&gpio3 RK_PA4 GPIO_ACTIVE_LOW>;
99
+ rk809_sound: rk809-sound {
100
+ status = "okay";
101
+ compatible = "rockchip,multicodecs-card";
102
+ rockchip,card-name = "rockchip-rk809";
103
+ hp-det-gpio = <&gpio2 RK_PB0 GPIO_ACTIVE_LOW>;
104
+ io-channels = <&saradc 1>;
105
+ io-channel-names = "adc-detect";
106
+ keyup-threshold-microvolt = <1800000>;
107
+ poll-interval = <100>;
108
+ rockchip,format = "i2s";
109
+ rockchip,mclk-fs = <256>;
110
+ rockchip,cpu = <&i2s1_2ch>;
111
+ rockchip,codec = <&rk809_codec>;
126112 pinctrl-names = "default";
127113 pinctrl-0 = <&hp_det>;
128
- io-channels = <&saradc 1>;
114
+ play-pause-key {
115
+ label = "playpause";
116
+ linux,code = <KEY_PLAYPAUSE>;
117
+ press-threshold-microvolt = <2000>;
118
+ };
129119 };
130120
131121 sdio_pwrseq: sdio-pwrseq {
....@@ -168,10 +158,11 @@
168158 compatible = "wlan-platdata";
169159 wifi_chip_type = "AP6210";
170160 WIFI,host_wake_irq = <&gpio0 RK_PB2 GPIO_ACTIVE_HIGH>;
161
+ WIFI,poweren_gpio = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>;
171162 status = "okay";
172163 };
173164
174
- wireless-bluetooth {
165
+ wireless_bluetooth: wireless-bluetooth {
175166 compatible = "bluetooth-platdata";
176167 clocks = <&rk809 1>;
177168 clock-names = "ext_clock";
....@@ -179,8 +170,8 @@
179170 pinctrl-names = "default","rts_gpio";
180171 pinctrl-0 = <&uart1_rts>;
181172 pinctrl-1 = <&uart1_rts_gpio>;
182
- BT,reset_gpio = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>;
183
- BT,wake_gpio = <&gpio2 RK_PB0 GPIO_ACTIVE_HIGH>;
173
+ BT,reset_gpio = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
174
+ BT,wake_gpio = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>;
184175 BT,wake_host_irq = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>;
185176 status = "okay";
186177 };
....@@ -225,7 +216,8 @@
225216 bus-width = <8>;
226217 cap-mmc-highspeed;
227218 mmc-hs200-1_8v;
228
- supports-emmc;
219
+ no-sdio;
220
+ no-sd;
229221 disable-wp;
230222 non-removable;
231223 num-slots = <1>;
....@@ -234,7 +226,11 @@
234226
235227 &gmac {
236228 phy-supply = <&vcc_phy>;
237
- clock_in_out = "output";
229
+ clock_in_out = "input";
230
+ assigned-clocks = <&cru SCLK_GMAC>;
231
+ assigned-clock-parents = <&gmac_clkin>;
232
+ pinctrl-names = "default";
233
+ pinctrl-0 = <&rmii_pins &mac_refclk>;
238234 snps,reset-gpio = <&gpio2 13 GPIO_ACTIVE_LOW>;
239235 snps,reset-active-low;
240236 snps,reset-delays-us = <0 50000 50000>;
....@@ -349,13 +345,13 @@
349345 vcc_3v0: DCDC_REG4 {
350346 regulator-always-on;
351347 regulator-boot-on;
352
- regulator-min-microvolt = <3000000>;
353
- regulator-max-microvolt = <3000000>;
348
+ regulator-min-microvolt = <3300000>;
349
+ regulator-max-microvolt = <3300000>;
354350 regulator-initial-mode = <0x2>;
355351 regulator-name = "vcc_3v0";
356352 regulator-state-mem {
357353 regulator-on-in-suspend;
358
- regulator-suspend-microvolt = <3000000>;
354
+ regulator-suspend-microvolt = <3300000>;
359355 };
360356 };
361357
....@@ -400,13 +396,13 @@
400396 vcc3v0_pmu: LDO_REG4 {
401397 regulator-always-on;
402398 regulator-boot-on;
403
- regulator-min-microvolt = <3000000>;
404
- regulator-max-microvolt = <3000000>;
399
+ regulator-min-microvolt = <3300000>;
400
+ regulator-max-microvolt = <3300000>;
405401
406402 regulator-name = "vcc3v0_pmu";
407403 regulator-state-mem {
408404 regulator-on-in-suspend;
409
- regulator-suspend-microvolt = <3000000>;
405
+ regulator-suspend-microvolt = <3300000>;
410406
411407 };
412408 };
....@@ -557,17 +553,6 @@
557553 i2c-scl-falling-time-ns = <50>;
558554 i2c-scl-rising-time-ns = <300>;
559555
560
- dw9714: dw9714@c {
561
- compatible = "dongwoon,dw9714";
562
- status = "okay";
563
- reg = <0x0c>;
564
- rockchip,camera-module-index = <0>;
565
- rockchip,vcm-start-current = <10>;
566
- rockchip,vcm-rated-current = <85>;
567
- rockchip,vcm-step-mode = <5>;
568
- rockchip,camera-module-facing = "back";
569
- };
570
-
571556 ov5695: ov5695@36 {
572557 compatible = "ovti,ov5695";
573558 reg = <0x36>;
....@@ -581,7 +566,6 @@
581566 rockchip,camera-module-facing = "back";
582567 rockchip,camera-module-name = "TongJu";
583568 rockchip,camera-module-lens-name = "CHT842-MD";
584
- lens-focus = <&dw9714>;
585569 port {
586570 ucam_out: endpoint {
587571 remote-endpoint = <&mipi_in_ucam>;
....@@ -649,7 +633,7 @@
649633 &pinctrl {
650634 headphone {
651635 hp_det: hp-det {
652
- rockchip,pins = <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_down>;
636
+ rockchip,pins = <2 RK_PB0 RK_FUNC_GPIO &pcfg_pull_down>;
653637 };
654638 };
655639
....@@ -725,7 +709,8 @@
725709 bus-width = <4>;
726710 cap-mmc-highspeed;
727711 cap-sd-highspeed;
728
- supports-sd;
712
+ no-sdio;
713
+ no-mmc;
729714 card-detect-delay = <800>;
730715 ignore-pm-notify;
731716 /*cd-gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>; [> CD GPIO <]*/
....@@ -741,7 +726,8 @@
741726 &sdio {
742727 bus-width = <4>;
743728 cap-sd-highspeed;
744
- supports-sdio;
729
+ no-sd;
730
+ no-mmc;
745731 ignore-pm-notify;
746732 keep-power-in-suspend;
747733 non-removable;
....@@ -752,7 +738,7 @@
752738
753739 &tsadc {
754740 pinctrl-names = "gpio", "otpout";
755
- pinctrl-0 = <&tsadc_otp_gpio>;
741
+ pinctrl-0 = <&tsadc_otp_pin>;
756742 pinctrl-1 = <&tsadc_otp_out>;
757743 status = "okay";
758744 };