From patchwork Mon May 22 20:14:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13251048 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 6BA75C77B75 for ; Mon, 22 May 2023 20:15:22 +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=fYD1ZQxksoA3esqukQG1+VPgtQYIdYhHVVpGbI4WghQ=; b=12DTnduiKBN1UV /1Wyd2b+BYDkn2lDgXr+63mRzAdZxZ0o5amipnbjuIs1Kpj7ZYCei6W55sCtXGkhY7EQq/72Fd7sf Cos1theTAGlpohPYd41dIksBbGQcqTaSvrmvo8sxEGbscPFiPaCYvLbVwpwFUoGncdAhqSAm80m3K +Kl9PzZo7QH767WRUdV0rPqQLn5Dx1poZqJOZ/2Yf/9/Pw1LpzSAFK0qtuyk3PLAiNSqpjncDnCT/ TRc5YoCEsjfGbOSo4WfscsDvodWneKp3u/37+WmiuP1k3xTj/eYR0h/94IJ0lErTkmLTLA9oUvQly LVn/XoiBC6vN8tv8L95A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q1Bvm-007ryC-30; Mon, 22 May 2023 20:14:58 +0000 Received: from mail-ot1-x336.google.com ([2607:f8b0:4864:20::336]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q1BvU-007rqB-1i for linux-arm-kernel@lists.infradead.org; Mon, 22 May 2023 20:14:41 +0000 Received: by mail-ot1-x336.google.com with SMTP id 46e09a7af769-6aaf9180636so539194a34.1 for ; Mon, 22 May 2023 13:14:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684786479; x=1687378479; 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=sRVsIZ0p/4bqtXIep6Qg9LG2TZliQ0Lclemvbvz32TY=; b=nU0lO0vd0n55hfPYFSu01qUaw3IeCdpI4AzhHsgPEZ5EDjHvPyOaxg/cdikem6wexe AYcqRYb8Dp+o35QspEAdaf/A35a+oSnPwHdhR8jBJKLByUdjFZwJNJq5aNI7dN2Kucfs ayphY35NrVKovg2NbYw9P9AWnputz+ZCR67Lt8zvdwg3xw4hvBZhYJzPRM0CNu33S/0F s8YfjK54P3vco40cuVxazpsBTD4Asnj/qoYiIJRhKlPQAn96zNZi6yczLNw7b0h7iN/d /WybOQcdiFUcfo/RWaqKVtFMnyiD+l6+ROQaq2fmucz59mLjgUFxR4477KCr9f7jfx8z xwQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684786479; x=1687378479; 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=sRVsIZ0p/4bqtXIep6Qg9LG2TZliQ0Lclemvbvz32TY=; b=D1mRH2Ud6xbepGXlmYwxO6wvDvl7SBnFs7XN6JCst/7DbENWCET+I76WtHlKo7mFXQ ZNLygqM0EDtVBPtaioerIfSkaKQmat9FLg87pS0e9rtd2yUSH6Xk/mRWBkJPrs8XV8/N eOcuRCUl5HiNDVJ/DqlxU1m2WrXW3XG9rvfx9NelqWle1KwK9pRamNR3iay+s1lvIaTy Nt2hIdtT27nmE48ZREH+Gxgkk7z2fM8i+90zyBa+PONIrSmPhnI2lrhmRe+1ITDLjvcc gvWRbmgBO8Y25iQCfQWrqenR/RPuDISw5L80fwTuzlnZnRwZ6gE4zdb3vHcwUDxqL7aS To+Q== X-Gm-Message-State: AC+VfDx77qvWqqxzwSDHGKdNJclq1bVn1klqZU64is6Vb0CloUDErogf 22ccWBvWggLhilRLsoXf0UQ= X-Google-Smtp-Source: ACHHUZ7fcYRV5PtMwltMppwc7xHRdM9LNYSuRt7L6DuQk9Ve7kr+8aW0x6P+uelrtUHiR6spOlArbQ== X-Received: by 2002:a05:6830:6419:b0:6aa:ea92:6c40 with SMTP id cj25-20020a056830641900b006aaea926c40mr6594435otb.0.1684786479395; Mon, 22 May 2023 13:14:39 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:9a57:1c6:1c2e:4047]) by smtp.gmail.com with ESMTPSA id q11-20020a056830018b00b006aaff32ac36sm2692857ota.66.2023.05.22.13.14.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 May 2023 13:14:39 -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, bhelgaas@google.com, Fabio Estevam Subject: [PATCH v6 5/5] soc: imx: imx6sx-gpr: Introduce a GPR driver Date: Mon, 22 May 2023 17:14:04 -0300 Message-Id: <20230522201404.660242-5-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230522201404.660242-1-festevam@gmail.com> References: <20230522201404.660242-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_131440_570220_1CE6A262 X-CRM114-Status: GOOD ( 16.30 ) 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 v5: - 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");