1 Star 0 Fork 1

LeangangChen/rk3588-lenovo

forked from Bingo/rk3588-lenovo 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
rk3588-lenovo-notebook.dts 21.70 KB
一键复制 编辑 原始数据 按行查看 历史
Bingo 提交于 2023-11-22 21:14 . Add files via upload
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2021 Rockchip Electronics Co., Ltd.
*
*/
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pwm/pwm.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/input/rk-input.h>
#include <dt-bindings/display/drm_mipi_dsi.h>
#include <dt-bindings/display/rockchip_vop.h>
#include <dt-bindings/sensor-dev.h>
#include "dt-bindings/usb/pd.h"
#include "rk3588.dtsi"
#include "rk3588-rk806-dual.dtsi"
#include "rk3588-linux.dtsi"
/ {
model = "Rockchip RK3588 Lenovo Board";
compatible = "rockchip,rk3588-lenovo", "rockchip,rk3588";
aliases {
mmc0 = &sdhci;
mmc1 = &sdio;
mmc2 = &sdmmc;
serial0 = &uart0;
serial1 = &uart1;
serial2 = &uart2;
serial3 = &uart3;
serial4 = &uart4;
serial5 = &uart5;
serial6 = &uart6;
serial7 = &uart7;
serial8 = &uart8;
serial9 = &uart9;
};
cspmu: cspmu@fd10c000 {
compatible = "rockchip,cspmu";
reg = <0x0 0xfd10c000 0x0 0x1000>,
<0x0 0xfd10d000 0x0 0x1000>,
<0x0 0xfd10e000 0x0 0x1000>,
<0x0 0xfd10f000 0x0 0x1000>,
<0x0 0xfd12c000 0x0 0x1000>,
<0x0 0xfd12d000 0x0 0x1000>,
<0x0 0xfd12e000 0x0 0x1000>,
<0x0 0xfd12f000 0x0 0x1000>;
};
debug: debug@fd104000 {
compatible = "rockchip,debug";
reg = <0x0 0xfd104000 0x0 0x1000>,
<0x0 0xfd105000 0x0 0x1000>,
<0x0 0xfd106000 0x0 0x1000>,
<0x0 0xfd107000 0x0 0x1000>,
<0x0 0xfd124000 0x0 0x1000>,
<0x0 0xfd125000 0x0 0x1000>,
<0x0 0xfd126000 0x0 0x1000>,
<0x0 0xfd127000 0x0 0x1000>;
};
fiq_debugger: fiq-debugger {
compatible = "rockchip,fiq-debugger";
rockchip,serial-id = <2>;
rockchip,wake-irq = <0>;
/* If enable uart uses irq instead of fiq */
rockchip,irq-mode-enable = <1>;
rockchip,baudrate = <1500000>; /* Only 115200 and 1500000 */
interrupts = <GIC_SPI 423 IRQ_TYPE_LEVEL_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&uart2m1_xfer>;
status = "okay";
};
reserved_memory: reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;
cma {
compatible = "shared-dma-pool";
reusable;
reg = <0x0 (256 * 0x100000) 0x0 (128 * 0x100000)>;
linux,cma-default;
};
drm_logo: drm-logo@00000000 {
compatible = "rockchip,drm-logo";
reg = <0x0 0x0 0x0 0x0>;
};
drm_cubic_lut: drm-cubic-lut@00000000 {
compatible = "rockchip,drm-cubic-lut";
reg = <0x0 0x0 0x0 0x0>;
};
};
backlight: backlight {
compatible = "pwm-backlight";
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";
pwms = <&pwm15 0 25000 0>;
enable-gpios = <&gpio3 0x04 GPIO_ACTIVE_HIGH>;
};
vcc12v_dcin: vcc12v-dcin {
compatible = "regulator-fixed";
regulator-name = "vcc12v_dcin";
regulator-always-on;
regulator-boot-on;
regulator-min-microvolt = <12000000>;
regulator-max-microvolt = <12000000>;
};
vcc5v0_sys: vcc5v0-sys {
compatible = "regulator-fixed";
regulator-name = "vcc5v0_sys";
regulator-always-on;
regulator-boot-on;
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
vin-supply = <&vcc12v_dcin>;
};
vcc5v0_usbdcin: vcc5v0-usbdcin {
compatible = "regulator-fixed";
regulator-name = "vcc5v0_usbdcin";
regulator-always-on;
regulator-boot-on;
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
vin-supply = <&vcc12v_dcin>;
};
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 = <17000>;
};
};
es8326_sound: es8326-sound {
status = "okay";
compatible = "rockchip,multicodecs-card";
rockchip,card-name = "rockchip,es8326-sound";
rockchip,codec-hp-det;
rockchip,format = "i2s";
rockchip,mclk-fs = <256>;
rockchip,cpu = <&i2s0_8ch>;
rockchip,codec = <&es8326>;
};
panel_edp0: panel-edp0 {
compatible = "simple-panel";
backlight = <&backlight>;
enable-gpios = <&gpio3 0x05 GPIO_ACTIVE_HIGH>;
power-supply = <&vcc3v3_lcd>;
prepare-delay-ms = <210>;
enable-delay-ms = <50>;
unprepare-delay-ms = <160>;
disable-delay-ms = <120>;
width-mm = <309>;
height-mm = <174>;
panel-timing {
clock-frequency = <160300000>;
hactive = <2240>;
vactive = <1400>;
hfront-porch = <48>;
hsync-len = <32>;
hback-porch = <200>;
vfront-porch = <3>;
vsync-len = <5>;
vback-porch = <60>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
port {
panel_in_edp0: endpoint {
remote-endpoint = <&edp0_out_panel>;
};
};
};
hall_mh248: hall-mh248 {
compatible = "hall-mh248";
pinctrl-names = "default";
pinctrl-0 = <&mh248_irq_gpio>;
irq-gpio = <&gpio1 0x0c IRQ_TYPE_LEVEL_LOW>;
hall-active = <0x00000000>;
status = "okay";
};
hdmi1_sound: hdmi1-sound {
status = "disabled";
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
simple-audio-card,mclk-fs = <238>;
simple-audio-card,name = "rockchip,hdmi1";
simple-audio-card,cpu {
sound-dai = <&i2s6_8ch>;
};
simple-audio-card,codec {
sound-dai = <&hdmi1>;
};
};
test_power: test-power {
status = "okay";
};
vcc3v3_pcie30: vcc3v3-pcie30 {
compatible = "regulator-fixed";
regulator-name = "vcc3v3_pcie30";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
enable-active-high;
gpios = <&gpio3 0x16 GPIO_ACTIVE_HIGH>;
startup-delay-us = <5000>;
vin-supply = <&vcc12v_dcin>;
};
vcc5v0_usb: vcc5v0-usb {
compatible = "regulator-fixed";
regulator-name = "vcc5v0_usb";
regulator-always-on;
regulator-boot-on;
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
vin-supply = <&vcc5v0_usbdcin>;
};
vcc3v3_lcd: vcc3v3-lcd {
compatible = "regulator-fixed";
regulator-name = "vcc3v3_lcd";
vin-supply = <&vcc_3v3_s0>;
};
vcc5v0_host: vcc5v0-host {
compatible = "regulator-fixed";
regulator-name = "vcc5v0_host";
regulator-boot-on;
regulator-always-on;
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
enable-active-high;
gpio = <&gpio4 8 GPIO_ACTIVE_HIGH>;
vin-supply = <&vcc5v0_usb>;
pinctrl-names = "default";
pinctrl-0 = <&vcc5v0_host_en>;
};
gpio_keys: gpio-keys {
compatible = "gpio-keys";
pinctrl-names = "default";
pinctrl-0 = <&sw_lid>;
hall-sensor {
wakeup-event-action = <2>;
wakeup-source;
gpios = <&gpio1 0x0c GPIO_ACTIVE_LOW>;
debounce-interval = <20>;
label = "sw_lid";
linux,input-type = <5>;
linux,code = <KEY_RESERVED>;
};
};
fan: pwm-fan {
compatible = "pwm-fan";
cooling-min-state = <0>;
cooling-max-state = <3>;
#cooling-cells = <2>;
pwms = <&pwm15 0 50000 0>;
cooling-levels = <0 50 100 150 200 255>;
rockchip,temp-trips = <
50000 1
55000 2
60000 3
65000 4
70000 5
>;
};
};
&cpu_l0 {
cpu-supply = <&vdd_cpu_lit_s0>;
mem-supply = <&vdd_cpu_lit_mem_s0>;
};
&cpu_b0 {
cpu-supply = <&vdd_cpu_big0_s0>;
mem-supply = <&vdd_cpu_big0_mem_s0>;
};
&cpu_b2 {
cpu-supply = <&vdd_cpu_big1_s0>;
mem-supply = <&vdd_cpu_big1_mem_s0>;
};
&dmc {
auto-freq-en = <1>;
status = "okay";
};
&sdmmc {
max-frequency = <150000000>;
status = "okay";
no-sdio;
no-mmc;
bus-width = <4>;
cap-mmc-highspeed;
cap-sd-highspeed;
disable-wp;
sd-uhs-sdr104;
vmmc-supply = <&vcc_3v3_sd_s0>;
vqmmc-supply = <&vccio_sd_s0>;
};
&sdhci {
bus-width = <8>;
no-sdio;
no-sd;
non-removable;
max-frequency = <200000000>;
status = "okay";
};
&gpu {
mali-supply = <&vdd_gpu_s0>;
mem-supply = <&vdd_gpu_mem_s0>;
status = "okay";
};
&iep {
status = "okay";
};
&iep_mmu {
status = "okay";
};
&jpegd {
status = "okay";
};
&jpegd_mmu {
status = "okay";
};
&jpege_ccu {
status = "okay";
};
&jpege0 {
status = "okay";
};
&jpege0_mmu {
status = "okay";
};
&jpege1 {
status = "okay";
};
&jpege1_mmu {
status = "okay";
};
&jpege2 {
status = "okay";
};
&jpege2_mmu {
status = "okay";
};
&jpege3 {
status = "okay";
};
&jpege3_mmu {
status = "okay";
};
&mpp_srv {
status = "okay";
};
&rga3_core0 {
status = "okay";
};
&rga3_0_mmu {
status = "okay";
};
&rga3_core1 {
status = "okay";
};
&rga3_1_mmu {
status = "okay";
};
&rga2 {
status = "okay";
};
&rknpu {
rknpu-supply = <&vdd_npu_s0>;
mem-supply = <&vdd_npu_mem_s0>;
status = "okay";
};
&rknpu_mmu {
status = "okay";
};
&rkvdec_ccu {
status = "okay";
};
&rkvdec0 {
status = "okay";
};
&rkvdec0_mmu {
status = "okay";
};
&rkvdec1 {
status = "okay";
};
&rkvdec1_mmu {
status = "okay";
};
&rkvenc_ccu {
status = "okay";
};
&rkvenc0 {
status = "okay";
};
&rkvenc0_mmu {
status = "okay";
};
&rkvenc1 {
status = "okay";
};
&rkvenc1_mmu {
status = "okay";
};
&rockchip_suspend {
status = "disabled";
rockchip,sleep-debug-en = <1>;
};
&saradc {
status = "okay";
vref-supply = <&vcc_1v8_s0>;
};
&tsadc {
status = "okay";
};
&u2phy0 {
status = "okay";
};
&u2phy1 {
status = "okay";
};
&u2phy2 {
status = "okay";
};
&u2phy3 {
status = "okay";
};
&u2phy0_otg {
dr_mode = "otg";
status = "okay";
};
&u2phy1_otg {
status = "okay";
};
&u2phy2_host {
status = "okay";
};
&u2phy3_host {
status = "okay";
};
&usb_host0_ehci {
status = "okay";
};
&usb_host0_ohci {
status = "okay";
};
&usb_host1_ehci {
status = "okay";
};
&usb_host1_ohci {
status = "okay";
};
&usbdp_phy0 {
orientation-switch;
svid = <0xff01>;
sbu1-dc-gpios = <&gpio4 RK_PA4 GPIO_ACTIVE_HIGH>;
sbu2-dc-gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>;
status = "okay";
port {
#address-cells = <1>;
#size-cells = <0>;
usbdp_phy0_orientation_switch: endpoint@0 {
reg = <0>;
remote-endpoint = <&usbc0_orien_sw>;
};
usbdp_phy0_dp_altmode_mux: endpoint@1 {
reg = <1>;
remote-endpoint = <&usbc0_dp_altmode_mux>;
};
};
};
&usbdp_phy0_dp {
status = "okay";
};
&usbdp_phy0_u3 {
status = "okay";
};
&usbdrd3_0 {
status = "okay";
};
&usbdrd_dwc3_0 {
dr_mode = "otg";
status = "okay";
usb-role-switch;
port {
#address-cells = <1>;
#size-cells = <0>;
dwc3_0_role_switch: endpoint@0 {
reg = <0>;
remote-endpoint = <&usbc0_role_sw>;
};
};
};
&usbhost3_0 {
status = "okay";
};
&usbhost_dwc3_0 {
status = "okay";
};
&usbdp_phy1 {
orientation-switch;
svid = <0xff01>;
sbu1-dc-gpios = <&gpio4 RK_PA4 GPIO_ACTIVE_HIGH>;
sbu2-dc-gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>;
status = "okay";
port {
#address-cells = <1>;
#size-cells = <0>;
usbdp_phy1_orientation_switch: endpoint@0 {
reg = <0>;
remote-endpoint = <&usbc1_orien_sw>;
};
usbdp_phy1_dp_altmode_mux: endpoint@1 {
reg = <1>;
remote-endpoint = <&usbc1_dp_altmode_mux>;
};
};
};
&usbdp_phy1_dp {
status = "okay";
};
&usbdp_phy1_u3 {
status = "okay";
};
&usbdrd3_1 {
status = "okay";
};
&usbdrd_dwc3_1 {
dr_mode = "otg";
status = "disabled";
usb-role-switch;
port {
#address-cells = <1>;
#size-cells = <0>;
dwc3_1_role_switch: endpoint@0 {
reg = <0>;
remote-endpoint = <&usbc1_role_sw>;
};
};
};
&csi2_dphy0_hw {
status = "disabled";
};
&csi2_dphy1_hw {
status = "disabled";
};
&vdpu {
status = "okay";
};
&vdpu_mmu {
status = "okay";
};
&vop {
status = "okay";
};
&vop_mmu {
status = "okay";
};
/* vp0 & vp1 splice for 8K output */
&vp0 {
cursor-win-id=<ROCKCHIP_VOP2_CLUSTER0>;
rockchip,plane-mask = <(1 << ROCKCHIP_VOP2_CLUSTER0 | 1 << ROCKCHIP_VOP2_ESMART0)>;
rockchip,primary-plane = <ROCKCHIP_VOP2_ESMART0>;
};
&vp1 {
cursor-win-id=<ROCKCHIP_VOP2_CLUSTER1>;
rockchip,plane-mask = <(1 << ROCKCHIP_VOP2_CLUSTER1 | 1 << ROCKCHIP_VOP2_ESMART1)>;
rockchip,primary-plane = <ROCKCHIP_VOP2_ESMART1>;
};
&vp2 {
cursor-win-id=<ROCKCHIP_VOP2_CLUSTER2>;
rockchip,plane-mask = <(1 << ROCKCHIP_VOP2_CLUSTER2 | 1 << ROCKCHIP_VOP2_ESMART2)>;
rockchip,primary-plane = <ROCKCHIP_VOP2_ESMART2>;
};
&vp3 {
cursor-win-id=<ROCKCHIP_VOP2_CLUSTER3>;
rockchip,plane-mask = <(1 << ROCKCHIP_VOP2_CLUSTER3 | 1 << ROCKCHIP_VOP2_ESMART3)>;
rockchip,primary-plane = <ROCKCHIP_VOP2_ESMART3>;
};
&vdd_gpu_s0 {
regulator-always-on;
};
&vdd_gpu_mem_s0 {
regulator-always-on;
};
&vdd_ddr_s0 {
regulator-min-microvolt = <850000>;
regulator-max-microvolt = <850000>;
};
&vdd_0v75_hdmi_edp_s0 {
regulator-min-microvolt = <750000>;
regulator-max-microvolt = <750000>;
};
&dp0 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&dp0_hpd>;
hpd-gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
};
&dp0_in_vp1 {
status = "okay";
};
&route_dp0 {
status = "okay";
connect = <&vp2_out_dp0>;
};
&dp1 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&dp1_hpd>;
hpd-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
};
&dp1_in_vp1 {
status = "okay";
};
&route_dp1 {
status = "okay";
connect = <&vp2_out_dp1>;
};
&edp0 {
force-hpd;
status = "okay";
ports {
port@0 {
edp0_out_vop: endpoint@1 {
reg = <1>;
remote-endpoint = <&vp1_out_edp0>;
status = "okay";
};
};
port@1 {
reg = <1>;
edp0_out_panel: endpoint {
remote-endpoint = <&panel_in_edp0>;
};
};
};
};
&edp0_in_vp0 {
status = "disabled";
};
&edp0_in_vp1 {
status = "disabled";
};
&edp0_in_vp2 {
status = "okay";
};
&u2phy2 {
status = "okay";
host-port {
phy-supply = <&vcc5v0_host>;
};
};
&u2phy3 {
status = "okay";
host-port {
phy-supply = <&vcc5v0_host>;
};
};
&hdptxphy0 {
status = "okay";
lane-polarity-invert = <0 0 0 0>;
};
&i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&i2c1m0_xfer>;
status = "okay";
usbc0: anx7411@2c {
status = "okay";
compatible = "analogix,anx7411";
reg = <0x2c>;
#address-cells = <0x00000001>;
#size-cells = <0x00000000>;
interrupt-parent = <&gpio4>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
extcon = <&u2phy0>;
pinctrl-names = "default";
pinctrl-0 = <&usbc0_int>;
port {
#address-cells = <1>;
#size-cells = <0>;
usbc0_role_sw: endpoint@0 {
reg = <0>;
remote-endpoint = <&dwc3_0_role_switch>;
};
};
usb_con: connector@0 {
compatible = "usb-c-connector";
reg = <0x00000000>;
power-role = "dual";
data-role = "dual";
try-power-role = "sink";
altmodes {
#address-cells = <1>;
#size-cells = <0>;
altmode@0 {
reg = <0>;
svid = <0xff01>;
vdo = <0xffffffff>;
};
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
usbc0_orien_sw: endpoint {
remote-endpoint = <&usbdp_phy0_orientation_switch>;
};
};
port@1 {
reg = <1>;
usbc0_dp_altmode_mux: endpoint {
remote-endpoint = <&usbdp_phy0_dp_altmode_mux>;
};
};
};
};
};
};
&i2c2 {
status = "okay";
hym8563: hym8563@51 {
compatible = "haoyu,hym8563";
reg = <0x51>;
#clock-cells = <0>;
clock-frequency = <32768>;
clock-output-names = "hym8563";
pinctrl-names = "default";
pinctrl-0 = <&hym8563_int>;
interrupt-parent = <&gpio0>;
interrupts = <RK_PD4 IRQ_TYPE_LEVEL_LOW>;
};
sc8886: sc8886@6b {
compatible = "southchip,sc8886";
reg = <0x6b>;
ti,usb-charger-detection = <&usbc0 &usbc1>;
interrupt-parent = <&gpio0>;
interrupts = <RK_PD5 IRQ_TYPE_LEVEL_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&charger_ok>;
extcon = <&u2phy0 &u2phy3>;
ti,charge-current = <2500000>;
ti,max-input-voltage = <20000000>;
ti,max-input-current = <6000000>;
ti,max-charge-voltage = <16800000>;
ti,input-current = <500000>;
ti,input-current-sdp = <500000>;
ti,input-current-dcp = <2000000>;
ti,input-current-cdp = <2000000>;
ti,minimum-sys-voltage = <7400000>;
ti,otg-voltage = <5000000>;
ti,otg-current = <500000>;
pd-charge-only = <0>;
status = "okay";
};
sbs: sbs@b {
status = "okay";
compatible = "sbs,sbs-battery";
reg = <0xb>;
sbs,poll-retry-count = <100>;
sbs,i2c-retry-count = <100>;
};
};
&i2c3 {
status = "okay";
es8326: es8326@18 {
status = "okay";
compatible = "everest,es8326";
reg = <0x18>;
#sound-dai-cells = <0>;
clocks = <&cru I2S0_8CH_MCLKOUT>;
clock-names = "mclk";
assigned-clocks = <&cru I2S0_8CH_MCLKOUT>;
assigned-clock-rates = <12288000>;
pinctrl-names = "default";
pinctrl-0 = <&i2s1m0_mclk>;
interrupt-parent = <&gpio1>;
interrupts = <0x1d IRQ_TYPE_EDGE_RISING>;
mclk-rate = <12288000>;
mic1-src = [22];
mic2-src = [44];
jack-pol = [0e];
spk-con-gpio = <&gpio1 0x1b GPIO_ACTIVE_LOW>;
};
};
&i2c4 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&i2c4m3_xfer>;
clock-frequency = <400000>;
touchpad: touchpad@2c {
compatible = "hid-over-i2c";
reg = <0x2c>;
hid-descr-addr = <0x20>;
interrupt-parent = <&gpio1>;
interrupts = <0x0a IRQ_TYPE_LEVEL_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&touchpad_irq_gpio >;
status = "okay";
};
};
&i2c6 {
status = "okay";
clock-frequency = <400000>;
usbc1: anx7411@2c {
status = "okay";
compatible = "analogix,anx7411";
reg = <0x2c>;
#address-cells = <0x00000001>;
#size-cells = <0x00000000>;
interrupt-parent = <&gpio4>;
interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
extcon = <&u2phy3>;
pinctrl-names = "default";
pinctrl-0 = <&usbc1_int>;
port {
#address-cells = <1>;
#size-cells = <0>;
usbc1_role_sw: endpoint@0 {
reg = <0>;
remote-endpoint = <&dwc3_1_role_switch>;
};
};
usb_con1: connector@0 {
compatible = "usb-c-connector";
reg = <0x00000000>;
power-role = "dual";
data-role = "dual";
try-power-role = "sink";
altmodes {
#address-cells = <1>;
#size-cells = <0>;
altmode@0 {
reg = <0>;
svid = <0xff01>;
vdo = <0xffffffff>;
};
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
usbc1_orien_sw: endpoint {
remote-endpoint = <&usbdp_phy1_orientation_switch>;
};
};
port@1 {
reg = <1>;
usbc1_dp_altmode_mux: endpoint {
remote-endpoint = <&usbdp_phy1_dp_altmode_mux>;
};
};
};
};
};
};
&i2c7 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&i2c7m0_xfer>;
clock-frequency = <400000>;
touchpanel: touchpanel@10 {
compatible = "hid-over-i2c";
reg = <0x10>;
hid-descr-addr = <0x10>;
interrupt-parent = <&gpio0>;
interrupts = <0x1b IRQ_TYPE_LEVEL_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&touchpanel_pwr_en>;
reset-gpios = <&gpio0 0x1a GPIO_ACTIVE_LOW>;
status = "okay";
};
};
&i2s0_8ch {
status = "okay";
};
&pcie30phy {
rockchip,pcie30-phymode = <PHY_MODE_PCIE_AGGREGATION>;
status = "okay";
};
&combphy0_ps {
status = "okay";
};
&combphy1_ps {
status = "okay";
};
&combphy2_psu {
status = "okay";
};
&pcie2x1l0 {
status = "okay";
reset-gpios = <&gpio4 0x05 GPIO_ACTIVE_HIGH>;
};
&pcie3x4 {
reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>;
vpcie3v3-supply = <&vcc3v3_pcie30>;
status = "okay";
};
&pwm6 {
pinctrl-names = "active";
pinctrl-0 = <&pwm6m1_pins>;
status = "okay";
};
&pwm12 {
pinctrl-names = "active";
pinctrl-0 = <&pwm12m1_pins>;
status = "okay";
};
&pwm14 {
pinctrl-names = "active";
pinctrl-0 = <&pwm14m0_pins>;
status = "okay";
};
&pwm15 {
pinctrl-names = "active";
pinctrl-0 = <&pwm15m3_pins>;
#pwm-cells = <3>;
status = "okay";
};
&display_subsystem {
memory-region = <&drm_logo>;
memory-region-names = "drm-logo";
};
&rng {
status = "okay";
};
&pinctrl {
hp_det {
hp_det_gpio: hp-det-gpio {
rockchip,pins = <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
hym8563 {
hym8563_int: hym8563-int {
rockchip,pins = <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
sc8886 {
charger_ok: charger-ok {
rockchip,pins = <0 0x00000014 RK_FUNC_GPIO &pcfg_pull_up>;
phandle = <0x00000125>;
};
};
sbs {
sbs_detect: sbs-detect {
rockchip,pins = <1 0x00000008 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
sensor {
mh248_irq_gpio: mh248-irq-gpio {
rockchip,pins = <1 0x0000000c RK_FUNC_GPIO &pcfg_pull_up>;
};
};
spk_ctl {
spk_ctl_gpio: spk-ctl-gpio {
rockchip,pins = <1 0x0000001b RK_FUNC_GPIO &pcfg_pull_none>;
};
};
touchpad {
touchpad_irq_gpio: touchpad_irq_gpio {
rockchip,pins = <1 0x0000000a RK_FUNC_GPIO &pcfg_pull_up>;
};
};
touchpanel {
touchpanel_pwr_en: touchpanel_pwr_en {
rockchip,pins = <3 0x0000001c RK_FUNC_GPIO &pcfg_output_high>;
};
};
usb {
vcc5v0_host_en: vcc5v0-host-en {
rockchip,pins = <4 0x00000008 0x00000000 0x00000175 0x00000003 0x00000009 RK_FUNC_GPIO &pcfg_output_high>;
};
};
keys {
sw_lid: sw-lid {
rockchip,pins = <1 0x0000000c RK_FUNC_GPIO &pcfg_pull_none>;
};
};
usb-typec {
usbc0_int: usbc0-int {
rockchip,pins = <4 0x00000009 RK_FUNC_GPIO &pcfg_pull_up>;
};
usbc1_int: usbc1-int {
rockchip,pins = <4 0x0000000f RK_FUNC_GPIO &pcfg_pull_up>;
};
typec5v_pwren: typec5v-pwren {
rockchip,pins = <3 0x00000008 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
dp {
dp0_hpd: dp0-hpd {
rockchip,pins = <1 0x00000000 RK_FUNC_GPIO &pcfg_pull_none>;
};
dp1_hpd: dp1-hpd {
rockchip,pins = <1 0x00000001 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
其他
1
https://gitee.com/leangangchen/rk3588-lenovo.git
git@gitee.com:leangangchen/rk3588-lenovo.git
leangangchen
rk3588-lenovo
rk3588-lenovo
main

搜索帮助