From patchwork Mon Apr 3 07:19:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Stephan X-Patchwork-Id: 13197735 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9267CC76196 for ; Mon, 3 Apr 2023 07:20:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=BFKn0cs7bZUaPrVLf2VBawvChymPMpcgQq4z5FT0efs=; b=OYrnQtEd5YlEtg 2ZZ6FRncIbr+HpBimBFs9y5yja60oIsH0ROCgefuBw1evc+Q5dB2kvN0wGlDX53+FnUBC0l9/OQCg Vq29fy2my/bWUKDgxvv9TsXYU0UMdOIa9WzJFJDZvdhhiAa0rIhosWwcWoecZW4ls9/LNNNhUdyM6 XIUNhIxdeohgw+kQvSr+h4AfPhjCQcqinqwG/jWPHg0lPBXaTiaq3ZrK483Zc8cZCyXELUHtiRab3 jdNL/hdjC/Rv+aFJ/d90nE4iD2E0aEmqitxBbGDSvqZCn0HFZ5uq4Deu1BQvyWpYbFc44imvr1fHL jqbhjrEBXi78qU7YY2ew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pjETx-00EMJx-1n; Mon, 03 Apr 2023 07:20:01 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pjETt-00EMHf-0g for linux-arm-kernel@lists.infradead.org; Mon, 03 Apr 2023 07:20:00 +0000 Received: by mail-wm1-x32a.google.com with SMTP id o32so16450688wms.1 for ; Mon, 03 Apr 2023 00:19:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1680506394; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=7Irg/7rQOFrCsVoB1iKX7cg5MWHzQ1y6ZxDuwYrAWoc=; b=33vMDoof/ZVt81quDw5pnXR13jpzPdm9umpWVlgwR2kX1snECZjf8SVg3318ZHkynS oZj5iitilotfk9jFK+Kk4IsQsAy6spce0tyzYBeypUr2WnGS2fH+yUzho1gv5Cg4qzNv xy/imFHPDQRbcSJaIP1vLSw4HnJO7hzc4c+0OFXzp6LdX/ZHh9PQvHznBzdKQrnM/pWJ ICMZLc7DNc9lN9DyeEeOqFL2JnL3U5a/CELckzzyNjAF9EhD9rKVG41hlVxmJ1S7vfCj mqlrCiBKi/1U2Itd5QCHzg+1CG9bjrOOBTAK3/eCbeISg2jnCYPytIleP1xTzFZPZmZ+ ZVmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680506394; 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=7Irg/7rQOFrCsVoB1iKX7cg5MWHzQ1y6ZxDuwYrAWoc=; b=hKE5KYMUJbpoRqGo3DSR9l7JY5OPUwXY8EtYDbgGreOJpDmGxBfEGFAteKRzrjp7rj VPyMU2KjDvLAi88mXFy2+VwbVoUXHHULfIxy1v5hFcFYyWFpmsTjLFjcEU4iA8/m47BJ TSUotg22uds4s0BUNERxLbJqVlfzuhdQLEk9E2QIZuTOjk2N1JXjR5j7fMw2mS6iHR8x dip4OLoRJTAJcIdfhgWlt5b9Cs6lIWSq8ISxqiDmhGRDdp8I3UZ6KQ6FzQQWxhru6JUs m9OzthNEZj9qcMRRjnL1NSnM50ph8P9SN2eGoHwu7jjdlQsS3ZTezIHICkYbdFhTUi0f YDNQ== X-Gm-Message-State: AO0yUKUoZaLOVjHgudS2dhgVQjQmzRAT4D3XHsHzcEiDkjO95UFGOOz+ SHCxl/7xXIFM5lEu5c1J9Ax83g== X-Google-Smtp-Source: AK7set9uKvwjGwiUFvXKdrCeAqnDtu//P693C2rybBYt42PMluDg39NjT9MnI3jWTkA0+bq3jSQ2fA== X-Received: by 2002:a7b:c4cb:0:b0:3ed:253c:621b with SMTP id g11-20020a7bc4cb000000b003ed253c621bmr28390520wmk.21.1680506394326; Mon, 03 Apr 2023 00:19:54 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:55f:21e0:9e19:4376:dea6:dbfa]) by smtp.gmail.com with ESMTPSA id z3-20020a05600c0a0300b003ee6aa4e6a9sm19060418wmp.5.2023.04.03.00.19.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Apr 2023 00:19:53 -0700 (PDT) From: Julien Stephan To: Cc: Julien Stephan , Matthias Brugger , AngeloGioacchino Del Regno , linux-kernel@vger.kernel.org (open list:ARM/Mediatek SoC support), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Mediatek SoC support), linux-mediatek@lists.infradead.org (moderated list:ARM/Mediatek SoC support) Subject: [PATCH 0/2] phy: mtk-mipi-csi: add driver for CSI phy Date: Mon, 3 Apr 2023 09:19:27 +0200 Message-Id: <20230403071929.360911-1-jstephan@baylibre.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230403_001957_459050_55750C7C X-CRM114-Status: UNSURE ( 9.53 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Adding a new driver for the MIPI CSI CD-PHY for mediatek mt8365 soc This driver was adapted from https://patchwork.kernel.org/project/linux-mediatek/cover/20200708104023.3225-1-louis.kuo@mediatek.com/ Florian Sylvestre (1): dt-bindings: phy: add mtk-mipi-csi driver Phi-bang Nguyen (1): phy: mtk-mipi-csi: add driver for CSI phy .../bindings/phy/mediatek,csi-phy.yaml | 46 ++ MAINTAINERS | 7 + drivers/phy/mediatek/Kconfig | 8 + drivers/phy/mediatek/Makefile | 2 + .../phy/mediatek/phy-mtk-mipi-csi-rx-reg.h | 435 ++++++++++++++++++ drivers/phy/mediatek/phy-mtk-mipi-csi.c | 392 ++++++++++++++++ 6 files changed, 890 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/mediatek,csi-phy.yaml create mode 100644 drivers/phy/mediatek/phy-mtk-mipi-csi-rx-reg.h create mode 100644 drivers/phy/mediatek/phy-mtk-mipi-csi.c