From patchwork Fri May 19 12:52:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13248292 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 7F3BDC77B7F for ; Fri, 19 May 2023 12:53:31 +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=L4VczXcK04OjwuxvqWvQZKXJloQ1Hzrh45vUpgyhRLM=; b=HuImv/lEG+r/kI A5Tne8oOVQAedYrIIayO/EdhYs7/d7UtR9AP/p33dFSE+zmmGjL/9CzzLelJlX+lHCJt4egusLqhG 9eIiNzSvD9wNhGm9iwMvqE09e4GNhtAp3RUK3+rZw4sj/B8XJ+5CbWRTXNySCFMQ04mlXmEr6rPAf PpJKFARAagvkUrhtxxp3StzUY7d5B1xpxYRXac1skkENnslFOhWV9Yew0YoOeTvKcNMOlW2g23ZVS 4Li5AX8jIUvlRzmolZsfNLSO+5hEXGZxhNWdX1lqPeFZXN/raXbMwB1YxFs/i7Eh9ag0u3t3cu3KS PP1Fhj6bZMf/5ZYqy3jA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pzzbW-00GJa8-2D; Fri, 19 May 2023 12:53:06 +0000 Received: from mail-oi1-x22d.google.com ([2607:f8b0:4864:20::22d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pzzbT-00GJZ7-2Q for linux-arm-kernel@lists.infradead.org; Fri, 19 May 2023 12:53:04 +0000 Received: by mail-oi1-x22d.google.com with SMTP id 5614622812f47-39648122ce8so176989b6e.0 for ; Fri, 19 May 2023 05:52:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684500779; x=1687092779; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=a9av7E+KBFnnteqRg304+qgwLrRa6+hP4lNySNm1b0Y=; b=n02a3/skcMhxOIEqClk3apqbCxVbGKx2A7B0CKl72UHfmVe+7uBbqfMJ3eGDo06TQv CC7OfYVde3gYu0B4+YurAU95zCOxXGH+jRuO6aKaTQijHn7NWWAC5ElmxJFia5AfXUDE EDzepm+PU01oPnm5KIKGcwf+iVTs5WCcuPm7iObJK/k3lQxaTUk920nh0tsqAN5hSe3t sf3zm2YD5eKM3gbq7SnZXNNI8EWCzuPEvWJI0M5BoxXsNlB+vImob2n1NqpgBy4swvdQ yu61EKlLpUwNsomMDq0k8ajvv+ew9wr6WQe2XXT4mXV/dhvqaGd/yhaCZY+PgEJUEUoe NX+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684500779; x=1687092779; 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=a9av7E+KBFnnteqRg304+qgwLrRa6+hP4lNySNm1b0Y=; b=KDi2Y+VM0mhOAM5W5vG/X7cmYhKV8dB15uXLd/qAn55cZn61YvI/Zxc6Y7ly8CUEsm F2o/R4U4JhivEsJto5Sxl405mapJZH5aZdRite/levNFu2ZOWTzJZf5HSb+YKUOsBmp8 nz+3cjEl9W16vekjF80gg5XfBkJ2beBBJu87ej3G/COEdXPQJvhTnv4wpdQnSvts4ue+ CinezZqH3x39FY41OVWZgpUNZLzxbOoEPzAwuI+XKjhAfLSRC4jTh0yZRSKCPc0iPuel g4/5801wM80KLfCYkrXqUPdf5OHrAqZNnbBO6jenWpGiCNpNA2NozyuFUZi+17M2f5uA +IjQ== X-Gm-Message-State: AC+VfDwBLO6jLd9nA5zxwLq+o3m/n5t2Ukbqvqc2GwgyV2r+7BbhScRN ILnT7GEpDPMXfldrRoeQkjc= X-Google-Smtp-Source: ACHHUZ4i8pe55U16XOrGqFfMv2LgK9rTaEddNJJB83XQ5Fn5sF788AUKu/2why1Md6ZW3QGFTFH4Bg== X-Received: by 2002:a05:6870:14d2:b0:196:3ce8:42da with SMTP id l18-20020a05687014d200b001963ce842damr1223318oab.3.1684500779192; Fri, 19 May 2023 05:52:59 -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.52.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 05:52:58 -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 1/4] dt-bindings: display: bridge: ldb: Adjust imx6sx entries Date: Fri, 19 May 2023 09:52:33 -0300 Message-Id: <20230519125236.352050-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-20230519_055303_794902_852A7F88 X-CRM114-Status: GOOD ( 10.03 ) 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' and 'reg-names', so add some logic to reflect that. Signed-off-by: Fabio Estevam --- Changes since v3: - None. .../bindings/display/bridge/fsl,ldb.yaml | 28 +++++++++++++++++-- 1 file changed, 25 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..cd63f9ef9484 100644 --- a/Documentation/devicetree/bindings/display/bridge/fsl,ldb.yaml +++ b/Documentation/devicetree/bindings/display/bridge/fsl,ldb.yaml @@ -28,12 +28,12 @@ properties: const: ldb reg: + minItems: 1 maxItems: 2 reg-names: - items: - - const: ldb - - const: lvds + minItems: 1 + maxItems: 2 ports: $ref: /schemas/graph.yaml#/properties/ports @@ -74,6 +74,28 @@ allOf: properties: port@2: false + - if: + properties: + compatible: + contains: + enum: + - fsl,imx6sx-ldb + then: + properties: + reg: + maxItems: 1 + reg-names: + items: + - const: ldb + else: + properties: + reg: + minItems: 2 + reg-names: + items: + - const: ldb + - const: lvds + additionalProperties: false examples: From patchwork Fri May 19 12:52:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13248294 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 690CEC77B7F for ; Fri, 19 May 2023 12:53: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=jsjjoPFOciq196IARbzMSXQc/c4CMhB5i+pbr/Pbk6k=; b=pvgHqbXtrzNBvm P9+HlZnv8lFSOeisRXNNRCSnur2VdnO+7Ka7S+XKY86tPWKA5T585k7pyLYpnxnn74ZNMsnvParyO X5ahVtxGE9iFWlrvgMZElXXEWjTlpCwhdgsMmpaLJzFeoRWtM3a6Q5Vbgc1jqNYZQxN36QXDt9/97 7MgV5IOSU7msJqJLeuVRPu4L3cjoyO3iJa1zAjKPZ8XLHcMJthHxIphGmZY0GQqW8YE3YykXGoIxY ENLrr5KLkVWhJe3m4yECQd274RyWK+Z05zqJXTG3PtkD/wo6u1gGTao5L+705rUDhlfRcnTQmjUvA B1Hh2USDL8FBpgZCGbcg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pzzbc-00GJbQ-16; Fri, 19 May 2023 12:53:12 +0000 Received: from mail-oo1-xc31.google.com ([2607:f8b0:4864:20::c31]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pzzbU-00GJZN-3A for linux-arm-kernel@lists.infradead.org; Fri, 19 May 2023 12:53:06 +0000 Received: by mail-oo1-xc31.google.com with SMTP id 006d021491bc7-554e981e6b3so157488eaf.0 for ; Fri, 19 May 2023 05:53:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684500783; x=1687092783; 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=HE42Y898PfJmi2OUhLKkegR7WZMs/IG0gIS/4y2gjGY=; b=HQBwW08SzUhLvJc2HYLj1dQesFwbkIOc9VKqFcLqKYgZhqhNJfcMaXgD5js6ygP7FG LabndHvM5scb52FdR1Kb3Tc9x9W29yKFshqfhjQHhl+bu62BgkYoXhxlij83szS040bD T3zaMOASwyzfLy826kU3tWXkLEDFgYevYmx9NZcq3ibTgj6eun6MQO2Tm4YMc027ol3D JgakOMuebyxR7vOlFZh9vPeN7KkcR8jdg7clPP+sJ6TCoDVMUfiTqJwKrgiWGRHhLRDu JIaltd3p/HbY/VWTcGcCmq/HwU1GdaCiBi9fwolYrM8+3qGZe8pcHrmDvEEpN1tX+nSP RRNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684500783; x=1687092783; 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=HE42Y898PfJmi2OUhLKkegR7WZMs/IG0gIS/4y2gjGY=; b=Q996nRZZ37ruWlnSGNP6f7GKkPE+AKRRv4azr3y319aK2zLUak8gwsIjeCOQT6whX3 6n0JFb/UWMMyDantEYgpd+8RLlZ5ZciXa2ti+EXGC91MKK78BANGq8v575pFv+0neiTh 4+PVoEiIKJp4Xxl/Q9nr51w4IlUuhiGcMdK0eUZndDGwZn8YtMQ1i++cKqvevVdv8U25 3wPHwQ8WGycSSwMfLhX1Hu8rAY44QLQuRRhFcX1joKD4iqCYKJAUEh4vZChRkC9z1P+v W98HWZMWINN67wAQFTOsGtIwddUZXmsWG9MAgRY+0xxYtOY2+SWcYDKyfMAXy+Zf40lW rgug== X-Gm-Message-State: AC+VfDzOwB+b2tIguzSAxfWQ5vxcwRwWihevjST0QVeV3dT4HkiGJKm6 ZmqSAP3qmGqqYDnnV20NXjXt4VrXVis= X-Google-Smtp-Source: ACHHUZ63/0P/DU3ch1b0EYxaI8mCXAHd17MxlKwgdY/MV87i/iRytrk6PQhU9RfVFsBTfKWKlqpl3g== X-Received: by 2002:a4a:d750:0:b0:547:50b4:9236 with SMTP id h16-20020a4ad750000000b0054750b49236mr841150oot.0.1684500782980; Fri, 19 May 2023 05:53:02 -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.52.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 05:53:01 -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 2/4] dt-bindings: soc: Add i.MX6SX General Purpose Register Date: Fri, 19 May 2023 09:52:34 -0300 Message-Id: <20230519125236.352050-2-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_055305_028317_595044CB X-CRM114-Status: GOOD ( 14.93 ) 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 --- Changes since v3: - Fixed error reported by Rob's bot. .../bindings/soc/imx/fsl,imx6sx-gpr.yaml | 84 +++++++++++++++++++ 1 file changed, 84 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..22777ecfb56b --- /dev/null +++ b/Documentation/devicetree/bindings/soc/imx/fsl,imx6sx-gpr.yaml @@ -0,0 +1,84 @@ +# 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: fsl,imx6q-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 + + iomuxc-gpr@20e4000 { + compatible = "fsl,imx6sx-iomuxc-gpr", "fsl,imx6q-iomuxc-gpr", "syscon"; + reg = <0x020e4000 0x4000>; + #address-cells = <1>; + #size-cells = <1>; + + bridge@18 { + compatible = "fsl,imx6sx-ldb"; + reg = <0x18 0x4>; + reg-names = "ldb"; + 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 Fri May 19 12:52:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13248293 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 2353DC7EE23 for ; Fri, 19 May 2023 12:53:33 +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=CsScaqlwPIUwxoRG9hYyiTkraB+l6ser1119LGU3p3Y=; b=dih/Fh1HM4I/ZR 0Kea1v2REqNkd6kaFNx+EsjX8DdJr+j76uzipEDsiQ85kV858ZJdwbqTos1Dw63dxM+4s4uzronJW KEd6eov2O9doN8jy/MZODz0qk9cjA4jYElXiWylQaGpDx67XQQzufrpR3/gj0pYwi4wAj9PH+DQEy 9XMG5n4JrsnAoWNjZIoeN7bpGVr9D1LP26stBCdXYAHpkPXEyC2X4rBzo01Yg8JSIO6VB0rfx7PMj Ee86MDWGoqM5Qq1TW4UfxnDBvSEv6zaTGZOYHNHQyqI40+ldPLz8vbDh7XOOpyOOoJ1yV2IJcHCOR oBxXOYOW/6yDQfBUY4mA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pzzbc-00GJbx-2z; Fri, 19 May 2023 12:53:12 +0000 Received: from mail-oo1-xc2e.google.com ([2607:f8b0:4864:20::c2e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pzzbY-00GJa3-0O for linux-arm-kernel@lists.infradead.org; Fri, 19 May 2023 12:53:09 +0000 Received: by mail-oo1-xc2e.google.com with SMTP id 006d021491bc7-554e9835f4dso234600eaf.1 for ; Fri, 19 May 2023 05:53:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684500786; x=1687092786; 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=krsGcXa7GEcykxpLnKUmx0Yh+Lm3P6pAyGs9X6hUAcs=; b=LhGn1DHDwnzt0E1Yr4FxLS7HJxxnTItFXT+R4rPA9PkLTpof3iDm+9gX7SVI1UF7p2 OX+d/itit0SwrOe74GjL/dp3XD1eAc8ThLhKLoAgVeKIEovQ+pE2ySZL9SPNY4R7kWrV L8W57Cc0FurbFVt5GUur7NWcdAmRC9y6oy9em58gzi9c6014RumHuaNDwiPAcpDFZ88C Tkv+fjPSxT/znxzK0Fri9sGKYWfOouXDu8Gh0BT1bJB3d9x5snsms3lqUIgG7Q8bJM1d N06H4lUZFSuzDbD+90Dx+vjWewmjqfCRl6jHIhUEp9w80/U27q/S/VsdYWmcFyFTGz7T JQQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684500786; x=1687092786; 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=krsGcXa7GEcykxpLnKUmx0Yh+Lm3P6pAyGs9X6hUAcs=; b=QVAoOPG1S3HXrcNzaYXF/v2WEpj3qUvEZwbJZ4fbZgd6cc6nVgUo8I2o1b4rKgdtnU 84Df5Z/HKoVZoJ289aQL2fN4mWUYXbVJDqs13IDsQoj54WI8NdRxRdnlZ5QwZbKUnxgT gYtxhS196DbOFqcSTXHFn8XHKFD1EbN8GxbnQ9htU1oSqYOpMnIGpdkcOBcBoX/FPvZx RB3yL4gH0qnWzSDgXgO0cKbCOl1P0qQalSaYdTdFb4JXAMCdIcQVGM4PkSH2KNCONc40 xYFHq9SrtbPwNlwUDkjWaOvEIeSG25CMis2mPXC3q+y7W2wz+mS4U/jj8YkA21jD7NOT Jt8g== X-Gm-Message-State: AC+VfDzKsedHZos6cCqwypGRmDr9BgxI+pdGiNtqHwneN3czn5sP2KO0 +v2SYNOL/owydL6Un8xUhj0= X-Google-Smtp-Source: ACHHUZ6ldh2+rXc0/avcwTFZxJhxqwc8kBdtDwUnkf7qmSmVEj8GdDhLElYF3t3up5JtF+fK+5ozGg== X-Received: by 2002:a4a:c310:0:b0:54c:a420:aeda with SMTP id c16-20020a4ac310000000b0054ca420aedamr710019ooq.0.1684500786148; Fri, 19 May 2023 05:53:06 -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.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 05:53:05 -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 3/4] ARM: dts: imx6sx: Add LDB support Date: Fri, 19 May 2023 09:52:35 -0300 Message-Id: <20230519125236.352050-3-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_055308_155904_8F0F623A X-CRM114-Status: GOOD ( 11.65 ) 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 v3: - None. arch/arm/boot/dts/imx6sx.dtsi | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx.dtsi b/arch/arm/boot/dts/imx6sx.dtsi index 4233943a1cca..442106565025 100644 --- a/arch/arm/boot/dts/imx6sx.dtsi +++ b/arch/arm/boot/dts/imx6sx.dtsi @@ -844,7 +844,38 @@ iomuxc: pinctrl@20e0000 { gpr: iomuxc-gpr@20e4000 { compatible = "fsl,imx6sx-iomuxc-gpr", "fsl,imx6q-iomuxc-gpr", "syscon"; + #address-cells = <1>; + #size-cells = <1>; reg = <0x020e4000 0x4000>; + + lvds_bridge: bridge@18 { + compatible = "fsl,imx6sx-ldb"; + reg = <0x18 0x4>; + reg-names = "ldb"; + 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 +1309,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 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");