Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3679431imu; Mon, 28 Jan 2019 08:57:03 -0800 (PST) X-Google-Smtp-Source: ALg8bN70vBsm6qvdlNw1/OSFH34n1ZJmUkbI6nzIY8WtJPaS+jM7W8nmRwla/lphvTFYCEE8Ntwh X-Received: by 2002:a17:902:6848:: with SMTP id f8mr21951115pln.300.1548694623835; Mon, 28 Jan 2019 08:57:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548694623; cv=none; d=google.com; s=arc-20160816; b=ltIBFIwJL9WpMX2Cr9bSVrC/78czw7rTZYJn3F9klmv95lIQjWWvXdvH8cOKoWCaiQ gV6eTc1v4Ofceg94P3Xn1FnTtvzfDDzGj+1pytUjJqfYkWqkQRwbnGIwZCoPkp/QccnU 10qLbHufBPHaAPHiLXULVo3mWE7ZjwQYVifYjXe4+PT5nYfY9pP/Wrd0XJbzCdK07lGn TJBRMPNyYNrnijFCNabj6mdgjyPMGbt5GP1NL5cJB0MwCgzTRkvLAyhwQJGZrWGvKO2g khRmBIac962rVySQoFMVCfgfIMHH6migMEmlXNJv6O4shgznFxsBSO7VF8Oilb1zsEre 5oPA== 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=V5AuR3C2FOJsQpnOAgeNwIp6wThesdonwhnQbk3DfwI=; b=JTgyKGc5rnIkYEGj+dS3LpzPjlUHwRYeKQsAYFQ0IeHCBbzVgX9xePe6hrhkUaZD8b 6+GfkfKSp9U1jk5w339BkpJQHebhGlQDzla5qWz2UtKPa7s+jQ/i9g9usQp6zMEBvFBG UyutavdglLFLItoj6PfKGTgO/rJ9/zhTzFEGSqcD8NwA6oYzb92940VyLWjzT9YHN+Eg X1QEeXVSbOKeDILAU3oy+2N/tw5KxS+BK1cP9U/87UyvYzWS7lVWDZoPz6wYQ0NREbo1 H2HcB+XfT63Wf4MedeCNwxSYnGYqt3WlD+uE8d40fY8akm3MYjZlTJH4cw9sgkOGG0g6 RJeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="pRT/sqLN"; 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 bj2si32711805plb.27.2019.01.28.08.56.48; Mon, 28 Jan 2019 08:57:03 -0800 (PST) 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="pRT/sqLN"; 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 S2387754AbfA1QR1 (ORCPT + 99 others); Mon, 28 Jan 2019 11:17:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:51360 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732451AbfA1QRX (ORCPT ); Mon, 28 Jan 2019 11:17:23 -0500 Received: from mail-qk1-f181.google.com (mail-qk1-f181.google.com [209.85.222.181]) (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 2020921741; Mon, 28 Jan 2019 16:17:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548692242; bh=l644JXd3NOUX2dUGbeApzXMy9qq3K2AgIt3Ppvs/Aoo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=pRT/sqLNIzGBTR6mG7stPyKDW8agesa+KR/kuTJtS4UncpCimBb1P/rU3UeCHOHdW 5sp1oEnxtj95pBQmWFopx6/5dm60V7R7rhLm1vvUbvjacPBQ1gCOH1H2MFWyO9SHEc aWngiv4DxS0jimivqCpWxbYcJ3XWHE86wxloaiEA= Received: by mail-qk1-f181.google.com with SMTP id c21so9688862qkl.6; Mon, 28 Jan 2019 08:17:22 -0800 (PST) X-Gm-Message-State: AJcUukdFM56T8vZMzzlRLmdsNsbYm0Nn4Kc4oqs9F076/WVidzreCeke gg0tcOrZxkOPVR08KxDc+ohbNUj3wykfjqVbAw== X-Received: by 2002:a37:7682:: with SMTP id r124mr20140647qkc.79.1548692241275; Mon, 28 Jan 2019 08:17:21 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Rob Herring Date: Mon, 28 Jan 2019 10:17:09 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 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 , Andrzej Hajda , 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 Mon, Jan 28, 2019 at 8:52 AM 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 | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- > 1 file changed, 73 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..f550fefa074f > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-csi.yaml > @@ -0,0 +1,73 @@ > +# SPDX-License-Identifier: (GPL-2.0+ OR X11) X11 is generally wrong because it is specific to X Consortium. MIT is what you want. The core bindings are using 'GPL-2.0 OR BSD-2-Clause'. I don't think it really matters whether we have a mixture of MIT and BSD, but if you don't have a reason to deviate, I wouldn't. > +%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: > + - description: Allwinner A10 CSI0 Controller > + items: > + - const: allwinner,sun4i-a10-csi0 > + > + - description: Allwinner A20 CSI0 Controller > + items: > + - const: allwinner,sun7i-a20-csi0 You may want to use 'enum' here if you will have more to add later. > + - const: allwinner,sun4i-a10-csi0 > + > + reg: > + description: The base address and size of the memory-mapped region IMO, we don't need to define what 'reg' is everywhere. > + maxItems: 1 > + > + interrupts: > + description: The interrupt associated to this IP Same here. > + maxItems: 1 > + > + clocks: > + minItems: 4 > + maxItems: 4 No need for these. We count 'items' and add them automatically. You only need them if the size is variable. > + items: > + - description: The CSI interface clock > + - description: The CSI module clock > + - description: The CSI ISP clock > + - description: The CSI DRAM clock > + > + clock-names: > + minItems: 4 > + maxItems: 4 Same here. > + items: > + - const: bus > + - const: mod > + - const: isp > + - const: ram > + > + resets: > + description: The reset line driver this IP > + maxItems: 1 > + > + pinctrl-0: true No defined length? I guess we generally allow a variable number of entries. > + > + pinctrl-names: > + description: > + When present, must have one state named "default" that sets up > + pins for ordinary operations. > + minItems: 1 > + maxItems: 1 > + items: > + - const: default A single entry can be simplified to just 'const: default' under pinctrl-names. > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks > + > +# The media OF-graph binding hasn't been described yet > +# additionalProperties: false > -- > git-series 0.9.1