From patchwork Mon May 22 20:14:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13251044 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 C3258C77B75 for ; Mon, 22 May 2023 20:14:56 +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: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:In-Reply-To:References: List-Owner; bh=I6a0Vw9Q676ZsjJnHjjxzrqADkmpcL6egrnh8wwzQbg=; b=K9FZHc8gkzF5CL qszZUr/6n6sPtTQkCqVDPiC/Kch2RW1HaFS6K++h1Y5NO7oZh1b21qqAjIAgT7HuVDCSvvhm7Y8+1 YueAwNLI7pyGV6uRparVIxz4RsqyrwABZiz4Ipm0Ns7fzlZIpGC+5YrP9O2YnewdPcuQcGnbusR8L McV1/WOcb76v8kLRAUY8MLAKMxw4j3aUkSReC4N9YgfMBCrAwhIneUOhKXVi8RspZbQZENO8hU3Jr X0IQH07RVjrexYPw27D9n3z6FvWR0moQHGxXFYXjCICkyZhcGxnCGvL8OUdxDGnw5HU/XUPpcmr4x sluceETnxeVtxtWJ5N5g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q1BvN-007roD-0p; Mon, 22 May 2023 20:14:33 +0000 Received: from mail-ot1-x32a.google.com ([2607:f8b0:4864:20::32a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q1BvL-007rmB-0g for linux-arm-kernel@lists.infradead.org; Mon, 22 May 2023 20:14:32 +0000 Received: by mail-ot1-x32a.google.com with SMTP id 46e09a7af769-6ab1b3aabc9so437638a34.1 for ; Mon, 22 May 2023 13:14:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684786463; x=1687378463; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=sybPf+/8ke3E2YAuDVQ4i1Dw/8g4ElYsw86Q8QXTisc=; b=fdtZdqZ5PTr9Gd/g+3nfRg4Wl8JAViU0Zm2ekmkQJWF2MZQTySal6v3tVwLXkcMdsD H9WjIBj9b1PWWTiiTJJASlq4rdavesI24MT1EZSQXrr0Lc0UkV8ZRRNC5feAo7lOOxWM Pnpt8dR4iP3LEyFJgrE9ME/i8mIVvNybg8/vYmw4Aoq2ZVuNYkL8JQkuUrvRXAarOOqL Ipd4kVcZ/bRBD50fZl1qpx+uXsZcXprru8kDZ4qNBq6STcSndDsgQ2cLnccd2//hu4ZE jANyg+1W+Dk+EgvCLNLd8EqW5D3xbC+TLmWAFjitOS9cMYfc8VAV/Lung8+ozEpX/2AL tD/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684786463; x=1687378463; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sybPf+/8ke3E2YAuDVQ4i1Dw/8g4ElYsw86Q8QXTisc=; b=d2r0Nq24f4PwkSwvDBAqh9SCZJEWPelMtfI7BDW+YvmKRN4EnwB+N/jojM4O34SZeO PVmSjPV4BDmSO+qNUboNWD5doBD6FO7RLRmj+e86kVvDubbguRRYGHSeusBmFodmy8IU LEnsv3UcdPdsmAovtapXbWki+ENsIwNFFgb5aVDXGi+ONcKF6Y4fCVYsDkwRIQ/ncvBM vdQm7t1v1DLSj8BXPn5jWL3aWvswmNzdpvth70OBI0/NLk842qzVnHVwa8SepaIzxo1N HUQP0l/kXp2Off/6eIjRcepI+JOw4IDw+VIsjH3WQ5v1Rvy8LEShHKzfQtUF4R6QQ0CA og3Q== X-Gm-Message-State: AC+VfDxxxg80MFDrhZjXM2v825zNZ3N5AzlgCEHVo8+yD5Uctunk1T3N UMsIZKToeZw+5aU6O/JF4AM= X-Google-Smtp-Source: ACHHUZ4bchwHW/pOdK54YmhP2UQGITCQajOokg1je7+vf/vl6aO/BJo5jeAKYzaLV09OklUVG8PZ5Q== X-Received: by 2002:a05:6830:6209:b0:6af:78e9:4d88 with SMTP id cd9-20020a056830620900b006af78e94d88mr2735525otb.3.1684786462878; Mon, 22 May 2023 13:14:22 -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.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 May 2023 13:14:22 -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 1/5] PCI: imx6: Use a more specific i.MX6SX GPR compatible Date: Mon, 22 May 2023 17:14:00 -0300 Message-Id: <20230522201404.660242-1-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230522_131431_276560_242EFA39 X-CRM114-Status: GOOD ( 13.62 ) 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 On the i.MX6SX case, the more specific GPR (General Purpose Register) compatible, "fsl,imx6sx-iomuxc-gpr", can be used instead of the more generic "fsl,imx6q-iomuxc-gpr" one. Switch to using the more specific i.MX6SX GPR compatible. The motivation for this change is to allow the introduction of i.MX6SX GPR driver that will be used to control the i.MX6SX LDB bridge. Old DTBs are unaffected by this change. Suggested-by: Marek Vasut Signed-off-by: Fabio Estevam Reviewed-by: Marek Vasut --- Changes since v5: - Newly introduced. drivers/pci/controller/dwc/pci-imx6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pci-imx6.c b/drivers/pci/controller/dwc/pci-imx6.c index 52906f999f2b..4803e3c9ee37 100644 --- a/drivers/pci/controller/dwc/pci-imx6.c +++ b/drivers/pci/controller/dwc/pci-imx6.c @@ -1460,7 +1460,7 @@ static const struct imx6_pcie_drvdata drvdata[] = { .flags = IMX6_PCIE_FLAG_IMX6_PHY | IMX6_PCIE_FLAG_IMX6_SPEED_CHANGE | IMX6_PCIE_FLAG_SUPPORTS_SUSPEND, - .gpr = "fsl,imx6q-iomuxc-gpr", + .gpr = "fsl,imx6sx-iomuxc-gpr", }, [IMX6QP] = { .variant = IMX6QP, From patchwork Mon May 22 20:14:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13251046 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 570FFC7EE2A for ; Mon, 22 May 2023 20:15:03 +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=kPEsmCW3bRrONqVfTOArHzz7w/AOEWtc0pNnq+zaoKc=; b=0EdgYpPYrREwS5 2R1Piqj/MsiYJt5YVYSPBzpnM105+RvsgdwWIZvP3F0sSeCx1dSkNOpY62vH+QeVaWJ9N39KFsReG 3DP46dg2+4XYaP0OrDUYZwcUsTYiY0ejvoNa24fnhG+kn5Cf5u3IRotj7WX1rEDDGiojzWrlWq+9G 3JwWBfDmnWZ/xcvViPkEc2jB8lDO1x0Vs3dd/J2t/+DZ7Dg7wpTBq3h2DqTWiJkztSy3x8Mey+dUq 2lY16oEAr+qaVWKEzbIYpGHoJg0+4uZvEQuej76q13sJvIUMJzADCRomn0xu5pQmxfffKc9E0se94 B2jJAtgFokNkmKWH0mVg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q1BvU-007rqZ-3D; Mon, 22 May 2023 20:14:40 +0000 Received: from mail-ot1-x335.google.com ([2607:f8b0:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q1BvL-007rmg-1W for linux-arm-kernel@lists.infradead.org; Mon, 22 May 2023 20:14:32 +0000 Received: by mail-ot1-x335.google.com with SMTP id 46e09a7af769-6af8ccb491cso18590a34.0 for ; Mon, 22 May 2023 13:14:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684786467; x=1687378467; 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=qnNkxpreDgq26CG57fd0M0OJM5UJkONUnE3UR9s1bqM=; b=VYAmIGbOqs7k5HbHxThot+Ykl3Gm8VTVHflv+WQl41OQL48dR1VMdTx8R6keOZqmxX XduIaY9g228ZAm3zAYD4ptoRRQ2AKFJDehvAJ+OOZBlEBXf6UkkDWXu8RAQ74I7QQRsR nilXICPsNAiDiLK1HtgnhiZJ6lHca3/j4AQWQOgQHuSN/X1ztkL+IUDEDiNmJeNKWf0i zLCcwN8gAceytpW6xWUfpUSoEdW6SQf9O2uCZ7vepbMeyHN+qW6m/cDNInG+ssqlSWse urwcbjVJJnRReqhc8VgXXGgq+QGPo4/GYOts5ASo2zEPkrLLvcxKlAZv6IMRylJxX0x8 PHrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684786467; x=1687378467; 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=qnNkxpreDgq26CG57fd0M0OJM5UJkONUnE3UR9s1bqM=; b=clNymQ2gQxhe50W+0wp3bNwtAgFKI4BeElHuLZ/ogwjZyq8TJo5Uf+rPehYDtox7eU Mwlazg7kl+4J3O5hzacsi205l3wtsyxEcIBISOxel+/uqgYqzSMZHBOWu9IbbbXRFk9r uRvDgwbClKjl5L06cJ2SS8Tu7weCKD7gmlUXMoc0kg6S8P0b6jcYOnqz77Id4TrgrzPc 378Tit4GQ3wJa6dFwNpbEIZECl1XUAOaAdiwmwj9gga6LfYDhreRzKRcB4zKQNXLpCl0 ORcDNm3b6ywgSYCLyNHlFQAT+mNGn8fGsc6djBKzKLORpWL4rAWYFyzsANrY5BLhat4H DgEQ== X-Gm-Message-State: AC+VfDypSZG4XdIKyRuKHqPeZiAkQPm33/Ed+qZeDBLQzvuVOUfEsDBw bN35JpNuzqY785Y9pTjr90s= X-Google-Smtp-Source: ACHHUZ43QBPidqOZayheIayd4E1WwxeTeDcjnXlor6tlDw7hDy8ua2hgxxFXIKK5CGTrIrKaUwJPLA== X-Received: by 2002:a05:6830:3886:b0:6ad:23c2:e0ab with SMTP id bq6-20020a056830388600b006ad23c2e0abmr5756147otb.2.1684786467032; Mon, 22 May 2023 13:14:27 -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.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 May 2023 13:14:26 -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 2/5] dt-bindings: display: bridge: ldb: Adjust imx6sx entries Date: Mon, 22 May 2023 17:14:01 -0300 Message-Id: <20230522201404.660242-2-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_131431_507879_A37C4333 X-CRM114-Status: GOOD ( 10.80 ) 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 On the i.MX6SX there is a single entry for 'reg', so add some logic to reflect that. Signed-off-by: Fabio Estevam Reviewed-by: Conor Dooley Reviewed-by: Marek Vasut --- Dependency: This depends on bd60d98a11da ("dt-bindings: display: bridge: ldb: Adjust imx6sx entries"), which is available on linux-next. Changes since v5: - Dropped reg-names for imx6sx (Marek). - Indicated the dependency to avoid error when Rob's robot runs. .../bindings/display/bridge/fsl,ldb.yaml | 24 ++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/display/bridge/fsl,ldb.yaml b/Documentation/devicetree/bindings/display/bridge/fsl,ldb.yaml index 07388bf2b90d..7ff45e3d4929 100644 --- a/Documentation/devicetree/bindings/display/bridge/fsl,ldb.yaml +++ b/Documentation/devicetree/bindings/display/bridge/fsl,ldb.yaml @@ -28,12 +28,11 @@ properties: const: ldb reg: + minItems: 1 maxItems: 2 reg-names: - items: - - const: ldb - - const: lvds + maxItems: 2 ports: $ref: /schemas/graph.yaml#/properties/ports @@ -57,6 +56,7 @@ properties: required: - compatible + - reg - clocks - ports @@ -74,6 +74,24 @@ allOf: properties: port@2: false + - if: + properties: + compatible: + contains: + const: fsl,imx6sx-ldb + then: + properties: + reg: + maxItems: 1 + else: + properties: + reg: + minItems: 2 + reg-names: + items: + - const: ldb + - const: lvds + additionalProperties: false examples: From patchwork Mon May 22 20:14:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13251045 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 61BA9C7EE29 for ; Mon, 22 May 2023 20:15:01 +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=qMma4QCu2p4D1rYOMApvLtBBcjiv69KYlcLa3loK1L4=; b=0UretSScv4b4WR /zMNGC+osi79Ug02uptCFktx2NMuY+mJlTD87UsuF1R0cCemq7Mo33YrRaeMyiX0ia2f5RWZdM2E3 Oz42fgQfNVOaiHIjz7NtG8FzsD0RGpYY5fPEbmJRsdTefVwqm1yhG40314AgBQp2wnxAAfw+Hpk+W /iv0ULhOwaUtgMeIfIxwgg8UlGNI8xtQ6GJiHYrgepCykKbl00Ww08jDiPlA3QpgSvfAnBxVIdsnW gATNEUWGzHyhCtU9KHcLoPVeGqBXa0EPchpfvUp4FSW+I1UivgJkJ8TtuLSLXxC90/1sWe7qeVl94 J/4yKSqlN70rVzLy+v/Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q1BvV-007rqt-1Q; Mon, 22 May 2023 20:14:41 +0000 Received: from mail-oi1-x22a.google.com ([2607:f8b0:4864:20::22a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q1BvP-007roz-29 for linux-arm-kernel@lists.infradead.org; Mon, 22 May 2023 20:14:37 +0000 Received: by mail-oi1-x22a.google.com with SMTP id 5614622812f47-394185f8bd1so207419b6e.1 for ; Mon, 22 May 2023 13:14:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684786471; x=1687378471; 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=KDL6epUgkKJx7rvu5gMZxlCPvG4of9UKWOBLjJQ86uk=; b=Y3RqbkU3/7pjyxqgAVuZrcGeY4msbKhPqiOayRvFU0guGL29/WkkkJBowsKnLmGo5O uFcAK0hUlsbPqhtM5fUWsj7NXH8vuBUf2XteC0qXl3Ir5MsHSDCF5uaRXulTVVRqEV6J VtXYw1N9ENKO42AIOMRMMU5flZWBpdndATC6i8EP8ZdaAB5a022DQdf0OOQGUfo3RtSy /Yx+EkVf4hTytshfFCqomdyXv8MhNBqyBSpZH8xRb+z4On7D0sVwQ93qj/o7RPAWAset xAwa0y2fP4acRpc0fUFr0QaM9mkT3S8XJM3ZQgYR5jtPR3YF9ZlaAYwFVp1TVMc3QE1w B15A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684786471; x=1687378471; 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=KDL6epUgkKJx7rvu5gMZxlCPvG4of9UKWOBLjJQ86uk=; b=cA/nHOFNsp/Ng51i4d9o78Q32r70IFX/zmuBK/aJLfarK2KACWvPz3lMM0zNuRU0H4 4HAke86Qto7flSS2v/oPJsSqanB+OMis6BBn25OIa0/58hRrFVAESnMPxKTqh8KMVWUi KfOfKPdpNakFKPS5sszKcxFs8xvv1S0UixuBJmfybzDIuwkWUqxukXs0GbNW4apo65Qi oT7zUpxaF4xr30qJpRxrBJQeW+yMWvE7Ej+ESgExeEpLfE/3D4Yo09b27jMyaKUkar6M oDc6kJr1UBZUUs/d3ttlPVqIWuz4jfZ1Lc/Jf70dUTXPl51WvuveTAEVc9+Td0X1aKEz bOlg== X-Gm-Message-State: AC+VfDxRq2+FrjDFAlVlRKMGTF7C/XzUzk2WBFUYm0mIDQ3oHGblyyte 3gtIjnCiOAaY31jyrziiKnY= X-Google-Smtp-Source: ACHHUZ7DuWubwFlqB94Sc3EVBs9sMXO2WLcGDIojdAdSs64uPgecVAN1z/5lpA+FoXjF6QJE53gTwQ== X-Received: by 2002:a05:6830:6013:b0:6a5:e455:fa03 with SMTP id bx19-20020a056830601300b006a5e455fa03mr6500751otb.2.1684786471167; Mon, 22 May 2023 13:14:31 -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.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 May 2023 13:14:30 -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 3/5] dt-bindings: soc: Add i.MX6SX General Purpose Register Date: Mon, 22 May 2023 17:14:02 -0300 Message-Id: <20230522201404.660242-3-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_131435_703623_79DC3C00 X-CRM114-Status: GOOD ( 14.28 ) 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 i.MX6SX General Purpose Registers is a set of register that serves various different purposes and in particular, IOMUXC_GPR_GPR6, at offset 0x18, can be used to configure the LDB block. Signed-off-by: Fabio Estevam Reviewed-by: Conor Dooley Reviewed-by: Marek Vasut --- Changes since v5: - Dropped "fsl,imx6q-iomuxc-gpr" and "reg-names" (Marek). .../bindings/soc/imx/fsl,imx6sx-gpr.yaml | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/imx/fsl,imx6sx-gpr.yaml diff --git a/Documentation/devicetree/bindings/soc/imx/fsl,imx6sx-gpr.yaml b/Documentation/devicetree/bindings/soc/imx/fsl,imx6sx-gpr.yaml new file mode 100644 index 000000000000..b9752b4c45ab --- /dev/null +++ b/Documentation/devicetree/bindings/soc/imx/fsl,imx6sx-gpr.yaml @@ -0,0 +1,82 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/imx/fsl,imx6sx-gpr.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP i.MX6SX General Purpose Register + +maintainers: + - Fabio Estevam + +description: + The i.MX6SX General Purpose Registers is a set of register that serves + for various purposes and in particular, IOMUXC_GPR_GPR6, at offset 0x18, + can be used to configure the LDB block. + +properties: + compatible: + items: + - const: fsl,imx6sx-iomuxc-gpr + - const: syscon + + reg: + maxItems: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 1 + + bridge@18: + type: object + $ref: /schemas/display/bridge/fsl,ldb.yaml# + unevaluatedProperties: false + +required: + - compatible + - reg + - '#address-cells' + - '#size-cells' + +additionalProperties: false + +examples: + - | + #include + + syscon@20e4000 { + compatible = "fsl,imx6sx-iomuxc-gpr", "syscon"; + reg = <0x020e4000 0x4000>; + #address-cells = <1>; + #size-cells = <1>; + + bridge@18 { + compatible = "fsl,imx6sx-ldb"; + reg = <0x18 0x4>; + clocks = <&clks IMX6SX_CLK_LDB_DI0>; + clock-names = "ldb"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + ldb_from_lcdif1: endpoint { + remote-endpoint = <&lcdif1_to_ldb>; + }; + }; + + port@1 { + reg = <1>; + + ldb_lvds_ch0: endpoint { + }; + }; + }; + }; + }; +... From patchwork Mon May 22 20:14:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13251047 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 18A6AC77B75 for ; Mon, 22 May 2023 20:15:04 +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=qNaszJIyV5kWAwj20qSnNWZNJvGbPMJ4jGkdiR+XCH8=; b=QiuD0LrrWMkmys l8lWJFe773ZAE7IveJxHpVWaNbF59ponSZv1ANYCzuKNQ9TO0NP0Tn7AEtgCr0PLuiISQJybQ461A Zuew3Aabd4q6YvCJso7r6kmACW/ftM9TrnlPOj+UbVWtzBlq4mzzUGa6Zu65mfOI3pRtWZIuqIyaw O6B1ABYiGm+fjxTE4nvwHTJl+wIlRj1Pkwfo1KwSDKLg7MmpOpO/g5QAmIqAqpRVDiTZJ4xfwsotg rKVNFi+SZ5AxR184EsO39q3UL+u0eSvpFdsD0y7RYNfk34KWxK8Auc8cTF8E8P3K/sWPP8/3DcKCW jNRgFsRtwIs7eTWAJhGg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q1BvV-007rrJ-3A; Mon, 22 May 2023 20:14:41 +0000 Received: from mail-oo1-xc30.google.com ([2607:f8b0:4864:20::c30]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q1BvR-007rpF-2C for linux-arm-kernel@lists.infradead.org; Mon, 22 May 2023 20:14:38 +0000 Received: by mail-oo1-xc30.google.com with SMTP id 006d021491bc7-5553104aeb4so289753eaf.1 for ; Mon, 22 May 2023 13:14:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684786475; x=1687378475; 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=/U4MwQegtEt6biQ+P7puU9U2kpax+9v8Rb+ryQwCgwU=; b=QQ6iHwDgvDeh5WIpNwR/r+GyI7SxXSdZH/sEjJnOk0JdYflkFYyZGiKJKE3CQifEWc 2dpc1YgytIRsQu93fGQ4v33am8lIW0qLz8CRQz7kYc82MempAHsueXNmLuIXeTV6fRJk IMQn2cWqqAAh+9LHa0v+zSduI+9xFED8m2vKvZIY5+5OTl+UXcVhPC/BNWs9taMzmmXk CPZAFMnMvlo6/IeSZNhrHMP1k8v7b8iTPByrBLEKFoSoM9InEHK57bNbMVQ3BmcpJ36E 6tpPbWjiTI+XlDqUrQcPy2SiZVhLCPqnpkck/vH0tzEjYkXE2d0m76aHqcLWpdmbbaCI 1c4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684786475; x=1687378475; 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=/U4MwQegtEt6biQ+P7puU9U2kpax+9v8Rb+ryQwCgwU=; b=W4J2ovj1u0PMKFb/9JAtPhA5LSVXraQ7Fmk8ipo9bFp5pIVXoV9hFdVaL8LjN7asjC +mP7L/kAk5mJxUNU5301P9Yk00djP6oL1xYTgzGfdh5ee6U1Otj0kK9N8ff8zv3fDO0I wAxdhufhuDAkUFYmAGRvlBTmrqQLg0fQ9af78l1gKb3k0KKEewtlvqo9n8BttLiGqRh1 Yx5A1lvNwAtRJt4VbT3Sbf80FJfvTzBJOs1IALDcOQZg80nu1f8x2Kc2yBQNcA2YHMNU xbkwYg2QdCHuABvok/jG0SF3Fi/XdCetfEFaZo/hME241iLqc01aLGCIsl75lP/RaApC Lf3Q== X-Gm-Message-State: AC+VfDxSC0YlgBN/sGKiLwc65L9zuV9+P94BzXV1eZb0HU5StnoSN/81 LzYSnFwBz4Ro/9DQpjZ44xE= X-Google-Smtp-Source: ACHHUZ6tRK3jeBUL5kL2bT5YgkitFHQFx0vOwnMXBOJ11TWLcTmFxqLTxbnQvqVBgc9hMijSfW358w== X-Received: by 2002:aca:b9c6:0:b0:38e:52a1:4e2 with SMTP id j189-20020acab9c6000000b0038e52a104e2mr5075876oif.5.1684786475306; Mon, 22 May 2023 13:14:35 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 May 2023 13:14:34 -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 4/5] ARM: dts: imx6sx: Add LDB support Date: Mon, 22 May 2023 17:14:03 -0300 Message-Id: <20230522201404.660242-4-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_131437_717477_738B92D4 X-CRM114-Status: GOOD ( 12.20 ) 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 i.MX6SX has an LVDS controller that is connected to the eLCDIF. Add support for it. Signed-off-by: Fabio Estevam --- Changes since v5: - Dropped fsl,imx6q-iomuxc-gpr" and "reg-names" (Marek). arch/arm/boot/dts/imx6sx.dtsi | 43 ++++++++++++++++++++++++++++++++--- 1 file changed, 40 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/imx6sx.dtsi b/arch/arm/boot/dts/imx6sx.dtsi index 4233943a1cca..8dd38107bed2 100644 --- a/arch/arm/boot/dts/imx6sx.dtsi +++ b/arch/arm/boot/dts/imx6sx.dtsi @@ -841,10 +841,39 @@ iomuxc: pinctrl@20e0000 { reg = <0x020e0000 0x4000>; }; - gpr: iomuxc-gpr@20e4000 { - compatible = "fsl,imx6sx-iomuxc-gpr", - "fsl,imx6q-iomuxc-gpr", "syscon"; + gpr: syscon@20e4000 { + compatible = "fsl,imx6sx-iomuxc-gpr", "syscon"; + #address-cells = <1>; + #size-cells = <1>; reg = <0x020e4000 0x4000>; + + lvds_bridge: bridge@18 { + compatible = "fsl,imx6sx-ldb"; + reg = <0x18 0x4>; + clocks = <&clks IMX6SX_CLK_LDB_DI0>; + clock-names = "ldb"; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + ldb_from_lcdif1: endpoint { + remote-endpoint = <&lcdif1_to_ldb>; + }; + }; + + port@1 { + reg = <1>; + + ldb_lvds_ch0: endpoint { + }; + }; + }; + }; }; sdma: dma-controller@20ec000 { @@ -1278,6 +1307,14 @@ lcdif1: lcdif@2220000 { clock-names = "pix", "axi", "disp_axi"; power-domains = <&pd_disp>; status = "disabled"; + + ports { + port { + lcdif1_to_ldb: endpoint { + remote-endpoint = <&ldb_from_lcdif1>; + }; + }; + }; }; lcdif2: lcdif@2224000 { 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");