Received: by 2002:ac0:a874:0:0:0:0:0 with SMTP id c49csp508704ima; Fri, 15 Mar 2019 07:47:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqy006bqClB4EJG5Nc+t7H/1WWLYc1QViezb4axco5sVJUADnfaLclVWVPMse8GbBNMUoUbO X-Received: by 2002:a63:c00c:: with SMTP id h12mr3770156pgg.423.1552661246497; Fri, 15 Mar 2019 07:47:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552661246; cv=none; d=google.com; s=arc-20160816; b=HEMqyNK0FVZc1TVRyksnIV8Y0aFperhEctYrEN+oNR34R9NBInQFriMMg67wFWQese tHeIrdvcGZ+Q3k54Q7HrNiWgNOZkjUQkFmc5Kb3leGVYyqvCQsgvhR7u0/+eu/oFyaff EKH65Y9D8NyYVxRAVd1a0cliih7nwU+ZWjytEf+uYJ80IPXbfJtpLYLzYS0bqtGv84xt imR4lq9s0T7GLTfSs1e/FvJICVEvKjvPxcE6kKneAfXeLjCEysd+qIO2WoZ8/bfvsyH/ BHkAk1AfInzswEkiIN3yHlYRzoWZR2LCBsXXQ4FB/8nQQW6NiZ6K+0JjHd1QI2Ze+jB1 71FA== 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=0c1+ojk+24BvNiYrCz96fOSv/a31yHjPTN+I1f5axOE=; b=hyxSz/wg8585KqM0h/lKbatRYHqrdDFoxgX2bmEmaI33nWgbqCIAyDKHyLGFCWG+NI UEUoTJjjBB+pmN25mi7OAQWhuHmvq7S/dqGCGRyOOkOrEVx3lHyhsgK0+w5r6AB5HT/p bIzF2Eaj6d/QBbQ+jbyHoA6nslmwDZLapgJJeq0+UNnSlUcf+VZCUffvz/F11jMSPCkY 9KasONpuEqsGu5EgaVNgwQ2xXf+V5xMvvPnk9gqCV0KcbzNsmEeU9ITbWAyipsYmgFQh yc0QLKBYtg/G9PADPmitAjMK7M+4iP3msBb3QGtT1dT0ZL/k3n57WizIyHNJ/vg4Ncjs w5pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="p7a6s2/8"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m8si1918599pgp.322.2019.03.15.07.47.10; Fri, 15 Mar 2019 07:47:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="p7a6s2/8"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729275AbfCOOqf (ORCPT + 99 others); Fri, 15 Mar 2019 10:46:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:58930 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727518AbfCOOqe (ORCPT ); Fri, 15 Mar 2019 10:46:34 -0400 Received: from mail-qt1-f182.google.com (mail-qt1-f182.google.com [209.85.160.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0A245218D3; Fri, 15 Mar 2019 14:46:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552661193; bh=CQQ1zyvRtxQefHP7cpK0C7nBWNKKQWbaMPqPaMCJ2n8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=p7a6s2/8Q9IlFyABaOhAF7CUIG6a2HOtVy0XqbTIRzCPdfjz4Dgs44wAJqrUEaAvd RjRd3/GjrMsBXLlSNT6BkY0ULslWPSjFzlvYULfB9SXXCe6VqhDqZ9BX/xZ0PpWLlG AxuowyGFkuuEk058savfcAM5u2f1ioJHEN3KJszY= Received: by mail-qt1-f182.google.com with SMTP id f11so10319195qti.7; Fri, 15 Mar 2019 07:46:32 -0700 (PDT) X-Gm-Message-State: APjAAAUEt8m4+rVzPPZfPz4qvOdfzW+DxStNEzVQYq6yP9HrcsPD/jx/ hzwW38uIiYRBnbmiGa8ZkaoxpXrtVmcYDFjFOg== X-Received: by 2002:ac8:7647:: with SMTP id i7mr696021qtr.38.1552661192168; Fri, 15 Mar 2019 07:46:32 -0700 (PDT) MIME-Version: 1.0 References: <6d73b7f5688e9e8424f09e11f12302268939d917.1552598161.git-series.maxime.ripard@bootlin.com> In-Reply-To: <6d73b7f5688e9e8424f09e11f12302268939d917.1552598161.git-series.maxime.ripard@bootlin.com> From: Rob Herring Date: Fri, 15 Mar 2019 09:46:20 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 1/5] dt-bindings: media: Add Allwinner A10 CSI binding To: Maxime Ripard Cc: Hans Verkuil , Sakari Ailus , Mauro Carvalho Chehab , Thomas Petazzoni , Laurent Pinchart , Linux Media Mailing List , Chen-Yu Tsai , "linux-kernel@vger.kernel.org" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , devicetree@vger.kernel.org, Mark Rutland , Frank Rowand 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 On Thu, Mar 14, 2019 at 4:17 PM Maxime Ripard wrote: > > The Allwinner A10 CMOS Sensor Interface is a camera capture interface also > used in later (A10s, A13, A20, R8 and GR8) SoCs. > > On some SoCs, like the A10, there's multiple instances of that controller, > with one instance supporting more channels and having an ISP. > > Signed-off-by: Maxime Ripard > --- > Documentation/devicetree/bindings/media/allwinner,sun4i-a10-csi.yaml | 115 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- > 1 file changed, 115 insertions(+) > create mode 100644 Documentation/devicetree/bindings/media/allwinner,sun4i-a10-csi.yaml > > diff --git a/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-csi.yaml b/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-csi.yaml > new file mode 100644 > index 000000000000..30c5dc1406cf > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-csi.yaml > @@ -0,0 +1,115 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/arm/allwinner,sun4i-a10-csi.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Allwinner A10 CMOS Sensor Interface (CSI) Device Tree Bindings > + > +maintainers: > + - Chen-Yu Tsai > + - Maxime Ripard > + > +properties: > + compatible: > + oneOf: > + - items: > + - enum: The 'standard' formatting is 2 more spaces of indentation here. IOW, the '-' goes under the 'e' in items. yaml-format in the yaml-bindings repo should reformat this correctly for you. Both ways are valid, but the main advantage to that I see is it makes it a bit more obvious when you have a list. It's easy to look at a schema and miss the '-'. > + - allwinner,sun7i-a20-csi0 > + - const: allwinner,sun4i-a10-csi0 > + > + - items: > + - const: allwinner,sun4i-a10-csi0 > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + items: > + - description: The CSI interface clock > + - description: The CSI module clock > + - description: The CSI ISP clock > + - description: The CSI DRAM clock > + > + clock-names: > + items: > + - const: bus > + - const: mod > + - const: isp > + - const: ram > + > + resets: > + description: The reset line driver this IP > + maxItems: 1 > + > + pinctrl-0: > + minItems: 1 > + > + pinctrl-names: > + const: default > + > + port: > + additionalProperties: false Nodes should have a 'type: object'. I'm adding a meta-schema to check this. > + > + properties: > + endpoint: > + properties: > + bus-width: > + const: 8 > + description: > + Number of data lines actively used. > + > + data-active: > + description: Polarity of the data lines, 0 for active low, > + 1 for active high. > + allOf: > + - $ref: /schemas/types.yaml#/definitions/uint32 > + - enum: [0, 1] > + > + hsync-active: > + description: Active state of the HSYNC signal, 0 for > + active low, 1 for active high. > + allOf: > + - $ref: /schemas/types.yaml#/definitions/uint32 > + - enum: [0, 1] > + > + pclk-sample: > + description: Sample data on the rising (1) or falling (0) > + edge of the pixel clock signal > + allOf: > + - $ref: /schemas/types.yaml#/definitions/uint32 > + - enum: [0, 1] > + > + remote-endpoint: > + $ref: '/schemas/types.yaml#/definitions/phandle' > + description: Phandle to an endpoint subnode of a remote > + device node. > + > + vsync-active: > + description: Active state of the VSYNC signal, 0 for > + active low, 1 for active high. > + allOf: > + - $ref: /schemas/types.yaml#/definitions/uint32 > + - enum: [0, 1] These are all common properties, so we shouldn't be defining the type here. And since you don't have any further constraints, just 'vsync-sample: true' would suffice. > + > + required: > + - bus-width > + - data-active > + - hsync-active > + - pclk-sample > + - remote-endpoint > + - vsync-active > + > + required: > + - endpoint > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks > + > +additionalProperties: false > -- > git-series 0.9.1