Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2786730rdb; Fri, 8 Dec 2023 21:57:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IGHDY3QzYnR3XaG4dvkj2Yticsw/H1mAYV/x/EhNLeoeUvcrYejfU+HeaaJH0tMsaJWsQSL X-Received: by 2002:a17:903:2642:b0:1d0:acd7:97e9 with SMTP id je2-20020a170903264200b001d0acd797e9mr1167769plb.133.1702101423894; Fri, 08 Dec 2023 21:57:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702101423; cv=none; d=google.com; s=arc-20160816; b=XjaVXSRG6fNkUoR7ak+87F5p62arBVAUGCOVzUhz/QV47vDWHMVVLt4fiHDiALYhIt uHc5Ti48qP1J8WjPNdnwVuGQC8UgMnCJVFQfr8q7AgQdoTemaUZIK9HNGEVp4/V3UdAp ZI9+2zktsKsHlQTbloAm0xEkj06wt7CPWDIpdZRl/PgP5orNdg9j+C9vXBgq6A7UyS6d jHWazpucYLAiW6gX1bPHaI1UyG8jplAUuS+Z7C+KmH4+3jR95Vi3CdTCCe5cvI/fXTer RiAgz4qr5E9pT2ervBobZ2zRaqvEdXlXOZam+B96vfRF8Oz/ubfNKCj5xZwQMEcL1mQT eLaw== 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=wbnxVu6PhuxCYqe+uMAc+4tbNHKOUUdLRrAC0X+Dwf0=; b=ROSV1dFVEwbeuyIwekPTrlD6/l80KVs3G68J62iLwwO0QT3s56E2PuFHjP+EcDL25q mBL+9UlLq+tDxRoJ9X/D96bZw6ugSC0kvNguwepnqhFbk0yd4KHpteoZbqlbeh2qCJps /RPZ3MjT2cxu8D5a1OVphtO8cztyOgEmxu1dL78y2X8+pKXYwidQchfl/iSmcPVRRDCF fDkt+Uv9qA+IQBdPKw+4CXW/bLzHbMwem/gA/cobg5HnLdj3keLpwmdNzf1Sm46v+MiI 9npLMdtMY8VBiKAsNeZfgTlnR3z55xPn5FaZfJHC3fo8d9oSfEeu8MECtsF86czWLE6r Aj0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZH9eLeyp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id be3-20020a170902aa0300b001cf8d044c2asi2609656plb.544.2023.12.08.21.57.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 21:57:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZH9eLeyp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 25903807EAC6; Fri, 8 Dec 2023 21:57:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234304AbjLIF4P (ORCPT + 99 others); Sat, 9 Dec 2023 00:56:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229492AbjLIF4J (ORCPT ); Sat, 9 Dec 2023 00:56:09 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1726A10F1 for ; Fri, 8 Dec 2023 21:56:12 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15BD5C433C9; Sat, 9 Dec 2023 05:56:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702101372; bh=uuoD3H22vWn21TrrgCc1sSk7u/rIE8eHUMfeeffNbF4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZH9eLeyp/v+aC9wYHUlgVoZASh8I9avWwTsaxA6vyFDE0WqaPpdLLzxK4QjV14i/9 eiLkTVfx+xYCZ+PMRv15wDJhd0jGtXgeVRf+6ggdoOLFw72sQmQvh1pSBLcqJHivFU b6C1PHXg9pEijSi+l+CGib9WPJhrxRjnlAPapN0x8suh9j5lW/Wfr6nIxhNrEkBZVS 6WQWEpAeS++dywAXH3JMBPNOON1s4zinJg66GE1EYVanuaHzMbs6Pi185MgxzHUZeI b3H6cTBgE/VgEDpayzCPRFhxOlX8Djv5OsM4iXDTnpPdkpBYMbw1fYRHCEtaBNmCyD kAF+ELU/ombxQ== Received: by mercury (Postfix, from userid 1000) id 29ECB106CC74; Sat, 9 Dec 2023 00:19:49 +0100 (CET) From: Sebastian Reichel To: Sebastian Reichel , Sakari Ailus , Jacopo Mondi Cc: Alain Volmat , 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 v5 1/3] media: dt-bindings: gc0308: add binding Date: Sat, 9 Dec 2023 00:18:17 +0100 Message-ID: <20231208231933.284277-2-sre@kernel.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231208231933.284277-1-sre@kernel.org> References: <20231208231933.284277-1-sre@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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 (fry.vger.email [0.0.0.0]); Fri, 08 Dec 2023 21:57:01 -0800 (PST) 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