-
-
Notifications
You must be signed in to change notification settings - Fork 493
arm64: dts: rockchip: fix the Mixtile Blade 3, Core3588E and Edge 2 device trees #556
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
Open
evtest-hash
wants to merge
4
commits into
armbian:rk-6.1-rkr7.2
Choose a base branch
from
mixtile-rockchip:mixtile-dts-rkr7.2
base: rk-6.1-rkr7.2
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
4ab73fc
arm64: dts: rockchip: mixtile-blade3: rename the DT and fix the power…
b26ca80
arm64: dts: rockchip: mixtile-core3588e: fix SD, USB 3.1, DP and suspend
812c30e
arm64: dts: rockchip: mixtile-edge2: switch Wi-Fi/BT to standard bind…
8bf48c5
arm64: dts: rockchip: mixtile-blade3: keep rk3588-blade3-v101-linux.d…
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
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
237 changes: 237 additions & 0 deletions
237
arch/arm64/boot/dts/rockchip/overlay/mixtile-blade3-camera-imx415.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,237 @@ | ||
| /dts-v1/; | ||
| /plugin/; | ||
|
|
||
| #include <dt-bindings/clock/rk3588-cru.h> | ||
| #include <dt-bindings/power/rk3588-power.h> | ||
| #include <dt-bindings/gpio/gpio.h> | ||
| #include <dt-bindings/pinctrl/rockchip.h> | ||
|
|
||
| / { | ||
| metadata { | ||
| title = "Enable IMX415 camera on CSI0"; | ||
| compatible = "mixtile,blade3"; | ||
| category = "camera"; | ||
| exclusive = "csi2_dphy0"; | ||
| description = "Enable a Sony IMX415 camera module on the J7 FPC connector."; | ||
| }; | ||
|
|
||
| fragment@0 { | ||
| target-path = "/"; | ||
|
|
||
| __overlay__ { | ||
| /* generated on the module from the J7 3.3V/5V pins */ | ||
| vcc_cam_avdd: vcc-cam-avdd { | ||
| compatible = "regulator-fixed"; | ||
| regulator-name = "vcc_cam_avdd"; | ||
| regulator-always-on; | ||
| regulator-boot-on; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| fragment@1 { | ||
| target = <&i2c3>; | ||
|
|
||
| __overlay__ { | ||
| status = "okay"; | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
|
|
||
| imx415: imx415@1a { | ||
| compatible = "sony,imx415"; | ||
| reg = <0x1a>; | ||
| clocks = <&cru CLK_MIPI_CAMARAOUT_M2>; | ||
| clock-names = "xvclk"; | ||
| pinctrl-names = "default"; | ||
| pinctrl-0 = <&mipim1_camera2_clk &cam_ctl_pins>; | ||
| power-domains = <&power RK3588_PD_VI>; | ||
| reset-gpios = <&gpio4 RK_PC3 GPIO_ACTIVE_LOW>; | ||
| power-gpios = <&gpio4 RK_PC4 GPIO_ACTIVE_HIGH>; | ||
| avdd-supply = <&vcc_cam_avdd>; | ||
| rockchip,camera-module-index = <0>; | ||
| rockchip,camera-module-facing = "back"; | ||
| rockchip,camera-module-name = "CMK-OT2022-PX1"; | ||
| rockchip,camera-module-lens-name = "IR0147-50IRC-8M-F20"; | ||
| status = "okay"; | ||
|
|
||
| port { | ||
| imx415_out0: endpoint { | ||
| remote-endpoint = <&mipidphy0_in_ucam0>; | ||
| data-lanes = <1 2 3 4>; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| fragment@2 { | ||
| target = <&pinctrl>; | ||
|
|
||
| __overlay__ { | ||
| cam { | ||
| cam_ctl_pins: cam-ctl-pins { | ||
| rockchip,pins = | ||
| <4 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>, | ||
| <4 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| fragment@3 { | ||
| target = <&csi2_dphy0_hw>; | ||
|
|
||
| __overlay__ { | ||
| status = "okay"; | ||
| }; | ||
| }; | ||
|
|
||
| fragment@4 { | ||
| target = <&csi2_dphy0>; | ||
|
|
||
| __overlay__ { | ||
| status = "okay"; | ||
|
|
||
| ports { | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
|
|
||
| port@0 { | ||
| reg = <0>; | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
|
|
||
| mipidphy0_in_ucam0: endpoint@1 { | ||
| reg = <1>; | ||
| remote-endpoint = <&imx415_out0>; | ||
| data-lanes = <1 2 3 4>; | ||
| }; | ||
| }; | ||
|
|
||
| port@1 { | ||
| reg = <1>; | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
|
|
||
| csidphy0_out: endpoint@0 { | ||
| reg = <0>; | ||
| remote-endpoint = <&mipi2_csi2_input>; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| fragment@5 { | ||
| target = <&mipi2_csi2>; | ||
|
|
||
| __overlay__ { | ||
| status = "okay"; | ||
|
|
||
| ports { | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
|
|
||
| port@0 { | ||
| reg = <0>; | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
|
|
||
| mipi2_csi2_input: endpoint@1 { | ||
| reg = <1>; | ||
| remote-endpoint = <&csidphy0_out>; | ||
| }; | ||
| }; | ||
|
|
||
| port@1 { | ||
| reg = <1>; | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
|
|
||
| mipi2_csi2_output: endpoint@0 { | ||
| reg = <0>; | ||
| remote-endpoint = <&cif_mipi2_in0>; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| fragment@6 { | ||
| target = <&rkcif>; | ||
|
|
||
| __overlay__ { | ||
| status = "okay"; | ||
| }; | ||
| }; | ||
|
|
||
| fragment@7 { | ||
| target = <&rkcif_mmu>; | ||
|
|
||
| __overlay__ { | ||
| status = "okay"; | ||
| }; | ||
| }; | ||
|
|
||
| fragment@8 { | ||
| target = <&rkcif_mipi_lvds2>; | ||
|
|
||
| __overlay__ { | ||
| status = "okay"; | ||
|
|
||
| port { | ||
| cif_mipi2_in0: endpoint { | ||
| remote-endpoint = <&mipi2_csi2_output>; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| fragment@9 { | ||
| target = <&rkcif_mipi_lvds2_sditf>; | ||
|
|
||
| __overlay__ { | ||
| status = "okay"; | ||
|
|
||
| port { | ||
| mipi_lvds2_sditf: endpoint { | ||
| remote-endpoint = <&isp0_vir0>; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| fragment@10 { | ||
| target = <&rkisp0>; | ||
|
|
||
| __overlay__ { | ||
| status = "okay"; | ||
| }; | ||
| }; | ||
|
|
||
| fragment@11 { | ||
| target = <&isp0_mmu>; | ||
|
|
||
| __overlay__ { | ||
| status = "okay"; | ||
| }; | ||
| }; | ||
|
|
||
| fragment@12 { | ||
| target = <&rkisp0_vir0>; | ||
|
|
||
| __overlay__ { | ||
| status = "okay"; | ||
|
|
||
| port { | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
|
|
||
| isp0_vir0: endpoint@0 { | ||
| reg = <0>; | ||
| remote-endpoint = <&mipi_lvds2_sditf>; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🤖 get_repo_knowledge executed:
get_repo_knowledge armbian/linux-rockchip /tmp/coderabbit-repo-knowledge/armbian-linux-rockchip-62b7885b/architectureLength of output: 17639
🏁 Script executed:
Repository: armbian/linux-rockchip
Length of output: 50378
🏁 Script executed:
Repository: armbian/linux-rockchip
Length of output: 21630
🏁 Script executed:
Repository: armbian/linux-rockchip
Length of output: 18231
🏁 Script executed:
Repository: armbian/linux-rockchip
Length of output: 2646
🏁 Script executed:
Repository: armbian/linux-rockchip
Length of output: 2675
Add the missing IMX415 digital supplies. The IMX415 driver requests
dvdd,dovdd, andavdd, then returns an error when regulator acquisition fails. This node defines onlyavdd-supply, so probing can fail when the other supplies are unavailable. Adddvdd-supplyanddovdd-supplywith the regulators connected to the sensor. Usedovdd-supply, notovdd-supply. This tree has nosony,imx415binding, and its IMX415 nodes omitlink-frequencies; do not add that property based on the IMX412 binding.🤖 Prompt for AI Agents
Source: Learnings