Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2559820rdb; Fri, 8 Dec 2023 11:37:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IHwrrVBnzRK7wpQPKqvW9naHo92tc74I8NYt0NNrCuNTngZxaWtpRIvh6y0yURtklrt/ATg X-Received: by 2002:a05:6a20:3d1e:b0:18f:b870:e9b3 with SMTP id y30-20020a056a203d1e00b0018fb870e9b3mr555431pzi.121.1702064252512; Fri, 08 Dec 2023 11:37:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702064252; cv=none; d=google.com; s=arc-20160816; b=I8bcOgtyqCPmsyeKaAMAqNf3fe0Q4BVol6D8mCnOObO5/DBB7wvTuAsaDUjnuXgpxQ IXJCX6g5RKIYk1DCvAB/TY9QD4w/sUoiQQEdTzYTNwwnChNMflCIndn2mqvwZMKjkX7b JYeEE0eaQfU/CE9Z8e9S5k6L4ugaKqLXyoUV2JJLrNMBZshZll7dKZfafw61zX086yhU oE8De+Ze+9bMQ++EHJGSwdGZvbfcciHuG9o8i84Q0MhGvqgnj53zFvPBl5Qx6G2Y8FOA 8LSpXHHglwKIFVG5HTyVRD88E4VR77T6HcimIkiJE0dSqjO2azTV2MgMc410cT5IKZrz ZQ4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:content-language:references:cc:to:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=S/wYLxzvaIWrvwXXlhk8RVTXkUjgKIJV8Rq7ARVCREI=; fh=0PRJT/UgrAwWWZOjC8Mf5QtVW82NPImqeaoKgH8tET0=; b=QoRoKhQtGj8O8kY6TyWIY061z4BYEni6Pz1jJNtnE2szV+N3/xLvaGXMEZ9wBEM0mI c66cxrcEX1rz/Xh/4OhA1vZQFLxguf8wmNMxE70YsSTIeYUQCHLGv91iDlT+MXQQJ4MM ralaqyeoIMYYcKcPZerFuz5UigPgrOOun3CxFZ6MrY3AWudaRYd/7CWa+XvxjkEu3UcD XWU69dLrT/hcdt+Vyf/nweqeElGM1wyNcCD7Z4hBWwyvEa+SSHgtOIeHx/QD3LKJ5YTj mE31H5Sp7UeHoMJbSYustKs5C/8T9KQzHbeeEKfmZpC+Ci0JSdv4jRsZ/s0Ram51mAh4 /AlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nx5QLKoS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id x16-20020a634a10000000b005b96d038729si964825pga.728.2023.12.08.11.37.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 11:37:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nx5QLKoS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id DD032833AB3E; Fri, 8 Dec 2023 11:37:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230153AbjLHThL (ORCPT + 99 others); Fri, 8 Dec 2023 14:37:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbjLHThK (ORCPT ); Fri, 8 Dec 2023 14:37:10 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1128E1720 for ; Fri, 8 Dec 2023 11:37:15 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-40c39e936b4so1449755e9.1 for ; Fri, 08 Dec 2023 11:37:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702064233; x=1702669033; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=S/wYLxzvaIWrvwXXlhk8RVTXkUjgKIJV8Rq7ARVCREI=; b=nx5QLKoSF3K/0JzHTJH6Jpz2yiFO6vj+BMq30vB+1PIXUWnRmP8uB6rv7Qj3jM782v qKccfLVGBtV12zxsIdsjxVylEQzazD+f9GkfA0mo0/HjMOcjlOuaQ8y8SPK9h9pg784z Z114SjCwvDemmReF3InMhvu3XYNb5Ba+GjkfCFKbIBQXjy1Xk0wWSYdPNMOBIOR1H7ly 2Lixur5io4aY3aVytFdECAN6/cwYO0cw3qzkpWX+KU767Dz440J4wARr1hcm0V/XOnxx aMQ8P877lnOiz5fvSou/2IHl0BpeZM5XbXw2m/vt0BRx1ch1LuJQbpRJVhll8E+JZ4hW crjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702064233; x=1702669033; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=S/wYLxzvaIWrvwXXlhk8RVTXkUjgKIJV8Rq7ARVCREI=; b=C8B5TxwO/XKxt+T2L/4++2Ef+3QVkrZqlfXPHpJSMTodbByV65rh/kbUlz6rGviNfe oH4IsJUYMng1Gpyq6v65jx2NNSXyEo6Ysj/o97YIA9VnEKxcJ0SmSR8Mo26naumTwX/W KdSUm35IKE7LtsI0mDTLLCe5wPpkgE/DxZ35YDU+L+hJ4dJXuUcHKYzGT0fx5M03ecTv B/7KorvPZXGOJJuJEfd0TZyOocWhm2Sj4jf/Ldg3FFhm6b+ye3P4tu/+/4xXUPdLNWOc cWqbEdAaMXRXBjv1tYFUIs7CjvaVnP1EeQIJ8JYbThz7yKvijFqQ1S2L/fODnwHM5QrH tzOQ== X-Gm-Message-State: AOJu0YwepcDtZs2YhYHe+Qqckd58oTP8X9NOEGYzax+0NmUseETR7aHX 8AUR6q3Sf98Q2a/BwxApQj1vOQ== X-Received: by 2002:a7b:ce89:0:b0:40c:373a:a10 with SMTP id q9-20020a7bce89000000b0040c373a0a10mr134809wmj.145.1702064233357; Fri, 08 Dec 2023 11:37:13 -0800 (PST) Received: from [192.168.1.20] ([178.197.218.27]) by smtp.gmail.com with ESMTPSA id g9-20020a05600c310900b0040c3953cda5sm707897wmo.45.2023.12.08.11.37.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 Dec 2023 11:37:12 -0800 (PST) Message-ID: Date: Fri, 8 Dec 2023 20:37:10 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] media: dt-bindings: ov8856: decouple lanes and link frequency from driver To: Sakari Ailus Cc: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Laurent Pinchart , Maxime Ripard , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231207142356.100453-1-krzysztof.kozlowski@linaro.org> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZ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PMGZ2rZ6zITrMip+12jgw4mGjy 5y06JZvA02rZT2k9aa7i9dUUFggaanI09jNGbRA/ABEBAAHCwXwEGAEKACYCGwwWIQSb0H4O DFH41ZZ3t1Qbk0N9O0FimwUCYDzvagUJFF+UtgAKCRAbk0N9O0Fim9JzD/0auoGtUu4mgnna oEEpQEOjgT7l9TVuO3Qa/SeH+E0m55y5Fjpp6ZToc481za3xAcxK/BtIX5Wn1mQ6+szfrJQ6 59y2io437BeuWIRjQniSxHz1kgtFECiV30yHRgOoQlzUea7FgsnuWdstgfWi6LxstswEzxLZ Sj1EqpXYZE4uLjh6dW292sO+j4LEqPYr53hyV4I2LPmptPE9Rb9yCTAbSUlzgjiyyjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 08 Dec 2023 11:37:30 -0800 (PST) On 08/12/2023 19:07, Sakari Ailus wrote: > Hi Krzysztof, > > Thanks for the update. > > On Thu, Dec 07, 2023 at 03:23:56PM +0100, Krzysztof Kozlowski wrote: >> The data lanes and link frequency were set to match exiting Linux driver >> limitations, however bindings should be independent of chosen Linux >> driver support. >> >> Decouple these properties from the driver to match what is actually >> supported by the hardware. >> >> This also fixes DTS example: >> >> ov8856.example.dtb: camera@10: port:endpoint:link-frequencies:0: [360000000] is too short >> >> Fixes: 066a94e28a23 ("media: dt-bindings: media: Use graph and video-interfaces schemas") >> Signed-off-by: Krzysztof Kozlowski >> >> --- >> >> Changes in v2: >> 1. Rework approach: decouple bindings from driver instead of fixing >> DTS example (Sakari) >> --- >> .../devicetree/bindings/media/i2c/ov8856.yaml | 21 +++++++++++-------- >> 1 file changed, 12 insertions(+), 9 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/media/i2c/ov8856.yaml b/Documentation/devicetree/bindings/media/i2c/ov8856.yaml >> index 57f5e48fd8e0..71102a71cf81 100644 >> --- a/Documentation/devicetree/bindings/media/i2c/ov8856.yaml >> +++ b/Documentation/devicetree/bindings/media/i2c/ov8856.yaml >> @@ -67,19 +67,22 @@ properties: >> >> properties: >> data-lanes: >> - description: |- >> - The driver only supports four-lane operation. >> - items: >> - - const: 1 >> - - const: 2 >> - - const: 3 >> - - const: 4 >> + oneOf: >> + - items: >> + - const: 1 >> + - items: >> + - const: 1 >> + - const: 2 >> + - items: >> + - const: 1 >> + - const: 2 >> + - const: 3 >> + - const: 4 >> >> link-frequencies: >> description: Frequencies listed are driver, not h/w limitations. > > This should be dropped, too. Ack, I forgot. > >> - maxItems: 2 >> items: >> - enum: [ 360000000, 180000000 ] >> + enum: [ 1440000000, 720000000, 360000000, 180000000 ] > > These frequencies are listed in the datasheet but they're just an > example---the sensor hardware isn't limited to these, the resulting > frequency on the CSI-2 bus is simply up to the external clock frequency and > PLL configuration. I'd remove the values here altogether. Hm, are you sure? Isn't it quite difficult to program device to any frequency? But if that's not the case here, I can drop it. Best regards, Krzysztof