From patchwork Sun Sep 22 17:42:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13809175 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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 C2A64EEB5 for ; Sun, 22 Sep 2024 17:43:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727027007; cv=none; b=jY/CLA9Q0CnpBXPjdGHtqhs0M+QCTPW00ThzWfq4Swfe50lX/ayMoEeaSYFVuqCOCt5E276tqVaWx0aG4Jo9GS48QUIdJg75jp/H1NjF15X30OMbqZfMm0oG3GfFdZyZ3vRmx00Gq/ejCMGxOUiRuL2Oil6g7Zu1pdYm9lEZGAY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727027007; c=relaxed/simple; bh=mjvAP+JnaPfWNZUJhTl7ospoADxFXh1F9b20zOwM8bo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=N/v15s/t/RR8gFw9HlPRS5JJzQ1RsdLAU0BtelA6aDfE/Ux9z+6HDYM8p+XIdltnlmMzmOYaUK4J3VO0CaiEjboYjk1rzxPEnEwjGeF736xnshUdymKylUuGzKAzJ9+Iw9c1ShWTFHZn/4+2DgL02iO2tcMiz0ywVG5cO0fEl0M= 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=fb9FFMut; arc=none smtp.client-ip=209.85.128.43 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="fb9FFMut" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-42cbface8d6so46024525e9.3 for ; Sun, 22 Sep 2024 10:43:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727027004; x=1727631804; darn=lists.linux.dev; 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=sAjYhVQ4C8qjWITifRAvYNMOE8p4qGOmbG7rB+b/sOU=; b=fb9FFMutJFY5Qtw9hyS2xg0w5Br9T7Su7RlE6wn16voJZg2PWstied4K3plrCsk4O3 BjnrKrhk5P8VpJoTPqyNMECcgQdoy519/2XArLK3xxXnvEGLImQqtqt+ZOXdd/JjXoOX hptS6kCXFnfmkUBspfrlUMUgY9bJt3PL6+w+jmYg6Kf5jZ+R5GA2ytasHPtPkbI/MKb0 Lki9YJdYq0WI9z+WlxxqAMO8AkqV9Zg3B1TWnSPuejxhZ/wpAg3bG+ExD2D6fykMBTrV ro8ofJrYWNn2P/vOLvZ4Pj/KpBuQZf9b+w6CI8XXAKt5KF++WlkI6ys3+qKsLI/lM1gO biuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727027004; x=1727631804; 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=sAjYhVQ4C8qjWITifRAvYNMOE8p4qGOmbG7rB+b/sOU=; b=gIzioxtyubqlxqtnhOwUOVhVyW2Av5cVU+YHYAhOKJ1C9WZDyiRjHpWozbxpHU0CFF 8024Dcu721mOgPueWqNjY2S8SK0Rj3Fd1aJoRxEBoGRYnMOI1PfOdrjLWmMrQF+JOVkR dr4lJyLiDszyejO/bxxrBbuimTPtsAlXsqJMFPhDEyogSqS3Y/zbe6p/hGddyLh5OieK pMBTn7YF4Vk3EzS//tVpCfHGqDsGhBw1nm/f/TwJRUFLBRzBAtkUk6mrTWWLHavIVj47 asmIx8gX+AqWYYV3P3vDUjqO54WfuPmuyPhYfuDwVm+E2ZJkTr67CxXbolSSj6P6xQgD DnwQ== X-Forwarded-Encrypted: i=1; AJvYcCVX7myv/4/KVdEJQ7oEdVJr543EbeCFg6//buFrvtFXvTAYrP+4dfI9T8uX07tdippdh28=@lists.linux.dev X-Gm-Message-State: AOJu0YwctF3mL29cjpciCbutKFtb5XjcigL6SRUKR/CUCZH4E/QRVgqd cxm1FjMKI6AnZwnyuTax/An7VzCF9bqPen/RziYAQh/Q5eRsU9oK X-Google-Smtp-Source: AGHT+IHp7HvXth4+/t06EUgh6Jxqi0dI/PkunLPhvuAKvjxVJB+S7Y/BjsFPWYMR3mh0rKxVkNkSRA== X-Received: by 2002:a05:600c:1e23:b0:42c:bcc8:5882 with SMTP id 5b1f17b1804b1-42e7abe418fmr105816945e9.7.1727027003879; Sun, 22 Sep 2024 10:43:23 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42e7ae60ad0sm80758535e9.1.2024.09.22.10.43.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Sep 2024 10:43:22 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Shawn Guo , Philipp Zabel , Liu Ying , Sascha Hauer , Conor Dooley Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 1/3] dt-bindings: reset: add schema for imx8ulp SIM reset Date: Sun, 22 Sep 2024 13:42:23 -0400 Message-Id: <20240922174225.75948-2-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240922174225.75948-1-laurentiumihalcea111@gmail.com> References: <20240922174225.75948-1-laurentiumihalcea111@gmail.com> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Laurentiu Mihalcea Add schema for imx8ulp's SIM reset controller. Signed-off-by: Liu Ying Signed-off-by: Laurentiu Mihalcea Reviewed-by: Krzysztof Kozlowski --- .../reset/nxp,imx8ulp-avd-sim-reset.yaml | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Documentation/devicetree/bindings/reset/nxp,imx8ulp-avd-sim-reset.yaml diff --git a/Documentation/devicetree/bindings/reset/nxp,imx8ulp-avd-sim-reset.yaml b/Documentation/devicetree/bindings/reset/nxp,imx8ulp-avd-sim-reset.yaml new file mode 100644 index 000000000000..f6797966fd35 --- /dev/null +++ b/Documentation/devicetree/bindings/reset/nxp,imx8ulp-avd-sim-reset.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/reset/nxp,imx8ulp-avd-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 (example - 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: /schemas/mux/reg-mux.yaml# + +required: + - compatible + - reg + - clocks + - '#reset-cells' + - mux-controller + +additionalProperties: false + +examples: + - | + #include + syscon@2da50000 { + compatible = "nxp,imx8ulp-avd-sim-reset", "syscon"; + reg = <0x2da50000 0x38>; + clocks = <&pcc5 IMX8ULP_CLK_AVD_SIM>; + #reset-cells = <1>; + + mux-controller { + compatible = "mmio-mux"; + #mux-control-cells = <1>; + mux-reg-masks = <0x8 0x00000200>; + }; + }; From patchwork Sun Sep 22 17:42:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13809176 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (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 723B233CE8 for ; Sun, 22 Sep 2024 17:43:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727027013; cv=none; b=TIh6rxEoTm9br4NR6REbyeRXi/VbtlweeWFbrpGJDm8aTyl+Hn+pfpZPeSSSIWyY05BW3NtsXDnflmPnDGAqIf/sisyqwWBCedmIbzASClOuHUPdPNEKcla6Nca4L7kVM8r96A2yMr0X+tn8QUjlhl9Og6q9fL6eNFRByuS+Nwg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727027013; c=relaxed/simple; bh=qvomAVsgjVquavMzr9zL9linzNKq+RaoPdejhXdE3WA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=KFL75/Gkptf02a6rjp8Mkt0JdHQ0zcZ6XIJ1q/4xA59xv53R4ZA9j7yT4zewf78+DdQ2/yT5Zzq+eBJmsOqWWy5YQQ6KkOq/Y+dRc0xo6mKPQb3FjAfeywNUSrQF8Su9/cNybxruTfJsyIEzeQ235pqthxLH9rA2+XXG6U5VSEw= 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=A5jVhjGK; arc=none smtp.client-ip=209.85.221.46 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="A5jVhjGK" Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-3780c8d689aso2478287f8f.0 for ; Sun, 22 Sep 2024 10:43:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727027010; x=1727631810; darn=lists.linux.dev; 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=bwzmLNpjWJRdVldJqN02tTMnPCndIPTBIEsSbyh7yKo=; b=A5jVhjGKGd0jVCI1fGUvSwp1nqwZBAAUgHuoAMKpQM8ikEtolkYfWNCW0IOAOUmInQ 2bbIbLZ03yATOm13UsI2xaKNHbXHurZadef+IVY5N9ywLQPZ7SuWtkrKti2FktdkBG9j le+K71tW96eG3lpSImRqFm1SuB+pZrICVFiDk9E0CP/edVIgGUD2PaVTAvBGkvjO1aX9 msp2xru8vbjOy8nwsO70leoK5JZKJM+XpS8IA6tmDkyBtguT6TURjGTkH9nYa4yxkerf bfIEuXYzyhTZbtHcSBPKSjzzKPMfgV9YfJkXzwaM5E/Yqa08uRxI+wZJraq/DXIObdnH Jfzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727027010; x=1727631810; 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=bwzmLNpjWJRdVldJqN02tTMnPCndIPTBIEsSbyh7yKo=; b=v6j/MNEmn7qjY8xFryo1qM1JUH1FXLxdG0RyB8oyqt6hPwU9eH/llMUHBlQBOhvRvv Ahh2uZGyNJS+ne/wUPPKwQzHZP7ms9XMmL4F1OeQ1UWr8KymIhqkeVZqph5oxlixty7G HRBVcjWYnHXII+XKBUPs1jZraXy1IpdMmnOgkVVp7e2hf24eofOGR98lqbD7YoxiMii3 oY7Rwzk9fHxE8pFiUVO4IY01PX5pO+vDcBTkD6nRXYorHN9XbtXuYMpXqg8iKhBuHacp CcFYRQnzLwhyqH9/RDEXzjnS41h+Thxi0YGDBvF8DW7EzbN9/TquLSKnxxy3FJd8KK7q MCHQ== X-Forwarded-Encrypted: i=1; AJvYcCUxYQCKu/ueIP9IYVA69lerDHCRNIQFbwO3JiIhlpyLxekkOGs5Ye+ALevkf+uateig0sQ=@lists.linux.dev X-Gm-Message-State: AOJu0YwIyEVJiBxzvMWPVR57Sbggvrvv+DYJlWqkEdqaKHPIOk+PM08x qajIDNLddECh0r6YpBZwcFS0jZunz3JI88P+haI/4dMk4o5OwAEPHcIyuWMj X-Google-Smtp-Source: AGHT+IGmf+SEoc4Nnw3sjCTGVuvVFiaxnZHqQwUZud8R56zHPcES+eUxclGIeTe0JCAzyU1BBYYN8w== X-Received: by 2002:a5d:6947:0:b0:374:c040:b015 with SMTP id ffacd0b85a97d-37a43197c90mr4221315f8f.57.1727027009474; Sun, 22 Sep 2024 10:43:29 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42e7ae60ad0sm80758535e9.1.2024.09.22.10.43.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Sep 2024 10:43:28 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Shawn Guo , Philipp Zabel , Liu Ying , Sascha Hauer , Conor Dooley Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 2/3] reset: add driver for imx8ulp SIM reset controller Date: Sun, 22 Sep 2024 13:42:24 -0400 Message-Id: <20240922174225.75948-3-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240922174225.75948-1-laurentiumihalcea111@gmail.com> References: <20240922174225.75948-1-laurentiumihalcea111@gmail.com> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 | 106 ++++++++++++++++++++++++++++++ 3 files changed, 114 insertions(+) create mode 100644 drivers/reset/reset-imx8ulp-sim.c diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig index 5484a65f66b9..492081354d03 100644 --- a/drivers/reset/Kconfig +++ b/drivers/reset/Kconfig @@ -113,6 +113,13 @@ config RESET_IMX8MP_AUDIOMIX help This enables the reset controller driver for i.MX8MP AudioMix +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 4411a2a124d7..38354e701811 100644 --- a/drivers/reset/Makefile +++ b/drivers/reset/Makefile @@ -16,6 +16,7 @@ obj-$(CONFIG_RESET_GPIO) += reset-gpio.o obj-$(CONFIG_RESET_HSDK) += reset-hsdk.o obj-$(CONFIG_RESET_IMX7) += reset-imx7.o obj-$(CONFIG_RESET_IMX8MP_AUDIOMIX) += reset-imx8mp-audiomix.o +obj-$(CONFIG_RESET_IMX8ULP_SIM) += reset-imx8ulp-sim.o obj-$(CONFIG_RESET_INTEL_GW) += reset-intel-gw.o obj-$(CONFIG_RESET_K210) += reset-k210.o obj-$(CONFIG_RESET_LANTIQ) += reset-lantiq.o diff --git a/drivers/reset/reset-imx8ulp-sim.c b/drivers/reset/reset-imx8ulp-sim.c new file mode 100644 index 000000000000..04ff11d41e10 --- /dev/null +++ b/drivers/reset/reset-imx8ulp-sim.c @@ -0,0 +1,106 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/* + * Copyright 2024 NXP + */ + +#include +#include +#include +#include +#include +#include +#include + +#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 + +#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] = { + [IMX8ULP_SIM_RESET_MIPI_DSI_RST_DPI_N] = BIT(3), + [IMX8ULP_SIM_RESET_MIPI_DSI_RST_ESC_N] = BIT(4), + [IMX8ULP_SIM_RESET_MIPI_DSI_RST_BYTE_N] = 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 = to_imx8ulp_sim_reset(rcdev); + const u32 bit = 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 = to_imx8ulp_sim_reset(rcdev); + const u32 bit = 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 = { + .assert = imx8ulp_sim_reset_assert, + .deassert = imx8ulp_sim_reset_deassert, +}; + +static const struct of_device_id imx8ulp_sim_reset_dt_ids[] = { + { .compatible = "nxp,imx8ulp-avd-sim-reset", }, + { /* sentinel */ }, +}; + +static int imx8ulp_sim_reset_probe(struct platform_device *pdev) +{ + struct device *dev = &pdev->dev; + struct imx8ulp_sim_reset *simr; + int ret; + + simr = devm_kzalloc(dev, sizeof(*simr), GFP_KERNEL); + if (!simr) + return -ENOMEM; + + simr->regmap = syscon_node_to_regmap(dev->of_node); + if (IS_ERR(simr->regmap)) + return dev_err_probe(&pdev->dev, PTR_ERR(simr->regmap), + "failed to get regmap\n"); + + simr->rcdev.owner = THIS_MODULE; + simr->rcdev.nr_resets = IMX8ULP_SIM_RESET_NUM; + simr->rcdev.ops = &imx8ulp_sim_reset_ops; + simr->rcdev.of_node = dev->of_node; + + ret = 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 = { + .probe = imx8ulp_sim_reset_probe, + .driver = { + .name = KBUILD_MODNAME, + .of_match_table = 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"); From patchwork Sun Sep 22 17:42:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13809177 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.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 637DC49631 for ; Sun, 22 Sep 2024 17:43:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727027017; cv=none; b=ePc2h4K2qvX0BXm+oErjn4thxtt9t3BU58VEXK527BBj+ymgABSGI/s3Wj1zfcYH91YaehETbSMaE3sMPUh4n4ZciCfKYV8aFDWI457ICjY54Y4YIdFFIqnPzBmds7ur9d1dd2aS/uavvYH86CtQqvXuT9sQiaW1AhXRdT8fXa8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727027017; c=relaxed/simple; bh=yy9gl9pQz3F5fgfnipmdtFV0zJl13QipSJnEg+3xNDo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ARCai98v8SYzCruG2ZuWsBeEhbZf0fmGIX+GRYELkPkHgsuaaOyFu69ULpKhm7qBn6gIMl73+0AxW8XAxn7WPLKot3rouiLcdIWvBEvF/mbF8HDNVGYTueAZrit/BGVL5nMrca1ayLVpe3OTsXi8XSRDy88+m8BsN1ZRn1wR92E= 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=M6GpxrOt; arc=none smtp.client-ip=209.85.128.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="M6GpxrOt" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-42cbbb1727eso31759935e9.2 for ; Sun, 22 Sep 2024 10:43:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727027014; x=1727631814; darn=lists.linux.dev; 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=M6GpxrOtJNgLba/+8W0LbTS1veNjEYgjEKgKi3MgLgnDghmSWHL9cUZCcHLiJE4sfL eqZlLQTdSBfkLDg62oHMe2f4A0Wl0bBiAcPUZ1b0qZ+rmwZ+CY02l/kbm9X+nzuEi/gL MKOuPJyyZYE03fHFzsH/xX5u3BVTvJQd/HB0pQFMpJtXljuIXHb1IpZAg/q1H+z3WdzR RWBum6Qhux4hnkFeIk4yE+6rfg9wWUsm6+g4MU6pCaa7zCDtPeSC5xH73/ZjXveVQbDq WQJnR3wkc6/BxY5fZmaRntzVbHPx0MQK/wm9tecPDGyQZsT+9GrRHNk4ZW2EHbeSGlWJ FKTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727027014; x=1727631814; 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=oKUFJGE9kJvFttru+Ie1FHRYAvgo4sQx9lybHjXtoUjkhRwjmzwxIIRFvEJaXx1M0U VoMDpOuNY4lLtK4HOTvBqyuC5jLZZoyD/6NtiX0uCYz+0qydVdwQ1SV8zKN3IpwPzfYK LTeqllp67/haruwQXNZtae+kFTAtwE6axfKe2AkLQroNHFX5tPgV0/9Iw4lOgZVNQS8Z 9Pr3x03ReSBTDEBR4HoHRF86A0eh1joD/FXtkHyn4V9DM5CJxvvhkyyNVFwssiGPBUWe Ga5/5jJhjmrBvSVanhdhcNauhfKUwDb9B16Qhf8f71GGRbsDlSt5lBqgrNfcFccEkZZ4 sqHg== X-Forwarded-Encrypted: i=1; AJvYcCXT4rqpVmBp32y1Ee1p1F3TV87R44dv5ePAUkD9TM9RGgPxdnsc2ubkC5muku3Qrl7mjfE=@lists.linux.dev X-Gm-Message-State: AOJu0YzKXQU4KhR1tGkzzs+C3Fhv76j7U/oR8eAb00Qn4xq/gtS8Zitv zkgIpBCZs8c/oNezitPhSI6OYDp6XaRkOdic5JQKpHSn/i77YUCA X-Google-Smtp-Source: AGHT+IHphXu0dGNfZ9BDNAw2gAnN60BBDuqllWZxOcm2vfWqG7Fy/AldhWq3sNJHPEbqGKEbIpHQ2w== X-Received: by 2002:a05:600c:4695:b0:42c:ae30:fc4d with SMTP id 5b1f17b1804b1-42e7abe12b1mr74954615e9.7.1727027013486; Sun, 22 Sep 2024 10:43:33 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42e7ae60ad0sm80758535e9.1.2024.09.22.10.43.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Sep 2024 10:43:32 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Shawn Guo , Philipp Zabel , Liu Ying , Sascha Hauer , Conor Dooley Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 3/3] arm64: dts: imx8ulp: add AVD-SIM node Date: Sun, 22 Sep 2024 13:42:25 -0400 Message-Id: <20240922174225.75948-4-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240922174225.75948-1-laurentiumihalcea111@gmail.com> References: <20240922174225.75948-1-laurentiumihalcea111@gmail.com> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 Reviewed-by: Daniel Baluta --- 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/dts/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 = <1>; ranges; + avd_sim: syscon@2da50000 { + compatible = "nxp,imx8ulp-avd-sim-reset", "syscon"; + reg = <0x2da50000 0x38>; + clocks = <&pcc5 IMX8ULP_CLK_AVD_SIM>; + #reset-cells = <1>; + + mux: mux-controller { + compatible = "mmio-mux"; + #mux-control-cells = <1>; + mux-reg-masks = <0x8 0x00000200>; + }; + }; + cgc2: clock-controller@2da60000 { compatible = "fsl,imx8ulp-cgc2"; reg = <0x2da60000 0x10000>;