From patchwork Fri Dec 8 19:52:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 176018 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp5683848vqy; Fri, 8 Dec 2023 11:53:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IEomqfTI49aGoCVQuqsSgIJn5alnrqV3sbL4uApMvF2izGiNjbYXvF4GC+Qm/LI6V3f7z2f X-Received: by 2002:a05:6a20:3ca1:b0:190:55ed:c42 with SMTP id b33-20020a056a203ca100b0019055ed0c42mr599761pzj.63.1702065186911; Fri, 08 Dec 2023 11:53:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702065186; cv=none; d=google.com; s=arc-20160816; b=wC3Bh/xwnz0j0H4/rDBv9PNW+3IzZ4qsnGf3kcc09/dmFYgDx88eLQCZqCndKicdFJ EJIiXOxWEak06QwltJc4uSupytQjmq9MCGOfHey3B4AvpK/gtWuJ1rZvP+5refYXTceY SdSxWBg33WmSqt9mc2uoW6Irj+Ps5r84jrhGLh7VHl1PIhduNl855YCP/j6192x9UiTt eZlRG6+/VUyz/3p3gARA9ptEj5Uwc1HMrY34TD4/7CJVhVewHqNqQm92MzefztmjBKZJ vbOZABgbnyD6QD6rZmkmIrohdOBnMm+cNDyJSfUT7zXxeqtRgkZDLESlnBd58biTZA5Z nv2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=AQL2QzATtB7HD48YvHn7NcHvaYuNjHniWUH7CLZRyog=; fh=ddhYcFd2VPp2ZWwDDbZ7ExkJ6wqX82VwDBfQhunW3fM=; b=tCw0iR13Y3pEY3BmwF+M6OehE5c9fxIT7NUmLGx4RMZEBd2PA5E+9QbjOPDnFv9qWx 25ZKejucQp1gmtpvPTNgyR2JnZ1BgDgCtcE69Lylg+IO023LnYKgnEkKXrNXlXvfkhzb hpPd6lb89rqWSiUTFIC/OFyVrGdThJ3n+PnUmBv+OLWVwrPTiKlSDgkMSYP2RycSfRb7 h0aeMHjb2I9PeWra6yUY9KvLTOkZm36LZSvXOwQrMLDm0Q+ejZ1prj/veJc9STSpZUJ8 MJi5/TFxRya8/KQX8c6/3RGP4BfMeu9Dt/cfp8jAWZloX0nY8q6Iu1eEZUzTgBfRAkJT fxuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=q28ZqfaE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id b1-20020a056a00114100b006ce8203a130si1971918pfm.346.2023.12.08.11.53.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 11:53:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=q28ZqfaE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id E79E084A84F7; Fri, 8 Dec 2023 11:53:02 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230153AbjLHTwy (ORCPT + 99 others); Fri, 8 Dec 2023 14:52:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbjLHTwx (ORCPT ); Fri, 8 Dec 2023 14:52:53 -0500 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31CF4137 for ; Fri, 8 Dec 2023 11:52:59 -0800 (PST) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-a1d450d5c11so318997266b.3 for ; Fri, 08 Dec 2023 11:52:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702065177; x=1702669977; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=AQL2QzATtB7HD48YvHn7NcHvaYuNjHniWUH7CLZRyog=; b=q28ZqfaEwMhMnkIACRBvhMKYc7sq9t129BEObLiuPPtKE3Y6d1ulb+oBKs1EO1jEFL daKqChtF42XGLxSHB36hVQm8XCDDxFAPF8wHphZyF/RSMtBLGWUfgvXRcTdL3OP22rCl 2EGoVSWYShNkjAvv2T84WgHp1aK4CHX2dUC+kgsszqUm0TbOlL+pmJfkKK00pdJEbhBX DB5Rjga7WjgB4pxYCVBwKA6UdXoPfj9SBIfqqvHzkPH3DggCIvoIH7SjhsY2cNqDvLOE u8vIVEJTFFaqidzBtvpNN3eQ3L2RdiHYLB9ZqPWgtL1YBweLf2ljw1qKXreebDW9/28e q8yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702065177; x=1702669977; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AQL2QzATtB7HD48YvHn7NcHvaYuNjHniWUH7CLZRyog=; b=FSSCcrCejxGaRAYTQSHF6tqcXDyoibDMCVtYjEbxF3KqT7df8j/YVrGThC0zms/1Wt QRkelIdGPdXIYjt7pOV6ahRxSd3MreykLbD58TEA4LpOMq25h+FTQrco1/KpwLtP+1sc cbAdvO8n6BteuoJEjJSIWSEByMdYDoiJlDJ7k2fS3lElVp/204yUZ/kok+Oat/T8jam2 8UIEXos5gdE5a28O6O97Y3Dzb7Ulph4RneCuNUW4w6xxglV4ru9gsNnqopEMM+yOIWGm OlS1KCAPHvFUGq1ST1moUjArpKta0qAM+ACJVSNzDe2vpriaok0rSpFYLep2YCD2LWxx hRqQ== X-Gm-Message-State: AOJu0Yze+eXAtl8iZXrkOJpQvmNoVK+IrnGQ0HZHoaLjL4toWB8qrzrc RmxKOyofO+d1A2r5Dj9nn0wI1/ApC/IBlzWLfyc= X-Received: by 2002:a17:906:3289:b0:9c4:54c6:8030 with SMTP id 9-20020a170906328900b009c454c68030mr246504ejw.6.1702065177641; Fri, 08 Dec 2023 11:52:57 -0800 (PST) Received: from krzk-bin.. ([178.197.218.27]) by smtp.gmail.com with ESMTPSA id vu6-20020a170907a64600b00a1d61183006sm1339333ejc.83.2023.12.08.11.52.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 11:52:57 -0800 (PST) From: Krzysztof Kozlowski To: Sakari Ailus , 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 Cc: Krzysztof Kozlowski , Conor Dooley Subject: [PATCH v3] media: dt-bindings: ov8856: decouple lanes and link frequency from driver Date: Fri, 8 Dec 2023 20:52:53 +0100 Message-Id: <20231208195253.130470-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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 howler.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 (howler.vger.email [0.0.0.0]); Fri, 08 Dec 2023 11:53:03 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784744705448991337 X-GMAIL-MSGID: 1784744705448991337 The data lanes and link frequency were set to match existing 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") Acked-by: Conor Dooley Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- Changes in v3: 1. Drop link-frequencies entirely (Sakari) 2. Add Conor's ack Changes in v2: 1. Rework approach: decouple bindings from driver instead of fixing DTS example (Sakari) --- .../devicetree/bindings/media/i2c/ov8856.yaml | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/Documentation/devicetree/bindings/media/i2c/ov8856.yaml b/Documentation/devicetree/bindings/media/i2c/ov8856.yaml index 57f5e48fd8e0..816dac9c6f60 100644 --- a/Documentation/devicetree/bindings/media/i2c/ov8856.yaml +++ b/Documentation/devicetree/bindings/media/i2c/ov8856.yaml @@ -67,19 +67,17 @@ properties: properties: data-lanes: - description: |- - The driver only supports four-lane operation. - items: - - const: 1 - - const: 2 - - const: 3 - - const: 4 - - link-frequencies: - description: Frequencies listed are driver, not h/w limitations. - maxItems: 2 - items: - enum: [ 360000000, 180000000 ] + oneOf: + - items: + - const: 1 + - items: + - const: 1 + - const: 2 + - items: + - const: 1 + - const: 2 + - const: 3 + - const: 4 required: - link-frequencies