Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp121154pxk; Wed, 2 Sep 2020 16:33:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVkMybHmMnj1O7/9KYKOdXhwEpqIxwPzE8VCDYOZwWhiSXxubG9UuDjFGZmJxbdjtpStZX X-Received: by 2002:a17:906:edc5:: with SMTP id sb5mr482674ejb.369.1599089618701; Wed, 02 Sep 2020 16:33:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599089618; cv=none; d=google.com; s=arc-20160816; b=Upg/nARRuuUGQbyKK7gOlkgnS/l+DnUD3KJ46rmUorpRcxmQlcX0T2mwJ5856Nzk0y 65i/fbeKIMhtqQwEYaSOyrDWO38O42BxPwAcNvqmUZyr0UB+X3pP7zPqEP3daDZ7oLa2 quuIgBaq1lPYvPgDJ7YvinTlPST/yc7RAvTcSxUxQvrT+EgLF/6JoVDZMFhFZmc/LWpL wdgInVwEatDXh13RIGzqbUWPWhQiYwaqV6h9pTwa+RIEFh99pvn4lb0GXURxkBRpoASJ o7y3u7OD/DFHwAdqfBsd9YC+sAqbb4gDoy052hM9EAX7KXlEO3NitUTS41wXmQVEPi6f gOdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=T4yXzW6yLaOrjJCWDznrsqD2chk3J8tmvftWN4ofhYI=; b=jtWWFowJqE/iRMCTaqgoU+Chwp/ak0Jps2D8NwmUooAioH6Ai/xboJaxHFT61aOFBm CfFWKdZe8L9xHcHWeHGeOJ6fJ75/X7IdUEGHaugTDqRTElvUo34rONi3nsfA+nePOwoI ZgA/J9jO0q2YdsHqB70IuKMOQ/3MVBxm6piG9YQ7c7zm7CugLfBvwi3VT91e+K2p/97y mnKePo/MF0RBwWn4zHXA9WgT6EOMM9ihG7vpFRGuclbMPzfN2yAkTjxgnPstloM4QEGt YDsIMMldGdqKgTmsyzOECyQrOfiE8Wpeg7GGwSZVLwjfEl9uFvpxixNzSAFFwYe6kGXn nHkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Xtu9LFAQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g20si731379ejz.452.2020.09.02.16.33.11; Wed, 02 Sep 2020 16:33:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Xtu9LFAQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727064AbgIBXb2 (ORCPT + 99 others); Wed, 2 Sep 2020 19:31:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726310AbgIBXbT (ORCPT ); Wed, 2 Sep 2020 19:31:19 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A04A4C061244 for ; Wed, 2 Sep 2020 16:31:18 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id z22so1079414ejl.7 for ; Wed, 02 Sep 2020 16:31:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=T4yXzW6yLaOrjJCWDznrsqD2chk3J8tmvftWN4ofhYI=; b=Xtu9LFAQ1AsuRSYENiMC1JSVEyn/r84YRw+kVkrqLSiwzEk18vBQ5Bw6DIZQQeRd55 LwGAzvYyrHms38I0HNnvqPlCsNjOV90RlA80Ze+BfYhdDY0nXTs1o69yz0AgVedqqGFx qXajRu4qWBN9/Y/EfquKUuZx+dOtEt11KYUCc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=T4yXzW6yLaOrjJCWDznrsqD2chk3J8tmvftWN4ofhYI=; b=mPbHwG1KJ/I3J5hyjuR7bqD0GC5ctvYLE67Ji0suZbjGGJ/Q0waRhirSYgIGQ/rUkk qBo43Kgj7m4Jf7ZnIoSbykKvT0Fw6agkQrG10tlHNk+6Yla9QN5lQ9HZ408bSdyZ0h9i FEhHkG5DIj8VURDNc4bEcgUuQSM3YUzTPad+XAvv94Yr/lcGKfsNOaFUaHz/DfGX66KH QhsDP6hP1w3q52mBXSSr92b/f9r3Dr/nC1ZKhkpQXUDR9sWySCcJLsVJ72dHQkP2Guv8 plrkiRQU3tbGnpzTFcaBVUCBykXzjaZG8xW70/r4VLMSNNh1TD9cd8ZrTjrB4Dj03e6F fJew== X-Gm-Message-State: AOAM533xXW4o2z2UeTVm0bk5CU+QDYnEoRfkK+LpYrOjSMSBacQZHbMq JuYfy2WlMPVNcg4wSDDR6VpbOtKhLQPVfQ== X-Received: by 2002:a17:906:6a54:: with SMTP id n20mr500617ejs.401.1599089477025; Wed, 02 Sep 2020 16:31:17 -0700 (PDT) Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com. [209.85.221.53]) by smtp.gmail.com with ESMTPSA id g19sm1139947ejz.5.2020.09.02.16.31.15 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Sep 2020 16:31:16 -0700 (PDT) Received: by mail-wr1-f53.google.com with SMTP id w5so1090491wrp.8 for ; Wed, 02 Sep 2020 16:31:15 -0700 (PDT) X-Received: by 2002:adf:d0cb:: with SMTP id z11mr495865wrh.192.1599089475406; Wed, 02 Sep 2020 16:31:15 -0700 (PDT) MIME-Version: 1.0 References: <20200902224813.14283-1-tfiga@chromium.org> <20200902224813.14283-3-tfiga@chromium.org> In-Reply-To: <20200902224813.14283-3-tfiga@chromium.org> From: Tomasz Figa Date: Thu, 3 Sep 2020 01:30:55 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 2/4] media: dt-bindings: media: i2c: Add bindings for GC5035 To: Linux Media Mailing List Cc: Mauro Carvalho Chehab , Rob Herring , Sakari Ailus , Hao He , linux-devicetree , Linux Kernel Mailing List , Nicolas Boichat , Xingyu Wu , Dongchun Zhu , Sj Huang , darfur_liu , "hao.he7" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Self-review, On Thu, Sep 3, 2020 at 12:48 AM Tomasz Figa wrote: > > Add YAML device tree bindings for Galaxycore Inc. GC5035 imaging sensor. > > Signed-off-by: Tomasz Figa > --- > .../devicetree/bindings/media/i2c/gc5035.yaml | 142 ++++++++++++++++++ > 1 file changed, 142 insertions(+) > create mode 100644 Documentation/devicetree/bindings/media/i2c/gc5035.yaml > > diff --git a/Documentation/devicetree/bindings/media/i2c/gc5035.yaml b/Documentation/devicetree/bindings/media/i2c/gc5035.yaml > new file mode 100644 > index 000000000000..cf8cc3b581cf > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/i2c/gc5035.yaml > @@ -0,0 +1,142 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +# Copyright (c) 2019 MediaTek Inc. Copyright 2020 Google LLC. > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/media/i2c/gc5035.yaml > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Galaxycore Inc. GC5035 CMOS Sensor Device Tree Bindings > + > +maintainers: > + - Tomasz Figa > + > +description: |- > + The Galaxycore Inc. GC5035 is a 5 megapixel, 1/5 inch CMOS 10-bit Bayer image > + sensor that delivers 2592x1944 at 30fps. This chip is programmable through > + an I2C interface. The image output is available via a MIPI CSI-2 interface. > + > +properties: > + compatible: > + const: galaxycore,gc5035 > + > + reg: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + clock-names: > + description: > + Input clock for the sensor. > + items: > + - const: inclk Typo: mclk. > + > + clock-frequency: > + description: > + Frequency of the inclk clock in Hz. mclk > + > + iovdd-supply: > + description: > + Regulator driving the I/O power rail. > + > + avdd28-supply: > + description: > + Regulator driving the analog power rail. > + > + dvdd12-supply: > + description: > + Regulator driving the digital power rail. > + > + resetb-gpios: > + description: > + The GPIO pin that drives the RESETB signal, controlling sensor reset. > + The RESETB signal must be driven low to activate the reset, so the > + GPIO_ACTIVE_LOW flag should be given by default. > + > + pwdn-gpios: > + description: > + The GPIO pin that drives the PWDN signal, controlling sensor power-down > + mode. The PWDN signal must be driven low to activate the power-down > + mode, so the GPIO_ACTIVE_LOW flag should be given by default. > + > + port: > + type: object > + additionalProperties: false > + description: > + A node containing an output port node with an endpoint definition > + as documented in > + Documentation/devicetree/bindings/media/video-interfaces.txt > + > + properties: > + endpoint: > + type: object > + additionalProperties: false > + > + properties: > + data-lanes: > + items: > + - const: 1 > + - const: 2 > + > + link-frequencies: true > + remote-endpoint: true > + > + required: > + - data-lanes > + - link-frequencies > + - remote-endpoint > + > + required: > + - endpoint > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + - clock-frequency > + - iovdd-supply > + - avdd28-supply > + - dvdd12-supply > + - resetb-gpios > + - pwdn-gpios > + - port > + > +additionalProperties: false > + > +examples: > + - | > + #include > + > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + gc5035: camera@10 { > + compatible = "galaxycore,gc5035"; > + reg = <0x10>; > + > + reset-gpios = <&pio 111 GPIO_ACTIVE_LOW>; > + pwdn-gpios = <&pio 112 GPIO_ACTIVE_LOW>; > + pinctrl-names = "default"; > + pinctrl-0 = <&clk_24m_cam>; > + > + clocks = <&cam_osc>; > + clock-names = "inclk"; mclk Best regards, Tomasz