Skip to content

Commit

Permalink
hinlink-h88k: edge: update mainline devicetree
Browse files Browse the repository at this point in the history
add gmac0 ethernet support

add poweroff support

fix typo in dts
  • Loading branch information
amazingfate committed Mar 22, 2024
1 parent 6aff5cf commit 741ebab
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion patch/kernel/rockchip-rk3588-edge/dt/rk3588-hinlink-h88k.dts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
compatible = "hinlink,h88k", "rockchip,rk3588";

aliases {
ethernet0 = &gmac0;
mmc0 = &sdhci;
mmc1 = &sdmmc;
mmc2 = &sdio;
Expand Down Expand Up @@ -200,6 +201,21 @@
cpu-supply = <&vdd_cpu_lit_s0>;
};

&gmac0 {
clock_in_out = "output";
phy-handle = <&rgmii_phy>;
phy-mode = "rgmii-rxid";
pinctrl-0 = <&gmac0_miim
&gmac0_tx_bus2
&gmac0_rx_bus2
&gmac0_rgmii_clk
&gmac0_rgmii_bus>;
pinctrl-names = "default";
rx_delay = <0x00>;
tx_delay = <0x43>;
status = "okay";
};

&hdmi0 {
status = "okay";
};
Expand Down Expand Up @@ -314,6 +330,19 @@
};
};

&mdio0 {
rgmii_phy: ethernet-phy@1 {
/* RTL8211F */
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0x1>;
pinctrl-names = "default";
pinctrl-0 = <&rtl8211f_rst>;
reset-assert-us = <20000>;
reset-deassert-us = <100000>;
reset-gpios = <&gpio4 RK_PB3 GPIO_ACTIVE_LOW>;
};
};

&pcie2x1l0 {
reset-gpios = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>;
status = "okay";
Expand Down Expand Up @@ -365,6 +394,12 @@
};
};

rtl8211f {
rtl8211f_rst: rtl8211f-rst {
rockchip,pins = <4 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
};
};

sound {
hp_detect: hp-detect {
rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
Expand Down Expand Up @@ -430,6 +465,8 @@
pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>,
<&rk806_dvs2_null>, <&rk806_dvs3_null>;

system-power-controller;

vcc1-supply = <&vcc5v0_sys>;
vcc2-supply = <&vcc5v0_sys>;
vcc3-supply = <&vcc5v0_sys>;
Expand All @@ -450,7 +487,7 @@
#gpio-cells = <2>;

rk806_dvs1_null: dvs1-null-pins {
pins = "gpio_pwrctrl2";
pins = "gpio_pwrctrl1";
function = "pin_fun0";
};

Expand Down

0 comments on commit 741ebab

Please sign in to comment.