Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp898463lqt; Fri, 7 Jun 2024 01:53:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVnmi/n6DtEM9PkqUkZxBXjgaCNHJhl//+xid05HasPAcZDrm6zO7T4NZwaIpd+VEeR3ItY3P8RkhuGBpZoJW0UJnXHAJNpAu0EtKsoKA== X-Google-Smtp-Source: AGHT+IFX8V3rXcn1g1R9HDZI8EWyV/eoSxxr6dfMzuG0h3azU2OrAQ8V0Nv3u2q/+iK4qj17FSHq X-Received: by 2002:a50:9516:0:b0:579:c37c:1b36 with SMTP id 4fb4d7f45d1cf-57c4e4115b3mr1664004a12.17.1717750408370; Fri, 07 Jun 2024 01:53:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717750408; cv=pass; d=google.com; s=arc-20160816; b=lweUcObRJ6ViaQyDe7483rOySeOgoHyaJjaj015i0958Dp/CYLT5gMuzGEmxFHPMRO jgjiNY2lFfdk8qOQ9Icxp4WQI4Ig31pWK5nCNTxftxOAr3mC0Rp3bY664rnddIUz1YTR Q31OMOFuHb8f3w0+vSJzOlfdt0WACZkz1lygGqds+mcmFa/oMbOk4OKn6shavs0OoeM8 BmJ3+88zJStAdc9C9S1eCy4LqCou8hVhB4VeoeDre6+Uu7Xi03LvyV1UtZclt47jEuxh An1ZaLz//dMgytQ8SP2PkfnSMPrCdrupvxonaOc0RP8KheYxmgbEzzjg7QKZDxTJXvHp 6hOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=qjuZF9YFMCyt7vHEOY4hC4haJuA8BL1l+S1hJkJtq90=; fh=H1oFccxTuUz0e12xCWM2a95RxIjTJBVBI8Tbf8bbKGs=; b=Yc/6fDiDK+MFAadQQp9e2CivE5sWGr8LAZM8tkemq5yNRWVbpQ9q+CIpKL9p3CwgKt r7pnsOi2r6cxotCw02LCx7Y5UW7i9tNnRXSuCUxKomc51mzmwwG0C0awNp/fppxC5gQw w0BGDa9auLIDSnBRJ1yFjedmcj4o1IMEe2OAWSXfpIjKz7ZwvFihkvab+IKrIhsdMGEc KaEMG7l32AUyg7aGvUraHZS82dFzl9oyBas1C8MWC8mqRsqbAERWs4wRU/CzXke1X9zi 58f21E7Gz7SO2Ad47EAVg3iAtc6DCFvQiBola4BsGQLyhXORPUYcNY78l0/gWL1RfZo+ oQqA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=cEYeB3FC; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-205651-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205651-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57aae25d8desi1635021a12.475.2024.06.07.01.53.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 01:53:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205651-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=cEYeB3FC; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-205651-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205651-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E376A1F29FF5 for ; Fri, 7 Jun 2024 08:53:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 918B815B151; Fri, 7 Jun 2024 08:52:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="cEYeB3FC" Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 55B8315B131 for ; Fri, 7 Jun 2024 08:52:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717750369; cv=none; b=gE9lrOICN0HC9CXVvp3zNdlkooU1QX3wDt5CnsqJ+npVAuxXGh2vaitJ4Mw2u2r2MTHJ8CBpqWt0tbmDvVrqp4ORFEy7pVDjEFSkpSFC1bsZLzsBZQwDZ6U9f3MVeiucW8z1eFyBoBl0OQ8M7rkQhf+4bgd/neh/GZXBy3tfqTQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717750369; c=relaxed/simple; bh=66HBX4J19VbRekWum3euwSQ7xtqYmK2ftAnDc0LiNUI=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=hRK4zR917vpuX3x7MSo+IkGNljfEhXFZZkESkV0bkYN0cyxUr+54t7ocSssyR9C/pZs+D3pH1YLTEQU2ggZfOLS1UcGt20LPsw8gf4D7Yii902dYqB0ub7+CyVsByhS/qqM4522zfzjzt/aa9ix7LO3yvglxToFXdVn9SehHElw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=cEYeB3FC; arc=none smtp.client-ip=209.85.208.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-57a677d3d79so5604468a12.1 for ; Fri, 07 Jun 2024 01:52:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1717750366; x=1718355166; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=qjuZF9YFMCyt7vHEOY4hC4haJuA8BL1l+S1hJkJtq90=; b=cEYeB3FCvUDvGJcO/VGB8nRYHeTaMlQ6phUOUPui2exsJRFxSsWpooLivxq02ru5Xu SyRJUH0NV6mUMrfX/wGfWIkOtCtFYBKo+27ey26ico9tfLErzk7BiLdrIu5Gkj0u47Zw of0MhcRxhG+kNMaSev07MaQWd2CGpmUc6gu0+0idtrRdwPI6vaBLKxZ+pVhGECJBMTde 2PlaiwK6MZLEkhrhQgIyqIw2RWFvmtUDL5Vnxjpid4bL7CUWb1UW2v/uUq58M4OoVMpR LfWrqWOwc+qmn/SrN1AltGe4pOJ7xjrBBm5yCjTTsvaUc8CrOrMqNbam9EyptYaJdp+m esRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717750366; x=1718355166; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qjuZF9YFMCyt7vHEOY4hC4haJuA8BL1l+S1hJkJtq90=; b=gB+MkZTQaxSFkKIcUUrBZtDrOsMwFOQQ+HewjnXa2Uugn1FlQt6bHqRw11Mcz4a+55 AERZ4r24Oens9D1OEG6bbgVV0tOT+gzpPphJ1T7F51gQsfTcapqGhy5oy52tosCuExhW c1gIUCQNHb44oq7LTLMUtrrkm/k5tH5MQfLvZ1qbqXPawJESlm5RExz0OzfqNgesuU5Q bwJ0iKbUl9OrhxTEEaGgnINA22ZbEWczaP5/aWTHGHd+QeY+QyGd32CUH7Kk00yvqNdm 3Y+G4yQj27ty6oe6iz5/emXHyqEfqkxlBeFffvBsqsVXdTKPlszJLLfkPA8vKPMmBu1z R+Lw== X-Forwarded-Encrypted: i=1; AJvYcCV2h7meWbkTbWNh5C5uOBz8FAD8Wff/H8XUBbn67QZoyO1U92pDLmL7BBzNZd7NWl+amT81TtWIHHYR24GrJkuYMzuiF2siFHB/YKqA X-Gm-Message-State: AOJu0Yw+wtquisqVn+35MbDUd930yC2gyaLZrr/9T8oCfR/sse9xFeA9 4dEbO+/8vERNyug1PM+NK7RaqaQEWFsyEzn6vXX7kk8WQuLTiTSKr32NjX/utzytB2eev2q+qUt s56DlkJ4qo6t/OC0t5NFqd0vot16wEtjy1uzcSA== X-Received: by 2002:a17:906:4090:b0:a6e:c5c0:ba42 with SMTP id a640c23a62f3a-a6ec5c0bb34mr26417566b.30.1717750365646; Fri, 07 Jun 2024 01:52:45 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240110141443.364655-1-jstephan@baylibre.com> <20240110141443.364655-2-jstephan@baylibre.com> In-Reply-To: From: Julien Stephan Date: Fri, 7 Jun 2024 10:52:33 +0200 Message-ID: Subject: Re: [PATCH v4 1/5] dt-bindings: media: add mediatek ISP3.0 sensor interface To: Krzysztof Kozlowski Cc: Louis Kuo , Phi-Bang Nguyen , Laurent Pinchart , Andy Hsieh , AngeloGioacchino Del Regno , Conor Dooley , devicetree@vger.kernel.org, Florian Sylvestre , 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 , Paul Elder , Rob Herring Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Le ven. 12 janv. 2024 =C3=A0 08:32, Krzysztof Kozlowski a =C3=A9crit : > > On 10/01/2024 15:14, 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 > > > > ... > > > + 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 > > Why one hardware has flexible number of phys? Hi Krzysztof, seninf can have multiple port depending on the soc, each requiring its own = phy > > > + > > + 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#/properties/port > > + description: connection point for cam0 > > + > > + port@5: > > + $ref: /schemas/graph.yaml#/properties/port > > + description: connection point for cam1 > > + > > + port@6: > > + $ref: /schemas/graph.yaml#/properties/port > > + description: connection point for camsv0 > > + > > + port@7: > > + $ref: /schemas/graph.yaml#/properties/port > > + description: connection point for camsv1 > > + > > + port@8: > > + $ref: /schemas/graph.yaml#/properties/port > > + description: connection point for camsv2 > > + > > + port@9: > > + $ref: /schemas/graph.yaml#/properties/port > > + description: connection point for camsv3 > > + > > + required: > > + - port@0 > > + - port@1 > > + - port@2 > > + - port@3 > > + - port@4 > > + - port@5 > > + - port@6 > > + - port@7 > > + - port@8 > > + - port@9 > > + > > +required: > > + - compatible > > + - interrupts > > + - clocks > > + - clock-names > > + - power-domains > > + - ports > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + #include > > + #include > > + #include > > + #include > > + #include > > + > > + soc { > > + #address-cells =3D <2>; > > + #size-cells =3D <2>; > > Use 4 spaces for example indentation. > > > + > > + seninf: seninf@15040000 { > > Node names should be generic. See also an explanation and list of > examples (not exhaustive) in DT specification: > https://devicetree-specification.readthedocs.io/en/latest/chapter2-device= tree-basics.html#generic-names-recommendation > > > > + compatible =3D "mediatek,mt8365-seninf"; > > + reg =3D <0 0x15040000 0 0x6000>; > > + interrupts =3D ; > > + clocks =3D <&camsys CLK_CAM_SENIF>, > > + <&topckgen CLK_TOP_SENIF_SEL>; > > + clock-names =3D "camsys", "top_mux"; > > + > > + power-domains =3D <&spm MT8365_POWER_DOMAIN_CAM>; > > + > > + phys =3D <&mipi_csi0 PHY_TYPE_DPHY>; > > + phy-names =3D "csi0"; > > + > > + ports { > > + #address-cells =3D <1>; > > + #size-cells =3D <0>; > > + > > + port@0 { > > + reg =3D <0>; > > + seninf_in1: endpoint { > > + clock-lanes =3D <2>; > > + data-lanes =3D <1 3 0 4>; > > + remote-endpoint =3D <&isp1_out>; > > + }; > > + }; > > + > > + port@1 { > > + reg =3D <1>; > > + }; > > + > > + port@2 { > > + reg =3D <2>; > > + }; > > + > > + port@3 { > > + reg =3D <3>; > > + }; > > + > > + port@4 { > > + reg =3D <4>; > > + seninf_camsv1_endpoint: endpoint { > > + remote-endpoint =3D <&camsv1_endpoint>= ; > > + }; > > + }; > > + > > + port@5 { > > + reg =3D <5>; > > + }; > > + > > + port@6 { > > + reg =3D <6>; > > + }; > > + > > + port@7 { > > + reg =3D <7>; > > + }; > > + > > + port@8 { > > + reg =3D <8>; > > + }; > > + > > + port@9 { > > + reg =3D <9>; > > + }; > > + > > Stray blank line > > > + }; > > > > Best regards, > Krzysztof >