From patchwork Sun Sep 22 17:42:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13809179 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 01F19CF9C64 for ; Sun, 22 Sep 2024 17:44:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=G0/0BxLdpF3XJIV7yia9b61Vkm7p/ygaIQczFUDvFiQ=; b=LCrErot7TSx6WPly2kGlSwbWDX C/dvDChzzvdxsMskIIG8VFbFHtOzqz4hF21atug2kfht3+W0pPzculLWWZeKwoHaIkResb7EZMIQ2 +eINrU/vjsfE9zAiuEQl2GY1y+fd2LqoqgcPj2Xj5Upf+uWyE7YCOqW032Ri2m5skcO8gOsFdks8R 0e0QaJs+Vh7rfB0hYoNDjRf8tV6IqDdd9O3Rdwn/FapbFvSt846csamHWLMtDdeUOwmN2EefaIMNc ug7/V4og9zIjB8Wo3iTbc6a5v3g7UBBwR7f4r2ztnxjpo02ZFMlDtZV08NeuGTB+wciKcSfI5y+gt nZbHUtyA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1ssQd8-0000000FVj3-2Cbk; Sun, 22 Sep 2024 17:44:18 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1ssQbz-0000000FVVG-494n for linux-arm-kernel@lists.infradead.org; Sun, 22 Sep 2024 17:43:09 +0000 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-42cb6f3a5bcso46043765e9.2 for ; Sun, 22 Sep 2024 10:43:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727026986; x=1727631786; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=G0/0BxLdpF3XJIV7yia9b61Vkm7p/ygaIQczFUDvFiQ=; b=ngbtvThfbKXaUnuru46PcSFJCDG/vouBvpG0BJl6N80JmGJWTs4JMqe7lVrKTAdTCe OuIz9qU9DvqnPT7lcXh7lP8059kYiVBh1HrlMdvmHftftMMqJ5aVRe7TQaqwBY+EBnxo zKKaCGT1cPRuIhlHNtmc5aUlVJaOsE4DGUyjjfZpn1CGVrzGDiuS1nCYSf68g0t0xHzL L2VemVpY1nvE5ZVFbEWLDLdYMkV3HRDC1B/1a379PJ9M5rix3+TXnjUSO1sqQGK9LQz7 m11mfyhoKjqSoAJjUKNIYc5Guj0VxPocG+XsrJmapy0YoKbiom9aAtWZRQEGhasG4Cs5 qNeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727026986; x=1727631786; 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=G0/0BxLdpF3XJIV7yia9b61Vkm7p/ygaIQczFUDvFiQ=; b=vloS+9qjo0BiTC+9/0bVZCKTe1cIKnbaBAISjSu8yrzCiXBdWkGUamvKg+frmPO1Zt gSkkHJDACGVQ2wXNcJVbMuH/5HZjv+AwBMMinTluAEP+rthdwOnCOrxhw+ik8CdFirYM WZqOoH+5blpvvQLZPvCRhvWJQzyAmBNjYPwc2bp4KasqKX2D+CqTS5kenwiuSTkuz4Hb Sp9h1CfAcYrf/B7VBwXJjvUuzU9Xw9VOYUuR1jbD0GPM7MESQlWTynTTmv9IKWtAX/cT dz3ERNXgJg9RsFvb5K5n4JDTpuDilGB0gy+JlypReE85uP1wyipbdqQwlqTN4bxzD/h0 VgCA== X-Forwarded-Encrypted: i=1; AJvYcCUbTs0Z9mdR+NkbyvmRQyk9SD6vryELUbmFYODf0eT9TDV3N6uyEfH+jUJpcTDROBhRevofV3Qrcw1/edGm5Rzs@lists.infradead.org X-Gm-Message-State: AOJu0YxiCxyPh7gJGGntqCJHyhts0DRX4unpFt2Ug5SHGmzYJBquFMH1 /jEwrya35t82H6rNSVyDPxNJhBWUthoRHhhdMLlb/PbsSe7aV43rIbnnxsGe X-Google-Smtp-Source: AGHT+IGchA2fv4nZU1ta/RUrDf2dN/GNHctnNcz+zD6gzD0c9IOIG5YzEx5w9yEWjC1Qqw4lvnsGAQ== X-Received: by 2002:a05:600c:3b92:b0:426:5e1c:1ac2 with SMTP id 5b1f17b1804b1-42e7abf06b0mr104218855e9.8.1727026985479; Sun, 22 Sep 2024 10:43:05 -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.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Sep 2024 10:43:04 -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 0/3] Add support for imx8ulp's SIM Date: Sun, 22 Sep 2024 13:42:22 -0400 Message-Id: <20240922174225.75948-1-laurentiumihalcea111@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-20240922_104308_055972_4993FE3E X-CRM114-Status: GOOD ( 12.85 ) 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: Laurentiu Mihalcea i.MX8ULP's SIM (System Integration Module) allows control and configuration of certain components form the domain it's assigned to. Add DT node and schema for it. Its child shall also be included. --- Changes in v5: - Fixed SoB mismatch - Link to v4: https://lore.kernel.org/all/20240915114311.75496-1-laurentiu.mihalcea@nxp.com/ Changes in v4: - Addressed Rob and Krzysztof's comments - Link to v3: https://lore.kernel.org/all/20240715164514.8718-1-laurentiumihalcea111@gmail.com/ Changes in v3: - Addressed Krzysztof's comments - The "reset: add driver for imx8ulp SIM reset controller" patch might generate conflict when applied to Rob and Shawn Guo's trees (for-next branch). Tested all patches with linux-next, next-20240715 tag and no conflicts. - Link to v2: https://lore.kernel.org/all/20240609125901.76274-1-laurentiumihalcea111@gmail.com/ Changes in v2: - Reset controller is now also a syscon provider. - Changed vendor prefix to nxp. - Link to v1: https://lore.kernel.org/all/20240516204031.171920-1-laurentiumihalcea111@gmail.com/ --- Laurentiu Mihalcea (3): dt-bindings: reset: add schema for imx8ulp SIM reset reset: add driver for imx8ulp SIM reset controller arm64: dts: imx8ulp: add AVD-SIM node .../reset/nxp,imx8ulp-avd-sim-reset.yaml | 58 ++++++++++ arch/arm64/boot/dts/freescale/imx8ulp.dtsi | 13 +++ drivers/reset/Kconfig | 7 ++ drivers/reset/Makefile | 1 + drivers/reset/reset-imx8ulp-sim.c | 106 ++++++++++++++++++ 5 files changed, 185 insertions(+) create mode 100644 Documentation/devicetree/bindings/reset/nxp,imx8ulp-avd-sim-reset.yaml create mode 100644 drivers/reset/reset-imx8ulp-sim.c