From patchwork Fri May 19 12:52:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13248295 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 2B7F9C77B7A for ; Fri, 19 May 2023 12:53:48 +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=1C1eiaIXPybvt87k6bJS7bmVK3kXXKsO57k+A5mfjMY=; b=atTcnsmjdx3kTc LqGZRp2R8wDMsyk2w1yhphH8BvcAZhLHEh1934sJMOA1YkCVjdX6J+gkHCSsxY4yNOQ8aBpvl9yij LYJEtTJpcj/GwnaSukKa4hJTiL4r6mOrEY3MPFTzbmFPjWodsCK8KL+06ire1z/Q51rueUcomK8Cx HmQz2SNSDdh61mM38jNYXjhftgUnKlk7VHPWts2PY6HODJtx4NT7vzr+BjkTQJER0qLlzNAu8hqjW CjeLSVtSD2XJPJRNgvvqKyi6xsiQRbH1TxzfA09neODicfilNBKB27ORFBb5yHztW5+xt7A+4SKwM 0Qpc3o4Hi3PQ/n+Edh/w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pzzbn-00GJfM-1G; Fri, 19 May 2023 12:53:23 +0000 Received: from mail-oa1-x34.google.com ([2001:4860:4864:20::34]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pzzbc-00GJaw-19 for linux-arm-kernel@lists.infradead.org; Fri, 19 May 2023 12:53:13 +0000 Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-19a5fab868bso101436fac.1 for ; Fri, 19 May 2023 05:53:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684500789; x=1687092789; 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=Il5DRlRPuMlIjXwPJt48hBwo1AcGYTlYi9q3sQQHXVQ=; b=PJkRfq/iJOeeKNHopGkcoD+8HR88hsfFRXxUQssKM6ZMvF3LnaZ4/RKXCMUfdEw0bp 6F0mZSSRSO9DL4gm24Z1UW+bq2bNHNtttmpyYs/ljRJ09ApUZQD6mPuqFSWae/wWH4DH AXZ0pYk4n2YWiax1u6nkTSwChSJ0WU00h+nWxU2PNnNl/zYns1DI5ujtc4NI4b/G/KYm D9ElcZJqNgH/62yUw+nIFNRlEZvA0tx5CoIb38rpRwo/tOy6DhR71fEO+kNwKuhgzNCp KeAmqbnkCvCltdixFJ+sN1PROwenJzUuVvs0MrF49u7n28WyiGPY99aagT2l7TcaoxUa tSsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684500789; x=1687092789; 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=Il5DRlRPuMlIjXwPJt48hBwo1AcGYTlYi9q3sQQHXVQ=; b=OLsjXVMZgT8K4bWSPcHcpRIkoIMesIoG56jW2/YmhSXCOVmrTcjuKgPepHoBnew0Zq JbHnjS1eDYI3zn4okQcGialQq2XQ2rfn9XerfkUXYTVvOFZDRsjE50liehAGj73zy+5L K3h+TNvJr7tdh/EU3j+y4E3W8Tj2+/mmQbZtd9Ncuq10x8qCEjm9cLjivn9mOZWq/HxE yZZ9AiLM1kkAHuL6+kfro8KLsBIovgZsxYbzniU0prR44p/QVuXsjHREcLQbuSQBW+4Y olLXq+i6A5joBIIv6ogFZIgyFf1eiORdQx7DPQZqPcD4jg/iNEAhLQuSb2SojXSb0Ptn njpg== X-Gm-Message-State: AC+VfDxQ7+zeaHx/a094dh4xgHjFGHsKgFudDxaRCCs19FwirWLtLtDs oRjCX63DTKxblOe8EBNm5nVWq5MaXQc= X-Google-Smtp-Source: ACHHUZ7g3noS+CdLZmJEodM1r/EUd/+A6w+iZTuFbYaajWUaThENkpJfFg6hSLJy7qX7glP3oFFSuQ== X-Received: by 2002:a05:6870:e0ce:b0:18b:15df:a3a1 with SMTP id a14-20020a056870e0ce00b0018b15dfa3a1mr1051102oab.0.1684500789032; Fri, 19 May 2023 05:53:09 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:3a54:c40b:8f0c:b968]) by smtp.gmail.com with ESMTPSA id i19-20020a4ad093000000b0055278f297f8sm1375321oor.33.2023.05.19.05.53.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 05:53:08 -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 v4 4/4] soc: imx: imx6sx-gpr: Introduce a GPR driver Date: Fri, 19 May 2023 09:52:36 -0300 Message-Id: <20230519125236.352050-4-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230519125236.352050-1-festevam@gmail.com> References: <20230519125236.352050-1-festevam@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230519_055312_402431_FA1CF073 X-CRM114-Status: GOOD ( 16.48 ) 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 v3: - 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");