From nobody Thu Feb 12 19:04:30 2026 Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D89A6374D4; Sun, 9 Jun 2024 13:01:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717938072; cv=none; b=SZyFd9l100OmM7aDmXzsW7W2pWE7qlkA488JnbIdWZ4xfLEUDDRacmnuSt4JgM06uHwLXnVEpQJ5NCcW+CcwHX7nn1N3wD/ttuElAWqjBsRcxZpz08bN8fsRZMtothNzQ7EVEDQCOLFhQTNhdtGi9hs2Qa70/DGxo3hNiSRsB6M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717938072; c=relaxed/simple; bh=j49VU9MU24LvpW7FfwuoiEMwbcnOP7x2EnhIo7iP/Mc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=cOoVuasI5h/Fl2TcBg+8f/QFnqsSvsJCgZJm61vy6YbJ0xssTtA56W8uDVRDqrrinfaS+Z/nyOZm+9Owm+XT8SAgw/3YFI6FlcdAp9Wfy5sJV6fWARgPrUnbVqU/X/6PwrBR8syES0XchsXaMvFFPAP6wMmKzLHAhcNQxzw6uCE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=HdhUKMyC; arc=none smtp.client-ip=209.85.218.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HdhUKMyC" Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a6ef64b092cso180202766b.1; Sun, 09 Jun 2024 06:01:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717938069; x=1718542869; darn=vger.kernel.org; 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=REsRox1e0RuQ8D5QAaZjLhlhSVKgshVITv7B++1K8Ss=; b=HdhUKMyCszV2EXAMcPngB/2Sh7n6BzLfYP0YgdbD+7hWlS9HwYKAhBpL7rQP5PJ3Ls V48NS5RJDXW0DXf/qTn9P9OTPtHDwDjV014PMhwB877PBZQzAu74h1ZIiAHQIfliUYNo CsDSWuCSsh2wpCeHhxauQJzomUGBnC/ETmGom1Az1JJfTPrqe1TsirCD4tytLeFkEuPv 207eHL5t7q1JQ+VFXFBeLEFJ5Yw2rBAdWSjB+02THcWLcfD/lFhwFbNslD/LDYNj3VZR 9uuAchz2QqaiYBy2UQAQhiq38VNIMp9Djrtn4CKYrPoa2FuXG14wVMKiaiWRuz0FA4nN QAQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717938069; x=1718542869; 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=REsRox1e0RuQ8D5QAaZjLhlhSVKgshVITv7B++1K8Ss=; b=YcpqMDN/0o14aVnbSpilSqojAbxq/C0JGR9uZuWE4mbwkZc3D/wcztXkVe60aYHxtM jD1S9Ih/yhDFjErfo9lV9KxPEMycQKg7VpgqJRPnMbn6tSe15gddiXcp60acJQupDDJ5 3448NKHY57rTRK+uiQiv+ZOUywmoWTJ3+QTP3ZBr1GaJT4HgbTHnzxe4A7OZMCg406pH OcX9Ww7gT1/DCkip6bxtbm2xQ6dSmy2U1F+tM/wAjYxN6oLGlVMQGje2COF1xExbvJ+Y BH3gIV7JQzehm4OhWBiS71GmGUth+UetImIWUfOiW/Tjrk5zzuwC8xznpWpa//0KK3z3 V59Q== X-Forwarded-Encrypted: i=1; AJvYcCX0xXO+ul8kXzAfEnl3HuorZ5IHsPrNun2eMbsxJuU0uHqfmJbRsB8m0fN4y9MyerCyPKQ8Rn4+IC5bSl8Q/n1LiMy7/hm2aztwdB5vTYQCiosTxamn1WEmZKHO07Pb1SIZi5I5eAur1A== X-Gm-Message-State: AOJu0YwAmjUxstuwAwok3Al2odBro6l+p0Z+CsMQ4XNJKX7q1FoZ0Jmj TxPgBG71Uj3MSSpVrKcs5Qo7MzjZOiRX/s/LVUMQJEVO8nrkHjeD X-Google-Smtp-Source: AGHT+IHuwX9E4jd+uOP3g2E/VCQpCP2FwgjdCll+ONft/3eSl0lcdXlxqQ5XLFW8iIp/cysdKtueIQ== X-Received: by 2002:a17:906:4a4a:b0:a6f:74:d389 with SMTP id a640c23a62f3a-a6f0074d52fmr240671266b.14.1717938068825; Sun, 09 Jun 2024 06:01:08 -0700 (PDT) Received: from lmc-playground.localdomain ([188.25.209.252]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f1841fceasm85961266b.70.2024.06.09.06.01.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jun 2024 06:01:08 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Philipp Zabel , Liu Ying , Sascha Hauer Cc: laurentiu.mihalcea@nxp.com, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/3] dt-bindings: reset: add schema for imx8ulp SIM reset Date: Sun, 9 Jun 2024 15:58:59 +0300 Message-Id: <20240609125901.76274-2-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240609125901.76274-1-laurentiumihalcea111@gmail.com> References: <20240609125901.76274-1-laurentiumihalcea111@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Laurentiu Mihalcea Add schema for imx8ulp's SIM reset controller. Signed-off-by: Liu Ying Signed-off-by: Laurentiu Mihalcea --- .../bindings/reset/nxp,imx8ulp-sim-reset.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/reset/nxp,imx8ulp-sim= -reset.yaml diff --git a/Documentation/devicetree/bindings/reset/nxp,imx8ulp-sim-reset.= yaml b/Documentation/devicetree/bindings/reset/nxp,imx8ulp-sim-reset.yaml new file mode 100644 index 000000000000..e7faec55ff36 --- /dev/null +++ b/Documentation/devicetree/bindings/reset/nxp,imx8ulp-sim-reset.yaml @@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/reset/nxp,imx8ulp-sim-reset.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP i.MX8ULP System Integration Module Reset Controller + +maintainers: + - Liu Ying + +description: | + Some instances of i.MX8ULP's SIM may offer control + over the reset of some components of a certain domain + (e.g: AVD-SIM). + +properties: + compatible: + items: + - enum: + - nxp,imx8ulp-avd-sim-reset + - const: syscon + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + '#reset-cells': + const: 1 + + mux-controller: + $ref: ../mux/reg-mux.yaml + +required: + - compatible + - reg + - '#reset-cells' + +allOf: + - if: + properties: + compatible: + contains: + const: nxp,imx8ulp-avd-sim-reset + then: + required: + - mux-controller + - clocks + +additionalProperties: false + +examples: + - | + #include + syscon@2da50000 { + compatible =3D "nxp,imx8ulp-avd-sim-reset", "syscon"; + reg =3D <0x2da50000 0x38>; + clocks =3D <&pcc5 IMX8ULP_CLK_AVD_SIM>; + #reset-cells =3D <1>; + + mux-controller { + compatible =3D "mmio-mux"; + #mux-control-cells =3D <1>; + mux-reg-masks =3D <0x8 0x00000200>; + }; + }; --=20 2.34.1 From nobody Thu Feb 12 19:04:30 2026 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AED714315F; Sun, 9 Jun 2024 13:01:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717938077; cv=none; b=P59SRfYAIWdWgmeqFv21Gr0KwaNhcTUdRl9l8OhKyIE80iCFMSq/E/nSMB/joAKk/560C26ac4lT1Qx0W1XggtYiGMCT5yohSUAxQ29Egi2XjJpaGE4ooqCAxslh5XOBMt45Q/EILMq7VDDb7ckdLo+MEJPX6WqqjYz/T4la4ng= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717938077; c=relaxed/simple; bh=00/efm170rHixvXjsDdkmTJjaLFkiwwiwdlNwtJtkho=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=T75gi6spMsBu+jj+WuX8i6Ir+ClVAlHWcovo8m3Atpg2gkLCqKK9S9to0c3NfrTER4HsJMR8Rg/CEB63E9qcX8mqSSAv4JKdDfKVazZJaUT3eMks0SgfCTTZnCPDMvV+JGCrL3RTzJLbNiWNdJd2kE8rDm++b7m3E+X+A0MOIgY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=LQI0qmxg; arc=none smtp.client-ip=209.85.218.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LQI0qmxg" Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a63359aaaa6so537067766b.2; Sun, 09 Jun 2024 06:01:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717938074; x=1718542874; darn=vger.kernel.org; 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=roddXwv5d465/lxlFzMrZn0lrN/Jz4rrWHyGURYshMc=; b=LQI0qmxgM/SgjsmDGGtj1DgsduTImromPZbvifJQJuU+YrAmZ1oJ/sXEw2qDiOS0Bd h3wAUHYNPaHGmSUFJHhG+IFo1ZpeiOQ70U/zvnmIEMXDQC9MVsOyWqNubA0X3Hl/1Pq3 hxScX4h1KOnfhMbT9c41f94lwlkq5o5H4KNmbc8QPF90Qk564t2CvKGK2cdJ4uRULnMs Tv4pAkFHi3hLrbR6F7V4TAi3VQvTWNCCoCjlWiA5AQ9rYhWCPb6CS2IPKlKC65bZGxMX ru19cXw/vVx0m1Bin4rhYn06JnriMtNDNIFR5SQDO8i4PNxg6e189g+16v+t8M6SwCmN ZDgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717938074; x=1718542874; 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=roddXwv5d465/lxlFzMrZn0lrN/Jz4rrWHyGURYshMc=; b=NH7oJklRx2fq95sWLxMIMxerGgteNoB98KpTfocmu0naeRS+DJnJBDPIoGDBN1avnW rChIw2dF8yVd/orKcdLoBF8H0JQgTkAhXv/o63IEMnDtJT21iDzXlf6DepZc6cv/sOjD 7vcyRTl5ws8PiL1ruugC1izhk3MtwwXr5R4XrT7+hje9i8CJYS+0KXsB8JuRMwFqnaIi 8pp7NctG7ziBbqLX9vD86T/8vPiNODH3WVfwHICMV9lF6eRLcElXd71PNI0d38H/DoH/ riUsgN2rFYePB0TWPvvYjTIlCVk1STp/4Co0V0Kpi7n6zyD8JkGaACWkIzPy+n5w7b5E xxaQ== X-Forwarded-Encrypted: i=1; AJvYcCV/Xhniyr3STmkmSdjhsyEzcIjjw71Fxvi4px109ZHrzA0Xe0vXGl785iwnKUNSuvvd7eGEwQ++PujRr9fcJLQ10Kazs4AyIrkUgYQ4eJ6jgDS8CVtlv4HEtv4xe4KzDWwb42LlJgEmNg== X-Gm-Message-State: AOJu0YxX38J7NoXW+XMzpNbWn8Wsx9m4vpBnJpAUWZwNIO3y3Q69CRW4 8IuCmUqYCUfTG4zTyABFLxTwFbhYdn+w2xovMXA3L+UoNlAyDVHZ X-Google-Smtp-Source: AGHT+IGreRkBONukfacHwv3hN2S0XEX0TDLoo4NDkaB14N8SCtzAN4GtduaJrUVGiB3CjataKqHrAQ== X-Received: by 2002:a17:906:1752:b0:a6e:facf:f982 with SMTP id a640c23a62f3a-a6efacffa1emr277059466b.23.1717938073841; Sun, 09 Jun 2024 06:01:13 -0700 (PDT) Received: from lmc-playground.localdomain ([188.25.209.252]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f1841fceasm85961266b.70.2024.06.09.06.01.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jun 2024 06:01:13 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Philipp Zabel , Liu Ying , Sascha Hauer Cc: laurentiu.mihalcea@nxp.com, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/3] reset: add driver for imx8ulp SIM reset controller Date: Sun, 9 Jun 2024 15:59:00 +0300 Message-Id: <20240609125901.76274-3-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240609125901.76274-1-laurentiumihalcea111@gmail.com> References: <20240609125901.76274-1-laurentiumihalcea111@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Laurentiu Mihalcea Certain components can be reset via the SIM module. Add reset controller driver for the SIM module to allow drivers for said components to control the reset signal(s). Signed-off-by: Liu Ying Signed-off-by: Laurentiu Mihalcea --- drivers/reset/Kconfig | 7 ++ drivers/reset/Makefile | 1 + drivers/reset/reset-imx8ulp-sim.c | 103 ++++++++++++++++++ include/dt-bindings/reset/imx8ulp-sim-reset.h | 16 +++ 4 files changed, 127 insertions(+) create mode 100644 drivers/reset/reset-imx8ulp-sim.c create mode 100644 include/dt-bindings/reset/imx8ulp-sim-reset.h diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig index 7112f5932609..9b3574a4f1c6 100644 --- a/drivers/reset/Kconfig +++ b/drivers/reset/Kconfig @@ -91,6 +91,13 @@ config RESET_IMX7 help This enables the reset controller driver for i.MX7 SoCs. =20 +config RESET_IMX8ULP_SIM + tristate "i.MX8ULP SIM Reset Driver" + depends on ARCH_MXC + help + This enables the SIM (System Integration Module) reset driver + for i.MX8ULP SoC. + config RESET_INTEL_GW bool "Intel Reset Controller Driver" depends on X86 || COMPILE_TEST diff --git a/drivers/reset/Makefile b/drivers/reset/Makefile index fd8b49fa46fc..f257d6a41f1e 100644 --- a/drivers/reset/Makefile +++ b/drivers/reset/Makefile @@ -42,3 +42,4 @@ obj-$(CONFIG_RESET_UNIPHIER) +=3D reset-uniphier.o obj-$(CONFIG_RESET_UNIPHIER_GLUE) +=3D reset-uniphier-glue.o obj-$(CONFIG_RESET_ZYNQ) +=3D reset-zynq.o obj-$(CONFIG_ARCH_ZYNQMP) +=3D reset-zynqmp.o +obj-$(CONFIG_RESET_IMX8ULP_SIM) +=3D reset-imx8ulp-sim.o diff --git a/drivers/reset/reset-imx8ulp-sim.c b/drivers/reset/reset-imx8ul= p-sim.c new file mode 100644 index 000000000000..d1b9511a5c6a --- /dev/null +++ b/drivers/reset/reset-imx8ulp-sim.c @@ -0,0 +1,103 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/* + * Copyright 2024 NXP + */ + +#include +#include +#include +#include +#include +#include +#include +#include + +#define AVD_SIM_SYSCTRL0 0x8 + +struct imx8ulp_sim_reset { + struct reset_controller_dev rcdev; + struct regmap *regmap; +}; + +static const u32 imx8ulp_sim_reset_bits[IMX8ULP_SIM_RESET_NUM] =3D { + [IMX8ULP_SIM_RESET_MIPI_DSI_RST_DPI_N] =3D BIT(3), + [IMX8ULP_SIM_RESET_MIPI_DSI_RST_ESC_N] =3D BIT(4), + [IMX8ULP_SIM_RESET_MIPI_DSI_RST_BYTE_N] =3D BIT(5), +}; + +static inline struct imx8ulp_sim_reset * +to_imx8ulp_sim_reset(struct reset_controller_dev *rcdev) +{ + return container_of(rcdev, struct imx8ulp_sim_reset, rcdev); +} + +static int imx8ulp_sim_reset_assert(struct reset_controller_dev *rcdev, + unsigned long id) +{ + struct imx8ulp_sim_reset *simr =3D to_imx8ulp_sim_reset(rcdev); + const u32 bit =3D imx8ulp_sim_reset_bits[id]; + + return regmap_update_bits(simr->regmap, AVD_SIM_SYSCTRL0, bit, 0); +} + +static int imx8ulp_sim_reset_deassert(struct reset_controller_dev *rcdev, + unsigned long id) +{ + struct imx8ulp_sim_reset *simr =3D to_imx8ulp_sim_reset(rcdev); + const u32 bit =3D imx8ulp_sim_reset_bits[id]; + + return regmap_update_bits(simr->regmap, AVD_SIM_SYSCTRL0, bit, bit); +} + +static const struct reset_control_ops imx8ulp_sim_reset_ops =3D { + .assert =3D imx8ulp_sim_reset_assert, + .deassert =3D imx8ulp_sim_reset_deassert, +}; + +static const struct of_device_id imx8ulp_sim_reset_dt_ids[] =3D { + { .compatible =3D "nxp,imx8ulp-avd-sim-reset", }, + { /* sentinel */ }, +}; + +static int imx8ulp_sim_reset_probe(struct platform_device *pdev) +{ + struct device *dev =3D &pdev->dev; + struct imx8ulp_sim_reset *simr; + int ret; + + simr =3D devm_kzalloc(dev, sizeof(*simr), GFP_KERNEL); + if (!simr) + return -ENOMEM; + + simr->regmap =3D syscon_node_to_regmap(dev->of_node); + if (IS_ERR(simr->regmap)) { + ret =3D PTR_ERR(simr->regmap); + dev_err(dev, "failed to get regmap: %d\n", ret); + return ret; + } + + simr->rcdev.owner =3D THIS_MODULE; + simr->rcdev.nr_resets =3D IMX8ULP_SIM_RESET_NUM; + simr->rcdev.ops =3D &imx8ulp_sim_reset_ops; + simr->rcdev.of_node =3D dev->of_node; + + ret =3D devm_of_platform_populate(dev); + if (ret) + return ret; + + return devm_reset_controller_register(dev, &simr->rcdev); +} + +static struct platform_driver imx8ulp_sim_reset_driver =3D { + .probe =3D imx8ulp_sim_reset_probe, + .driver =3D { + .name =3D KBUILD_MODNAME, + .of_match_table =3D imx8ulp_sim_reset_dt_ids, + }, +}; +module_platform_driver(imx8ulp_sim_reset_driver); + +MODULE_AUTHOR("Liu Ying "); +MODULE_DESCRIPTION("NXP i.MX8ULP System Integration Module Reset driver"); +MODULE_LICENSE("GPL"); diff --git a/include/dt-bindings/reset/imx8ulp-sim-reset.h b/include/dt-bin= dings/reset/imx8ulp-sim-reset.h new file mode 100644 index 000000000000..9f8fb8680a5e --- /dev/null +++ b/include/dt-bindings/reset/imx8ulp-sim-reset.h @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0-only OR BSD-3-Clause */ + +/* + * Copyright 2024 NXP + */ + +#ifndef DT_BINDINGS_RESET_IMX8ULP_SIM_H +#define DT_BINDINGS_RESET_IMX8ULP_SIM_H + +#define IMX8ULP_SIM_RESET_MIPI_DSI_RST_DPI_N 0 +#define IMX8ULP_SIM_RESET_MIPI_DSI_RST_ESC_N 1 +#define IMX8ULP_SIM_RESET_MIPI_DSI_RST_BYTE_N 2 + +#define IMX8ULP_SIM_RESET_NUM 3 + +#endif /* DT_BINDINGS_RESET_IMX8ULP_SIM_H */ --=20 2.34.1 From nobody Thu Feb 12 19:04:30 2026 Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 723E13FB8B; Sun, 9 Jun 2024 13:01:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717938081; cv=none; b=uxm5/HZ7msrIIVJxcizm6Q0O4Vpd0wOTNi5f02qC/4mwOZr9DZ67frn7UCq/p/P2wqh0iCMLlTPRvujUORfSpKO30p2ms9aAij0sUmXooGkNqroLM2pZjA7dhC+ZTE4Vw8Odoi7d/Njb+PTjqUbxwFt4bSJ2a0OEuidfYxt6HXc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717938081; c=relaxed/simple; bh=yy9gl9pQz3F5fgfnipmdtFV0zJl13QipSJnEg+3xNDo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=tZVOH7aPuTtLDy+68+QzMUcatqWfiDycMIY6BFgBZ8ys9xGnaJYMA/g7Ti3XJPh8CvYTn+oqLKnVTGnf4z1YBv6erRK6r+VxvpyxwCXOA1kJ1GaEpik4FTxNtphN0Kga3U864lN2Rqz/LcLDQ1wlva5KVtvbNX7P/stc7LZj9Ow= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=D1EGoU1P; arc=none smtp.client-ip=209.85.208.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="D1EGoU1P" Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-57c6994e2f1so702546a12.0; Sun, 09 Jun 2024 06:01:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717938078; x=1718542878; darn=vger.kernel.org; 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=wXLPtmmwbw0kH9maBt8kI0QUZhZ3U60BovT7L6yY3xs=; b=D1EGoU1PLHH3cFzHh+GYb2QTmuE8TD9nhRf6WHxSWOKBIhOQzReTTjSqJB9c/zydkL zkPIQ9CjGUZppPHQIpfHcgd6Wy6Hj8LadRQLE+VzAd+5hTw0etk3x9S4fXxl0i8QImZ9 TExwTcKMUMEi4K0Pp3LtTLGOeLF+aHnZyNSjDwXvLhiY/Lx7ux5A25KRc3StC1TVYcL2 UbQQnZHAX73KKJgFZBZ7xB1VwZlGC7vBCBDFOFBsB1MHXZbZKpmquIbueuRgyZ/Bx4o0 0B2ARj7s8dGCmMb94n1WgM/6NJFsA5yakOg2PB5+ec/d4eWxJyAt12oBuIQPvd3D92X4 fRDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717938078; x=1718542878; 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=wXLPtmmwbw0kH9maBt8kI0QUZhZ3U60BovT7L6yY3xs=; b=Z7//TI5yi4NjIp3/bZlTWRkj9ct7Mh3EKssAT49tmqf00wRHbwpmYrgYA1mUMn6Eyi K1PSVMPYUINk8Lm5udtK57w2PjZCFA72/hGvfqQcNDesu+TBiwxLXfPwgwFcieQVI20/ EqVp56JEJqhSOzp0/N6OV8I4SkdBRQac9ZCPh01sFNihMkt/xj6X3lYEWTG6q11HOcWk uhVE8QcXSYp2NVsD7j3eiB3SXJCYiHLrWunslDPleRxQ+iJ3TTw74ZYczwTGSHHVP6GM EJ9ezOk5q7Ab2SO2rdyjPEZ3BjTvY6v5z3/usEz61bFvZ1unJl/WU6dDAIUuJS8KaDHV 1o6Q== X-Forwarded-Encrypted: i=1; AJvYcCWtcTLe1/EzL39sXU5ZuyK0ubyb8MlBNrpkdQGAOrhduPciEZKrw4DQ/nd1zzFfsKi+4EGPHyhYjz6V/o+4pVlz+fl1+VHH8X3uVanR1U+/soedBMP9i7/KodvDXsSXRwk0k9montyu+Q== X-Gm-Message-State: AOJu0YzFIu8uoSPBlPCq2MhVviRgB5bMG+7ej4NEE52XEm2xJeDe2EoD fY85f+ikEsHRoUaiodDCYreVYY1Wv2pYBhnA+UtztS88cuHYcmLC X-Google-Smtp-Source: AGHT+IE9cuXF727TvRThgldcemuwA9M4zGggMb69uY2vp+iF779s8nKt7+bEy+hu202ctfIWzJUajQ== X-Received: by 2002:a50:c308:0:b0:57c:6d89:eaef with SMTP id 4fb4d7f45d1cf-57c6d89f0damr2532005a12.18.1717938077578; Sun, 09 Jun 2024 06:01:17 -0700 (PDT) Received: from lmc-playground.localdomain ([188.25.209.252]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f1841fceasm85961266b.70.2024.06.09.06.01.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jun 2024 06:01:17 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Philipp Zabel , Liu Ying , Sascha Hauer Cc: laurentiu.mihalcea@nxp.com, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/3] arm64: dts: imx8ulp: add AVD-SIM node Date: Sun, 9 Jun 2024 15:59:01 +0300 Message-Id: <20240609125901.76274-4-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240609125901.76274-1-laurentiumihalcea111@gmail.com> References: <20240609125901.76274-1-laurentiumihalcea111@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Laurentiu Mihalcea Add node for imx8ulp's AVD-SIM module. This also includes its children. Signed-off-by: Liu Ying Signed-off-by: Laurentiu Mihalcea --- arch/arm64/boot/dts/freescale/imx8ulp.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8ulp.dtsi b/arch/arm64/boot/d= ts/freescale/imx8ulp.dtsi index e32d5afcf4a9..1ffa4da23042 100644 --- a/arch/arm64/boot/dts/freescale/imx8ulp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8ulp.dtsi @@ -614,6 +614,19 @@ per_bridge5: bus@2d800000 { #size-cells =3D <1>; ranges; =20 + avd_sim: syscon@2da50000 { + compatible =3D "nxp,imx8ulp-avd-sim-reset", "syscon"; + reg =3D <0x2da50000 0x38>; + clocks =3D <&pcc5 IMX8ULP_CLK_AVD_SIM>; + #reset-cells =3D <1>; + + mux: mux-controller { + compatible =3D "mmio-mux"; + #mux-control-cells =3D <1>; + mux-reg-masks =3D <0x8 0x00000200>; + }; + }; + cgc2: clock-controller@2da60000 { compatible =3D "fsl,imx8ulp-cgc2"; reg =3D <0x2da60000 0x10000>; --=20 2.34.1