armbian_build/patch/kernel/archive/sunxi-6.6/patches.megous/hm5065-yaml-bindings-wip.patch
Gunjan Gupta d1186b8a0e kernel: sunxi: Add patches for 6.6 kernel
I have changed the way the patches are generated a bit. Instead of using orange-pi branch from megous tree for 6.6 kernel, I have used the following kernel branches

	a83t-suspend, af8133j, anx, audio,
	axp, cam, drm, err, fixes, mbus,
	modem, opi3, pb, pinetab, pp, ppkb,
	samuel, speed, tbs-a711, ths

These branches were carefully chosen to include only allwinner related patches and remove importing of the rockchip related patches into the allwinner kernel.

Following patches are modified to fix patch application failure
- patches.armbian/arm64-dts-sun50i-h616-orangepi-zero2-reg_usb1_vbus-status-ok.patch
- patches.armbian/arm64-dts-sun50i-h616-orangepi-zero2-Enable-GPU-mali.patch
- patches.armbian/arm64-dts-allwinner-h616-Add-efuse_xlate-cpu-frequency-scaling-v1_6_2.patch
- patches.armbian/arm64-dts-allwinner-h616-LED-green_power_on-red_status_heartbeat.patch
- patches.armbian/arm64-dts-allwinner-overlay-Add-Overlays-for-sunxi64.patch
- patches.armbian/arm64-dts-sun50i-h616-bigtreetech-cb1.patch

Following patches are modified because of kernel api change to fix compilation failure
- patches.armbian/drv-gpu-drm-sun4i-Add-HDMI-audio-sun4i-hdmi-encoder.patch
- patches.armbian/drv-of-Device-Tree-Overlay-ConfigFS-interface.patch
2023-10-30 22:58:11 +05:30

109 lines
2.7 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
Date: Mon, 20 May 2019 17:58:05 +0200
Subject: hm5065: yaml bindings (wip)
---
Documentation/devicetree/bindings/media/i2c/hm5065.yaml | 90 ++++++++++
1 file changed, 90 insertions(+)
diff --git a/Documentation/devicetree/bindings/media/i2c/hm5065.yaml b/Documentation/devicetree/bindings/media/i2c/hm5065.yaml
new file mode 100644
index 000000000000..df7a4f514b3f
--- /dev/null
+++ b/Documentation/devicetree/bindings/media/i2c/hm5065.yaml
@@ -0,0 +1,90 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/media/i2c/hm5065.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Himax HM5065 CSI camera sensor
+
+description: |+
+ At least one of reset-gpios and enable-gpios must be configured.
+
+ The device node must contain one 'port' child node for its digital output
+ video port, in accordance with the video interface bindings defined in
+
+ Documentation/devicetree/bindings/media/video-interfaces.txt.
+
+maintainers:
+ - Ondrej Jirman <megi@xff.cz>
+
+properties:
+ compatible:
+ const: himax,hm5065
+
+ reg:
+ maxItems: 1
+
+ reset-gpios:
+ maxItems: 1
+ description: reference to the GPIO connected to the reset pin, if any. This is an active low signal to the HM5065.
+
+ enable-gpios:
+ maxItems: 1
+ description: reference to the GPIO connected to the CE pin, if any. This is an active high signal to the HM5065.
+
+ IOVDD-supply:
+ description: Digital I/O voltage supply, 2.8 volts
+
+ AVDD-supply:
+ description: Analog voltage supply, 2.8 volts
+
+ DVDD-supply:
+ description: Digital core voltage supply, 1.8 volts
+
+ AFVDD-supply:
+ description: Auto focus voltage supply, 2.8 volts
+
+ clocks:
+ minItems: 1
+ maxItems: 1
+ description: reference to the external input clock for the sensor.
+
+- clock-names: should be "xclk".
+
+required:
+ - compatible
+ - reg
+ - clocks
+ - clock-names
+ - IOVDD-supply
+ - AVDD-supply
+ - DVDD-supply
+ - AFVDD-supply
+
+Example:
+
+&i2c1 {
+ hm5065: camera@1f {
+ compatible = "himax,hm5065";
+ reg = <0x1f>;
+ clocks = <&ccu CLK_CSI_MCLK>;
+ clock-names = "xclk";
+ IOVDD-supply = <&reg_dldo3>;
+ AVDD-supply = <&reg_dldo4>;
+ DVDD-supply = <&reg_eldo3>;
+ AFVDD-supply = <&reg_dldo3>;
+ reset-gpios = <&pio 4 18 GPIO_ACTIVE_LOW>; /* PE18 */
+ enable-gpios = <&pio 4 19 GPIO_ACTIVE_HIGH>; /* PE19 */
+
+ port {
+ hm5065_ep: endpoint {
+ remote-endpoint = <&csi0_hm5065_ep>;
+ bus-width = <8>;
+ hsync-active = <1>;
+ vsync-active = <1>;
+ data-active = <1>;
+ pclk-sample = <1>;
+ };
+ };
+ };
+};
--
Armbian