From mboxrd@z Thu Jan 1 00:00:00 1970 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 C6446C3DA59 for ; Mon, 22 Jul 2024 20:27:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Subject:Message-ID:MIME-Version:To:Cc:Date:References:Content-Type: In-Reply-To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Ldua7G2uD8WaGD7/Vwk5qaluEyjbS3PRclxE12LkFFU=; b=R9J+c2L1n0iMIwjC4vOzglpMhW yz8zOIT1GJCYbqegCMKmrK4n/nuBK0TPHS7fXSau6e/QVeUU5yLCvrBFUSLatIpEqC7AjOK+ejP/c 6CDFrNFUWN6QiodfN4mZ3a8RpB793C2NAhJ2na6pqjltmeL6UaacF+ZB3WVC7tEhDH6+nAGd7ECge LefOfk5i/5ZNdtygJpSxYFMIjNJIs6HzOdFGuBU+TBPtmvIfSXX2d2wTqiq4tw0tT/kAaSircQO6S zvnGDLSJwmp0AcyZM+yOpjki8YLmysWMCm+5NQ/B9mpkeAkJfayzJ1ZS9WH4EH/LI0QFDseV6mXYn BkiIBSnQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sVzcn-0000000AUJu-41qE; Mon, 22 Jul 2024 20:27:13 +0000 Received: from madrid.collaboradmins.com ([2a00:1098:ed:100::25]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sVzcP-0000000AUEm-1y5r; Mon, 22 Jul 2024 20:26:51 +0000 Received: from harlem.collaboradmins.com (harlem.collaboradmins.com [IPv6:2a01:4f8:1c0c:5936::1]) by madrid.collaboradmins.com (Postfix) with ESMTP id A2DE53780692; Mon, 22 Jul 2024 20:26:45 +0000 (UTC) From: "Shreeya Patel" In-Reply-To: <20240722193946.1246372-1-hoff.benjamin.k@gmail.com> Content-Type: text/plain; charset="utf-8" X-Forward: 127.0.0.1 References: <20240719124032.26852-1-shreeya.patel@collabora.com> <20240722193946.1246372-1-hoff.benjamin.k@gmail.com> Date: Mon, 22 Jul 2024 21:26:45 +0100 Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, heiko@sntech.de, hverkuil-cisco@xs4all.nl, hverkuil@xs4all.nl, jose.abreu@synopsys.com, kernel@collabora.com, krzk+dt@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, mchehab@kernel.org, mturquette@baylibre.com, nelson.costa@synopsys.com, nicolas.dufresne@collabora.com, p.zabel@pengutronix.de, robh@kernel.org, sboyd@kernel.org, shawn.wen@rock-chips.com To: hoff.benjamin.k@gmail.com MIME-Version: 1.0 Message-ID: <354380-669ec080-1-27ae20c0@20216750> Subject: =?utf-8?q?Re=3A?= [PATCH v4 4/4] =?utf-8?q?media=3A?= =?utf-8?q?_platform=3A?==?utf-8?q?_synopsys=3A?= Add support for hdmi input driver User-Agent: SOGoMail 5.10.0 Content-Transfer-Encoding: quoted-printable X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240722_132649_662233_D5C243B9 X-CRM114-Status: GOOD ( 16.86 ) 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 On Tuesday, July 23, 2024 01:09 IST, hoff.benjamin.k@gmail.com wrote: Hi Benjamin, > > Add initial support for the Synopsys DesignWare HDMI RX > > Controller Driver used by Rockchip RK3588. The driver > > supports: > > - HDMI 1.4b and 2.0 modes (HDMI 4k@60Hz) > > - RGB888, YUV422, YUV444 and YCC420 pixel formats > > - CEC > > - EDID configuration > > > > The hardware also has Audio and HDCP capabilities, but these are > > not yet supported by the driver. > > > > Reviewed-by: Dmitry Osipenko > > Tested-by: Dmitry Osipenko > > Co-developed-by: Dingxian Wen > > Signed-off-by: Dingxian Wen > > Signed-off-by: Shreeya Patel > > --- > > ... > > + > > +static const struct of=5Fdevice=5Fid hdmirx=5Fid[] =3D { > > + { .compatible =3D "rockchip,rk3588-hdmirx-ctrler" }, > > + { }, > > +}; > > +MODULE=5FDEVICE=5FTABLE(of, hdmirx=5Fid); > > > > > According to the platform=5Fdriver struct, they like the `remove=5Fne= w` over remove.=20 > When I was compiling for Armbian, I was getting a type mismatch that = prevented compililng >=20 > See here: https://github.com/torvalds/linux/blob/933069701c1b507825b5= 14317d4edd5d3fd9d417/include/linux/platform=5Fdevice.h#L236 >=20 This patch series is based on linux-next and there seems to be some rec= ent changes related to .remove and .remove=5Fnew. New drivers are supposed to use .= remove() See the reason here :- https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tre= e/include/linux/platform=5Fdevice.h?h=3Dnext-20240722#n239 If you apply the patches on top of linux-next then there shouldn't be a= ny compilation error. > > > > + > > +static struct platform=5Fdriver hdmirx=5Fdriver =3D { > > + .probe =3D hdmirx=5Fprobe, > > + .remove =3D hdmirx=5Fremove, > > + .driver =3D { > > + .name =3D "snps=5Fhdmirx", > > + .of=5Fmatch=5Ftable =3D hdmirx=5Fid, > > + .pm =3D &snps=5Fhdmirx=5Fpm=5Fops, > > + } > > +}; > > +module=5Fplatform=5Fdriver(hdmirx=5Fdriver); > > + > > +MODULE=5FDESCRIPTION("Rockchip HDMI Receiver Driver"); > > +MODULE=5FAUTHOR("Dingxian Wen "); > > +MODULE=5FAUTHOR("Shreeya Patel "); > > +MODULE=5FLICENSE("GPL");