forked from armbian/build
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch: kernel: rockchip-rk3588-6.12: add Adakta AD
- Loading branch information
Showing
16 changed files
with
1,849 additions
and
0 deletions.
There are no files selected for viewing
77 changes: 77 additions & 0 deletions
77
patch/kernel/archive/rockchip-rk3588-6.12/dt/rk3588-adakta-ad-base-can.dtsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) | ||
/* | ||
* Copyright (c) 2024 Adakta, Ltd. | ||
* | ||
*/ | ||
|
||
/ { | ||
/* TODO: WIP no upstream patches */ | ||
can0: can@fea50000 { | ||
compatible = "rockchip,rk3568v2-canfd"; | ||
reg = <0x0 0xfea50000 0x0 0x1000>; | ||
interrupts = <GIC_SPI 341 IRQ_TYPE_LEVEL_HIGH>; | ||
clocks = <&cru CLK_CAN0>, <&cru PCLK_CAN0>; | ||
clock-names = "baudclk", "apb_pclk"; | ||
resets = <&cru SRST_CAN0>, <&cru SRST_P_CAN0>; | ||
reset-names = "can", "can-apb"; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&can0m0_pins>; | ||
status = "disabled"; | ||
}; | ||
|
||
/* TODO: WIP no upstream patches */ | ||
can1: can@fea60000 { | ||
compatible = "rockchip,rk3568v2-canfd"; | ||
reg = <0x0 0xfea60000 0x0 0x1000>; | ||
interrupts = <GIC_SPI 342 IRQ_TYPE_LEVEL_HIGH>; | ||
clocks = <&cru CLK_CAN1>, <&cru PCLK_CAN1>; | ||
clock-names = "baudclk", "apb_pclk"; | ||
resets = <&cru SRST_CAN1>, <&cru SRST_P_CAN1>; | ||
reset-names = "can", "can-apb"; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&can1m0_pins>; | ||
status = "disabled"; | ||
}; | ||
|
||
/* TODO: WIP no upstream patches */ | ||
can2: can@fea70000 { | ||
compatible = "rockchip,rk3568v2-canfd"; | ||
reg = <0x0 0xfea70000 0x0 0x1000>; | ||
interrupts = <GIC_SPI 343 IRQ_TYPE_LEVEL_HIGH>; | ||
clocks = <&cru CLK_CAN2>, <&cru PCLK_CAN2>; | ||
clock-names = "baudclk", "apb_pclk"; | ||
resets = <&cru SRST_CAN2>, <&cru SRST_P_CAN2>; | ||
reset-names = "can", "can-apb"; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&can2m0_pins>; | ||
status = "disabled"; | ||
}; | ||
}; | ||
|
||
&can0 { | ||
assigned-clocks = <&cru CLK_CAN0>; | ||
assigned-clock-rates = <200000000>; | ||
|
||
compatible = "rockchip,rk3568v3-canfd", "rockchip,rk3568v2-canfd"; | ||
status = "disabled"; | ||
}; | ||
|
||
&can1 { | ||
assigned-clocks = <&cru CLK_CAN1>; | ||
assigned-clock-rates = <200000000>; | ||
|
||
compatible = "rockchip,rk3568v3-canfd", "rockchip,rk3568v2-canfd"; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&can1m1_pins>; | ||
status = "okay"; | ||
}; | ||
|
||
&can2 { | ||
assigned-clocks = <&cru CLK_CAN2>; | ||
assigned-clock-rates = <200000000>; | ||
|
||
compatible = "rockchip,rk3568v3-canfd", "rockchip,rk3568v2-canfd"; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&can2m0_pins>; | ||
status = "okay"; | ||
}; |
58 changes: 58 additions & 0 deletions
58
patch/kernel/archive/rockchip-rk3588-6.12/dt/rk3588-adakta-ad-base-display.dtsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) | ||
/* | ||
* Copyright (c) 2024 Adakta, Ltd. | ||
* | ||
*/ | ||
|
||
/ { | ||
hdmi-con { | ||
compatible = "hdmi-connector"; | ||
type = "a"; | ||
|
||
port { | ||
hdmi0_con_in: endpoint { | ||
remote-endpoint = <&hdmi0_out_con>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
&display_subsystem { | ||
clocks = <&hdptxphy_hdmi0>; | ||
clock-names = "hdmi0_phy_pll"; | ||
}; | ||
|
||
&hdptxphy_hdmi0 { | ||
status = "okay"; | ||
}; | ||
|
||
&hdmi0 { | ||
status = "okay"; | ||
}; | ||
|
||
&hdmi0_in { | ||
hdmi0_in_vp0: endpoint { | ||
remote-endpoint = <&vp0_out_hdmi0>; | ||
}; | ||
}; | ||
|
||
&hdmi0_out { | ||
hdmi0_out_con: endpoint { | ||
remote-endpoint = <&hdmi0_con_in>; | ||
}; | ||
}; | ||
|
||
&vop { | ||
status = "okay"; | ||
}; | ||
|
||
&vop_mmu { | ||
status = "okay"; | ||
}; | ||
|
||
&vp0 { | ||
vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { | ||
reg = <ROCKCHIP_VOP2_EP_HDMI0>; | ||
remote-endpoint = <&hdmi0_in_vp0>; | ||
}; | ||
}; |
108 changes: 108 additions & 0 deletions
108
patch/kernel/archive/rockchip-rk3588-6.12/dt/rk3588-adakta-ad-base-ethernet.dtsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) | ||
/* | ||
* Copyright (c) 2024 Adakta, Ltd. | ||
* | ||
*/ | ||
|
||
/ { | ||
aliases { | ||
ethernet0 = &gmac0; | ||
ethernet1 = &gmac1; | ||
}; | ||
}; | ||
|
||
&pinctrl { | ||
rtl8211f { | ||
rtl8211f_0_rst: rtl8211f-0-rst { | ||
rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; | ||
}; | ||
|
||
/omit-if-no-ref/ | ||
rtl8211f_0_int: rtl8211f-0-int { | ||
rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_up>; | ||
}; | ||
|
||
rtl8211f_1_rst: rtl8211f-1-rst { | ||
rockchip,pins = <1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>; | ||
}; | ||
|
||
/omit-if-no-ref/ | ||
rtl8211f_1_int: rtl8211f-1-int { | ||
rockchip,pins = <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>; | ||
}; | ||
}; | ||
}; | ||
|
||
&gmac0 { | ||
/* Use rgmii-rxid mode to disable rx delay inside Soc */ | ||
phy-mode = "rgmii-rxid"; | ||
clock_in_out = "output"; | ||
|
||
snps,no-vlhash; | ||
snps,reset-gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_LOW>; | ||
snps,reset-active-low; | ||
/* Reset time is 20ms, 100ms for rtl8211f */ | ||
snps,reset-delays-us = <0 20000 100000>; | ||
|
||
//interrupt-names = "macirq"; | ||
//interrupt-parent = <&gpio4>; | ||
//interrupts = <RK_PC6 IRQ_TYPE_LEVEL_HIGH>; | ||
|
||
pinctrl-names = "default"; | ||
pinctrl-0 = <&gmac0_miim | ||
&gmac0_tx_bus2 | ||
&gmac0_rx_bus2 | ||
&gmac0_rgmii_clk | ||
&gmac0_rgmii_bus | ||
&rtl8211f_0_rst>; | ||
|
||
tx_delay = <0x44>; | ||
/* rx_delay = <0x00>; */ | ||
|
||
phy-handle = <&rgmii_phy0>; | ||
status = "okay"; | ||
}; | ||
|
||
&gmac1 { | ||
/* Use rgmii-rxid mode to disable rx delay inside Soc */ | ||
phy-mode = "rgmii-rxid"; | ||
clock_in_out = "output"; | ||
|
||
snps,no-vlhash; | ||
snps,reset-gpio = <&gpio1 RK_PB4 GPIO_ACTIVE_LOW>; | ||
snps,reset-active-low; | ||
/* Reset time is 20ms, 100ms for rtl8211f */ | ||
snps,reset-delays-us = <0 20000 100000>; | ||
|
||
//interrupt-names = "macirq"; | ||
//interrupt-parent = <&gpio1>; | ||
//interrupts = <RK_PB5 IRQ_TYPE_LEVEL_HIGH>; | ||
|
||
pinctrl-names = "default"; | ||
pinctrl-0 = <&gmac1_miim | ||
&gmac1_tx_bus2 | ||
&gmac1_rx_bus2 | ||
&gmac1_rgmii_clk | ||
&gmac1_rgmii_bus | ||
&rtl8211f_1_rst>; | ||
|
||
tx_delay = <0x44>; | ||
/* rx_delay = <0x00>; */ | ||
|
||
phy-handle = <&rgmii_phy1>; | ||
status = "okay"; | ||
}; | ||
|
||
&mdio0 { | ||
rgmii_phy0: phy@1 { | ||
compatible = "ethernet-phy-ieee802.3-c22"; | ||
reg = <0x1>; | ||
}; | ||
}; | ||
|
||
&mdio1 { | ||
rgmii_phy1: phy@1 { | ||
compatible = "ethernet-phy-ieee802.3-c22"; | ||
reg = <0x2>; | ||
}; | ||
}; |
120 changes: 120 additions & 0 deletions
120
patch/kernel/archive/rockchip-rk3588-6.12/dt/rk3588-adakta-ad-base-gpio.dtsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) | ||
/* | ||
* Copyright (c) 2024 Adakta, Ltd. | ||
* | ||
*/ | ||
|
||
&gpio0 { | ||
gpio-line-names = | ||
/* GPIO0_A0-A3 */ | ||
"", "", "", "", | ||
/* GPIO0_A4-A7 */ | ||
"", "", "", "", | ||
|
||
/* GPIO0_B0-B3 */ | ||
"", "", "", "", | ||
/* GPIO0_B4-B7 */ | ||
"", "", "", "", | ||
|
||
/* GPIO0_C0-C3 */ | ||
"", "", "", "", | ||
/* GPIO0_C4-C7 */ | ||
"", "", "", "", | ||
|
||
/* GPIO0_D0-D3 */ | ||
"", "", "", "", | ||
/* GPIO0_D4-D7 */ | ||
"", "", "", ""; | ||
}; | ||
|
||
&gpio1 { | ||
gpio-line-names = | ||
/* GPIO1_A0-A3 */ | ||
"", "", "", "", | ||
/* GPIO1_A4-A7 */ | ||
"", "", "", "", | ||
|
||
/* GPIO1_B0-B3 */ | ||
"", "", "", "", | ||
/* GPIO1_B4-B7 */ | ||
"", "", "", "", | ||
|
||
/* GPIO1_C0-C3 */ | ||
"", "", "", "", | ||
/* GPIO1_C4-C7 */ | ||
"", "", "", "", | ||
|
||
/* GPIO1_D0-D3 */ | ||
"", "", "", "", | ||
/* GPIO1_D4-D7 */ | ||
"", "", "", ""; | ||
}; | ||
|
||
&gpio2 { | ||
gpio-line-names = | ||
/* GPIO2_A0-A3 */ | ||
"", "", "", "", | ||
/* GPIO2_A4-A7 */ | ||
"", "", "", "", | ||
|
||
/* GPIO2_B0-B3 */ | ||
"", "", "", "", | ||
/* GPIO2_B4-B7 */ | ||
"", "", "", "", | ||
|
||
/* GPIO2_C0-C3 */ | ||
"", "", "", "", | ||
/* GPIO2_C4-C7 */ | ||
"", "", "", "", | ||
|
||
/* GPIO2_D0-D3 */ | ||
"", "", "", "", | ||
/* GPIO2_D4-D7 */ | ||
"", "", "", ""; | ||
}; | ||
|
||
&gpio3 { | ||
gpio-line-names = | ||
/* GPIO3_A0-A3 */ | ||
"", "", "", "", | ||
/* GPIO3_A4-A7 */ | ||
"", "", "", "", | ||
|
||
/* GPIO3_B0-B3 */ | ||
"", "", "", "", | ||
/* GPIO3_B4-B7 */ | ||
"", "", "", "", | ||
|
||
/* GPIO3_C0-C3 */ | ||
"", "", "", "", | ||
/* GPIO3_C4-C7 */ | ||
"", "", "", "", | ||
|
||
/* GPIO3_D0-D3 */ | ||
"", "", "", "", | ||
/* GPIO3_D4-D7 */ | ||
"", "", "", ""; | ||
}; | ||
|
||
&gpio4 { | ||
gpio-line-names = | ||
/* GPIO4_A0-A3 */ | ||
"", "", "", "", | ||
/* GPIO4_A4-A7 */ | ||
"", "", "", "", | ||
|
||
/* GPIO4_B0-B3 */ | ||
"", "", "", "", | ||
/* GPIO4_B4-B7 */ | ||
"", "", "", "", | ||
|
||
/* GPIO4_C0-C3 */ | ||
"", "", "", "", | ||
/* GPIO4_C4-C7 */ | ||
"", "", "", "", | ||
|
||
/* GPIO4_D0-D3 */ | ||
"", "", "", "", | ||
/* GPIO4_D4-D7 */ | ||
"", "", "", ""; | ||
}; |
Oops, something went wrong.