Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp360077pxf; Wed, 7 Apr 2021 01:01:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdAmtNU5gwI5DWykfNptyDPrZcbIPSmhT/L+MMpZSyw3X8TfvA6Wt4etO8UIpW0F9B2yn+ X-Received: by 2002:a6b:7a4d:: with SMTP id k13mr1635130iop.39.1617782504692; Wed, 07 Apr 2021 01:01:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617782504; cv=none; d=google.com; s=arc-20160816; b=Jx1Js3LbH1MGs3e/Zc3UKvX2U8y+gHlTGeIpgh776wpwSNGzo3zGVhPFWYo60apQbC xwQrxaTIwvIQl0pEIBosuwuHuGBEd4z7uoiVrCGgznAc5/axSmSQ1VO3j+NTv1e3kGB5 Xjtv9I2I/oTUamS8wIYPS8T1wBPYmlC+uhtO6f3gATj29j9+n319ZNYYrRSgCvnb3hTf 82FGHKoihDxDlfbC4+gj4OtHWefAlofhvb+g5ACAm56yricHjJemwxtGnwcYGAxNpCRq c4WHxjtNBQvzV7doLIfnZhbDPANa1evAh9c7BcH0f0zHBbl5ApivYB4UQPLSz87PLqfs HTSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=pdrN4fdiS9znRyNa4gZLkEt2osmeyCC9GkQ1FnhYcZc=; b=Jmh2z02L5eWO1h/uM7LPOHKQr8QdZNupLvaC7KsARArIEOCdRWoJUNNBOckAT3rZZ+ YKZ+D0gCwDnWGgjFeA27hCDN6Rh01/bwX9GHR3E67MYKA5YFDIsVCuE87TC2uYU9yAy9 kA9scz2yO+I8WG/+QjttBfpSrMaUVxfKLyLa54DjeSWkhiuIiz8oTEeyNJpjzd+J7eMI s1R1d57AMr5Kn+upgVdDUWreG9e+rpCS69UllT2Y2ZRhRcQ+bDiiDx06Mgvdauz5kPoe Cg5V0Jzg8DHPY17kKOJFr34zhg1hzFZ3KDdCo8KM6BEI84mszO+jXJrzKvLyRmZywGjk 1jpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=mxcBPsuc; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u8si20684105iop.38.2021.04.07.01.01.31; Wed, 07 Apr 2021 01:01:44 -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=@ti.com header.s=ti-com-17Q1 header.b=mxcBPsuc; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236208AbhDFSA6 (ORCPT + 99 others); Tue, 6 Apr 2021 14:00:58 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:34512 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234333AbhDFSA5 (ORCPT ); Tue, 6 Apr 2021 14:00:57 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 136I0U1p074029; Tue, 6 Apr 2021 13:00:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1617732030; bh=pdrN4fdiS9znRyNa4gZLkEt2osmeyCC9GkQ1FnhYcZc=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=mxcBPsucGP/zPR5/Dg0J6lzgkt6c9+IlWEow/j2r1uYATMNTbVz99zNTZICQZGM4D Id5qBL4YxBrFdp/HbqF/GXHH+Zf3J8HyGJTmSmy5iD6178SYj/CXMHmOfTog3DCKZE QPq4evHt0UTK2WFhKpmu6hfvKU4SUpGAQsQG020s= Received: from DLEE106.ent.ti.com (dlee106.ent.ti.com [157.170.170.36]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 136I0UXh114415 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 6 Apr 2021 13:00:30 -0500 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Tue, 6 Apr 2021 13:00:30 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Tue, 6 Apr 2021 13:00:30 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 136I0TqO115647; Tue, 6 Apr 2021 13:00:29 -0500 Date: Tue, 6 Apr 2021 23:30:28 +0530 From: Pratyush Yadav To: Rob Herring CC: Mauro Carvalho Chehab , Kishon Vijay Abraham I , Vinod Koul , Peter Ujfalusi , Maxime Ripard , Benoit Parrot , Hans Verkuil , Alexandre Courbot , Laurent Pinchart , Stanimir Varbanov , Helen Koike , Michael Tretter , Peter Chen , Chunfeng Yun , , , , , , Vignesh Raghavendra , Tomi Valkeinen Subject: Re: [PATCH 12/16] dt-bindings: media: Add DT bindings for TI CSI2RX driver Message-ID: <20210406180026.dexu6xelj63wvfeg@ti.com> References: <20210330173348.30135-1-p.yadav@ti.com> <20210330173348.30135-13-p.yadav@ti.com> <20210401155201.GA488101@robh.at.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20210401155201.GA488101@robh.at.kernel.org> User-Agent: NeoMutt/20171215 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/04/21 10:52AM, Rob Herring wrote: > On Tue, Mar 30, 2021 at 11:03:44PM +0530, Pratyush Yadav wrote: > > TI's J721E uses the Cadence CSI2RX and DPHY peripherals to facilitate > > capture over a CSI-2 bus. The TI CSI2RX platform driver glues all the > > parts together. > > > > Signed-off-by: Pratyush Yadav > > --- > > .../devicetree/bindings/media/ti,csi2rx.yaml | 70 +++++++++++++++++++ > > 1 file changed, 70 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/media/ti,csi2rx.yaml > > > > diff --git a/Documentation/devicetree/bindings/media/ti,csi2rx.yaml b/Documentation/devicetree/bindings/media/ti,csi2rx.yaml > > new file mode 100644 > > index 000000000000..ebd894364391 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/media/ti,csi2rx.yaml > > @@ -0,0 +1,70 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/media/ti,csi2rx.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: TI CSI2RX Wrapper Device Tree Bindings > > + > > +maintainers: > > + - Pratyush Yadav > > + > > +properties: > > + compatible: > > + items: > > + - const: ti,csi2rx > > + > > + dmas: > > + description: RX DMA Channel 0 > > items: > - description: RX DMA Channel 0 > > Or just 'maxItems: 1' Ok. > > > + > > + dma-names: > > + items: > > + - const: rx0 > > + > > + reg: > > + maxItems: 1 > > + description: Base address and size of the TI wrapper registers. > > That's all 'reg' properties, drop 'description'. Ok. > > > + > > + power-domains: > > + maxItems: 1 > > + description: > > + PM domain provider node and an args specifier containing > > + the device id value. > > Drop. Ok. > > > + > > + ranges: true > > + > > + "#address-cells": > > + const: 2 > > + > > + "#size-cells": > > + const: 2 > > + > > +patternProperties: > > + "csi-bridge@": > > "^csi-bridge@" Ok. > > > + type: object > > + description: CSI2 bridge node. > > Just an empty node? No. It should be a node for the Cadence csi2rx IP (compatible "cdns,csi2rx"). I'm not sure how to model this. This subnode is needed but it should take its properties from the Cadence csi2rx schema. Will a properties: allOf: - $ref: cdns,csi2rx.yaml# be a good idea? > > > + > > +required: > > + - compatible > > + - reg > > + - dmas > > + - dma-names > > + - power-domains > > + - "#address-cells" > > + - "#size-cells" > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + #include > > + > > + ti_csi2rx0: ticsi2rx { > > + compatible = "ti,csi2rx"; > > + dmas = <&main_udmap 0x4940>; > > + dma-names = "rx0"; > > + reg = <0x0 0x4500000 0x0 0x1000>; > > + power-domains = <&k3_pds 26 TI_SCI_PD_EXCLUSIVE>; > > + #address-cells = <2>; > > + #size-cells = <2>; > > + }; > > -- > > 2.30.0 > > -- Regards, Pratyush Yadav Texas Instruments Inc.