aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm27xx/patches-5.10/950-0726-dtoverlays-Add-orientation-and-rotation-parameter-to.patch
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2021-08-21 10:54:34 +0200
committerÁlvaro Fernández Rojas <noltari@gmail.com>2021-08-21 19:07:07 +0200
commit8299d1f057439f94c6a4412e2e5c5082b82a30c9 (patch)
tree1bf678d61f11f7394493be464c7876e496f7faed /target/linux/bcm27xx/patches-5.10/950-0726-dtoverlays-Add-orientation-and-rotation-parameter-to.patch
parent33b6885975ce376ff075362b7f0890326043111b (diff)
downloadupstream-8299d1f057439f94c6a4412e2e5c5082b82a30c9.tar.gz
upstream-8299d1f057439f94c6a4412e2e5c5082b82a30c9.tar.bz2
upstream-8299d1f057439f94c6a4412e2e5c5082b82a30c9.zip
bcm27xx: add kernel 5.10 support
Rebased RPi foundation patches on linux 5.10.59, removed applied and reverted patches, wireless patches and defconfig patches. bcm2708: boot tested on RPi B+ v1.2 bcm2709: boot tested on RPi 4B v1.1 4G bcm2711: boot tested on RPi 4B v1.1 4G Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/bcm27xx/patches-5.10/950-0726-dtoverlays-Add-orientation-and-rotation-parameter-to.patch')
-rw-r--r--target/linux/bcm27xx/patches-5.10/950-0726-dtoverlays-Add-orientation-and-rotation-parameter-to.patch210
1 files changed, 210 insertions, 0 deletions
diff --git a/target/linux/bcm27xx/patches-5.10/950-0726-dtoverlays-Add-orientation-and-rotation-parameter-to.patch b/target/linux/bcm27xx/patches-5.10/950-0726-dtoverlays-Add-orientation-and-rotation-parameter-to.patch
new file mode 100644
index 0000000000..761b368b44
--- /dev/null
+++ b/target/linux/bcm27xx/patches-5.10/950-0726-dtoverlays-Add-orientation-and-rotation-parameter-to.patch
@@ -0,0 +1,210 @@
+From 9637391eb4ad9410f4a366b4d78c7cfd909572da Mon Sep 17 00:00:00 2001
+From: Dave Stevenson <dave.stevenson@raspberrypi.com>
+Date: Mon, 2 Aug 2021 14:30:15 +0100
+Subject: [PATCH] dtoverlays: Add orientation (and rotation) parameter
+ to sensor overlays
+
+Add the orientation parameter to all the camera sensor overlays to
+avoid libcamera complaining, and add the rotation parameter where
+it hadn't been added before.
+
+Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
+---
+ arch/arm/boot/dts/overlays/README | 26 ++++++++++++++++---
+ arch/arm/boot/dts/overlays/imx219-overlay.dts | 2 ++
+ .../boot/dts/overlays/imx290_327-overlay.dtsi | 5 ++++
+ .../boot/dts/overlays/imx477_378-overlay.dtsi | 2 ++
+ arch/arm/boot/dts/overlays/ov5647-overlay.dts | 2 ++
+ arch/arm/boot/dts/overlays/ov7251-overlay.dts | 8 ++++++
+ arch/arm/boot/dts/overlays/ov9281-overlay.dts | 7 +++++
+ 7 files changed, 48 insertions(+), 4 deletions(-)
+
+--- a/arch/arm/boot/dts/overlays/README
++++ b/arch/arm/boot/dts/overlays/README
+@@ -1682,6 +1682,8 @@ Info: Sony IMX219 camera module.
+ Load: dtoverlay=imx219,<param>=<val>
+ Params: rotation Mounting rotation of the camera sensor (0 or
+ 180, default 180)
++ orientation Sensor orientation (0 = front, 1 = rear,
++ 2 = external, default external)
+
+
+ Name: imx290
+@@ -1698,6 +1700,10 @@ Params: 4lane Enable 4
+ (the default), whilst those from Innomaker use
+ 74.25MHz.
+ mono Denote that the module is a mono sensor.
++ orientation Sensor orientation (0 = front, 1 = rear,
++ 2 = external, default external)
++ rotation Mounting rotation of the camera sensor (0 or
++ 180, default 0)
+
+
+ Name: imx378
+@@ -1707,6 +1713,8 @@ Info: Sony IMX378 camera module.
+ Load: dtoverlay=imx378,<param>=<val>
+ Params: rotation Mounting rotation of the camera sensor (0 or
+ 180, default 180)
++ orientation Sensor orientation (0 = front, 1 = rear,
++ 2 = external, default external)
+
+
+ Name: imx477
+@@ -1716,6 +1724,8 @@ Info: Sony IMX477 camera module.
+ Load: dtoverlay=imx477,<param>=<val>
+ Params: rotation Mounting rotation of the camera sensor (0 or
+ 180, default 180)
++ orientation Sensor orientation (0 = front, 1 = rear,
++ 2 = external, default external)
+
+
+ Name: iqaudio-codec
+@@ -2141,22 +2151,30 @@ Info: Omnivision OV5647 camera module.
+ Load: dtoverlay=ov5647,<param>=<val>
+ Params: rotation Mounting rotation of the camera sensor (0 or
+ 180, default 0)
++ orientation Sensor orientation (0 = front, 1 = rear,
++ 2 = external, default external)
+
+
+ Name: ov7251
+ Info: Omnivision OV7251 camera module.
+ Uses Unicam 1, which is the standard camera connector on most Pi
+ variants.
+-Load: dtoverlay=ov7251
+-Params: <None>
++Load: dtoverlay=ov7251,<param>=<val>
++Params: rotation Mounting rotation of the camera sensor (0 or
++ 180, default 0)
++ orientation Sensor orientation (0 = front, 1 = rear,
++ 2 = external, default external)
+
+
+ Name: ov9281
+ Info: Omnivision OV9281 camera module.
+ Uses Unicam 1, which is the standard camera connector on most Pi
+ variants.
+-Load: dtoverlay=ov9281
+-Params: <None>
++Load: dtoverlay=ov9281,<param>=<val>
++Params: rotation Mounting rotation of the camera sensor (0 or
++ 180, default 0)
++ orientation Sensor orientation (0 = front, 1 = rear,
++ 2 = external, default external)
+
+
+ Name: papirus
+--- a/arch/arm/boot/dts/overlays/imx219-overlay.dts
++++ b/arch/arm/boot/dts/overlays/imx219-overlay.dts
+@@ -28,6 +28,7 @@
+ VDDL-supply = <&imx219_vddl>; /* 1.2v */
+
+ rotation = <180>;
++ orientation = <2>;
+
+ port {
+ imx219_0: endpoint {
+@@ -109,5 +110,6 @@
+
+ __overrides__ {
+ rotation = <&imx219>,"rotation:0";
++ orientation = <&imx219>,"orientation:0";
+ };
+ };
+--- a/arch/arm/boot/dts/overlays/imx290_327-overlay.dtsi
++++ b/arch/arm/boot/dts/overlays/imx290_327-overlay.dtsi
+@@ -24,6 +24,9 @@
+ clock-names = "xclk";
+ clock-frequency = <37125000>;
+
++ rotation = <0>;
++ orientation = <2>;
++
+ vdda-supply = <&cam1_reg>; /* 2.8v */
+ vdddo-supply = <&imx290_vdddo>; /* 1.8v */
+ vddd-supply = <&imx290_vddd>; /* 1.5v */
+@@ -135,5 +138,7 @@
+ 4lane = <0>, "-6+7-8+9";
+ clock-frequency = <&imx290_clk>,"clock-frequency:0",
+ <&imx290>,"clock-frequency:0";
++ rotation = <&imx290>,"rotation:0";
++ orientation = <&imx290>,"orientation:0";
+ };
+ };
+--- a/arch/arm/boot/dts/overlays/imx477_378-overlay.dtsi
++++ b/arch/arm/boot/dts/overlays/imx477_378-overlay.dtsi
+@@ -23,6 +23,7 @@
+ VDDL-supply = <&imx477_vddl>; /* 1.8v */
+
+ rotation = <180>;
++ orientation = <2>;
+
+ port {
+ imx477_0: endpoint {
+@@ -104,5 +105,6 @@
+
+ __overrides__ {
+ rotation = <&imx477>,"rotation:0";
++ orientation = <&imx477>,"orientation:0";
+ };
+ };
+--- a/arch/arm/boot/dts/overlays/ov5647-overlay.dts
++++ b/arch/arm/boot/dts/overlays/ov5647-overlay.dts
+@@ -22,6 +22,7 @@
+ clocks = <&ov5647_clk>;
+
+ rotation = <0>;
++ orientation = <2>;
+
+ port {
+ ov5647_0: endpoint {
+@@ -88,5 +89,6 @@
+
+ __overrides__ {
+ rotation = <&ov5647>,"rotation:0";
++ orientation = <&ov5647>,"orientation:0";
+ };
+ };
+--- a/arch/arm/boot/dts/overlays/ov7251-overlay.dts
++++ b/arch/arm/boot/dts/overlays/ov7251-overlay.dts
+@@ -28,6 +28,9 @@
+ vdda-supply = <&cam1_reg>;
+ vddd-supply = <&ov7251_dvdd>;
+
++ rotation = <0>;
++ orientation = <2>;
++
+ port {
+ ov7251_0: endpoint {
+ remote-endpoint = <&csi1_ep>;
+@@ -102,4 +105,9 @@
+ regulator-max-microvolt = <2800000>;
+ };
+ };
++
++ __overrides__ {
++ rotation = <&ov7251>,"rotation:0";
++ orientation = <&ov7251>,"orientation:0";
++ };
+ };
+--- a/arch/arm/boot/dts/overlays/ov9281-overlay.dts
++++ b/arch/arm/boot/dts/overlays/ov9281-overlay.dts
+@@ -27,6 +27,9 @@
+ dovdd-supply = <&ov9281_dovdd>;
+ dvdd-supply = <&ov9281_dvdd>;
+
++ rotation = <0>;
++ orientation = <2>;
++
+ port {
+ ov9281_0: endpoint {
+ remote-endpoint = <&csi1_ep>;
+@@ -103,4 +106,8 @@
+ };
+ };
+
++ __overrides__ {
++ rotation = <&ov9281>,"rotation:0";
++ orientation = <&ov9281>,"orientation:0";
++ };
+ };