forked from radxa-pkg/radxa-overlays
-
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.
Merge pull request radxa-pkg#330 from Radxa-Alvin/main
feat: add cm3j rpi cm4 io 40pin overlays
- Loading branch information
Showing
11 changed files
with
87 additions
and
12 deletions.
There are no files selected for viewing
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
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,19 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
metadata { | ||
title = "Enable I2C3-M1"; | ||
compatible = "radxa,cm3j-rpi-cm4-io"; | ||
category = "misc"; | ||
exclusive = "GPIO3_B5", "GPIO3_B6", "i2c3"; | ||
description = "Enable I2C3-M1. | ||
On Radxa CM3J RPI CM4 IO this is SDA pin 3 and SCL pin 5."; | ||
}; | ||
}; | ||
|
||
&i2c3 { | ||
status = "okay"; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&i2c3m1_xfer>; | ||
}; |
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,19 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
metadata { | ||
title = "Enable I2C5-M0"; | ||
compatible = "radxa,cm3j-rpi-cm4-io"; | ||
category = "misc"; | ||
exclusive = "GPIO3_B3", "GPIO3_B4", "i2c5"; | ||
description = "Enable I2C5-M0. | ||
On Radxa CM3J RPI CM4 IO this is SDA pin 27 and SCL pin 28."; | ||
}; | ||
}; | ||
|
||
&i2c5 { | ||
status = "okay"; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&i2c5m0_xfer>; | ||
}; |
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
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
29 changes: 29 additions & 0 deletions
29
arch/arm64/boot/dts/rockchip/overlays/rk3568-spi2-m1-cs0-spidev.dts
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,29 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
metadata { | ||
title = "Enable spidev on SPI2-M1 over CS0"; | ||
compatible = "radxa,cm3j-rpi-cm4-io"; | ||
category = "misc"; | ||
exclusive = "GPIO2_D5", "GPIO2_D6", "GPIO2_D7", "GPIO3_A0"; | ||
description = "Enable spidev on SPI2-M1 over CS0."; | ||
}; | ||
}; | ||
|
||
&spi2 { | ||
status = "okay"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
pinctrl-names = "default", "high_speed"; | ||
pinctrl-0 = <&spi2m1_cs0 &spi2m1_pins>; | ||
pinctrl-1 = <&spi2m1_cs0 &spi2m1_pins_hs>; | ||
max-freq = <50000000>; | ||
|
||
spidev@0 { | ||
compatible = "rockchip,spidev"; | ||
status = "okay"; | ||
reg = <0>; | ||
spi-max-frequency = <50000000>; | ||
}; | ||
}; |
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
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
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
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
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