From patchwork Tue May 9 19:00:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 13236090 X-Patchwork-Delegate: kieran@bingham.xyz Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 902AAC77B75 for ; Tue, 9 May 2023 19:01:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229538AbjEITBP (ORCPT ); Tue, 9 May 2023 15:01:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229557AbjEITBO (ORCPT ); Tue, 9 May 2023 15:01:14 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F8FE30F9 for ; Tue, 9 May 2023 12:01:12 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-50bd37ca954so61936430a12.0 for ; Tue, 09 May 2023 12:01:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ragnatech-se.20221208.gappssmtp.com; s=20221208; t=1683658871; x=1686250871; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/Ytk+V71/AV0BGV2Rs5mHU2upcD/KjA0lh+KGqNo4Tc=; b=1bjSD/z/1AbfXl3d0X6ocUksFrxRjue3+gvsgAzECgP46rQ4BSMHJLEgMdg+ojdmjG QWmZssbw/m+v7hsi9mEpEgHuip3EvrUkF6QCfs9zUHpvUzq+9oiiHAjPkHsa58eyJckE Ne6fGP0r/muCOHQHU3qnFbS4pyq64Oqk4oK6Jsuk/g2mQBwKwKji2W+hk38KwW+4W+DT RSOD/PtuAwCYdDy7Ww30HgermZkfO8n43shbCF7tUiLTLdzNB5vr6agzfjkZVWlxJx58 m489X9kOGxlQuBnGQaSYOf6TzNkr4SBLbyOXhnHlUS0rxmzdv4uq6P88QzrXpzAsDF7S prrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683658871; x=1686250871; 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=/Ytk+V71/AV0BGV2Rs5mHU2upcD/KjA0lh+KGqNo4Tc=; b=GbuimZMUFszoTOHbXeigrRM816imlCcFU8bqGcGMG2LVEgr5gl7EbaRb7M9leY/2zr YLJsp7eue2Si7olPHh2S62Y+1o3vAZr08TO07D1LaOzuFQpXKsiQK8qc5jv1/1MkhncN nNBH6NIpYCRw/hzGpvuWqLFNYb+aJBW3+XfIg/PHcfbtfKtm7/hXFfBBk/dKnpuE7fXw c0J3aVIDDrMLRwWTI2a/U69sOMiGBAo+VLXtyYWLnOY7HJ02iq/xNwXsIz+DkJYbaIuf VqSKtYK11e1Rxy8kWHFmC6ajrbfY5/91Bvo6QcH8CoB0AOm8nSXBl60AVzkQqojg+SEd pyWg== X-Gm-Message-State: AC+VfDwLVsf/5pfooVHkmpLc2gPLUCQL5CG/oCwpwtPOxUh6hT9xZiPQ hmhDMwLXbyllTZG3qfEkTI7COw== X-Google-Smtp-Source: ACHHUZ6wJrXOIO2riLPl9ZDaOHeOgwiS5ZaALBf2+RoE/hN+LBzXNViI3mVhNkHh2SHEtU+tTdzWAA== X-Received: by 2002:a05:6402:34c9:b0:50b:c350:f9ca with SMTP id w9-20020a05640234c900b0050bc350f9camr14606410edc.10.1683658870820; Tue, 09 May 2023 12:01:10 -0700 (PDT) Received: from sleipner.berto.se (p54ac52fc.dip0.t-ipconnect.de. [84.172.82.252]) by smtp.googlemail.com with ESMTPSA id n25-20020a056402061900b0050a276e7ba8sm1123181edv.36.2023.05.09.12.01.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 May 2023 12:01:10 -0700 (PDT) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sakari Ailus , devicetree@vger.kernel.org, linux-media@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= Subject: [PATCH v2] dt-bindings: i2c: maxim,max96712: Require setting bus-type property Date: Tue, 9 May 2023 21:00:31 +0200 Message-Id: <20230509190031.769298-1-niklas.soderlund+renesas@ragnatech.se> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The MAX96712 can support both a CSI-2 C-PHY and D-PHY bus. The initial staging driver however only supported D-PHY and the bus-type property was left optional. In preparation for adding C-PHY support to the staging driver make the bus-type property mandatory as it is needed to select the correct PHY mode. Without the bus-type property present, the driver falls-back to D-PHY mode, so the change is functionally backward compatible with old DTS files lacking the property. The only in-tree DTS file (renesas/r8a779a0-falcon-csi-dsi.dtsi) that lacked the property uses D-PHY and have been updated. Signed-off-by: Niklas Söderlund Reviewed-by: Conor Dooley Acked-by: Krzysztof Kozlowski Reviewed-by: Geert Uytterhoeven --- * Changes since v1 - Use symbolic names in comments for the bus-type properties. - Improve the commit message. - Rebased to v6.4-rc1. --- .../devicetree/bindings/media/i2c/maxim,max96712.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml index 444f24838d3d..6c72e77b927c 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml @@ -65,9 +65,14 @@ properties: properties: data-lanes: true + bus-type: + enum: + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY required: - data-lanes + - bus-type required: - port@4 @@ -82,6 +87,7 @@ additionalProperties: false examples: - | #include + #include i2c@e6508000 { #address-cells = <1>; @@ -101,6 +107,7 @@ examples: port@4 { reg = <4>; max96712_out0: endpoint { + bus-type = ; clock-lanes = <0>; data-lanes = <1 2 3 4>; remote-endpoint = <&csi40_in>;