mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
Merge commit '5ef6efa7e56bdd34cd5d0a2288710bdc5288e13a'
* commit '5ef6efa7e56bdd34cd5d0a2288710bdc5288e13a': mmc: sdhci-of-dwcmshc: Fix unblanced runtime calls misc: rk628: rgb/bt1120: modify decoder dclk delay video: rockchip: mpp: iep2: fix err log false print ARM: dts: rockchip: add evb1 dts for rk3502 ARM: dts: rockchip: add dtsi for rk3502 ARM: keep .vectors on CONFIG_LD_DEAD_CODE_DATA_ELIMINATION scsi: ufs: rockchip: Fix compile error if not define CONFIG_PM Change-Id: Ic679c845ea0c14dedf71cb0c3ef60768d29b16fc
This commit is contained in:
@@ -1221,6 +1221,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += \
|
||||
rk3308bs-evb-dmic-pdm-v11-aarch32.dtb \
|
||||
rk3308bs-evb-mipi-display-v11-aarch32.dtb \
|
||||
rk3308hs-voice-module-board-v10-aarch32.dtb \
|
||||
rk3502g-evb1-v10.dtb \
|
||||
rk3503g-evb1-v10.dtb \
|
||||
rk3506b-evb1-v10.dtb \
|
||||
rk3506g-demo-display-control.dtb \
|
||||
|
||||
460
arch/arm/boot/dts/rk3502-evb1-v10.dtsi
Normal file
460
arch/arm/boot/dts/rk3502-evb1-v10.dtsi
Normal file
@@ -0,0 +1,460 @@
|
||||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
/*
|
||||
* Copyright (c) 2024 Rockchip Electronics Co., Ltd.
|
||||
*/
|
||||
|
||||
#include <dt-bindings/display/drm_mipi_dsi.h>
|
||||
#include <dt-bindings/input/rk-input.h>
|
||||
#include <dt-bindings/suspend/rockchip-rk3506.h>
|
||||
|
||||
/ {
|
||||
model = "Rockchip RK3502 EVB1 V10 Board";
|
||||
compatible = "rockchip,rk3502-evb1-v10", "rockchip,rk3502";
|
||||
|
||||
chosen {
|
||||
bootargs = "earlycon=uart8250,mmio32,0xff0a0000 console=ttyFIQ0 ubi.mtd=5 ubi.block=0,rootfs root=/dev/ubiblock0_0 rootfstype=squashfs rootwait snd_aloop.index=7 snd_aloop.use_raw_jiffies=1";
|
||||
};
|
||||
|
||||
acodec_sound: acodec-sound {
|
||||
compatible = "simple-audio-card";
|
||||
simple-audio-card,name = "rockchip,acodec";
|
||||
simple-audio-card,format = "i2s";
|
||||
simple-audio-card,mclk-fs = <1024>;
|
||||
simple-audio-card,bitclock-master = <&codec_master>;
|
||||
simple-audio-card,frame-master = <&codec_master>;
|
||||
simple-audio-card,cpu {
|
||||
sound-dai = <&sai4>;
|
||||
};
|
||||
codec_master: simple-audio-card,codec {
|
||||
sound-dai = <&audio_codec>;
|
||||
};
|
||||
};
|
||||
|
||||
adc_keys: adc-keys {
|
||||
compatible = "adc-keys";
|
||||
io-channels = <&saradc 1>;
|
||||
io-channel-names = "buttons";
|
||||
keyup-threshold-microvolt = <1800000>;
|
||||
poll-interval = <100>;
|
||||
|
||||
vol-up-key {
|
||||
label = "volume up";
|
||||
linux,code = <KEY_VOLUMEUP>;
|
||||
press-threshold-microvolt = <16000>;
|
||||
};
|
||||
|
||||
vol-down-key {
|
||||
label = "volume down";
|
||||
linux,code = <KEY_VOLUMEDOWN>;
|
||||
press-threshold-microvolt = <420000>;
|
||||
};
|
||||
|
||||
menu-key {
|
||||
label = "menu";
|
||||
linux,code = <KEY_MENU>;
|
||||
press-threshold-microvolt = <800000>;
|
||||
};
|
||||
|
||||
esc-key {
|
||||
label = "esc";
|
||||
linux,code = <KEY_ESC>;
|
||||
press-threshold-microvolt = <1200000>;
|
||||
};
|
||||
};
|
||||
|
||||
backlight: backlight {
|
||||
compatible = "pwm-backlight";
|
||||
pwms = <&pwm0_4ch_2 0 25000 0>;
|
||||
brightness-levels = <
|
||||
0 20 20 21 21 22 22 23
|
||||
23 24 24 25 25 26 26 27
|
||||
27 28 28 29 29 30 30 31
|
||||
31 32 32 33 33 34 34 35
|
||||
35 36 36 37 37 38 38 39
|
||||
40 41 42 43 44 45 46 47
|
||||
48 49 50 51 52 53 54 55
|
||||
56 57 58 59 60 61 62 63
|
||||
64 65 66 67 68 69 70 71
|
||||
72 73 74 75 76 77 78 79
|
||||
80 81 82 83 84 85 86 87
|
||||
88 89 90 91 92 93 94 95
|
||||
96 97 98 99 100 101 102 103
|
||||
104 105 106 107 108 109 110 111
|
||||
112 113 114 115 116 117 118 119
|
||||
120 121 122 123 124 125 126 127
|
||||
128 129 130 131 132 133 134 135
|
||||
136 137 138 139 140 141 142 143
|
||||
144 145 146 147 148 149 150 151
|
||||
152 153 154 155 156 157 158 159
|
||||
160 161 162 163 164 165 166 167
|
||||
168 169 170 171 172 173 174 175
|
||||
176 177 178 179 180 181 182 183
|
||||
184 185 186 187 188 189 190 191
|
||||
192 193 194 195 196 197 198 199
|
||||
200 201 202 203 204 205 206 207
|
||||
208 209 210 211 212 213 214 215
|
||||
216 217 218 219 220 221 222 223
|
||||
224 225 226 227 228 229 230 231
|
||||
232 233 234 235 236 237 238 239
|
||||
240 241 242 243 244 245 246 247
|
||||
248 249 250 251 252 253 254 255
|
||||
>;
|
||||
default-brightness-level = <200>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
dsm_sound: dsm-sound {
|
||||
status = "disabled";
|
||||
compatible = "simple-audio-card";
|
||||
simple-audio-card,format = "i2s";
|
||||
simple-audio-card,mclk-fs = <256>;
|
||||
simple-audio-card,name = "rockchip,dsm-sound";
|
||||
simple-audio-card,bitclock-master = <&sndcodec>;
|
||||
simple-audio-card,frame-master = <&sndcodec>;
|
||||
sndcpu: simple-audio-card,cpu {
|
||||
sound-dai = <&sai3>;
|
||||
};
|
||||
sndcodec: simple-audio-card,codec {
|
||||
sound-dai = <&acdcdig_dsm>;
|
||||
};
|
||||
};
|
||||
|
||||
es8388_sound: es8388-sound {
|
||||
status = "disabled";
|
||||
compatible = "rockchip,multicodecs-card";
|
||||
rockchip,card-name = "rockchip-es8388";
|
||||
spk-con-gpio = <&gpio1 RK_PC6 GPIO_ACTIVE_HIGH>;
|
||||
rockchip,pre-power-on-delay-ms = <30>;
|
||||
rockchip,post-power-down-delay-ms = <40>;
|
||||
rockchip,format = "i2s";
|
||||
rockchip,mclk-fs = <256>;
|
||||
rockchip,cpu = <&sai1>;
|
||||
rockchip,codec = <&es8388>;
|
||||
rockchip,audio-routing =
|
||||
"Speaker", "LOUT1",
|
||||
"Speaker", "ROUT1",
|
||||
"Speaker", "Speaker Power",
|
||||
"Speaker", "Speaker Power",
|
||||
"LINPUT1", "Main Mic",
|
||||
"LINPUT2", "Main Mic",
|
||||
"RINPUT1", "Main Mic",
|
||||
"RINPUT2", "Main Mic";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&spk_ctrl>;
|
||||
};
|
||||
|
||||
fiq_debugger: fiq-debugger {
|
||||
compatible = "rockchip,fiq-debugger";
|
||||
rockchip,serial-id = <0>;
|
||||
rockchip,wake-irq = <0>;
|
||||
rockchip,irq-mode-enable = <1>;
|
||||
rockchip,baudrate = <1500000>; /* Only 115200 and 1500000 */
|
||||
interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>;
|
||||
};
|
||||
|
||||
gpio_keys: gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&key_wake_up>;
|
||||
|
||||
wake_up: wake-up {
|
||||
label = "Wake-up";
|
||||
gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_WAKEUP>;
|
||||
wakeup-source;
|
||||
};
|
||||
};
|
||||
|
||||
vcc12v_dc: vcc12v-dc {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc12v_dc";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <12000000>;
|
||||
regulator-max-microvolt = <12000000>;
|
||||
};
|
||||
|
||||
vcc_sys: vcc-sys {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc_sys";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <5000000>;
|
||||
regulator-max-microvolt = <5000000>;
|
||||
vin-supply = <&vcc12v_dc>;
|
||||
};
|
||||
|
||||
vcc3v3_stb: vcc3v3-stb {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc3v3_stb";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
vin-supply = <&vcc_sys>;
|
||||
};
|
||||
|
||||
vcc_1v8: vcc-1v8 {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc_1v8";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
vin-supply = <&vcc3v3_stb>;
|
||||
};
|
||||
|
||||
vcc_ddr: vcc-ddr {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc_ddr";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
vin-supply = <&vcc_sys>;
|
||||
};
|
||||
|
||||
vdd_arm: vdd-arm {
|
||||
compatible = "pwm-regulator";
|
||||
pwms = <&pwm0_4ch_0 0 5000 1>;
|
||||
regulator-name = "vdd_arm";
|
||||
regulator-min-microvolt = <710000>;
|
||||
regulator-max-microvolt = <1207000>;
|
||||
regulator-init-microvolt = <1011000>;
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-settling-time-up-us = <250>;
|
||||
pwm-supply = <&vcc_sys>;
|
||||
};
|
||||
|
||||
sdio_pwrseq: sdio-pwrseq {
|
||||
compatible = "mmc-pwrseq-simple";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&wifi_enable_h>;
|
||||
|
||||
/*
|
||||
* On the module itself this is one of these (depending
|
||||
* on the actual card populated):
|
||||
* - SDIO_RESET_L_WL_REG_ON
|
||||
* - PDN (power down when low)
|
||||
*/
|
||||
reset-gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wireless-bluetooth {
|
||||
compatible = "bluetooth-platdata";
|
||||
uart_rts_gpios = <&gpio3 RK_PB5 GPIO_ACTIVE_LOW>;
|
||||
pinctrl-names = "default", "rts_gpio";
|
||||
pinctrl-0 = <&uart5m0_rtsn_pins>;
|
||||
pinctrl-1 = <&uart5_gpios>;
|
||||
BT,power_gpio = <&gpio3 RK_PB6 GPIO_ACTIVE_HIGH>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
wireless-wlan {
|
||||
compatible = "wlan-platdata";
|
||||
rockchip,grf = <&grf>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&wifi_wake_host>;
|
||||
wifi_chip_type = "cyw43455";
|
||||
WIFI,host_wake_irq = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
&audio_codec {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&cma {
|
||||
size = <0x800000>;
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
cpu-supply = <&vdd_arm>;
|
||||
};
|
||||
|
||||
&flexbus_fspi {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&flexbus0m1_pins &flexbus0_clk_pins
|
||||
&flexbus0_d0_pins &flexbus0_d1_pins
|
||||
&flexbus0_d2_pins &flexbus0_d3_pins>;
|
||||
status = "disabled";
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <100000000>;
|
||||
spi-rx-bus-width = <4>;
|
||||
spi-tx-bus-width = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
&fspi {
|
||||
status = "okay";
|
||||
|
||||
flash@0 {
|
||||
compatible = "spi-nand";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <80000000>;
|
||||
spi-rx-bus-width = <4>;
|
||||
spi-tx-bus-width = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
&i2c0 {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&rm_io13_i2c0_scl
|
||||
&rm_io14_i2c0_sda>;
|
||||
|
||||
es8388: es8388@11 {
|
||||
status = "disabled";
|
||||
#sound-dai-cells = <0>;
|
||||
compatible = "everest,es8388", "everest,es8323";
|
||||
reg = <0x11>;
|
||||
clocks = <&mclkout_sai1>;
|
||||
clock-names = "mclk";
|
||||
assigned-clocks = <&mclkout_sai1>;
|
||||
assigned-clock-rates = <12288000>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&rm_io8_sai1_mclk>;
|
||||
};
|
||||
};
|
||||
|
||||
&mmc {
|
||||
bus-width = <4>;
|
||||
cap-sd-highspeed;
|
||||
no-sd;
|
||||
no-mmc;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&sdmmc_clk_pins &sdmmc_cmd_pins &sdmmc_bus4_pins>;
|
||||
ignore-pm-notify;
|
||||
keep-power-in-suspend;
|
||||
non-removable;
|
||||
mmc-pwrseq = <&sdio_pwrseq>;
|
||||
sd-uhs-sdr104;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
gpio-keys {
|
||||
key_wake_up: key-wake-up {
|
||||
rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
|
||||
sdio-pwrseq {
|
||||
wifi_enable_h: wifi-enable-h {
|
||||
rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
|
||||
speaker {
|
||||
spk_ctrl: spk-ctrl {
|
||||
rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
|
||||
wireless-bluetooth {
|
||||
uart5_gpios: uart5-gpios {
|
||||
rockchip,pins = <3 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
|
||||
wireless-wlan {
|
||||
wifi_wake_host: wifi-wake-host {
|
||||
rockchip,pins = <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_up>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pwm0_4ch_0 {
|
||||
pinctrl-names = "active";
|
||||
pinctrl-0 = <&rm_io21_pwm0_ch0>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pwm0_4ch_1 {
|
||||
pinctrl-names = "active";
|
||||
pinctrl-0 = <&rm_io20_pwm0_ch1>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pwm0_4ch_2 {
|
||||
pinctrl-names = "active";
|
||||
pinctrl-0 = <&rm_io3_pwm0_ch2>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rga2 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rng {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rockchip_suspend {
|
||||
rockchip,sleep-mode-config = <
|
||||
(0
|
||||
| RKPM_ARMOFF_DDRPD
|
||||
| RKPM_24M_OSC_DIS
|
||||
| RKPM_32K_CLK
|
||||
| RKPM_32K_SRC_RC
|
||||
| RKPM_PWM0_CH0_REGULATOR
|
||||
)
|
||||
>;
|
||||
|
||||
rockchip,apios-suspend = <
|
||||
(0
|
||||
| RKPM_PWREN_CORE_GPIO0A2 | RKPM_PWREN_CORE_ACT_LOW
|
||||
| RKPM_PWREN_SLEEP_GPIO0A0 | RKPM_PWREN_SLEEP_ACT_LOW
|
||||
)
|
||||
>;
|
||||
};
|
||||
|
||||
&sai1 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&rm_io9_sai1_sclk
|
||||
&rm_io10_sai1_lrck
|
||||
&rm_io11_sai1_sdi
|
||||
&rm_io12_sai1_sdo0>;
|
||||
};
|
||||
|
||||
&sai4 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&saradc {
|
||||
vref-supply = <&vcc_1v8>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&tsadc {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&uart5 {
|
||||
pinctrl-0 = <&uart5m0_xfer_pins &uart5m0_ctsn_pins>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&u2phy_otg0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&u2phy_otg1 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb2phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb20_otg0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb20_otg1 {
|
||||
dr_mode = "host";
|
||||
status = "okay";
|
||||
};
|
||||
1407
arch/arm/boot/dts/rk3502.dtsi
Normal file
1407
arch/arm/boot/dts/rk3502.dtsi
Normal file
File diff suppressed because it is too large
Load Diff
96
arch/arm/boot/dts/rk3502g-evb1-v10.dts
Normal file
96
arch/arm/boot/dts/rk3502g-evb1-v10.dts
Normal file
@@ -0,0 +1,96 @@
|
||||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
/*
|
||||
* Copyright (c) 2024 Rockchip Electronics Co., Ltd.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
|
||||
#include "rk3502.dtsi"
|
||||
#include "rk3502-evb1-v10.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Rockchip RK3502G(QFN128) EVB1 V10 Board";
|
||||
compatible = "rockchip,rk3502g-evb1-v10", "rockchip,rk3502";
|
||||
|
||||
extcon_usb: extcon-usb {
|
||||
compatible = "linux,extcon-usb-gpio";
|
||||
vbus-gpio = <&gpio1 RK_PC5 GPIO_ACTIVE_LOW>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&usb_extcon_vbus>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
vcc5v0_otg0: vcc5v0-otg0-regulator {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc5v0_otg0";
|
||||
regulator-min-microvolt = <5000000>;
|
||||
regulator-max-microvolt = <5000000>;
|
||||
enable-active-high;
|
||||
gpio = <&gpio1 RK_PC4 GPIO_ACTIVE_HIGH>;
|
||||
vin-supply = <&vcc_sys>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&vcc5v0_otg0_en>;
|
||||
};
|
||||
|
||||
vcc5v0_otg1: vcc5v0-otg1-regulator {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc5v0_otg1";
|
||||
regulator-boot-on;
|
||||
regulator-always-on;
|
||||
regulator-min-microvolt = <5000000>;
|
||||
regulator-max-microvolt = <5000000>;
|
||||
enable-active-high;
|
||||
gpio = <&gpio1 RK_PD0 GPIO_ACTIVE_HIGH>;
|
||||
vin-supply = <&vcc_sys>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&vcc5v0_otg1_en>;
|
||||
};
|
||||
};
|
||||
|
||||
&cma {
|
||||
size = <0x1600000>;
|
||||
};
|
||||
|
||||
&es8388 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&es8388_sound {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
usb {
|
||||
usb_extcon_vbus: usb-extcon-vbus {
|
||||
rockchip,pins = <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
|
||||
vcc5v0_otg0_en: vcc5v0-otg0-en {
|
||||
rockchip,pins = <1 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
|
||||
vcc5v0_otg1_en: vcc5v0-otg1-en {
|
||||
rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&sai1 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&u2phy_otg0 {
|
||||
vbus-supply = <&vcc5v0_otg0>;
|
||||
rockchip,gpio-vbus-det;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&u2phy_otg1 {
|
||||
phy-supply = <&vcc5v0_otg1>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb2phy {
|
||||
extcon = <&extcon_usb>;
|
||||
status = "okay";
|
||||
};
|
||||
@@ -6,6 +6,7 @@
|
||||
#include <dt-bindings/display/drm_mipi_dsi.h>
|
||||
#include <dt-bindings/input/rk-input.h>
|
||||
#include <dt-bindings/suspend/rockchip-rk3506.h>
|
||||
#include "rk3502-evb1-v10.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Rockchip RK3506 EVB1 V10 Board";
|
||||
@@ -15,53 +16,6 @@
|
||||
bootargs = "earlycon=uart8250,mmio32,0xff0a0000 console=ttyFIQ0 ubi.mtd=5 ubi.block=0,rootfs root=/dev/ubiblock0_0 rootfstype=squashfs rootwait snd_aloop.index=7 snd_aloop.use_raw_jiffies=1";
|
||||
};
|
||||
|
||||
acodec_sound: acodec-sound {
|
||||
compatible = "simple-audio-card";
|
||||
simple-audio-card,name = "rockchip,acodec";
|
||||
simple-audio-card,format = "i2s";
|
||||
simple-audio-card,mclk-fs = <1024>;
|
||||
simple-audio-card,bitclock-master = <&codec_master>;
|
||||
simple-audio-card,frame-master = <&codec_master>;
|
||||
simple-audio-card,cpu {
|
||||
sound-dai = <&sai4>;
|
||||
};
|
||||
codec_master: simple-audio-card,codec {
|
||||
sound-dai = <&audio_codec>;
|
||||
};
|
||||
};
|
||||
|
||||
adc_keys: adc-keys {
|
||||
compatible = "adc-keys";
|
||||
io-channels = <&saradc 1>;
|
||||
io-channel-names = "buttons";
|
||||
keyup-threshold-microvolt = <1800000>;
|
||||
poll-interval = <100>;
|
||||
|
||||
vol-up-key {
|
||||
label = "volume up";
|
||||
linux,code = <KEY_VOLUMEUP>;
|
||||
press-threshold-microvolt = <16000>;
|
||||
};
|
||||
|
||||
vol-down-key {
|
||||
label = "volume down";
|
||||
linux,code = <KEY_VOLUMEDOWN>;
|
||||
press-threshold-microvolt = <420000>;
|
||||
};
|
||||
|
||||
menu-key {
|
||||
label = "menu";
|
||||
linux,code = <KEY_MENU>;
|
||||
press-threshold-microvolt = <800000>;
|
||||
};
|
||||
|
||||
esc-key {
|
||||
label = "esc";
|
||||
linux,code = <KEY_ESC>;
|
||||
press-threshold-microvolt = <1200000>;
|
||||
};
|
||||
};
|
||||
|
||||
backlight: backlight {
|
||||
compatible = "pwm-backlight";
|
||||
pwms = <&pwm0_4ch_2 0 25000 0>;
|
||||
@@ -102,166 +56,6 @@
|
||||
default-brightness-level = <200>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
dsm_sound: dsm-sound {
|
||||
status = "disabled";
|
||||
compatible = "simple-audio-card";
|
||||
simple-audio-card,format = "i2s";
|
||||
simple-audio-card,mclk-fs = <256>;
|
||||
simple-audio-card,name = "rockchip,dsm-sound";
|
||||
simple-audio-card,bitclock-master = <&sndcodec>;
|
||||
simple-audio-card,frame-master = <&sndcodec>;
|
||||
sndcpu: simple-audio-card,cpu {
|
||||
sound-dai = <&sai3>;
|
||||
};
|
||||
sndcodec: simple-audio-card,codec {
|
||||
sound-dai = <&acdcdig_dsm>;
|
||||
};
|
||||
};
|
||||
|
||||
es8388_sound: es8388-sound {
|
||||
status = "disabled";
|
||||
compatible = "rockchip,multicodecs-card";
|
||||
rockchip,card-name = "rockchip-es8388";
|
||||
spk-con-gpio = <&gpio1 RK_PC6 GPIO_ACTIVE_HIGH>;
|
||||
rockchip,pre-power-on-delay-ms = <30>;
|
||||
rockchip,post-power-down-delay-ms = <40>;
|
||||
rockchip,format = "i2s";
|
||||
rockchip,mclk-fs = <256>;
|
||||
rockchip,cpu = <&sai1>;
|
||||
rockchip,codec = <&es8388>;
|
||||
rockchip,audio-routing =
|
||||
"Speaker", "LOUT1",
|
||||
"Speaker", "ROUT1",
|
||||
"Speaker", "Speaker Power",
|
||||
"Speaker", "Speaker Power",
|
||||
"LINPUT1", "Main Mic",
|
||||
"LINPUT2", "Main Mic",
|
||||
"RINPUT1", "Main Mic",
|
||||
"RINPUT2", "Main Mic";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&spk_ctrl>;
|
||||
};
|
||||
|
||||
fiq_debugger: fiq-debugger {
|
||||
compatible = "rockchip,fiq-debugger";
|
||||
rockchip,serial-id = <0>;
|
||||
rockchip,wake-irq = <0>;
|
||||
rockchip,irq-mode-enable = <1>;
|
||||
rockchip,baudrate = <1500000>; /* Only 115200 and 1500000 */
|
||||
interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>;
|
||||
};
|
||||
|
||||
gpio_keys: gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&key_wake_up>;
|
||||
|
||||
wake_up: wake-up {
|
||||
label = "Wake-up";
|
||||
gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_LOW>;
|
||||
linux,code = <KEY_WAKEUP>;
|
||||
wakeup-source;
|
||||
};
|
||||
};
|
||||
|
||||
vcc12v_dc: vcc12v-dc {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc12v_dc";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <12000000>;
|
||||
regulator-max-microvolt = <12000000>;
|
||||
};
|
||||
|
||||
vcc_sys: vcc-sys {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc_sys";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <5000000>;
|
||||
regulator-max-microvolt = <5000000>;
|
||||
vin-supply = <&vcc12v_dc>;
|
||||
};
|
||||
|
||||
vcc3v3_stb: vcc3v3-stb {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc3v3_stb";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
vin-supply = <&vcc_sys>;
|
||||
};
|
||||
|
||||
vcc_1v8: vcc-1v8 {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc_1v8";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
vin-supply = <&vcc3v3_stb>;
|
||||
};
|
||||
|
||||
vcc_ddr: vcc-ddr {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc_ddr";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
vin-supply = <&vcc_sys>;
|
||||
};
|
||||
|
||||
vdd_arm: vdd-arm {
|
||||
compatible = "pwm-regulator";
|
||||
pwms = <&pwm0_4ch_0 0 5000 1>;
|
||||
regulator-name = "vdd_arm";
|
||||
regulator-min-microvolt = <710000>;
|
||||
regulator-max-microvolt = <1207000>;
|
||||
regulator-init-microvolt = <1011000>;
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-settling-time-up-us = <250>;
|
||||
pwm-supply = <&vcc_sys>;
|
||||
};
|
||||
|
||||
sdio_pwrseq: sdio-pwrseq {
|
||||
compatible = "mmc-pwrseq-simple";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&wifi_enable_h>;
|
||||
|
||||
/*
|
||||
* On the module itself this is one of these (depending
|
||||
* on the actual card populated):
|
||||
* - SDIO_RESET_L_WL_REG_ON
|
||||
* - PDN (power down when low)
|
||||
*/
|
||||
reset-gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
wireless-bluetooth {
|
||||
compatible = "bluetooth-platdata";
|
||||
uart_rts_gpios = <&gpio3 RK_PB5 GPIO_ACTIVE_LOW>;
|
||||
pinctrl-names = "default", "rts_gpio";
|
||||
pinctrl-0 = <&uart5m0_rtsn_pins>;
|
||||
pinctrl-1 = <&uart5_gpios>;
|
||||
BT,power_gpio = <&gpio3 RK_PB6 GPIO_ACTIVE_HIGH>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
wireless-wlan {
|
||||
compatible = "wlan-platdata";
|
||||
rockchip,grf = <&grf>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&wifi_wake_host>;
|
||||
wifi_chip_type = "cyw43455";
|
||||
WIFI,host_wake_irq = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
&audio_codec {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&can0 {
|
||||
@@ -272,14 +66,6 @@
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&cma {
|
||||
size = <0x800000>;
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
cpu-supply = <&vdd_arm>;
|
||||
};
|
||||
|
||||
&display_subsystem {
|
||||
logo-memory-region = <&drm_logo>;
|
||||
status = "okay";
|
||||
@@ -556,34 +342,6 @@
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&flexbus_fspi {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&flexbus0m1_pins &flexbus0_clk_pins
|
||||
&flexbus0_d0_pins &flexbus0_d1_pins
|
||||
&flexbus0_d2_pins &flexbus0_d3_pins>;
|
||||
status = "disabled";
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <100000000>;
|
||||
spi-rx-bus-width = <4>;
|
||||
spi-tx-bus-width = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
&fspi {
|
||||
status = "okay";
|
||||
|
||||
flash@0 {
|
||||
compatible = "spi-nand";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <80000000>;
|
||||
spi-rx-bus-width = <4>;
|
||||
spi-tx-bus-width = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
phy-mode = "rmii";
|
||||
clock_in_out = "output";
|
||||
@@ -602,26 +360,6 @@
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&i2c0 {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&rm_io13_i2c0_scl
|
||||
&rm_io14_i2c0_sda>;
|
||||
|
||||
es8388: es8388@11 {
|
||||
status = "disabled";
|
||||
#sound-dai-cells = <0>;
|
||||
compatible = "everest,es8388", "everest,es8323";
|
||||
reg = <0x11>;
|
||||
clocks = <&mclkout_sai1>;
|
||||
clock-names = "mclk";
|
||||
assigned-clocks = <&mclkout_sai1>;
|
||||
assigned-clock-rates = <12288000>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&rm_io8_sai1_mclk>;
|
||||
};
|
||||
};
|
||||
|
||||
&i2c2 {
|
||||
clock-frequency = <400000>;
|
||||
pinctrl-names = "default";
|
||||
@@ -645,145 +383,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
&mmc {
|
||||
bus-width = <4>;
|
||||
cap-sd-highspeed;
|
||||
no-sd;
|
||||
no-mmc;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&sdmmc_clk_pins &sdmmc_cmd_pins &sdmmc_bus4_pins>;
|
||||
ignore-pm-notify;
|
||||
keep-power-in-suspend;
|
||||
non-removable;
|
||||
mmc-pwrseq = <&sdio_pwrseq>;
|
||||
sd-uhs-sdr104;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
gpio-keys {
|
||||
key_wake_up: key-wake-up {
|
||||
rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
|
||||
sdio-pwrseq {
|
||||
wifi_enable_h: wifi-enable-h {
|
||||
rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
|
||||
speaker {
|
||||
spk_ctrl: spk-ctrl {
|
||||
rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
|
||||
wireless-bluetooth {
|
||||
uart5_gpios: uart5-gpios {
|
||||
rockchip,pins = <3 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
};
|
||||
};
|
||||
|
||||
wireless-wlan {
|
||||
wifi_wake_host: wifi-wake-host {
|
||||
rockchip,pins = <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_up>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pwm0_4ch_0 {
|
||||
pinctrl-names = "active";
|
||||
pinctrl-0 = <&rm_io21_pwm0_ch0>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pwm0_4ch_1 {
|
||||
pinctrl-names = "active";
|
||||
pinctrl-0 = <&rm_io20_pwm0_ch1>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pwm0_4ch_2 {
|
||||
pinctrl-names = "active";
|
||||
pinctrl-0 = <&rm_io3_pwm0_ch2>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rga2 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rng {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rockchip_suspend {
|
||||
rockchip,sleep-mode-config = <
|
||||
(0
|
||||
| RKPM_ARMOFF_DDRPD
|
||||
| RKPM_24M_OSC_DIS
|
||||
| RKPM_32K_CLK
|
||||
| RKPM_32K_SRC_RC
|
||||
| RKPM_PWM0_CH0_REGULATOR
|
||||
)
|
||||
>;
|
||||
|
||||
rockchip,apios-suspend = <
|
||||
(0
|
||||
| RKPM_PWREN_CORE_GPIO0A2 | RKPM_PWREN_CORE_ACT_LOW
|
||||
| RKPM_PWREN_SLEEP_GPIO0A0 | RKPM_PWREN_SLEEP_ACT_LOW
|
||||
)
|
||||
>;
|
||||
};
|
||||
|
||||
&sai1 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&rm_io9_sai1_sclk
|
||||
&rm_io10_sai1_lrck
|
||||
&rm_io11_sai1_sdi
|
||||
&rm_io12_sai1_sdo0>;
|
||||
};
|
||||
|
||||
&sai4 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&saradc {
|
||||
vref-supply = <&vcc_1v8>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&tsadc {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&uart5 {
|
||||
pinctrl-0 = <&uart5m0_xfer_pins &uart5m0_ctsn_pins>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&u2phy_otg0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&u2phy_otg1 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb2phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb20_otg0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb20_otg1 {
|
||||
dr_mode = "host";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&vop {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -135,6 +135,11 @@
|
||||
*(.vectors.bhb.bpiall) \
|
||||
} \
|
||||
} \
|
||||
.vectors.text : { \
|
||||
KEEP(*(.vectors)) \
|
||||
KEEP(*(.vectors.bhb.loop8)) \
|
||||
KEEP(*(.vectors.bhb.bpiall)) \
|
||||
} \
|
||||
ARM_LMA(__vectors, .vectors); \
|
||||
ARM_LMA(__vectors_bhb_loop8, .vectors.bhb.loop8); \
|
||||
ARM_LMA(__vectors_bhb_bpiall, .vectors.bhb.bpiall); \
|
||||
|
||||
@@ -110,7 +110,7 @@ static void rk628_rgb_decoder_enable(struct rk628 *rk628)
|
||||
RGB_RX_MODET_EN | RGB_RX_DCLK_EN);
|
||||
rk628_i2c_update_bits(rk628, GRF_RGB_RX_DBG_MEAS3,
|
||||
RGB_RX_CNT_EN_MASK, RGB_RX_CNT_EN(1));
|
||||
rk628_i2c_write(rk628, GRF_BT1120_DCLK_DELAY_CON0, 0x10000);
|
||||
rk628_i2c_write(rk628, GRF_BT1120_DCLK_DELAY_CON0, 0x10000000);
|
||||
rk628_i2c_write(rk628, GRF_BT1120_DCLK_DELAY_CON1, 0);
|
||||
}
|
||||
|
||||
@@ -294,7 +294,7 @@ static void rk628_bt1120_decoder_enable(struct rk628 *rk628)
|
||||
} else {
|
||||
if (rk628->version == RK628F_VERSION) {
|
||||
rk628_i2c_write(rk628, GRF_BT1120_DCLK_DELAY_CON0,
|
||||
0x10000);
|
||||
0x08000000);
|
||||
rk628_i2c_write(rk628, GRF_BT1120_DCLK_DELAY_CON1, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -983,6 +983,13 @@ static int dwcmshc_remove(struct platform_device *pdev)
|
||||
struct dwcmshc_priv *priv = sdhci_pltfm_priv(pltfm_host);
|
||||
struct rk35xx_priv *rk_priv = priv->priv;
|
||||
|
||||
if (rk_priv && !rk_priv->acpi_en) {
|
||||
pm_runtime_get_sync(&pdev->dev);
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
pm_runtime_put_noidle(&pdev->dev);
|
||||
pm_runtime_dont_use_autosuspend(&pdev->dev);
|
||||
}
|
||||
|
||||
sdhci_remove_host(host, 0);
|
||||
|
||||
clk_disable_unprepare(pltfm_host->clk);
|
||||
|
||||
@@ -626,8 +626,8 @@ static void ufs_rockchip_shutdown(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
static const struct dev_pm_ops ufs_rockchip_pm_ops = {
|
||||
SET_SYSTEM_SLEEP_PM_OPS(ufs_rockchip_suspend, ufs_rockchip_resume)
|
||||
SET_RUNTIME_PM_OPS(ufs_rockchip_runtime_suspend, ufs_rockchip_runtime_resume, NULL)
|
||||
SYSTEM_SLEEP_PM_OPS(ufs_rockchip_suspend, ufs_rockchip_resume)
|
||||
RUNTIME_PM_OPS(ufs_rockchip_runtime_suspend, ufs_rockchip_runtime_resume, NULL)
|
||||
.prepare = ufshcd_suspend_prepare,
|
||||
.complete = ufshcd_resume_complete,
|
||||
};
|
||||
@@ -638,7 +638,7 @@ static struct platform_driver ufs_rockchip_pltform = {
|
||||
.shutdown = ufs_rockchip_shutdown,
|
||||
.driver = {
|
||||
.name = "ufshcd-rockchip",
|
||||
.pm = &ufs_rockchip_pm_ops,
|
||||
.pm = pm_ptr(&ufs_rockchip_pm_ops),
|
||||
.of_match_table = of_match_ptr(ufs_rockchip_of_match),
|
||||
},
|
||||
};
|
||||
|
||||
@@ -893,9 +893,9 @@ static int iep2_init(struct mpp_dev *mpp)
|
||||
iep->roi.vaddr = dma_alloc_coherent(mpp->dev, iep->roi.size,
|
||||
&iep->roi.iova,
|
||||
GFP_KERNEL);
|
||||
if (iep->roi.vaddr) {
|
||||
if (!iep->roi.vaddr) {
|
||||
dev_err(mpp->dev, "allocate roi buffer failed\n");
|
||||
//return -ENOMEM;
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user