-
Notifications
You must be signed in to change notification settings - Fork 85
arm64: dts: k3-j721e: Add BBAI64 MCAN0 overlay #93
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
base: v6.12.x-Beagle
Are you sure you want to change the base?
Changes from 2 commits
c37b112
bdb74ef
88efd9d
a73283e
7775064
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| // SPDX-License-Identifier: GPL-2.0-only | ||
|
||
| /* | ||
| * https://beagleboard.org/ai-64 | ||
| * Copyright (C) 2025 BeagleBoard.org Foundation | ||
| * | ||
| * CAN overlay for BeagleBone AI-64 | ||
| * Enables MCAN0 on pins mapped to I2C2 by default | ||
| */ | ||
|
|
||
| /dts-v1/; | ||
| /plugin/; | ||
|
|
||
| #include <dt-bindings/gpio/gpio.h> | ||
| #include <dt-bindings/interrupt-controller/irq.h> | ||
| #include <dt-bindings/interrupt-controller/arm-gic.h> | ||
|
immortal71 marked this conversation as resolved.
Outdated
|
||
| #include <dt-bindings/pinctrl/k3.h> | ||
|
immortal71 marked this conversation as resolved.
Outdated
|
||
|
|
||
| &{/chosen} { | ||
| overlays { | ||
| BBAI64-CAN0-00A0.kernel = __TIMESTAMP__; | ||
| }; | ||
| }; | ||
|
|
||
| &main_pmx0 { | ||
| main_mcan0_pins_default: main-mcan0-default-pins { | ||
| pinctrl-single,pins = < | ||
| J721E_IOPAD(0x208, PIN_INPUT, 0) /* (W5) MCAN0_RX */ | ||
| J721E_IOPAD(0x20c, PIN_OUTPUT, 0) /* (W6) MCAN0_TX */ | ||
| >; | ||
| }; | ||
| }; | ||
|
|
||
| &main_mcan0 { | ||
| status = "okay"; | ||
| pinctrl-names = "default"; | ||
| pinctrl-0 = <&main_mcan0_pins_default>; | ||
| }; | ||
|
|
||
| &main_i2c2 { | ||
| status = "disabled"; | ||
| }; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| // SPDX-License-Identifier: GPL-2.0 | ||
|
||
| /* | ||
| * DT Overlay for RPi Camera V2.1 (IMX219) on CSI1 connector | ||
| * of BeagleBone AI-64 board. | ||
| * | ||
| * Copyright (C) 2025 BeagleBoard.org Foundation | ||
| * | ||
| * Camera Schematics: https://datasheets.raspberrypi.com/camera/camera-v2-schematics.pdf | ||
| */ | ||
|
|
||
| /dts-v1/; | ||
| /plugin/; | ||
|
|
||
| #include <dt-bindings/gpio/gpio.h> | ||
|
|
||
| /* | ||
| * Helper to show loaded overlays under: /proc/device-tree/chosen/overlays/ | ||
| */ | ||
| &{/chosen} { | ||
| overlays { | ||
| BBAI64-CSI1-imx219.kernel = __TIMESTAMP__; | ||
| }; | ||
| }; | ||
|
|
||
| &{/} { | ||
| clk_csi1_imx219_fixed: csi1-imx219-xclk { | ||
| compatible = "fixed-clock"; | ||
| #clock-cells = <0>; | ||
| clock-frequency = <24000000>; | ||
| }; | ||
| }; | ||
|
|
||
| &main_gpio0 { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &main_i2c6 { | ||
| status = "okay"; | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
|
|
||
| imx219_1: sensor@10 { | ||
| compatible = "sony,imx219"; | ||
| reg = <0x10>; | ||
|
|
||
| clocks = <&clk_csi1_imx219_fixed>; | ||
| clock-names = "xclk"; | ||
|
|
||
| pinctrl-names = "default"; | ||
| pinctrl-0 = <&csi1_gpio_pins_default>; | ||
|
|
||
| enable-gpios = <&main_gpio0 101 GPIO_ACTIVE_HIGH>; | ||
|
|
||
| port { | ||
| csi2_cam1: endpoint { | ||
| remote-endpoint = <&csi2rx1_in_sensor>; | ||
| link-frequencies = /bits/ 64 <456000000>; | ||
| clock-lanes = <0>; | ||
| data-lanes = <1 2>; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| &cdns_csi2rx1 { | ||
| ports { | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
|
|
||
| csi1_port0: port@0 { | ||
| reg = <0>; | ||
| status = "okay"; | ||
|
|
||
| csi2rx1_in_sensor: endpoint { | ||
| remote-endpoint = <&csi2_cam1>; | ||
| bus-type = <4>; /* CSI2 DPHY */ | ||
| clock-lanes = <0>; | ||
| data-lanes = <1 2>; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| &ti_csi2rx1 { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &dphy1 { | ||
| status = "okay"; | ||
| }; | ||
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.
File naming convention is inconsistent with other BeagleBone AI-64 overlays. All other BeagleBone AI-64 overlays in this repository use the prefix
k3-j721e-beagleboneai64-(e.g.,k3-j721e-beagleboneai64-pwm-epwm0-p8_13.dtso,k3-j721e-beagleboneai64-spi-mcspi1-cs0.dtso,k3-j721e-beagleboneai64-BBORG_MOTOR.dtso). The file should be namedk3-j721e-beagleboneai64-can0.dtsoor similar to match the established naming convention. This also affects the overlay identifier on line 20.