Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp435214pxf; Wed, 7 Apr 2021 03:16:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyut2JLlTfwrTfmN3LXpMjzc1GLnsx1GTZ3Qn9xzHwGmpdP4VlXe2wUUiPdWfLQbgryYNgo X-Received: by 2002:a05:6402:278d:: with SMTP id b13mr3450551ede.34.1617790590018; Wed, 07 Apr 2021 03:16:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617790590; cv=none; d=google.com; s=arc-20160816; b=E+W7uPlJW4wENXtgv+epKRXooybKZr+YmOYOaP6nBlMcQesZRmh4PW8mc0anmDV3gZ 7EpNY9fJBJpafh8QthwNlf3NwbU9cfTvFxS7SNMivutFSi+2WWbDGj3UTX4tgHDd2ruB OWaCWYId7LsxKhT15R4QF7uKyiBenoqdtr/etHRTfb8nliStygE6TCh+YTPtY+lqBTTV WnqSGQXs5cbqyEjtw5rv4B4WJP15E5kNg7UWCCD1FPYzdFKhEPeiLATBo2w5gKhOwmr3 IQw0OIrRlXZoPKWk9TNJgPcJ1647gIf8oWlPb7GMIwHUWgXfTqWolcCABEcG2YSBd0c+ j20A== 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=6WWOGoVwUmU8hn0OiwFKDgcwGqWJVhVQIFo3m6t14HI=; b=WIjxO0f+wIV84VZKGsnUpJEa1FHIpp5HBrgGB3kU2ok4jvgt/oBNjoKbm/+t5gBikq Rzk47Z6X7rp0aoOoaubsJPIpy3wHLj7sDlKkBJm9dZrJH6cklZT8ceYW/SqmtHhaBQSh 76scrKm/JY9ALYl54eQtSt5XRAxi660ovprtkFTNcOBQCI7kHJ3GTL3tiqEIxh5Y29UT CbUXYMLjE8pqSvwgUF2qWszox2qCA67fRfi/9cjk79vakLdHC3iB3GXpyF8h3jYAOyrv h29ck47ll5WYe59nyJXK6hzwuTvvnQQ/syxFT4l+lIsTXgUKQTQUqpLarMOGRh3jkIwm UKBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=F+e6Bstz; 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 m26si10573445edp.241.2021.04.07.03.16.04; Wed, 07 Apr 2021 03:16:30 -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=F+e6Bstz; 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 S236446AbhDFSPh (ORCPT + 99 others); Tue, 6 Apr 2021 14:15:37 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:57338 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232876AbhDFSPg (ORCPT ); Tue, 6 Apr 2021 14:15:36 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 136IF8br123953; Tue, 6 Apr 2021 13:15:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1617732908; bh=6WWOGoVwUmU8hn0OiwFKDgcwGqWJVhVQIFo3m6t14HI=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=F+e6Bstz8oYQRzY5IazO6a/Q+zySAT9uP4b5nlQxiGtOHsup5bJi/xKOSHu0RDoiU vudeYuYPF4R3QnqUffLvSmG3SEUj/yThXoM3Y3G0iTsHLguhqSiotjNjykRuPoaAbX B0m38ZBPIC9g9i5/XpXsaRXtS+TBBXX6/D/mwwS8= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 136IF8wa018660 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 6 Apr 2021 13:15:08 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE109.ent.ti.com (157.170.170.41) 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:15:08 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE114.ent.ti.com (157.170.170.25) 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:15:08 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 136IF7Dp072661; Tue, 6 Apr 2021 13:15:07 -0500 Date: Tue, 6 Apr 2021 23:45:06 +0530 From: Pratyush Yadav To: Laurent Pinchart CC: Rob Herring , Mauro Carvalho Chehab , Kishon Vijay Abraham I , Vinod Koul , Peter Ujfalusi , Maxime Ripard , Benoit Parrot , Hans Verkuil , Alexandre Courbot , 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: <20210406181504.6wcungcw2dwhp6vg@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: 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 02/04/21 01:53PM, Laurent Pinchart wrote: > On Fri, Apr 02, 2021 at 01:01:22PM +0300, Laurent Pinchart wrote: > > On Thu, Apr 01, 2021 at 10:52:01AM -0500, 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 > > > > + > > > > A description would be useful, especially given that the TRM doesn't > > mention "CSI2RX". > > > > > > +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' > > > > > > > + > > > > + 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'. > > > > According to SPRUIL1B, there are four register banks for the CSI_RX_IF, > > and two register banks for the DPHY_RX. What's your plan to support > > these ? Not everything need to be implemented at once, but backward > > compatibility need to be taken into account in the design. > > > > > > + > > > > + power-domains: > > > > + maxItems: 1 > > > > + description: > > > > + PM domain provider node and an args specifier containing > > > > + the device id value. > > > > > > Drop. > > > > > > > + > > > > + ranges: true > > > > + > > > > + "#address-cells": > > > > + const: 2 > > > > + > > > > + "#size-cells": > > > > + const: 2 > > > > + > > > > +patternProperties: > > > > + "csi-bridge@": > > > > > > "^csi-bridge@" > > > > > > > + type: object > > > > + description: CSI2 bridge node. > > > > > > Just an empty node? > > > > Even if the node is optional, it would be useful to include it in the > > example below, to show how it's supposed to be used. > > > > > > + > > > > +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>; > > > > + }; > > It would also be useful to expand this to a full example that includes > integration with the PHY. Integration with PHY is Cadence CSI2RX schema's problem. But I will add the subnode here anyway so it should have the PHY related properties as well. -- Regards, Pratyush Yadav Texas Instruments Inc.