Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1543055rdd; Thu, 11 Jan 2024 02:17:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IHAbq7aoI1MvTXIzeAvZ1frJm58Ndu5dtcJimZAgnR+ZjJVjS0F5kJU/RfErFZd4VYdxf+p X-Received: by 2002:a0d:eb0e:0:b0:5d7:1941:3558 with SMTP id u14-20020a0deb0e000000b005d719413558mr382394ywe.63.1704968231941; Thu, 11 Jan 2024 02:17:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704968231; cv=none; d=google.com; s=arc-20160816; b=LMj/VC5OFza3YSJTPuLDSRYUEm+tVq8O0CBWISph1VNuwVP0RyjrppQAJNIyjiRdw4 xE3+8tvo9HU0QXZxJYCEUvd4PR8dGGJ6YvtXqcE9fXuGzumamoQmbrXT6pk4TfguJfhX Ahvq4caAl10JbmjUP9d7Q2rQ/EJL5AOoOK6uRUsVgjM04So+Axptga/WS0GPE01owxgV sViQEYfMB5DHDGDDdL6PTYxHyZCqmajk4c3CMZ75M2sbvZ29GHJ2YQ+AYwo10too3fGn O51L1LDKcAfOsQGB65dOjyMkwkITkEDRAaWZNKQD51X0Cfpjs2bnkaK57Tm74QFrPyOs MqGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=8/hW0eMP0R26bZoJ7D3kVMQU+mn9+CNKwNbl/G0tADY=; fh=zvCDKDBgDdR8nm8OKjhQkuM084HzFB0zJAo6rDHERvQ=; b=mhiNHtChy3oISx6TOSMhdwfIBQ2Ivq7gpN9zm1iL7Oof8bDFf0pxOXc43h+k9ya3bq 57mu9ryIylpgOqN8KZnCuSt/5lxyO6RxzIdsOy5WPLqPxxERjFnbFe1Pz+/czV4U+82H R77HIs6BvnORNO6GtmH9/AS77x9VRk/JnErXXfEiiG9/KaD/YymZX4DSoFRuFc8zIXnh ERA/DfyeEgYpDmmTv+HCgYTYo5gkuzK3g6j4ShfB5uxYlskbDoESEa6ssZ03ri3C2L1C mjcC0p6GMSXQuuAQ5PwQVc5KOq3K3XyWQpoA9tgap0BuhZuNCDBzXqZnTUa9wREeV15X 8WdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=NBC6kGru; spf=pass (google.com: domain of linux-kernel+bounces-23372-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23372-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t12-20020a170902bc4c00b001d5947f5193si378401plz.0.2024.01.11.02.17.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 02:17:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23372-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=NBC6kGru; spf=pass (google.com: domain of linux-kernel+bounces-23372-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23372-linux.lists.archive=gmail.com@vger.kernel.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9FDE928BD09 for ; Thu, 11 Jan 2024 10:16:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 25C3614290; Thu, 11 Jan 2024 10:15:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="NBC6kGru" Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (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 8F4641426C for ; Thu, 11 Jan 2024 10:15:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-40e60958d7aso1717375e9.1 for ; Thu, 11 Jan 2024 02:15:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1704968118; x=1705572918; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8/hW0eMP0R26bZoJ7D3kVMQU+mn9+CNKwNbl/G0tADY=; b=NBC6kGruUa/6zDhKGA/sXEndfnYfo0/ccg+uT6QghwJWhyNendqEI3Yt5G/Sr48NEy fvYUJ59JRSYEKjwk5JhMiq5JR40j+xN08ouj+D/vQUE+VYIENgY8gcw8TrHps2gsOyVQ HKOWJydrjLQNoPCFhsqP+7BvSTtLQBbbLfEHBcIbhXsmZbDT4lZWdNs2vghBKTy9024/ PTcT/AIRWoz+SuHSKR1+RPKrFWDctrEyBdXm71FgZ0mYlXWmhtFN+UgCW4ClRroDAoHa kIGB05PsZ1t0Sn0WRNKUOPs2NxYl1anCQ/nOKuv2p7SM1v8xFR5bHrbCFiLlEgQJI6+9 ELPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704968118; x=1705572918; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8/hW0eMP0R26bZoJ7D3kVMQU+mn9+CNKwNbl/G0tADY=; b=DVFJbBRkcVsbjg3yd1bMin6DyiunTZV0hJ3VmFfywBaTEfKVGKDD+kAiCCAAaDqePZ NNuPx94OAVkPMYlYddStqc/R4WZFAl5YReiwfows+wThoyD42jG2AFZFnXNInzMKeNCO tJVQci4q0dcZlIgMZo/rPSzkl2wpBv8b1dL3u8kvRjT3eFrj/HUfcdAxzUTYZkOknpF9 cdEZbWGvmEFSYS1/UCgixooPT7BKG2E//sE1D6qwjasSmNkJAFy7XkR8Bd5lJB7JH3e/ F2uhTgqIg+umYirV3/NGIlGaRZbQXyMEiDy9+43pF9eul7+GkJdCfABIQAK/NOuCT3F2 rcQA== X-Gm-Message-State: AOJu0Yy+Socl9C6RrctVAAPSuqdnWucznHeir/g5DbNV3ZRxdNhVPI9I k2AIKhrvICD1/72nMlQEhKRk4vvZ0Z8siw== X-Received: by 2002:a05:600c:3ba0:b0:40e:5b66:f4d9 with SMTP id n32-20020a05600c3ba000b0040e5b66f4d9mr300477wms.79.1704968112988; Thu, 11 Jan 2024 02:15:12 -0800 (PST) Received: from localhost.localdomain ([2a01:e0a:55f:21e0:9e19:4376:dea6:dbfa]) by smtp.gmail.com with ESMTPSA id j7-20020a05600c190700b0040e52cac976sm5157758wmq.29.2024.01.11.02.15.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 02:15:12 -0800 (PST) From: Julien Stephan To: Cc: Florian Sylvestre , Julien Stephan , Rob Herring , Andy Hsieh , AngeloGioacchino Del Regno , Chunfeng Yun , Chun-Kuang Hu , Conor Dooley , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, Kishon Vijay Abraham I , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-phy@lists.infradead.org, Matthias Brugger , Philipp Zabel , Rob Herring , Vinod Koul Subject: [PATCH v5 1/2] dt-bindings: phy: add mediatek MIPI CD-PHY module v0.5 Date: Thu, 11 Jan 2024 11:14:50 +0100 Message-ID: <20240111101504.468169-2-jstephan@baylibre.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240111101504.468169-1-jstephan@baylibre.com> References: <20240111101504.468169-1-jstephan@baylibre.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Florian Sylvestre This adds the bindings, for the MIPI CD-PHY module v0.5 embedded in some Mediatek soc, such as the mt8365 Signed-off-by: Florian Sylvestre Signed-off-by: Julien Stephan Reviewed-by: Rob Herring --- .../bindings/phy/mediatek,mt8365-csi-rx.yaml | 79 +++++++++++++++++++ MAINTAINERS | 6 ++ 2 files changed, 85 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/mediatek,mt8365-csi-rx.yaml diff --git a/Documentation/devicetree/bindings/phy/mediatek,mt8365-csi-rx.yaml b/Documentation/devicetree/bindings/phy/mediatek,mt8365-csi-rx.yaml new file mode 100644 index 000000000000..2127a5732f73 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/mediatek,mt8365-csi-rx.yaml @@ -0,0 +1,79 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (c) 2023 MediaTek, BayLibre +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/mediatek,mt8365-csi-rx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Mediatek Sensor Interface MIPI CSI CD-PHY + +maintainers: + - Julien Stephan + - Andy Hsieh + +description: + The SENINF CD-PHY is a set of CD-PHY connected to the SENINF CSI-2 + receivers. The number of PHYs depends on the SoC model. + Depending on the SoC model, each PHYs can be either CD-PHY or D-PHY only + capable. + +properties: + compatible: + enum: + - mediatek,mt8365-csi-rx + + reg: + maxItems: 1 + + num-lanes: + enum: [2, 3, 4] + + '#phy-cells': + enum: [0, 1] + description: | + If the PHY doesn't support mode selection then #phy-cells must be 0 and + PHY mode is described using phy-type property. + If the PHY supports mode selection, then #phy-cells must be 1 and mode + is set in the PHY cells. Supported modes are: + - PHY_TYPE_DPHY + - PHY_TYPE_CPHY + See include/dt-bindings/phy/phy.h for constants. + + phy-type: + description: + If the PHY doesn't support mode selection then this set the operating mode. + See include/dt-bindings/phy/phy.h for constants. + const: 10 + $ref: /schemas/types.yaml#/definitions/uint32 + +required: + - compatible + - reg + - num-lanes + - '#phy-cells' + +additionalProperties: false + +examples: + - | + #include + soc { + #address-cells = <2>; + #size-cells = <2>; + + csi0_rx: phy@11c10000 { + compatible = "mediatek,mt8365-csi-rx"; + reg = <0 0x11c10000 0 0x2000>; + num-lanes = <2>; + #phy-cells = <1>; + }; + + csi1_rx: phy@11c12000 { + compatible = "mediatek,mt8365-csi-rx"; + reg = <0 0x11c12000 0 0x2000>; + phy-type = ; + num-lanes = <2>; + #phy-cells = <0>; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index cc92b10a4cad..37dfa99b0eb0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13569,6 +13569,12 @@ F: Documentation/devicetree/bindings/media/mediatek-vpu.txt F: drivers/media/platform/mediatek/vcodec/ F: drivers/media/platform/mediatek/vpu/ +MEDIATEK MIPI-CSI CDPHY DRIVER +M: Julien Stephan +M: Andy Hsieh +S: Supported +F: Documentation/devicetree/bindings/phy/mediatek,mt8365-csi-rx.yaml + MEDIATEK MMC/SD/SDIO DRIVER M: Chaotian Jing S: Maintained -- 2.43.0