build/patch/kernel/rockchip-legacy/324_imx219_overlay.patch
Igor Pečovnik 150ac0c2af
Remove K<4, change branches, new features (#1586)
AR-1 - Adding support category for distributions
AR-4 - Remove Allwinner legacy
AR-5 - Drop Udoo family and move Udoo board into newly created imx6 family
AR-9 - Rename sunxi-next to sunxi-legacy
AR-10 - Rename sunxi-dev to sunxi-current
AR-11 - Adding Radxa Rockpi S support
AR-13 - Rename rockchip64-default to rockchip64-legacy
AR-14 - Add rockchip64-current as mainline source
AR-15 - Drop Rockchip 4.19.y NEXT, current become 5.3.y
AR-16 - Rename RK3399 default to legacy
AR-17 - Rename Odroid XU4 next and default to legacy 4.14.y, add DEV 5.4.y
AR-18 - Add Odroid N2 current mainline
AR-19 - Move Odroid C1 to meson family
AR-20 - Rename mvebu64-default to mvebu64-legacy
AR-21 - Rename mvebu-default to mvebu-legacy
AR-22 - Rename mvebu-next to mvebu-current
AR-23 - Drop meson64 default and next, current becomes former DEV 5.3.y
AR-24 - Drop cubox family and move Cubox/Hummingboard boards under imx6
AR-26 - Adjust motd
AR-27 - Enabling distribution release status
AR-28 - Added new GCC compilers
AR-29 - Implementing Ubuntu Eoan
AR-30 - Add desktop packages per board or family
AR-31 - Remove (Ubuntu/Debian) distribution name from image filename
AR-32 - Move arch configs from configuration.sh to separate arm64 and armhf config files
AR-33 - Revision numbers for beta builds changed to day_in_the_year
AR-34 - Patches support linked patches
AR-35 - Break meson64 family into gxbb and gxl
AR-36 - Add Nanopineo2 Black
AR-38 - Upgrade option from old branches to new one via armbian-config
AR-41 - Show full timezone info
AR-43 - Merge Odroid N2 to meson64
AR-44 - Enable FORCE_BOOTSCRIPT_UPDATE for all builds
2019-11-19 23:25:39 +01:00

98 lines
2.1 KiB
Diff

diff --git a/arch/arm/boot/dts/overlay/Makefile b/arch/arm/boot/dts/overlay/Makefile
index 56d8cb18..c46f29d6 100644
--- a/arch/arm/boot/dts/overlay/Makefile
+++ b/arch/arm/boot/dts/overlay/Makefile
@@ -11,7 +11,8 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
rockchip-uart2.dtbo \
rockchip-uart3.dtbo \
rockchip-uart4.dtbo \
- rockchip-w1-gpio.dtbo
+ rockchip-w1-gpio.dtbo \
+ rockchip-imx219.dtbo
scr-$(CONFIG_ARCH_ROCKCHIP) += \
rockchip-fixup.scr
diff --git a/arch/arm/boot/dts/overlay/README.rockchip-overlays b/arch/arm/boot/dts/overlay/README.rockchip-overlays
index df4559ca..4246b8b8 100644
--- a/arch/arm/boot/dts/overlay/README.rockchip-overlays
+++ b/arch/arm/boot/dts/overlay/README.rockchip-overlays
@@ -20,6 +20,7 @@ rockchip (Rockchip)
- uart3
- uart4
- w1-gpio
+- imx-219
### Overlay details:
@@ -75,4 +76,8 @@ Conflicts with spi0
Activates 1-wire gpio master on GPIO0 17
+### imx219
+
+Sets imx219 (RPi cam V2.1) as default camera on CSI
+
diff --git a/arch/arm/boot/dts/overlay/rockchip-imx219.dts b/arch/arm/boot/dts/overlay/rockchip-imx219.dts
new file mode 100644
index 00000000..1fc6af4d
--- /dev/null
+++ b/arch/arm/boot/dts/overlay/rockchip-imx219.dts
@@ -0,0 +1,57 @@
+/dts-v1/;
+/plugin/;
+
+/ {
+ compatible = "rockchip,rk3288-miniarm", "rockchip,rk3288";
+
+ fragment@0 {
+ target = <&i2c2>;
+ __overlay__ {
+
+ camera0: ov5647@36 {
+ compatible = "ovti,ov5647";
+ reg = <0x36>;
+ clocks = <&ext_cam_clk>;
+ status = "disabled";
+
+ port {
+ ov5647_out: endpoint {
+ };
+ };
+ };
+
+ camera1: imx219@10 {
+ compatible = "sony,imx219";
+ reg = <0x10>;
+ clocks = <&ext_cam_clk>;
+ status = "okay";
+ port {
+ imx219_out: endpoint {
+ remote-endpoint = <&mipi_dphy_in>;
+ data-lanes = <1 2>;
+ };
+ };
+ };
+
+ };
+ };
+
+ fragment@1 {
+ target = <&mipi_phy_rx0>;
+ __overlay__ {
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+
+ mipi_dphy_in: endpoint {
+ remote-endpoint = <&imx219_out>;
+ data-lanes = <1 2>;
+ };
+ };
+ };
+ };
+ };
+};