From patchwork Mon May 22 12:51:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13250515 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 E2316C7EE26 for ; Mon, 22 May 2023 12:52:36 +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:References:In-Reply-To: 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: List-Owner; bh=YimuLQJKICATR1H849iogYlBBhT+l4pex5uO67xPMBM=; b=BsUZJkTfkUDHNJ GhbkF7jEZZAC0nSAPTjjrfjucUjjRiUfEa4qi9LCMl7HLO1raR0XO1HQcSCRn394Yv0Tn8x19PYpw JJRLSRnUYNuF5UiWezeri7qaQHRFrgJMu+kM71BO+iu9uAhc5jhjLnuF1/Zz9D9nT39cklzwXTUGF T3/IXTr9x9V2f84atm0L2MTh4W0CSpNB4AsoDtsiA9DZmohcjf9itT7gmA7rXSLTFZtYRWcSffyp2 2l5x+OxT3oQidn4pA7d52nyxLq5ghgJf5ZAXTAanmLDasFRwbRFq2vfd85qacUEYzH+8Zrx9PlNs9 wJ7Gkga/OX/uYViK/SeA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q151H-006YfD-1b; Mon, 22 May 2023 12:52:11 +0000 Received: from mail-oo1-xc2d.google.com ([2607:f8b0:4864:20::c2d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q1515-006YaV-1J for linux-arm-kernel@lists.infradead.org; Mon, 22 May 2023 12:52:00 +0000 Received: by mail-oo1-xc2d.google.com with SMTP id 006d021491bc7-555486c9196so184769eaf.0 for ; Mon, 22 May 2023 05:51:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684759914; x=1687351914; 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=4P84udYyunLJpSMM/Fy+TsLscHs9AVq2BXmY6gDUQhU=; b=TNMKsd1aQIL2WeLzwtg5arme2EtDV4KipIcg8twoR81cMYwj/AeuGO0SGCwF3vrEJZ sRGNGPIjuueTFFab4D6lA10n9bs1fH+GvzFKYQG4ufoub/IP3SpzTm0YCj4/ndmi087x ZEIfFfAHyNHtS/x8AMlalCsL1a6+Nx0tzsalTFBnwQmG0V/0LzALOkWFPO3hPBU3THKH UubOiTOdwDLpza8xNsAZ+so7XyFoBqj2eRZ4hHmMN2zQadORZTcLBz98b7VssB/ldQA0 Jrwa3AY2pQNZ1yD9C3K4ZAjwTOCll3mB1vKB8Su9eXlaYYx6X7/Y53oSEwoTUVqfUG1g RpcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684759914; x=1687351914; 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=4P84udYyunLJpSMM/Fy+TsLscHs9AVq2BXmY6gDUQhU=; b=BtN9ueVVHIL2+GkDTSEjPViwt0vASg8dCW0xqwnyMVw4R2mvhvoddhbYy3o+60IdXr pGfaM9Li9iOFY+rWU7Hn14PgaI/q0AGG0SrNTy2sqbyaFHTWFsDDwI0AFhmzDnlRYAjS TJzNseEIiYzzNYLfOW9HFo4q8DU5lH2+LtG7p8/KESiOa1D/DkFoabCmYQn8wnRP8xi6 ESMJCry5hw4hgfBkFHGlUqoK6OzmH+n86XdHP7irpoLVxLYtvoxMe1JkL4p+6rEYHjGH FCl/nH2B2DCN1w6xQL6H2hwNfv8Vq7vXSCn3AUQvBbJ54mTQ9BbugDoYBBMCe3eSIXBR h8EA== X-Gm-Message-State: AC+VfDx8Qvnl3n7SxnizQyYnFFGQQJ7ws8np5RyuF+xIBU20f+mzpGf8 z2D7q/Cd+pJq9+2k6x0it0w= X-Google-Smtp-Source: ACHHUZ7bR/1ZHHF+LzMo3YMtaBqGLqp+aWguHo+x5/nouVIuik5oa4EMnEzhuyPLIoxUk1S+0133Ew== X-Received: by 2002:aca:3287:0:b0:387:1922:2e74 with SMTP id y129-20020aca3287000000b0038719222e74mr4911006oiy.2.1684759914291; Mon, 22 May 2023 05:51:54 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:b71d:e403:4337:204f]) by smtp.gmail.com with ESMTPSA id r126-20020acada84000000b003943e08ee03sm2676408oig.16.2023.05.22.05.51.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 May 2023 05:51:53 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: marex@denx.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, conor+dt@kernel.org, Fabio Estevam Subject: [PATCH v5 4/4] soc: imx: imx6sx-gpr: Introduce a GPR driver Date: Mon, 22 May 2023 09:51:29 -0300 Message-Id: <20230522125129.526604-4-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230522125129.526604-1-festevam@gmail.com> References: <20230522125129.526604-1-festevam@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230522_055159_450225_1BEB4864 X-CRM114-Status: GOOD ( 16.29 ) 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 From: Fabio Estevam The motivation for this imx6sx-gpr driver is to allow describing the LVDS LDB bridge as a GPR subnode. Signed-off-by: Fabio Estevam --- Changes since v4: - None. drivers/soc/imx/Makefile | 1 + drivers/soc/imx/imx6sx-gpr.c | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 drivers/soc/imx/imx6sx-gpr.c diff --git a/drivers/soc/imx/Makefile b/drivers/soc/imx/Makefile index a28c44a1f16a..9840d4c41015 100644 --- a/drivers/soc/imx/Makefile +++ b/drivers/soc/imx/Makefile @@ -4,6 +4,7 @@ obj-$(CONFIG_ARCH_MXC) += soc-imx.o endif obj-$(CONFIG_HAVE_IMX_GPC) += gpc.o obj-$(CONFIG_IMX_GPCV2_PM_DOMAINS) += gpcv2.o +obj-$(CONFIG_SOC_IMX6SX) += imx6sx-gpr.o obj-$(CONFIG_SOC_IMX8M) += soc-imx8m.o obj-$(CONFIG_IMX8M_BLK_CTRL) += imx8m-blk-ctrl.o obj-$(CONFIG_IMX8M_BLK_CTRL) += imx8mp-blk-ctrl.o diff --git a/drivers/soc/imx/imx6sx-gpr.c b/drivers/soc/imx/imx6sx-gpr.c new file mode 100644 index 000000000000..7684acbe43ff --- /dev/null +++ b/drivers/soc/imx/imx6sx-gpr.c @@ -0,0 +1,29 @@ +// SPDX-License-Identifier: GPL-2.0 + +#include +#include +#include + +static int imx6sx_gpr_probe(struct platform_device *pdev) +{ + return devm_of_platform_populate(&pdev->dev); +} + +static const struct of_device_id imx6sx_gpr_ids[] = { + { .compatible = "fsl,imx6sx-iomuxc-gpr" }, + { } +}; +MODULE_DEVICE_TABLE(of, imx6sx_gpr_ids); + +static struct platform_driver imx6sx_gpr_driver = { + .driver = { + .name = "imx6sx_gpr", + .of_match_table = imx6sx_gpr_ids, + }, + .probe = imx6sx_gpr_probe, +}; +module_platform_driver(imx6sx_gpr_driver); + +MODULE_AUTHOR("Fabio Estevam "); +MODULE_DESCRIPTION("NXP i.MX6SX GPR driver"); +MODULE_LICENSE("GPL");