[PATCH 5/8] dt-bindings: media: i2c: Add Samsung S5KGD1 image sensor
From: Gaurav Suman via B4 Relay
Date: Mon Nov 09 2026 - 17:44:44 EST
From: Gaurav Suman <gauravsuman007@xxxxxxxxx>
Add bindings for the Samsung S5KGD1 (ISOCELL GD1) 32MP quad-Bayer
sensor, used as the front camera of the LG G8x ThinQ.
This was written and tested with the help of an AI coding assistant
(Claude Opus 5.5, Anthropic); I reviewed the change and the results.
Signed-off-by: Gaurav Suman <gauravsuman007@xxxxxxxxx>
---
.../bindings/media/i2c/samsung,s5kgd1.yaml | 105 +++++++++++++++++++++
1 file changed, 105 insertions(+)
diff --git a/Documentation/devicetree/bindings/media/i2c/samsung,s5kgd1.yaml b/Documentation/devicetree/bindings/media/i2c/samsung,s5kgd1.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..4b01f1057afe70665bb445c8395a6deaabc8bd9d
--- /dev/null
+++ b/Documentation/devicetree/bindings/media/i2c/samsung,s5kgd1.yaml
@@ -0,0 +1,105 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/media/i2c/samsung,s5kgd1.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Samsung S5KGD1 Image Sensor
+
+description:
+ Samsung S5KGD1 (ISOCELL GD1) is a 32MP image sensor with a quad-Bayer
+ (tetracell) colour filter array, controlled over a serial camera control
+ bus. The driver supports the 2x2 binned 3264x2448 mode at 30 frames per
+ second, RAW10 over a 4-lane MIPI D-PHY interface.
+
+maintainers:
+ - Gaurav Suman <gauravsuman007@xxxxxxxxx>
+
+allOf:
+ - $ref: /schemas/media/video-interface-devices.yaml#
+
+properties:
+ compatible:
+ const: samsung,s5kgd1
+
+ reg:
+ maxItems: 1
+
+ clocks:
+ description: MCLK supply clock.
+ maxItems: 1
+
+ reset-gpios:
+ description: Active low GPIO connected to RESET pad of the sensor.
+ maxItems: 1
+
+ vdda-supply:
+ description: Analogue voltage supply, 2.8 volts.
+
+ vddd-supply:
+ description: Digital core voltage supply.
+
+ vddio-supply:
+ description: Digital I/O voltage supply, 1.8 volts.
+
+ port:
+ $ref: /schemas/graph.yaml#/$defs/port-base
+ additionalProperties: false
+
+ properties:
+ endpoint:
+ $ref: /schemas/media/video-interfaces.yaml#
+ unevaluatedProperties: false
+
+ properties:
+ data-lanes:
+ items:
+ - const: 1
+ - const: 2
+ - const: 3
+ - const: 4
+
+ required:
+ - data-lanes
+ - link-frequencies
+
+required:
+ - compatible
+ - reg
+ - clocks
+ - reset-gpios
+ - port
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ camera@2d {
+ compatible = "samsung,s5kgd1";
+ reg = <0x2d>;
+ clocks = <&camera_mclk 0>;
+ assigned-clocks = <&camera_mclk 0>;
+ assigned-clock-rates = <19200000>;
+ reset-gpios = <&tlmm 9 GPIO_ACTIVE_LOW>;
+ vdda-supply = <&vreg_2p8>;
+ vddd-supply = <&vreg_1p05>;
+ vddio-supply = <&vreg_1p8>;
+ orientation = <0>;
+ rotation = <90>;
+
+ port {
+ endpoint {
+ data-lanes = <1 2 3 4>;
+ link-frequencies = /bits/ 64 <380800000>;
+ remote-endpoint = <&csiphy_ep>;
+ };
+ };
+ };
+ };
+...
--
2.49.1