Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp500158rdh; Thu, 23 Nov 2023 09:32:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IEBp1Szj7A/0lmZsYy0W/KaMnGwKUfqknQrXGJaiIEe0ZNBp9GygksNzgHqcqMbkPfDBkGT X-Received: by 2002:a17:90a:de8e:b0:27d:dc9:c67d with SMTP id n14-20020a17090ade8e00b0027d0dc9c67dmr138114pjv.36.1700760724389; Thu, 23 Nov 2023 09:32:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700760724; cv=none; d=google.com; s=arc-20160816; b=xOOi8NYHBRs0Y8HJltgf4jCQHuJOp447fGGdhB2T77f42Yfv+x1bAg0S7XDugqh77a rmFbjfh3C3cZQl9aqJxCUMdXDgz1dARI7TGMKmigDwg5JpgCIb3wtQrE0Q4NAOWdYGBQ rC/zC83o7N0OiKBMs/ejA7ez46fLSI/mrsZ4TDLJmxYMSxvR6l3BMtlmsVbFRfp+lsLk wxqh9DhRLQqv2g4KOYvZ0M6gk9foMXBWLvyCyAY311eNvQvpTAt/Dh1jQ3gpZdX/ZUyD 2q1bihbmSWxDWwOz8LExsOq5aF2EvKvB83yW6TGqA7dIesTh/WbY1V2o4vNn6FEQBo8N 11Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NPfrzEVZEEkAHa6VO/vXqtVnK2WBMU7/MnWLMDsyYik=; fh=3DBu7NUdu6TRIkJCuCenzA5Qtpe6BKno+7O7dZcxudk=; b=dEMZc61I1vQJS0/MznbopwvLAyD6ls6d+wpVQYSkOrMWv6ZnJ5FeQLaO/tZQL2LUYX ix+RD8QNEK/sZJ8tiG6hnrUT16ip9TZiHZWXdrgdXyRLbwaPuF6xRZVrTosoUcSRZERY IyVe0ALuhsEReXQ3x9CgCpWIf8OB8H/B/dwuhZhaiVRp/tw+mtyLnRxwDr8D4duqutAo 0DhAKs2P6PdZYZ2/B+kBniNFr2iY2bvHQGb6+GhSV60emBFtfHOJcKH1iGUh+9I5xhuD UEPCHfsqy+0jVJIeA/95OTkimX9TwUz6DmXDR3xFIpoHy9wctRbvFEzmzk4cRtoLfaM/ ToRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H5nnDdwL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id k13-20020a17090a910d00b00285150b2f9asi1624086pjo.180.2023.11.23.09.31.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 09:32:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H5nnDdwL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 321E5808A941; Thu, 23 Nov 2023 09:31:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345417AbjKWRbj (ORCPT + 99 others); Thu, 23 Nov 2023 12:31:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229921AbjKWRbh (ORCPT ); Thu, 23 Nov 2023 12:31:37 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1589393 for ; Thu, 23 Nov 2023 09:31:44 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04AFBC433CA; Thu, 23 Nov 2023 17:31:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700760703; bh=x6t0DakrfOazLqCXf+qyEeqOmEgp+z5KyR3L1q47Slg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=H5nnDdwLpT1dfd91tmCi8xRhIdHcFHo13nexVEoEyTjk551Kz8iUnYi0a7kz/v+5C pan8dcUSFxZy567tDaTjAMsbSs1Db0sNUvMgQjlajS7xRVrC7wBNH57/Pq7nmP/xju um2I5AbY5d+hs9OuO1I7fpaK7AyRp0tzxh3YZuYgd3by58qEzXbEuwmnJHIZzCLEp1 b80S7PwMqKOmKn2l6oabIfvQtJp64+tWn6gnGnbA6TV3EDHHiN1DsZEpb6MpBHS+jO iklcSTwvSUNyEjbfp+Z+JKnQsT29XOXLf7xAkaTud6/9+CW57Op8R9UVvlDHpoOslt +UJKj+Owx/s2A== Date: Thu, 23 Nov 2023 17:31:35 +0000 From: Conor Dooley To: Zhi Mao Cc: mchehab@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shengnan.wang@mediatek.com, yaya.chang@mediatek.com, 10572168@qq.com, Project_Global_Chrome_Upstream_Group@mediatek.com, yunkec@chromium.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, jacopo.mondi@ideasonboard.com, sakari.ailus@linux.intel.com, hverkuil-cisco@xs4all.nl, heiko@sntech.de, jernej.skrabec@gmail.com, macromorgan@hotmail.com, linus.walleij@linaro.org, laurent.pinchart@ideasonboard.com, hdegoede@redhat.com, tomi.valkeinen@ideasonboard.com, gerald.loacker@wolfvision.net, andy.shevchenko@gmail.com, bingbu.cao@intel.com, dan.scally@ideasonboard.com, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH 1/2] media: dt-bindings: media: i2c: Document GC08A3 bindings Message-ID: <20231123-magical-rupture-83251807e995@spud> References: <20231123115104.32094-1-zhi.mao@mediatek.com> <20231123115104.32094-2-zhi.mao@mediatek.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="01MH2fFNhMpUwwbA" Content-Disposition: inline In-Reply-To: <20231123115104.32094-2-zhi.mao@mediatek.com> X-Spam-Status: No, score=-1.3 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 morse.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 (morse.vger.email [0.0.0.0]); Thu, 23 Nov 2023 09:31:56 -0800 (PST) --01MH2fFNhMpUwwbA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 23, 2023 at 07:51:03PM +0800, Zhi Mao wrote: > Add YAML device tree binding for GC08A3 CMOS image sensor,=20 > and the relevant MAINTAINERS entries. >=20 > Signed-off-by: Zhi Mao Please test your bindings. > --- > .../bindings/media/i2c/galaxycore,gc08a3.yaml | 128 ++++++++++++++++++ > .../devicetree/bindings/vendor-prefixes.yaml | 2 + > 2 files changed, 130 insertions(+) > create mode 100644 Documentation/devicetree/bindings/media/i2c/galaxycor= e,gc08a3.yaml >=20 > diff --git a/Documentation/devicetree/bindings/media/i2c/galaxycore,gc08a= 3.yaml b/Documentation/devicetree/bindings/media/i2c/galaxycore,gc08a3.yaml > new file mode 100644 > index 000000000000..089ea321da91 > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/i2c/galaxycore,gc08a3.yaml > @@ -0,0 +1,128 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/media/i2c/galaxycore,gc08a3.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: GalaxyCore gc08a3 1/4" 8M Pixel MIPI CSI-2 sensor > + > +maintainers: > + - Zhi Mao > + > +description: |- The |- is not needed, you have no formatting to preserve. > + The gc08a3 is a raw image sensor with an MIPI CSI-2 image data > + interface and CCI (I2C compatible) control bus. The output format > + is raw Bayer. > + > +properties: > + compatible: > + const: GalaxyCore,gc08a3 Please remove the capitals. > + > + reg: > + maxItems: 1 > + > + clocks: > + items: > + - description: Reference to the mclk clock. Pointless, just use maxItems: 1. > + > + assigned-clocks: > + maxItems: 1 > + > + assigned-clock-rates: > + maxItems: 1 > + > + enable-gpios: > + description: Reference to the GPIO connected to the RESETB pin. Acti= ve low. > + maxItems: 1 > + > + vddio-supply: > + description: Definition of the regulator used for the VDDIO power su= pply. > + > + vdda-supply: > + description: Definition of the regulator used for the VDDA power sup= ply. > + > + vddd-supply: > + description: Definition of the regulator used for the VDDD power sup= ply. These descriptions can all be replaced with "foo-supply: true" IMO. > + port: > + $ref: /schemas/graph.yaml#/$defs/port-base > + unevaluatedProperties: false > + > + properties: > + endpoint: > + $ref: /schemas/media/video-interfaces.yaml# > + unevaluatedProperties: false > + > + properties: > + data-lanes: > + oneOf: > + - items: > + - const: 1 > + - const: 2 > + - const: 3 > + - const: 4 > + - items: > + - const: 1 > + - const: 2 > + > + link-frequencies: true > + > + required: > + - data-lanes > + - link-frequencies > + > +required: > + - compatible > + - reg > + - clocks > + - assigned-clocks > + - assigned-clock-rates Why are these required? > + - vddio-supply > + - vdda-supply > + - vddd-supply > + - port > + > +additionalProperties: false > + > +examples: > + - | > + #include > + > + i2c { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + sensor0@2 { > + status =3D "okay"; > + compatible =3D "GalaxyCore,gc08a3"; > + reg =3D <0x31>; > + > + clocks =3D <&topckgen CLK_TOP_CAMTG>, > + <&topckgen CLK_TOP_UNIVPLL_192M_D8>; > + clock-names =3D "xvclk", "freq_mux"; > + clock-frequency =3D <24000000>; > + > + assigned-clocks =3D <&topckgen CLK_TOP_CAMTG>, > + <&topckgen CLK_TOP_UNIVPLL_192M_D8>; > + assigned-clock-parents =3D <&topckgen CLK_TOP_UNIVPLL_192M_D= 8>; > + assigned-clock-rates =3D <0>, <24000000>; > + > + enable-gpios =3D <&pio 19 GPIO_ACTIVE_HIGH>; > + > + pinctrl-names =3D "default"; > + pinctrl-0 =3D <&camera_pins_cam0>; > + > + avdd-supply =3D <&mt6359_vfe28_ldo_reg>; > + > + port { > + sensor0_out_2: endpoint { > + data-lanes =3D <1 2 3 4>; > + link-frequencies =3D /bits/ 64 <336000000 207000000>; > + remote-endpoint =3D <&seninf_csi_port_0_in_2>; > + }; > + }; > + }; > + > + }; > + > +... > diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Doc= umentation/devicetree/bindings/vendor-prefixes.yaml > index 309b94c328c8..a0bbec0bfee2 100644 > --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml > +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml > @@ -502,6 +502,8 @@ patternProperties: > description: Fujitsu Ltd. > "^fxtec,.*": > description: FX Technology Ltd. > + "^GalaxyCore,.*": > + description: GalaxyCore Inc. > "^gardena,.*": > description: GARDENA GmbH > "^gateway,.*": > --=20 > 2.25.1 >=20 --01MH2fFNhMpUwwbA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZV+MdwAKCRB4tDGHoIJi 0nBfAQC7ikdh/7CYWD8MVt9f89SRYiuaWItKq/AI5yLxntzi+wD+JZEaDfqSeBAQ bZZuGrDAOKC/vGwQGO7ePPmXs4tOsw0= =zkKC -----END PGP SIGNATURE----- --01MH2fFNhMpUwwbA--