From: Louis Kuo <louis.kuo@mediatek.com>
To: <hans.verkuil@cisco.com>,
<laurent.pinchart+renesas@ideasonboard.com>, <tfiga@chromium.org>,
<keiichiw@chromium.org>, <matthias.bgg@gmail.com>,
<mchehab@kernel.org>
Cc: devicetree@vger.kernel.org, Sean.Cheng@mediatek.com,
srv_heupstream@mediatek.com, Jerry-ch.Chen@mediatek.com,
jungo.lin@mediatek.com, sj.huang@mediatek.com,
yuzhao@chromium.org, linux-mediatek@lists.infradead.org,
zwisler@chromium.org, louis.kuo@mediatek.com,
christie.yu@mediatek.com, frederic.chen@mediatek.com,
linux-arm-kernel@lists.infradead.org,
linux-media@vger.kernel.org
Subject: [RFC PATCH V7 0/3] media: support Mediatek sensor interface driver
Date: Wed, 8 Jul 2020 18:40:20 +0800 [thread overview]
Message-ID: <20200708104023.3225-1-louis.kuo@mediatek.com> (raw)
Hello,
This is the RFC patch adding Sensor Inferface(seninf) driver on Mediatek mt8183 SoC, which will be used
in camera features on CrOS application.
It belongs to the first Mediatek's camera driver series based on V4L2 and media controller framework.
I posted the main part of the seninf driver as RFC to discuss first and would like some review comments
on the overall structure of the driver.
The driver is implemented with V4L2 framework.
1. Register as a V4L2 sub-device.
2. Only one entity with sink pads linked to camera sensors for choosing desired camera sensor by setup link
and with source pads linked to cam-io for routing different types of decoded packet datas to PASS1 driver
to generate sensor image frame and meta-data.
The overall file structure of the seninf driver is as following:
* mtk_seninf.c: Implement software and HW control flow of seninf driver.
* mtk_seninf_dphy.c: Implement mipi-rx phy-device of seninf driver.
* mtk_seninf_reg.h: Define HW register R/W macros and HW register names.
* mtk_seninf_rx_reg.h: Define HW RX register R/W macros and HW register names.
[ V7: Use phy device to control mipi dphy rx, Shrink register definition]
media: platform: mtk-isp: Add Mediatek sensor interface driver
dt-bindings: mt8183: Add sensor interface dt-bindings
dts: arm64: mt8183: Add sensor interface nodes
.../bindings/media/mediatek-seninf.yaml | 223 +++
arch/arm64/boot/dts/mediatek/mt8183.dtsi | 26 +
drivers/media/platform/Makefile | 1 +
drivers/media/platform/mtk-isp/Kconfig | 18 +
drivers/media/platform/mtk-isp/Makefile | 3 +
.../media/platform/mtk-isp/seninf/Makefile | 7 +
.../platform/mtk-isp/seninf/mtk_seninf.c | 974 +++++++++++
.../platform/mtk-isp/seninf/mtk_seninf_dphy.c | 353 ++++
.../platform/mtk-isp/seninf/mtk_seninf_reg.h | 1491 +++++++++++++++++
.../mtk-isp/seninf/mtk_seninf_rx_reg.h | 515 ++++++
10 files changed, 3611 insertions(+)
create mode 100644 Documentation/devicetree/bindings/media/mediatek-seninf.yaml
create mode 100644 drivers/media/platform/mtk-isp/Kconfig
create mode 100644 drivers/media/platform/mtk-isp/Makefile
create mode 100644 drivers/media/platform/mtk-isp/seninf/Makefile
create mode 100644 drivers/media/platform/mtk-isp/seninf/mtk_seninf.c
create mode 100644 drivers/media/platform/mtk-isp/seninf/mtk_seninf_dphy.c
create mode 100644 drivers/media/platform/mtk-isp/seninf/mtk_seninf_reg.h
create mode 100644 drivers/media/platform/mtk-isp/seninf/mtk_seninf_rx_reg.h
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
next reply other threads:[~2020-07-08 10:40 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-08 10:40 Louis Kuo [this message]
2020-07-08 10:40 ` [RFC PATCH V7 1/3] media: platform: mtk-isp: Add Mediatek sensor interface driver Louis Kuo
2020-07-09 13:12 ` Chun-Kuang Hu
[not found] ` <b7b77606aa3e476aa68b2fa116329f84@mtkmbs02n2.mediatek.inc>
2020-07-17 14:21 ` Chun-Kuang Hu
2020-07-17 14:33 ` Tomasz Figa
2020-07-17 15:47 ` Chun-Kuang Hu
2020-07-17 18:19 ` Tomasz Figa
2020-07-12 23:14 ` Chun-Kuang Hu
2020-07-21 16:39 ` Tomasz Figa
2020-07-08 10:40 ` [RFC PATCH V7 2/3] dt-bindings: mt8183: Add sensor interface dt-bindings Louis Kuo
2020-07-09 17:01 ` Rob Herring
2020-07-09 17:03 ` Rob Herring
2020-07-08 10:40 ` [RFC PATCH V7 3/3] dts: arm64: mt8183: Add sensor interface nodes Louis Kuo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200708104023.3225-1-louis.kuo@mediatek.com \
--to=louis.kuo@mediatek.com \
--cc=Jerry-ch.Chen@mediatek.com \
--cc=Sean.Cheng@mediatek.com \
--cc=christie.yu@mediatek.com \
--cc=devicetree@vger.kernel.org \
--cc=frederic.chen@mediatek.com \
--cc=hans.verkuil@cisco.com \
--cc=jungo.lin@mediatek.com \
--cc=keiichiw@chromium.org \
--cc=laurent.pinchart+renesas@ideasonboard.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=mchehab@kernel.org \
--cc=sj.huang@mediatek.com \
--cc=srv_heupstream@mediatek.com \
--cc=tfiga@chromium.org \
--cc=yuzhao@chromium.org \
--cc=zwisler@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).