From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 229C4C433E2 for ; Mon, 14 Sep 2020 17:55:29 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B505F20EDD for ; Mon, 14 Sep 2020 17:55:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="N8H18fUC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B505F20EDD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=APf2FIatqIJMiRYfFMZzyE2fQJ+YBC7ceOvLgLi13Ew=; b=N8H18fUCDbRgz1e4dzwswkBq2 DdtLmzCMgdD1BJN7dwkprafu3mU/UswwhzWTcYB9OBqL9Xrp4F8uKGe8e9iKeOpcEQUSzNnEbL/2q 8ZJAzPvouNbJuzcVwSvpxiGeRgCT74G4ECnUH4MCtMzxdIlYWXrBT4k3GZN2LXw11wk0YVmUxqyMT B7kh4mSOFb05RvX1kyUKvFe7aGnumkaDhPuBzB9DKoKMArqcQcolyGseqB6fDrdNpJFcijwTLSoLl GzAwjrswMBOseUKhSQazGTgY2A5EIZRLgCBaMfYGq0Mh9sat1AZ+oEIEVl7gR1zclox51N32gZbSC +tXepjQPg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kHsfw-000796-Ty; Mon, 14 Sep 2020 17:54:00 +0000 Received: from mail-il1-f196.google.com ([209.85.166.196]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kHsfu-000787-GO for linux-arm-kernel@lists.infradead.org; Mon, 14 Sep 2020 17:53:59 +0000 Received: by mail-il1-f196.google.com with SMTP id a8so443457ilk.1 for ; Mon, 14 Sep 2020 10:53:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=2qj8tRwwb6mL83OdJiTqiFtTk2+6xjuz2fEjNrt8UOA=; b=eGm/CPxjCq13Yn1jj5Ug4Ur66+ogkRae7Zdruf0OfB599OJeBqLpKs8vYn/ISIlk2V TxxqXyK1uLpCPJYz4Y4JmoMDjNcISE/ch5yXCGZXUue2LzQxuSc7xzbVXZd+ahTB6E9V A6utfDAVztBAX0MXKv329/rgeUfJsrKWe3yeSxDz7LooeWSOqUX064pRxNGLUadvsaoC HY4ZfzCFOtmiQv9GX6rX+f0QOgU4nV02RKEEPqtTYWKeb4SKlskkda8+Qkro6wOWkDeT uCJhEYJitD5m8PVicXGHxBufu75X2Mt31Lzyu356ineILDNpSu0mHsLzpU6+ITaEN4gK Cykw== X-Gm-Message-State: AOAM5338PK09ZwF1z7DOVcw/jbCmGnfa1rJ37V/OBthE1y+kH3uoqgWJ 1yC99hsUf0jauEGa7iLglA== X-Google-Smtp-Source: ABdhPJwZuEEOjA/38pkz+xsbLFQQ6WIEeX2g3Z1se/ADcSs7SpH1DoVj5rbLnF/FSEQ/Gu+Mov/xKQ== X-Received: by 2002:a92:7c03:: with SMTP id x3mr13668869ilc.241.1600106036059; Mon, 14 Sep 2020 10:53:56 -0700 (PDT) Received: from xps15 ([64.188.179.253]) by smtp.gmail.com with ESMTPSA id c6sm3414096ils.86.2020.09.14.10.53.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Sep 2020 10:53:55 -0700 (PDT) Received: (nullmailer pid 4136085 invoked by uid 1000); Mon, 14 Sep 2020 17:53:53 -0000 Date: Mon, 14 Sep 2020 11:53:53 -0600 From: Rob Herring To: =?iso-8859-1?Q?K=E9vin_L'h=F4pital?= Subject: Re: [PATCH v2 1/3] dt-bindings: media: i2c: Add documentation for ov8865 Message-ID: <20200914175353.GA4127535@bogus> References: <20200828131134.12113-1-kevin.lhopital@bootlin.com> <20200828131134.12113-2-kevin.lhopital@bootlin.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200828131134.12113-2-kevin.lhopital@bootlin.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200914_135358_566465_8FCAA839 X-CRM114-Status: GOOD ( 24.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, mripard@kernel.org, paul.kocialkowski@bootlin.com, wens@csie.org, thomas.petazzoni@bootlin.com, mchehab@kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Aug 28, 2020 at 03:11:32PM +0200, K=E9vin L'h=F4pital wrote: > Add a documentation for the sensor ov8865 from Omnivision. > = > Signed-off-by: K=E9vin L'h=F4pital > --- > .../devicetree/bindings/media/i2c/ov8865.yaml | 165 ++++++++++++++++++ Use the compatible string for the filename. > 1 file changed, 165 insertions(+) > create mode 100644 Documentation/devicetree/bindings/media/i2c/ov8865.ya= ml > = > diff --git a/Documentation/devicetree/bindings/media/i2c/ov8865.yaml b/Do= cumentation/devicetree/bindings/media/i2c/ov8865.yaml > new file mode 100644 > index 000000000000..468ddfd48c7a > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/i2c/ov8865.yaml > @@ -0,0 +1,165 @@ > +# SPDX-License-Identifier: (GPL-2.0 0R BSD-2-Clause) > +# Copyright (C) 2020 K=E9vin L'h=F4pital > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/media/i2c/ov8865.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Omnivision OV8865 Sensor Device Tree Bindings > + > +maintainers: > + - K=E9vin L'h=F4pital > + > +description: |- > + The Omnivision OV8865 is a image sensor that supports up to 3264x2448.= It > + provides a 10 bits output format and a MIPI CSI2 interface (up to 4-la= ne). > + This chip is programmable through I2C. > + > +properties: > + compatible: > + const: ovti,ov8865 > + > + reg: > + maxItems: 1 > + > + pinctrl-names: > + description: > + Default name for the ov8865 pinctrl. > + > + pinctrl-0: > + description: > + Pinctrl for the ov8865. You can drop pinctrl-*. They are automatically added. > + > + clocks: > + maxItems: 1 > + > + clock-names: > + description: > + Input clock name for the sensor. > + > + items: > + - const: xclk > + > + avdd-supply: > + description: > + Definition of the regulator used as analog power supply. > + > + dovdd-supply: > + description: > + Definition of the regulator used as interface power supply. > + > + vdd2-supply: > + description: > + Definition of the regulator used as digital power supply > + > + afvdd-supply: > + description: > + Definition of the regulator used as actuator power supply. > + > + powerdown-gpios: > + description: > + reference to the GPIO connceted to the powerdown pin. This is an a= ctive > + low signal on the OV8865. > + > + reset-gpios: > + description: > + Reference to the GPIO connected to the reset pin. This is an activ= e low > + signal for the OV8865. > + > + rotation: > + description: > + Position of the sensor, the valid values are 0 (sensor mounted upr= ight) > + and 180 (sensor mounted upside down). Constraints, not free form text: enum: [ 0, 180 ] > + > + 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 > + > + properties: > + data-lanes: > + description: > + The driver only supports four-lane operation. Not relevant to the h/w description. > + items: > + - const: 1 > + - const: 2 > + - const: 3 > + - const: 4 > + > + clock-lanes: > + items: > + const: 0 If fixed in the h/w, it doesn't need to be in DT. > + > + bus-type: > + description: > + The driver only supports the MIPI CSI2 > + items: > + const: 4 Both of the above comments apply here... > + > + required: > + - data-lanes > + - clock-lanes > + - bus-type > + > + required: > + - endpoint > + > +required: > + - compatible > + - reg > + - pinctrl-names > + - pinctrl-0 > + - clocks > + - clock-names > + - avdd-supply > + - dovdd-supply > + - vdd2-supply > + - afvdd-supply > + - powerdown-gpios > + - reset-gpios > + - port > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + > + i2c2 { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + ov8865: camera@36 { > + compatible =3D "ovti,ov8865"; > + reg =3D <0x36>; > + pinctrl-names =3D "default"; > + pinctrl-0 =3D <&csi_mclk_pin>; = > + clocks =3D <&ccu CLK_CSI_MCLK>; > + clock-names =3D"xclk"; > + avdd-supply =3D <®_ov8865_avdd>; > + dovdd-supply =3D <®_ov8865_dovdd>; > + vdd2-supply =3D <®_ov8865_vdd2>; > + afvdd-supply =3D <®_ov8865_afvdd>; > + powerdown-gpios =3D <&pio 4 17 GPIO_ACTIVE_LOW>; /* PE1= 7 */ > + reset-gpios =3D <&pio 4 16 GPIO_ACTIVE_LOW>; /* PE16 */ > + rotation =3D <180>; > + > + port { > + ov8865_to_mipi_csi2: endpoint { > + remote-endpoint =3D <&mipi_csi2_from_ov= 8865>; > + data-lanes =3D <1 2 3 4>; > + clock-lanes =3D <0>; > + bus-type =3D <4>; /* V4L2_FWNODE_BUS_TY= PE_CSI2_DPHY */ > + }; > + }; > + }; > + }; > + > +... > -- = > 2.17.1 > = _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel