From patchwork Fri May 19 11:29:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13248288 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 38B34C7EE26 for ; Fri, 19 May 2023 12:41:58 +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=KS7oodMoL5EzlTQxvFLh6uwt9es0XRt41O7aWcvzEpM=; b=mJNc4Djl10wPf4 /cZNTTmhog8CD7FLeuHq52y9tWcRKA3f7NYSH09ZRi0vo+wTRVOHob4Y7Nmlcr+pRI9KT2WYNdyH6 K/HWq1xVzpJuxpX7W/NPG/I40LvFhBzth9y3nfMQmqfKn/qj9fdZ+d0YVS05KBD5OhP4i8NGWr9gv OIpfcBE2JCg9hJJ15dOeAhAJXqJOOVb7Mqezn3nGJB90u/iBgMhUHc/VLmz+vxE7FXv/HY3qsa03L 2FW9MRRZPurUO38ZBQycVmcGEBiyhSsPQaMCOVmnBCnEtc6/qGpdv/K9G/qoRPKV2lcFI3XUnviuF l0TNevgE9zIcnDMt+7NA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pzzQL-00GI3y-1H; Fri, 19 May 2023 12:41:33 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pzzQK-00GI32-0i for linux-arm-kernel@bombadil.infradead.org; Fri, 19 May 2023 12:41:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=h5jOz9GqDO0KJYsyRHy4DW8Mcq383K9trAtwF3q01V8=; b=gVl9vlUIf6lMvq6B2NDvT7X2yM UysW0gy0s2nfq6TXCcUagLZwYo41mns1vkJxQibYeaJUIZF6gMNHawk8Dfr8/FvLoqpzuurFhcWCm 1V+nghJW/wWf/CLjzndLj2L+z1BaiDY4yVd7qMKOB7vyoE30bRCRrbjShfxzHcEqk37nzYZfED2Kh xLUU6kfw5QROjoOudmKb8+wJokfuXtdXGzVb+QJeJe/OBGc6pAd8vGa/kKU7BPyY2gF0eOKDkBfGr HGLEDSnjk0qjKwAA+gp8wXyFVEyJuNCn2x368TBg/Tzx2yJzlKqXO7+T1c12qsPr/KokjoeSS458y 8IFStmOQ==; Received: from mail-ot1-x335.google.com ([2607:f8b0:4864:20::335]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pzyIj-00FsVZ-0j for linux-arm-kernel@lists.infradead.org; Fri, 19 May 2023 11:29:39 +0000 Received: by mail-ot1-x335.google.com with SMTP id 46e09a7af769-6ab1b3aabc9so472558a34.1 for ; Fri, 19 May 2023 04:29:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684495774; x=1687087774; 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=h5jOz9GqDO0KJYsyRHy4DW8Mcq383K9trAtwF3q01V8=; b=glFVwK6PywemTdJqDbe6Kz9RGom4br6AysaRmaenZoJjPJ+167CSyTcm3g287yQyqz V06YwSkL9uq++k1UuO9QFaXTDp/Z2VWZhdE3YKtLVZXyqo7veNF5lfaqHm2x47i9DvCP Et0bIURnx6i9HqwhMori7LWf1hLQBY2ZLfxP5QsGznybSnEUV3wU2L6uIeq0G0PkbSbe S3Um3e3mpdfj+bHqSF3tNnnx43N1Zfca+HRqpp0JuHxrcgjPoZFpZwxArAQw1aldhk5O seZd86c/UCKfmQdNMkiul69Tqj/H87KYYI0wtZ7Dgmacb7/3Dq5f2mbVy/Eqg18s+GLd W0Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684495774; x=1687087774; 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=h5jOz9GqDO0KJYsyRHy4DW8Mcq383K9trAtwF3q01V8=; b=eS47wW6GZQTKxTQEXf584ip52WgvCSR+hjmZmMElpVu8hUFvn9zmUk8WHMIZqe0l+S U/73t7Z6oyRi3n7lug8qcQUYvbmLPKcq2GebD1b31OpNacwQzadCYUG5P6nU/Rn4Ipox lWSQsT+qBBlLJvT/AWtuLnMXEC1TX+TRvwfSPIxsRAEA7AAFGlZGLz58ybMTq5l6EiBe zbVjqUy0JZF6hMxghbJCaGzk2L5zbw/ORR6Y1lJ5bg6P0EnECvxJ4agkoyAamK7iCx74 avMMccKkcxHSoEkW+aWnfWrKn3YHftGEA5HQraM4mS6A0QreWxHE/HMNaYs5EhdZ4W7v fkvA== X-Gm-Message-State: AC+VfDwH6Hy0LuuyCuiGlv2y2kRVmtC0qnvtBsOZKco1zQ9GNEysOsse Y5iDQ6cwja7OmieYIranufM= X-Google-Smtp-Source: ACHHUZ74AD+Yed5cmsPbLg6/tlT/KpxTCGSu0UwTl1RgCBI48ApO1/TB3TX3CwXH6dqe7P6/Krm56A== X-Received: by 2002:aca:a808:0:b0:394:66dd:cb47 with SMTP id r8-20020acaa808000000b0039466ddcb47mr816882oie.0.1684495774317; Fri, 19 May 2023 04:29:34 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:3a54:c40b:8f0c:b968]) by smtp.gmail.com with ESMTPSA id u1-20020a4ae681000000b00549f4d87eecsm1327679oot.30.2023.05.19.04.29.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 04:29:33 -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 v3 4/4] soc: imx: imx6sx-gpr: Introduce a GPR driver Date: Fri, 19 May 2023 08:29:14 -0300 Message-Id: <20230519112914.309669-4-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230519112914.309669-1-festevam@gmail.com> References: <20230519112914.309669-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_122937_339495_5AA50634 X-CRM114-Status: GOOD ( 16.54 ) 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 v2: - 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");