Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp933124rda; Sun, 22 Oct 2023 17:26:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHOSCkEQMXHn6vHRd9UzDsvuvZ2TDSBN11h/aUi+O9If4Ojs9wGyOsjU4nnJfkhvMrQqKyR X-Received: by 2002:a17:90a:f004:b0:27d:1538:e324 with SMTP id bt4-20020a17090af00400b0027d1538e324mr5046766pjb.32.1698020800996; Sun, 22 Oct 2023 17:26:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698020800; cv=none; d=google.com; s=arc-20160816; b=L5Rn5oskTz2sLiqvmw4xC9wmDWxxZe/EXN1KMsu5YlAYZ92rTDOiZQ0gikyfiDaIJn JvxxfC7JHMqLpWWGXIgWk542RzDeEqeD9f5r0PIV7umxrXOn2zwVNRsHaD2a3BgGWBAJ 799AZkSMJW8YzdpbZgjncS9BRjTRQ1p6dzL+NLuFs0LQa1xQqv4kMb3d/tYu17bxQJ9z EWNTNjzqpUZEWp4NbUrsWekkF47hjL9OuUOPHescSsfAF28eQtFbFQQBjtst7SLCaLLf 0sRgqUHK+JVbRjgWwYd8vPVBb0AsSsU7Eqy4myl2fISD2M+4rMRkQsxMHH/RrdUwzMkc TKgg== 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=fnpnsi2FY12uyb6etH2NwKV1Qcr+T+Hjrf+NlpLyPPw=; fh=2hk1mHshaKd3SX7C6WR7M1wBaAulQaHZm8Xy44VClmg=; b=iKXJ3RUpFlApMEf/tOaxipxSdW0D/tmklOP8RKrYIycZ1JwPMP51fLUuvG93n0Nerp C4qnmw58hSkWyMm6vvvQ31+MUv9fK8/j98jFuEJ0TqjjziSUBVSQJ6x5sPSgNl3//yXP YdtAiZdjnWwEWIXCJG4/4eg7vUu9HalQXPpnPeC13+UTRjQK/WlDZekbR4A+CzsDaK3+ j4INXCiM5oxKbm7yHJ6cmnJL2260fcrXXNW9ncj4R/jLsPfHJdy80cvydBF32q3+BkVp IbezdAlEPELSrkk5RnCd9Rd/MRU3REKsOACbfRKWjBU9yvUvpYmxlJTMzUDhpXVA2+eI rbXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ij7HGas0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id i2-20020a17090adc0200b0027902dc4914si8245002pjv.161.2023.10.22.17.26.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 17:26:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ij7HGas0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 961728060C86; Sun, 22 Oct 2023 17:26:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232912AbjJWA0C (ORCPT + 99 others); Sun, 22 Oct 2023 20:26:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229686AbjJWAZ7 (ORCPT ); Sun, 22 Oct 2023 20:25:59 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6B1BDF; Sun, 22 Oct 2023 17:25:57 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB524C433CA; Mon, 23 Oct 2023 00:25:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698020757; bh=tGOqCOvdrA6nIMmxcZC6vvV7X3z92/KfzUcVgeGiuqs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ij7HGas0dDx28ZdDKvl1ZQZnThbmb7SxsBMr/tlX3piff0jNnzU+xMw5KxsvVJuDd gKzzuz6JaXC0EkLtC6lbKDjzWNk13sJyrRKBruvOBSQnMxfmlbxYVWjbQAXDiYB1XJ UVI852+PqLM9tAKwIzd3Wo46TIjwnDHv6c2R/uT2byg84XJ1HUST1nlIeOSB6TXgRD 4bvKy7H/wNEa9WU6hTrOPKoyVKY5T/JyY9TuwlzJsSWQUWXgavtkKPdMMct8PalCEI SBFr4I33nA8+1wwoRGNyVfTxfzv1XeqtPhpcsUmFgRCxevGxzYYJYY20kVM/gLKOYY CNTYZiQxMQ01A== Received: by mercury (Postfix, from userid 1000) id C6E0110603FC; Mon, 23 Oct 2023 02:25:53 +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 Subject: [PATCH v1 2/3] media: dt-bindings: gc0308: add binding Date: Mon, 23 Oct 2023 02:22:08 +0200 Message-ID: <20231023002547.1754190-2-sre@kernel.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231023002547.1754190-1-sre@kernel.org> References: <20231023002547.1754190-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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Sun, 22 Oct 2023 17:26:38 -0700 (PDT) Add DT binding for GalaxyCore GC0308 camera sensor. Signed-off-by: Sebastian Reichel --- .../bindings/media/i2c/galaxycore,gc0308.yaml | 106 ++++++++++++++++++ 1 file changed, 106 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..f1fa11ea88b9 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/galaxycore,gc0308.yaml @@ -0,0 +1,106 @@ +# 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 and GC0309 are 640x480 VGA sensors programmable + through an I2C interface and connected via parallel bus and include + an ISP capable of auto exposure and auto white balance. + +allOf: + - $ref: ../video-interface-devices.yaml# + +properties: + compatible: + enum: + - galaxycore,gc0308 + - galaxycore,gc0309 + + 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 + + i2c0 { + #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