From patchwork Fri Mar 31 14:10:32 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: 13196031 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 CBF43C761AF for ; Fri, 31 Mar 2023 14:12:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232045AbjCaOMm (ORCPT ); Fri, 31 Mar 2023 10:12:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231588AbjCaOMl (ORCPT ); Fri, 31 Mar 2023 10:12:41 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63A151D850 for ; Fri, 31 Mar 2023 07:12:39 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id h8so90143427ede.8 for ; Fri, 31 Mar 2023 07:12:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ragnatech-se.20210112.gappssmtp.com; s=20210112; t=1680271958; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=QWblS21f7MwbeFDcHXvf6ZN7vsvR3dKGxsNxsmvhTTE=; b=4e1Tz8QxaCs0PDKXbLxXj0VBT8Oz6YSmzrxYTzW5CkEYI/EiRP5Sqa0o87ItGvFxFF tldh+MVUg33kKa8INHXnjHKJxup8r6ETNoQ7/Rf5lDjzuLq1jNiXAify7MZUsx5J9GrE 8Cv78Me7YDssFtng3bIlGYuHTkynucrUn39QaJmcp0mUCCnCZNpmE2lunOFaFOYwxE5J +toiXubxfuCIrBAB+rfXP4OmufmvMouu6+YtJexc5TRSyQ9k/O+141W2+IU4tYCUb5kn 94QgtGy8hc/yluw9MtUv4R3kQWqAyBROB+h1Q7b1eAB9oL2UNC01M5S67lhb0hBoR6hw cJFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680271958; 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=QWblS21f7MwbeFDcHXvf6ZN7vsvR3dKGxsNxsmvhTTE=; b=JaegvbSqDV+SMzqKFN4wMqGr5JfnPMtXZiUy8t9CGZOaYz4iXYR+qxXVRe+7pPKf9i XhDfscA7Cat1qxKzTAuKsAbLO0j5CQ1KXzWNu7gL3NAOk836NCiR9R067xuKmnNDmEXI kPBHsJa43jdQTTTGHuw2bg2MbM3PK2tHF7y1BOI3+LMtNtSE2ZHjfTGd72TTKP4LBql9 TXmRhKl7ot5NWz6qo7oTkxnfiDeDKMy9UbGsiNJVAndk0ISmvNB/kpAKyhulUqFOem2/ ND3QvcZ7DhkhME+fjyYm3zJcB4OK44GecFeTOF49eGl3uPdqJAy7Ayke/lKhFUQx74b3 Suag== X-Gm-Message-State: AAQBX9dQ8DqUHtXzH0TJ+yX+t7GAVkx6STFNJY8ri25ecX6vyT7RfV3V ZmG3s3DNN0eNUwqJTHs0X7kczA== X-Google-Smtp-Source: AKy350ZFp71i8e1Ppu4KWJhAnOa9mr+2nxnr3Rey851kGN7Ef4Q+VHxPP0z4zAh2jUzJA4CdtzdDow== X-Received: by 2002:a17:906:9485:b0:933:c052:a277 with SMTP id t5-20020a170906948500b00933c052a277mr27731867ejx.12.1680271957867; Fri, 31 Mar 2023 07:12:37 -0700 (PDT) Received: from sleipner.berto.se (p54ac5f91.dip0.t-ipconnect.de. [84.172.95.145]) by smtp.googlemail.com with ESMTPSA id gw6-20020a170906f14600b009334edaed98sm1016557ejb.50.2023.03.31.07.12.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Mar 2023 07:12:37 -0700 (PDT) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: Rob Herring , Mauro Carvalho Chehab , 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] dt-bindings: i2c: maxim,max96712: Require setting bus-type property Date: Fri, 31 Mar 2023 16:10:32 +0200 Message-Id: <20230331141032.3817866-1-niklas.soderlund+renesas@ragnatech.se> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The MAX96712 can support both CSI-2 C-PHY and D-PHY bus. Document the supported bus-types and make the property mandatory. Signed-off-by: Niklas Söderlund --- Hi, This is done in conjunction with adding C-PHY support to the driver, patches on list. The current driver only supports D-PHY so this was assumed in the driver. There is a single user of this binding, r8a779a0-falcon-csi-dsi.dtsi. A separate patch to update that binding with a bus-type property is be submitted. Without the property present the driver fall-back to D-PHY (even with the C-PHY work applied). So this change is backward compatible with old versions of the only effected DTS file. --- .../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..fccbf287ff79 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 # CSI-2 C-PHY + - 4 # CSI-2 D-PHY 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>;