Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp22407247rwd; Fri, 30 Jun 2023 07:41:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlEyzkGqCZtw9IFwdvtJEpdaTNfAo5Bss33Vlyt7cKjrQW9Z6wIga3LYqw+94LCZoUmIYkAJ X-Received: by 2002:a17:902:cecb:b0:1b8:5541:9d32 with SMTP id d11-20020a170902cecb00b001b855419d32mr1713943plg.68.1688136062571; Fri, 30 Jun 2023 07:41:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688136062; cv=none; d=google.com; s=arc-20160816; b=q05AdwJBI3vc5UCnbODEfYp9ssz0V8e9sW7QLul/JJ6lIWueQLsAVAuQjfKmwOYOne pMhXbf81ty6jOeK/H/HOcLSa86XSInn3PWPPp5FKZIdiaDHlLzwbSaotQrNoyISN1aDR +d/pX73fPAX9+kCjKODuYLArVcCGv/i1YysibK0oueyNgQpCDHEEuu/+UKkdUPJKWmfK wuuJjQ0SbodaKdeHRCytiyYbkLPbKTW3yLMaaZyHpeyARqE1vPnP+ZZBBs2Q4ys8EPY+ spY5czR+QkfSkAfPVq/v3+PCIGrZocG/Z0P/9hTw/tJMExGRapoqYP23jxfqtcXfV4Tm D2UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=6xcro6lh1zv5j2U+liXdEyfLACiand4vz4NRvXzPPcM=; fh=Ug0e63ouvie88FF0PWvU6lv28bqSyrLHDmNhbFnfEdg=; b=iMAsqMQVNdQ0Z3QWxS6tJ4CMqE16BRQ48BqNCTfmq00W1gcRy/c50bdO9ZmZT2YcPd Z4+pCwaoY6pVCW1Tnq7y+gRHO+gbJFQpoyhlZ+Tg3CgoVza3+3El4/dRmldvY6lSu3a3 jmEg8Gn73paKY7m6+2cobw5PxRsey3TnIhqHW3IRDzyoh6cg5OpBZ6902cCu+OcrXzwk ETf1eO/k6QV4ebYF+9OqkGfYnmyaZAGShwcZc8AC/BjF02aagmB+JMLYnzRuVj0NIlcS qApJUq5ny9b6QasFzc7LNvd1MYduDzmjTWj89JEZObs/Dv/i98Qj+foecW8uzWCoLZ/w r2Iw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x11-20020a170902ec8b00b001b876cc4086si727738plg.364.2023.06.30.07.40.48; Fri, 30 Jun 2023 07:41:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232594AbjF3OdQ (ORCPT + 99 others); Fri, 30 Jun 2023 10:33:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232532AbjF3OdN (ORCPT ); Fri, 30 Jun 2023 10:33:13 -0400 Received: from mail-io1-f48.google.com (mail-io1-f48.google.com [209.85.166.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CF4C35BC; Fri, 30 Jun 2023 07:32:52 -0700 (PDT) Received: by mail-io1-f48.google.com with SMTP id ca18e2360f4ac-783546553ddso81553239f.0; Fri, 30 Jun 2023 07:32:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688135572; x=1690727572; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=6xcro6lh1zv5j2U+liXdEyfLACiand4vz4NRvXzPPcM=; b=GjI/rNqd+wj7gR2MuA8nc0ejqiVJN0H5HNjf1MJNIDPX6+87rUG7i0Mx4mmNQPxUc2 9Nb4cY46CL4mAYjt/H506Wuwy+Ac4IDlIkjExbdFoLmTCtuY2Ly4wzP67vTgQoU75YSA CSPpNSbKxXORY7U8L/kZhXldBHr8YIhOEDkslWbDTtehflFBoeO9Y12LeF8SCgkwZrk2 pbXMa4F/qjq7VRpi6POVRmwFeMLXyj+WO7FP4SVS42Z6ZJHuFuupta0wYp5JQPiX1bwj t8yXTgjxrjK4zp2Mg9dGcZvrH2jVYuyGet2Qd3JPLGO7F0vbq74vjlauq4TYzNfjuBv2 DpKA== X-Gm-Message-State: AC+VfDzCwFwtR5H+3FktO1EVBEC2176B8ZDesx8H4DksNu+Y6iLTHU/2 0B20hH4RH044dB6dzLHxwg== X-Received: by 2002:a5e:8901:0:b0:783:6455:cc9c with SMTP id k1-20020a5e8901000000b007836455cc9cmr3261459ioj.3.1688135571670; Fri, 30 Jun 2023 07:32:51 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id l7-20020a6b7007000000b0077e40979b41sm2159576ioc.45.2023.06.30.07.32.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jun 2023 07:32:50 -0700 (PDT) Received: (nullmailer pid 1430732 invoked by uid 1000); Fri, 30 Jun 2023 14:32:48 -0000 Date: Fri, 30 Jun 2023 08:32:48 -0600 From: Rob Herring To: Julien Stephan Cc: Louis Kuo , Phi-Bang Nguyen , Laurent Pinchart , Andy Hsieh , AngeloGioacchino Del Regno , Conor Dooley , daoyuan huang , devicetree@vger.kernel.org, Florian Sylvestre , Hans Verkuil , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-media@vger.kernel.org, Matthias Brugger , Mauro Carvalho Chehab , Moudy Ho , Ping-Hsun Wu , Sumanth Korikkar , Vasily Gorbik Subject: Re: [PATCH v2 1/4] dt-bindings: media: add mediatek ISP3.0 sensor interface Message-ID: <20230630143248.GA1425958-robh@kernel.org> References: <20230630100321.1951138-1-jstephan@baylibre.com> <20230630100321.1951138-2-jstephan@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230630100321.1951138-2-jstephan@baylibre.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 30, 2023 at 12:01:50PM +0200, Julien Stephan wrote: > From: Louis Kuo > > This adds the bindings, for the mediatek ISP3.0 SENINF module embedded in > some Mediatek SoC, such as the mt8365 > > Signed-off-by: Louis Kuo > Signed-off-by: Phi-Bang Nguyen > Signed-off-by: Laurent Pinchart > Signed-off-by: Julien Stephan > --- > .../media/mediatek,mt8365-seninf.yaml | 295 ++++++++++++++++++ > MAINTAINERS | 7 + > 2 files changed, 302 insertions(+) > create mode 100644 Documentation/devicetree/bindings/media/mediatek,mt8365-seninf.yaml > > diff --git a/Documentation/devicetree/bindings/media/mediatek,mt8365-seninf.yaml b/Documentation/devicetree/bindings/media/mediatek,mt8365-seninf.yaml > new file mode 100644 > index 000000000000..1697e94853f5 > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/mediatek,mt8365-seninf.yaml > @@ -0,0 +1,295 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +# Copyright (c) 2023 MediaTek, BayLibre > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/media/mediatek,mt8365-seninf.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek Sensor Interface 3.0 > + > +maintainers: > + - Laurent Pinchart > + - Julien Stephan > + - Andy Hsieh > + > +description: > + The ISP3.0 SENINF is the CSI-2 and parallel camera sensor interface found in > + multiple MediaTek SoCs. It can support up to three physical CSI-2 > + input ports, configured in DPHY (2 or 4 data lanes) or CPHY depending on the SoC. > + On the output side, SENINF can be connected either to CAMSV instance or > + to the internal ISP. CAMSV is used to transfer the sensor data (Raw, YUV) > + to DRAM directly, without internal ISP processing. > + > +properties: > + compatible: > + const: mediatek,mt8365-seninf > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + power-domains: > + maxItems: 1 > + > + clocks: > + items: > + - description: Seninf camsys clock > + - description: Seninf top mux clock > + > + clock-names: > + items: > + - const: camsys > + - const: top_mux > + > + phys: > + minItems: 1 > + maxItems: 4 > + description: > + phandle to the PHYs connected to CSI0/A, CSI1, CSI2 and CSI0B > + > + phy-names: > + minItems: 1 > + items: > + - const: csi0 > + - const: csi1 > + - const: csi2 > + - const: csi0b > + > + ports: > + $ref: /schemas/graph.yaml#/properties/ports > + > + properties: > + port@0: > + $ref: /schemas/graph.yaml#/$defs/port-base > + unevaluatedProperties: false > + description: CSI0 or CSI0A port > + > + properties: > + endpoint: > + $ref: video-interfaces.yaml# > + unevaluatedProperties: false > + > + properties: > + clock-lanes: > + maxItems: 1 > + data-lanes: > + minItems: 1 > + maxItems: 4 > + > + port@1: > + $ref: /schemas/graph.yaml#/$defs/port-base > + unevaluatedProperties: false > + description: CSI1 port > + > + properties: > + endpoint: > + $ref: video-interfaces.yaml# > + unevaluatedProperties: false > + > + properties: > + clock-lanes: > + maxItems: 1 > + data-lanes: > + minItems: 1 > + maxItems: 4 > + > + port@2: > + $ref: /schemas/graph.yaml#/$defs/port-base > + unevaluatedProperties: false > + description: CSI2 port > + > + properties: > + endpoint: > + $ref: video-interfaces.yaml# > + unevaluatedProperties: false > + > + properties: > + clock-lanes: > + maxItems: 1 > + data-lanes: > + minItems: 1 > + maxItems: 4 > + > + port@3: > + $ref: /schemas/graph.yaml#/$defs/port-base > + unevaluatedProperties: false > + description: CSI0B port > + > + properties: > + endpoint: > + $ref: video-interfaces.yaml# > + unevaluatedProperties: false > + > + properties: > + clock-lanes: > + maxItems: 1 > + data-lanes: > + minItems: 1 > + maxItems: 2 > + > + port@4: > + $ref: /schemas/graph.yaml#/$defs/port-base /schemas/graph.yaml#/properties/port > + unevaluatedProperties: false Drop > + description: connection point for cam0 > + > + properties: Drop all this. Don't need to define endpoint as /schemas/graph.yaml#/properties/port already does. Same on other ports. > + endpoint: > + $ref: /schemas/graph.yaml#/$defs/endpoint-base > + unevaluatedProperties: false