Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2134880rdd; Thu, 11 Jan 2024 23:32:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IFLTC/pqbIFLLD6lEm5TAZ2VSoEf9N9H7Tz9NXcDJfbT4X2FkbGZw6HfmIHYNjIJHtoHprZ X-Received: by 2002:a17:906:17d6:b0:a2a:ae58:b582 with SMTP id u22-20020a17090617d600b00a2aae58b582mr387732eje.49.1705044766329; Thu, 11 Jan 2024 23:32:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705044766; cv=none; d=google.com; s=arc-20160816; b=BlDbO4RPJRC2eJWlsnBSe2qZCfXHl6o9SIgi1rTrSUJjJPDB3fzhhlUVlHWxe04BHQ VrGk6z5/l2Uo70krYX3F1EGug7yHZvSRPbiiMb8kDckiE1iOscB8YF1ZpODFpEaTbzrd wTqDUu+g2k+Ije0nCUhj+UCGmQTNXyiqMB69LwFEl0dEoDYn69qEVluZ3TIyxu6gpImJ hTcQuxrR8xKZuHB2T1tRoEn8dW8f6Bkiirt5KJIl7me3ClcB17sSzMnYGfMxRQ28OvIk 8MknDkfBw9cWYDrOupkBf4gDlVzfKmXHqG1xw3Ez9MH6EIxeCkbjT2aJleWuJi/rtS/O I65A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=gLKcQDTpYJudfsIn9Xw9SgMzAmzimrbVpTNjBGMZ4UU=; fh=0XpUPWKtq6yh6G5QiB60lfBfNrLJMixKEergVTyflOg=; b=U67dbH3Ewde32rnqpy6XNeB//xNN1sQ2w+FeM4CpOY7V2A9pof2ybcCYuUPtNHRFaZ 5xKRc+qixGb3upcTxUzugEkwo1wCym4nvSwcisNnFRA9INepaIXCDCrSTSGOgtWEs7ti vzK/xCXRModCglqKqJvDPstMDmhKKc1p97XL1RkbuDsQleFua0flEioEg6+VE7k8xlZs YGR6dl9EpzdWoINjnNjzYagf9WEaxJO34W6VzG2UafKX69lDSgtgfWGfQAveGRufGLvw N5J4roC/9WyhzvSDhEtxS1cwBmmZDyeRHSBafX79r33sxC8HSbUeLtO9RyW17NgM4D4p 12Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=dnJD3sNI; spf=pass (google.com: domain of linux-kernel+bounces-24382-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24382-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.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 a14-20020a170906190e00b00a2c050a11e1si1196794eje.80.2024.01.11.23.32.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 23:32:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24382-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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=dnJD3sNI; spf=pass (google.com: domain of linux-kernel+bounces-24382-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24382-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.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 E53031F224A7 for ; Fri, 12 Jan 2024 07:32:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B8545D731; Fri, 12 Jan 2024 07:32:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="dnJD3sNI" Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 C6A785D720 for ; Fri, 12 Jan 2024 07:32:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-40e6275e897so11302915e9.3 for ; Thu, 11 Jan 2024 23:32:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705044750; x=1705649550; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=+lZ5pNbtd5svoAtnRiRjmNP8aGu9v/OGDfR2LrQqfcI=; b=dnJD3sNIwk4k4EErbbgU4C+5JHsz1tEukZteDngy6OMS3ofJEVGPSEZ3ZQtDvE2+y/ ki4mFEWTf7GQDOcwD8OyNrZg8NKMy0H0jo2BPgPpFiWTjBQfITrD7zpxp3flU9uPg4ss 0e4RiOFejsGw7LCn4Yd8ryC6H7nDhePbpw6mFVZZmUy0V7ztYay0+6/WZYdAlg/onUg+ BHvdGJx5OeoNlnhpifQV88xa6aZzlfreme69W9oyIxfT4fbjGHgmbwbPF3tee8FyJrJl Wq6MDNpX6SkFRYhgb+LeDoKkE0Jp2pm68ueUAXIXZFV9uPBu5g+HEpxtP003NPKIrieY SfzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705044750; x=1705649550; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+lZ5pNbtd5svoAtnRiRjmNP8aGu9v/OGDfR2LrQqfcI=; b=HIVvMPdC0R33ok8NA2P7vLvHbre0oElGaq61RPro3Zp29svevAYMWNFOEiyNgxgfrY 3OHBzEihPEyJXQuXkiU9tS+xDKF03+hbCKuyLOd8MmzlDOE2ZmA7L/+i5rQjsx+SsArn 6ksZOXHIIPb+tWYVqJ3SJaz9bjwyB7LVKs0LeD3yzgXupdD6C/rXtaOcTiDJoqgfra7o /T3Wq5gdf10mIp5XZyoV5uqq8jakK3S3qjuq5ZIQpDgc/pbIFfFCWpd3EiEX35r7N/oI CaaeBZ74oR13e6X7DsDvwWev7fRx4D1KvBpHFYSo1rdRL6IOqPeRoIchUKCE/2H3Armn tG9A== X-Gm-Message-State: AOJu0YxGT9SOjaB0yjd6KwP6fjDOVbNZ/mDvJQRq/nbMPwYsrYix2kLa l0n624CxdDyaiSSMTrjTsUYqTzWX6YIkFQ== X-Received: by 2002:a05:600c:512a:b0:40d:5a3f:8e90 with SMTP id o42-20020a05600c512a00b0040d5a3f8e90mr536073wms.20.1705044750092; Thu, 11 Jan 2024 23:32:30 -0800 (PST) Received: from [192.168.1.20] ([178.197.223.112]) by smtp.gmail.com with ESMTPSA id n15-20020a05600c3b8f00b0040d5a5c523csm8647963wms.1.2024.01.11.23.32.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Jan 2024 23:32:29 -0800 (PST) Message-ID: Date: Fri, 12 Jan 2024 08:32:27 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 1/5] dt-bindings: media: add mediatek ISP3.0 sensor interface Content-Language: en-US To: Julien Stephan 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 References: <20240110141443.364655-1-jstephan@baylibre.com> <20240110141443.364655-2-jstephan@baylibre.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8V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dnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240110141443.364655-2-jstephan@baylibre.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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? > + > + 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 = <2>; > + #size-cells = <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-devicetree-basics.html#generic-names-recommendation > + compatible = "mediatek,mt8365-seninf"; > + reg = <0 0x15040000 0 0x6000>; > + interrupts = ; > + clocks = <&camsys CLK_CAM_SENIF>, > + <&topckgen CLK_TOP_SENIF_SEL>; > + clock-names = "camsys", "top_mux"; > + > + power-domains = <&spm MT8365_POWER_DOMAIN_CAM>; > + > + phys = <&mipi_csi0 PHY_TYPE_DPHY>; > + phy-names = "csi0"; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + seninf_in1: endpoint { > + clock-lanes = <2>; > + data-lanes = <1 3 0 4>; > + remote-endpoint = <&isp1_out>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + }; > + > + port@2 { > + reg = <2>; > + }; > + > + port@3 { > + reg = <3>; > + }; > + > + port@4 { > + reg = <4>; > + seninf_camsv1_endpoint: endpoint { > + remote-endpoint = <&camsv1_endpoint>; > + }; > + }; > + > + port@5 { > + reg = <5>; > + }; > + > + port@6 { > + reg = <6>; > + }; > + > + port@7 { > + reg = <7>; > + }; > + > + port@8 { > + reg = <8>; > + }; > + > + port@9 { > + reg = <9>; > + }; > + Stray blank line > + }; Best regards, Krzysztof