forked from rockchip-linux/kernel
-
Notifications
You must be signed in to change notification settings - Fork 228
arm64: dts: rockchip: Add radxa-cm3j-rpi-cm4-io #539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
RadxaStephen
merged 1 commit into
radxa:linux-6.1-stan-rkr4.1
from
LZhaoM:add-cm3j-rpi-cm4-io-dts
Apr 22, 2026
+1,042
−0
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
300 changes: 300 additions & 0 deletions
300
arch/arm64/boot/dts/rockchip/rk3568-radxa-cm3j-rpi-cm4-io.dts
This file contains hidden or 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,300 @@ | ||
| // SPDX-License-Identifier: (GPL-2.0+ OR MIT) | ||
| /* | ||
| * Copyright (c) 2024 Radxa Limited. | ||
| * | ||
| */ | ||
|
|
||
| /dts-v1/; | ||
|
|
||
| #include "rk3568-radxa-cm3j.dtsi" | ||
|
|
||
| / { | ||
| model = "Radxa CM3J RPI CM4 IO"; | ||
| compatible = "radxa,cm3j-rpi-cm4-io", "radxa,cm3j", "rockchip,rk3568"; | ||
|
|
||
| vcc12v_dcin: vcc12v-dcin { | ||
| compatible = "regulator-fixed"; | ||
| regulator-name = "vcc12v_dcin"; | ||
| regulator-always-on; | ||
| regulator-min-microvolt = <12000000>; | ||
| regulator-max-microvolt = <12000000>; | ||
| }; | ||
|
|
||
| usb20_reset: usb20-reset-regulator { | ||
| compatible = "regulator-fixed"; | ||
| enable-active-high; | ||
| gpio = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>; | ||
| pinctrl-names = "default"; | ||
| pinctrl-0 = <&usb20_reset_pin>; | ||
| regulator-name = "usb20_reset"; | ||
| regulator-always-on; | ||
| regulator-min-microvolt = <3300000>; | ||
| regulator-max-microvolt = <3300000>; | ||
| }; | ||
|
|
||
| hdmi_sound: hdmi-sound { | ||
| compatible = "simple-audio-card"; | ||
| simple-audio-card,format = "i2s"; | ||
| simple-audio-card,mclk-fs = <128>; | ||
| simple-audio-card,name = "rockchip-hdmi0"; | ||
| status = "okay"; | ||
|
|
||
| simple-audio-card,cpu { | ||
| sound-dai = <&i2s0_8ch>; | ||
| }; | ||
| simple-audio-card,codec { | ||
| sound-dai = <&hdmi>; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| &vcc5v0_sys { | ||
| vin-supply = <&vcc12v_dcin>; | ||
| }; | ||
|
|
||
| &gmac1 { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &mdio1 { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &usb2phy0 { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &u2phy0_host { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &u2phy0_otg { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &usbdrd_dwc3 { | ||
| dr_mode = "host"; | ||
| extcon = <&usb2phy0>; | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &usbdrd30 { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &combphy0_us { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &hdmi { | ||
| status = "okay"; | ||
| pinctrl-0 = <&hdmitx_scl &hdmitx_sda &hdmitxm0_cec>; | ||
| }; | ||
|
|
||
| &hdmi_in_vp0 { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &route_hdmi { | ||
| status = "okay"; | ||
| connect = <&vp0_out_hdmi>; | ||
| }; | ||
|
|
||
| &i2s0_8ch { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &combphy2_psq { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &pcie2x1 { | ||
| reset-gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>; | ||
| pinctrl-0 = <&pcie20m1_pins>; | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &soc_thermal { | ||
| sustainable-power = <5000>; /* milliwatts */ | ||
| cooling-maps { | ||
| map2 { | ||
| trip = <&target>; | ||
| cooling-device = | ||
| <&emc2301 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; | ||
| contribution = <8192>; | ||
| }; | ||
| map3 { | ||
| trip = <&threshold>; | ||
| cooling-device = | ||
| <&emc2301 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; | ||
| contribution = <8192>; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| &threshold { | ||
| temperature = <60000>; | ||
| }; | ||
|
|
||
| &i2c0 { | ||
| emc2301: emc2301@2f { | ||
| status = "okay"; | ||
| compatible = "microchip,emc2301"; | ||
| reg = <0x2f>; | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
| #cooling-cells = <2>; | ||
| microchip,pwm-separate; | ||
| microchip,cooling-levels = <10>; | ||
| channel@0 { | ||
| reg = <0>; | ||
| pwm-min = <0>; | ||
| }; | ||
| }; | ||
|
|
||
| pcf85063: pcf85063@51 { | ||
| compatible = "nxp,pcf85063"; | ||
| status = "okay"; | ||
| reg = <0x51>; | ||
| quartz-load-femtofarads = <12500>; | ||
| }; | ||
| }; | ||
|
|
||
| &pinctrl { | ||
| usb { | ||
| usb20_reset_pin: usb20-reset { | ||
| rockchip,pins = <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_up>; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| &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 */ | ||
| "PIN_10", "PIN_8", "", "", | ||
| /* 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 */ | ||
| "PIN_21", "PIN_19", "PIN_24", "PIN_23", | ||
| /* GPIO2_D4-D7 */ | ||
| "", "PIN_33", "PIN_7", "PIN_31"; | ||
| }; | ||
|
|
||
| &gpio3 { | ||
| gpio-line-names = | ||
| /* GPIO3_A0-A3 */ | ||
| "PIN_29", "PIN_18", "PIN_22", "PIN_12", | ||
| /* GPIO3_A4-A7 */ | ||
| "PIN_35", "PIN_40", "PIN_38", "", | ||
|
|
||
| /* GPIO3_B0-B3 */ | ||
| "", "PIN_13", "PIN_11", "PIN_28", | ||
| /* GPIO3_B4-B7 */ | ||
| "PIN_27", "PIN_5", "PIN_3", "PIN_32", | ||
|
|
||
| /* GPIO3_C0-C3 */ | ||
| "PIN_15", "PIN_16", "PIN_26", "PIN_36", | ||
| /* GPIO3_C4-C7 */ | ||
| "", "PIN_37", "", "", | ||
|
|
||
| /* 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 */ | ||
| "", "", "", ""; | ||
| }; | ||
|
|
||
| &gpio_leds { | ||
| led-pwr { | ||
| function = LED_FUNCTION_POWER; | ||
| default-state = "on"; | ||
| color = <LED_COLOR_ID_RED>; | ||
| gpios = <&gpio3 RK_PC4 GPIO_ACTIVE_LOW>; | ||
| }; | ||
|
|
||
| led-heartbeat { | ||
| function = LED_FUNCTION_HEARTBEAT; | ||
| default-state = "off"; | ||
| color = <LED_COLOR_ID_GREEN>; | ||
| gpios = <&gpio4 RK_PC6 GPIO_ACTIVE_LOW>; | ||
| }; | ||
| }; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.