Skip to content

Commit

Permalink
Update armsom-sige7 device tree
Browse files Browse the repository at this point in the history
  • Loading branch information
Z-Keven authored and igorpecovnik committed Feb 2, 2024
1 parent fe2e254 commit f6c51fb
Showing 1 changed file with 80 additions and 62 deletions.
142 changes: 80 additions & 62 deletions arch/arm64/boot/dts/rockchip/rk3588-armsom-sige7.dts
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,15 @@
work_led: work {
label = "red";
gpios = <&gpio4 RK_PC5 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat";
linux,default-trigger = "default-off";
default-state = "off";
};

active_led: active {
label = "green";
gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "none";
linux,default-trigger = "default-off";
default-state = "on";
};
};

Expand Down Expand Up @@ -196,15 +198,6 @@
pinctrl-0 = <&vcc5v0_host_en>;
};

sdio_pwrseq: sdio-pwrseq {
compatible = "mmc-pwrseq-simple";
clocks = <&hym8563>;
clock-names = "ext_clock";
pinctrl-names = "default";
pinctrl-0 = <&wifi_enable_h>;
reset-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_LOW>;
};

wireless_bluetooth: wireless-bluetooth {
compatible = "bluetooth-platdata";
clocks = <&hym8563>;
Expand All @@ -219,16 +212,15 @@

wireless_wlan: wireless-wlan {
compatible = "wlan-platdata";
wifi_chip_type = "ap6275s";
wifi_chip_type = "ap6275p";
pinctrl-names = "default";
pinctrl-0 = <&wifi_host_wake_irq>;
pinctrl-0 = <&wifi_host_wake_irq>,<&wifi_poweren_gpio>;
WIFI,host_wake_irq = <&gpio0 RK_PB2 GPIO_ACTIVE_HIGH>;
WIFI,poweren_gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
status = "okay";
};
};

//=============================================================

&av1d_mmu {
status = "okay";
};
Expand Down Expand Up @@ -490,10 +482,6 @@
status = "okay";
};

&usbdp_phy0 {
status = "okay";
};

&usbdp_phy0_dp {
status = "okay";
};
Expand All @@ -507,7 +495,7 @@
};

&usbdp_phy1_dp {
status = "okay";
status = "disabled";
};

&usbdp_phy1_u3 {
Expand All @@ -518,11 +506,6 @@
status = "okay";
};

&usbdrd_dwc3_0 {
dr_mode = "otg";
status = "okay";
};

&usbhost3_0 {
status = "okay";
};
Expand Down Expand Up @@ -580,8 +563,6 @@
rockchip,primary-plane = <ROCKCHIP_VOP2_ESMART3>;
};

//=============================================================

&dp0 {
status = "okay";
};
Expand All @@ -598,7 +579,9 @@
connect = <&vp2_out_dp0>;
};


&spdif_tx2 {
status = "okay";
};

&hdmi0 {
status = "okay";
Expand Down Expand Up @@ -683,6 +666,47 @@
};
};

&i2c3 {
status = "okay";
usbc1: fusb302@22 {
compatible = "fcs,fusb302";
reg = <0x22>;
interrupt-parent = <&gpio3>;
interrupts = <RK_PC4 IRQ_TYPE_LEVEL_LOW>;
int-n-gpios = <&gpio3 RK_PC4 GPIO_ACTIVE_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&usbc1_int>;
//vbus-supply = <&vcc12v_dcin>;
vbus-supply = <&vcc5v0_usbdcin>;
status = "okay";
usb_con1: connector {
compatible = "usb-c-connector";
label = "USB-C";
data-role = "dual";
power-role = "dual";
try-power-role = "sink";
op-sink-microwatt = <1000000>;
sink-pdos =
<PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
PDO_FIXED(9000, 3000, PDO_FIXED_USB_COMM)
PDO_FIXED(12000, 3000, PDO_FIXED_USB_COMM)>;
source-pdos =
<PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;

altmodes {
#address-cells = <1>;
#size-cells = <0>;

altmode@0 {
reg = <0>;
svid = <0xff01>;
vdo = <0xffffffff>;
};
};
};
};
};

&i2c4 {
status = "okay";
pinctrl-names = "default";
Expand Down Expand Up @@ -837,12 +861,21 @@
status = "okay";
};

&combphy2_psu {
status = "okay";
};

&pcie2x1l0 {
reset-gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>;
rockchip,init-delay-ms = <100>;
status = "okay";
};

&pcie2x1l1 {
reset-gpios = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>;
status = "okay";
};

&pcie2x1l2 {
reset-gpios = <&gpio3 RK_PB0 GPIO_ACTIVE_HIGH>;
rockchip,init-delay-ms = <100>;
Expand All @@ -858,6 +891,8 @@
&pcie3x4 {
reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>;
vpcie3v3-supply = <&vcc3v3_pcie30>;
pinctrl-names = "default";
pinctrl-0 = <&pcie30x4_clkreqn_m1>;
status = "okay";
};

Expand Down Expand Up @@ -923,11 +958,21 @@
rockchip,pins = <3 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>;
};

usbc1_int: usbc1-int {
rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up>;
};

typec5v_pwren: typec5v-pwren {
rockchip,pins = <2 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
};
};

pcie30x4 {
pcie30x4_clkreqn_m1: pcie30x4-clkreqn-m1 {
rockchip,pins = <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>;
};
};

wireless-bluetooth {
uart6_gpios: uart6-gpios {
rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
Expand All @@ -938,6 +983,9 @@
wifi_host_wake_irq: wifi-host-wake-irq {
rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_down>;
};
wifi_poweren_gpio: wifi-poweren-gpio {
rockchip,pins = <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up>;
};
};

};
Expand Down Expand Up @@ -981,23 +1029,6 @@
status = "okay";
};

&sdio {
max-frequency = <150000000>;
supports-sdio;
bus-width = <4>;
disable-wp;
cap-sd-highspeed;
cap-sdio-irq;
keep-power-in-suspend;
mmc-pwrseq = <&sdio_pwrseq>;
non-removable;
num-slots = <1>;
pinctrl-names = "default";
pinctrl-0 = <&sdiom0_pins>;
sd-uhs-sdr104;
status = "okay";
};

&sdmmc {
max-frequency = <200000000>;
no-sdio;
Expand Down Expand Up @@ -1027,9 +1058,11 @@

&u2phy0_otg {
rockchip,typec-vbus-det;
status = "okay";
};

&usbdp_phy0 {
status = "okay";
orientation-switch;
svid = <0xff01>;
sbu1-dc-gpios = <&gpio4 RK_PA6 GPIO_ACTIVE_HIGH>;
Expand All @@ -1050,12 +1083,9 @@
};
};

&usbdp_phy1 {
rockchip,dp-lane-mux = <0 1 2 3>;
};

&usbdrd_dwc3_0 {
dr_mode = "otg";
status = "okay";
dr_mode = "otg";
usb-role-switch;
port {
#address-cells = <1>;
Expand All @@ -1065,16 +1095,4 @@
remote-endpoint = <&usbc0_role_sw>;
};
};
};

&usbdp_phy0_dp {
status = "okay";
};

&usbhost3_0 {
status = "disabled";
};

&usbhost_dwc3_0 {
status = "disabled";
};

0 comments on commit f6c51fb

Please sign in to comment.