Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1767150rwd; Mon, 15 May 2023 02:46:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6mmnq3XcJnrVOFywqcgx89q41y1UONvJ7XK1ZValBpTpiCptHF8+NRYuwg9x9DpalFoYrs X-Received: by 2002:a05:6a21:6d96:b0:104:923b:4d00 with SMTP id wl22-20020a056a216d9600b00104923b4d00mr12385516pzb.36.1684143961830; Mon, 15 May 2023 02:46:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684143961; cv=none; d=google.com; s=arc-20160816; b=hU64SQUiFc2aLzEu5bYL5AhaNzeJ4xwo8sh49xMuSSlKyJEyEdmXOeJVIc6x7moT7S Sydzy5YoC5ch4deMFj0LvBNrIFQ6v5tmjY9LbZYYSkjj8XhySRkf5N01bI0xOrVkNsAZ omNLtRuDOI7jNUr0+nXNiUhAOrBYnvtFqHKQikNjffgYR9tmZfDGB5TxcJ6mufbEawA3 BA8hPdtpESRJGy9oln8SN1vbqF5V5SuUeG8m4jfYaeXBzQhKnfxbm8p0q+eyUNIFuQdU yron+PUjvBL7xKQRAO8I4U+FzOmnkH+fxp3Wnmvy2P56eMq3PWHc87ypBkuR8/exmTpw Xrdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=i1U5d4MLxOVRGxYrIG94ORc3atBG6AwDIhORaNjU7E8=; b=uDjTEjgGx0jb3xL4o/o/iREuxqL8FfnJfEIp6rns7ynW4OF8OBUz0Cw00zQnqDD87m isbx1PXT7YASteeeCO9w29RS9XLyNdOnhq6r+eDXWpOTJl+6560VN3w2sOnCtaWZ2oDv xpY/XRTe5QVW6Wu6lxcKWVTDtjmKZf7AwWUnHNOartRV+NAZka5ycCDH8xzBcZ867eMn DPs+GEj2/1SimiI95y8iMx8KD2V50g6d4bTew1GyOV/TVbGCLKh2HBV0zzBVVFDUmrX9 iP6sF5kRNOcYLdDRVUIwwD7Z8ljbhSNG2M3a2TlMgFJWKkbRczbUdnu7lLiNLajd+8kR vwjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=0I7No2h2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x26-20020aa7941a000000b006463201bb55si16890420pfo.325.2023.05.15.02.45.49; Mon, 15 May 2023 02:46:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=0I7No2h2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240695AbjEOJiu (ORCPT + 99 others); Mon, 15 May 2023 05:38:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240564AbjEOJia (ORCPT ); Mon, 15 May 2023 05:38:30 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E84622D67 for ; Mon, 15 May 2023 02:35:58 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3f42c865534so66586105e9.2 for ; Mon, 15 May 2023 02:35:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1684143355; x=1686735355; 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=i1U5d4MLxOVRGxYrIG94ORc3atBG6AwDIhORaNjU7E8=; b=0I7No2h2vVPxZmELHElkO+DCMmo/7h06fCuFCt9VWkpo8/xiz0U4nvQr+oP9mcYZtf FX4pXi+9qn6fWaFgnuy9ee8GlUrAvc8uOIPfMUmMy7ACNpBV4nfERAdFfCntOoJ20RN9 zoQsNqlbnxRL3Gg+Kxjq+LQr44RsWRr1z+XR6KwIl47cS1kUp2xFQg0lQLdiHdPsWGRR eAA0GQQjkW/1ExWten9k75ga4J8zLaqeB3zjT9+EgCjfS4qgaI50Zsg4keJHUZPEA3V1 XL1tbgpzyYuCd+brFvK8S14n9y8WsypZnjmYhBHTwpgto1VIDsbN7OmbxQm3QCNaUEas mfAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684143355; x=1686735355; 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=i1U5d4MLxOVRGxYrIG94ORc3atBG6AwDIhORaNjU7E8=; b=fMaCS1rGdqtkZ3n5f99EEcPuCMrwFjsW0nbj2Cjacn8EFQpuEI86uLMLljkUfg5UuB yQG1yliYpZ4o4nVnhQdBK0GY1gvZPseqmBCdq98giy6EW+8QIYI0tDRsv1UkIOZm6SaI Cj1zqB8EmpbENHHHu07rJw/P0D3ER2rFuOclnrAnRlRhDYbOi9Icd9QHl9Mp8U5UqU1S v1EEyICGkXfHZ0k3e0VyOo1F0odt3v2LHCTL6h+hFauvSW+rcKx6805LTO0st1hqApW/ lmNH37DSIXI9L9jXH5XDFULRlW0Rk7MT4iUeicNa9gdWHtkGYFeJ/9gAuKQS69xYpujo guMQ== X-Gm-Message-State: AC+VfDzGl5NiBwer33vLyu40H2ZXe7EPfi1Sc4rHzsJbwrVAnLi1DMC2 gk9mkf1B8n/RZdHub0UptIwAdA== X-Received: by 2002:a1c:cc0e:0:b0:3ef:622c:26d3 with SMTP id h14-20020a1ccc0e000000b003ef622c26d3mr26682092wmb.35.1684143354910; Mon, 15 May 2023 02:35:54 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:55f:21e0:fd3b:9fed:e621:cc8f]) by smtp.gmail.com with ESMTPSA id z22-20020a7bc7d6000000b003f42813b315sm21035451wmk.32.2023.05.15.02.35.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 02:35:54 -0700 (PDT) From: Julien Stephan Cc: krzysztof.kozlowski@linaro.org, robh@kernel.org, chunkuang.hu@kernel.org, linux-mediatek@lists.infradead.org, Florian Sylvestre , Julien Stephan , Chunfeng Yun , Andy Hsieh , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno , linux-arm-kernel@lists.infradead.org (moderated list:ARM/Mediatek USB3 PHY DRIVER), linux-phy@lists.infradead.org (open list:GENERIC PHY FRAMEWORK), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v2 1/2] dt-bindings: phy: add mediatek mipi csi driver v 0.5 Date: Mon, 15 May 2023 11:05:50 +0200 Message-Id: <20230515090551.1251389-2-jstephan@baylibre.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230515090551.1251389-1-jstephan@baylibre.com> References: <20230515090551.1251389-1-jstephan@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Florian Sylvestre This adds the bindings, for the MIPI CD-PHY module v 0.5 embedded in some Mediatek soc, such as the mt8365 Signed-off-by: Florian Sylvestre Signed-off-by: Julien Stephan --- .../phy/mediatek,phy-mipi-csi-0-5.yaml | 62 +++++++++++++++++++ MAINTAINERS | 6 ++ 2 files changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/mediatek,phy-mipi-csi-0-5.yaml diff --git a/Documentation/devicetree/bindings/phy/mediatek,phy-mipi-csi-0-5.yaml b/Documentation/devicetree/bindings/phy/mediatek,phy-mipi-csi-0-5.yaml new file mode 100644 index 000000000000..5aa8c0b41cdf --- /dev/null +++ b/Documentation/devicetree/bindings/phy/mediatek,phy-mipi-csi-0-5.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: (GPL-2.0-Only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/mediatek,phy-mipi-csi-0-5.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 support CDPHY or DPHY only + +properties: + compatible: + enum: + - mediatek,phy-mipi-csi-0-5 + + reg: + maxItems: 1 + + '#phy-cells': + const: 0 + + mediatek,is_cdphy: + description: + Specify if the current phy support CDPHY configuration + type: boolean + +required: + - compatible + - reg + - '#phy-cells' + +additionalProperties: false + +examples: + - | + soc { + #address-cells = <2>; + #size-cells = <2>; + + mipi_rx_csi0: mipi_rx_csi0@11c10000 { + compatible = "mediatek,phy-mipi-csi-0-5"; + reg = <0 0x11C10000 0 0x2000>; + status = "okay"; + mediatek,is_cdphy; + #phy-cells = <0>; + }; + + mipi_rx_csi1: mipi-rx-csi1@11c12000 { + compatible = "mediatek,phy-mipi-csi-0-5"; + reg = <0 0x11C12000 0 0x2000>; + status = "disabled"; + #phy-cells = <0>; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index 6d54f3193075..44f0ff11e984 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13098,6 +13098,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,phy-mipi-csi-0-5.yaml + MEDIATEK MMC/SD/SDIO DRIVER M: Chaotian Jing S: Maintained -- 2.40.0