Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp835528rdh; Thu, 26 Oct 2023 18:14:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEweV3s6aDE5VwIAcJTSYGr0WQBsIUGCaj+pyEjaq0WyK+sf1TMZwAZ6/wOuFFdJ/P05wlJ X-Received: by 2002:a0d:dd0e:0:b0:583:d8d4:7dfe with SMTP id g14-20020a0ddd0e000000b00583d8d47dfemr1179875ywe.31.1698369288757; Thu, 26 Oct 2023 18:14:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698369288; cv=none; d=google.com; s=arc-20160816; b=AmGufJk7iCC+gMc4L+RAIiaeOd0zexFgDkEKWYaPBeck7JtXR7aFSxFV1VlJfuvPjK f63WKa1PnCx6MaIz1XYsJfJ581f+2TK0KL75QgCdmt33u+R2D+AQeyFsX5eIqK4nqil6 +9E2JwO2RYCMpRTJ18u8Z2lpF6okB32bmHYDh7HeLd71A0pLx5dF/Ps2MoZgqKIAkDBM a5NadJCUkZVJ13Otk3dKW7iID3S/+G6X3+J96zKZ0FNij5HeMMasxmkn3YSuDeEmo3Jb 6SANeJrcQZDs7avqEncatJ7EmorGhfvlDZO3X27fzZtGUPqMjpjXOeYU4coEy3qQfmEB Bg2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=eHuN+NBdVsPDHEmlWiA+83ix6z4jGc0fvI+67Q1Tw3s=; fh=uBIeYESig5vQ20SGfkOaSC39ppFXwIVBLkAghV0B524=; b=itvHPDGACUZxKXFjAtYcv74oNy4xpO697N8kgz1fYNt85LFt9DFETt0aHm+o17IB6m uPQAKIu0SR8H7Mw9QWye3REubdoCzH7YPBZx/W+gdwtmcOFAQOI8SYL0iZL1x8j5aNDn X2dx+6i2f7Mxkvs1sDmrJhXFK2Ku36xXo/DdRBYRukuBQLMAZHq9tO7Ndb0eFCI9qe2E wJx2WJm0wwnRu2jHrnMm6KxijQLi+EgKcVSxewB9FXZThTEzIj1Qso4S5aQV9cJD0Q55 Mz6FVVV/baSV3jO/q05vFkOWOimE55BAlbvVo5XX1795OSNOWzmLAVGvutfgTkh32GjM FDIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VDq7uLfs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id u130-20020a814788000000b0059f4c517708si733410ywa.557.2023.10.26.18.14.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 18:14:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VDq7uLfs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id CB4308271778; Thu, 26 Oct 2023 18:14:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345104AbjJ0BO2 (ORCPT + 99 others); Thu, 26 Oct 2023 21:14:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345073AbjJ0BOY (ORCPT ); Thu, 26 Oct 2023 21:14:24 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B10301BB; Thu, 26 Oct 2023 18:14:21 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EEE0AC433C8; Fri, 27 Oct 2023 01:14:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698369261; bh=uuoD3H22vWn21TrrgCc1sSk7u/rIE8eHUMfeeffNbF4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VDq7uLfsKq/m1LJOfgX8H70QN5JgOT5/gHB4YR6+YgHRDLHHMlpuse2lyfgZ+Nr+i 9iD7otCdG6HpZaDW6HU4pHZcIPbxGVi1nBWvcXJ2RBy34FXNFLWSmHes83qvnBHx6J crGnXflhfBk0jGkSFMIW7S7M218Wtz+QZqLjnBEG+s33+LsKYjwjXPEP6CJyzGcReg ot3ZG4mKVxdIGisMPWx5fGReSspApCOqcBDKj81K8A6Bzhr9+/RlXSzR+wpdx2Kkk3 J2WYwvuC8WUHWiSWmOFDm8rgyNXzH6/C7vqacccUgCCmJfu6UndA1Br6UZnt3dHakW YRkv52gxl9iiA== Received: by mercury (Postfix, from userid 1000) id 4475D106057D; Fri, 27 Oct 2023 03:14:18 +0200 (CEST) From: Sebastian Reichel To: Sebastian Reichel , Sakari Ailus , Jacopo Mondi Cc: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski Subject: [PATCH v3 2/4] media: dt-bindings: gc0308: add binding Date: Fri, 27 Oct 2023 03:12:02 +0200 Message-ID: <20231027011417.2174658-3-sre@kernel.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231027011417.2174658-1-sre@kernel.org> References: <20231027011417.2174658-1-sre@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 26 Oct 2023 18:14:47 -0700 (PDT) Add DT binding for GalaxyCore GC0308 camera sensor. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Sebastian Reichel --- .../bindings/media/i2c/galaxycore,gc0308.yaml | 108 ++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/galaxycore,gc0308.yaml diff --git a/Documentation/devicetree/bindings/media/i2c/galaxycore,gc0308.yaml b/Documentation/devicetree/bindings/media/i2c/galaxycore,gc0308.yaml new file mode 100644 index 000000000000..f81e7daed67b --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/galaxycore,gc0308.yaml @@ -0,0 +1,108 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/galaxycore,gc0308.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Galaxycore GC0308 and GC0309 Image Sensors + +maintainers: + - Sebastian Reichel + +description: | + The GalaxyCore GC0308 (1/6.5") and GC0309 (1/9") are 640x480 VGA sensors + programmable through an I2C interface and connected via parallel bus. + They include an ISP capable of auto exposure and auto white balance. + +allOf: + - $ref: ../video-interface-devices.yaml# + +properties: + compatible: + oneOf: + - const: galaxycore,gc0308 + - items: + - const: galaxycore,gc0309 + - const: galaxycore,gc0308 + + reg: + const: 0x21 + + clocks: + description: Reference to the xclk clock. + maxItems: 1 + + reset-gpios: + description: GPIO descriptor for the reset pin. + maxItems: 1 + + powerdown-gpios: + description: GPIO descriptor for the powerdown pin. + maxItems: 1 + + vdd28-supply: + description: 2.8V supply + + port: + $ref: /schemas/graph.yaml#/$defs/port-base + description: | + Video output port. + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + bus-width: true + data-shift: true + hsync-active: true + vsync-active: true + data-active: true + pclk-sample: true + + required: + - bus-width + + additionalProperties: false + +required: + - compatible + - reg + - clocks + - powerdown-gpios + - port + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + camera-sensor@21 { + compatible = "galaxycore,gc0308"; + reg = <0x21>; + clocks = <&camera_clk>; + powerdown-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; + reset-gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; + vdd28-supply = <&vdd28>; + + port { + gc0308_ep: endpoint { + remote-endpoint = <¶llel_from_gc0308>; + bus-width = <8>; + data-shift = <2>; /* lines 9:2 are used */ + hsync-active = <1>; /* active high */ + vsync-active = <1>; /* active high */ + data-active = <1>; /* active high */ + pclk-sample = <1>; /* sample on rising edge */ + }; + }; + }; + }; + +... -- 2.42.0