From patchwork Sun Sep 15 11:43:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13804776 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 8AFD0C35FE7 for ; Sun, 15 Sep 2024 11:45: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: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=4mH+l6efe7nU0WFZ7S2EM77Dno5UaL2UqZkqt5PiIGk=; b=iMWFsGJWM55G/sdlRbNCam98D8 GDIMbVAyECNepAk/S4jzLMPYO3ixWcawbNekO5Q17zLyA5L1RmhHcFGAUEItsI+eGbzhAsMGcpSOd HEr4J+bebF5qWz3CDY+kgaYWnLj83Y01NDA0Cnr4hZ3ntlHqUytiU17RjiLXlzYqfzz4dhve2FNWN S4Cqzf4sF2kA6llDpJ2nfAeQZp29PY7yyOrZcQNqbxySQRpTYz/8NBOJdpTPE+iGb7ygNR4hTnb2u 0snUrtGNBjYIRX017Y2VvqvdYURN1v+Z5omI5suDHLfZI9N7qtR3p52uT9WeJneVbDPXqhDIUSFs4 l2fBLP8g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1spngj-000000022JF-1pV9; Sun, 15 Sep 2024 11:45:09 +0000 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1spnfd-0000000228K-2C8f for linux-arm-kernel@lists.infradead.org; Sun, 15 Sep 2024 11:44:03 +0000 Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a8a7cdfdd80so354732566b.0 for ; Sun, 15 Sep 2024 04:44:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726400639; x=1727005439; 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=4mH+l6efe7nU0WFZ7S2EM77Dno5UaL2UqZkqt5PiIGk=; b=VF6CQi3a+6vYUOyH63hwnvOCYpzEwAF8c7jxYsyXZZ29yoc9NUku51zSyY4WBN1xLH ihjOqDb+7c3XmYRlGT6PKA8W6zxhxkXmhBe9lCANVVHmfbAGIeeerje8hg5xeACzk4L3 KRwUAEjnYtwb0xtCiWdPjdU+aCgoQ2tNwQZu78lEREPO9A7cvwEizDHuNeNhaTtJck+g G5N+yUU8b61zfAjSJI8RNkVbMVgy7DJaqQVs/4IIKrd1HP4KmsnqpdpHrcKeiAFxR/Br 74dIpWp1U5l2dD6fkcNWQttllQjCDFOW0ILZbIKntbxeQ5VLa9eh9NvsKnT3vzJLFN+O NFHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726400639; x=1727005439; 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=4mH+l6efe7nU0WFZ7S2EM77Dno5UaL2UqZkqt5PiIGk=; b=cZ1wv0S9te7vNGorgIUpAKDIjh9apka9Pwe7JTuYBvemo790gEaRyMGiHGhLTuzBxD EXpgEHmBpQ7R6N9uf16eYqEUrVdJaGIvX8TgE7XdsKFqQjGLeY/xCxCIpu4xYDLJmyyU jLht1lYYOyJ6Zvn85FsOnpZexD3twCA8kuJirfWhQs1LBnnB1bfxxtIlu7hbWCeSIpiB 2X3rkPx5Dnqw+hzdVG69YzSpRlBu5zYW82kgKAPRpXMHN5ISXoASHz5zfZ6Ex1cDPMjm 6YWjX97nREQDdZ+HXOPOeIvLd5vnNJg2OMFQH2fnBAjAjpq2oPqh6ae4nXUtehoE2612 WeIQ== X-Forwarded-Encrypted: i=1; AJvYcCWJ8+/uhuCXwOc/56ffmiIU0y9bwRH/aO8Db62P3v2H0hct5unraF9OsNhpVxGfit/+f3HvPF5ITzI3TVQW5bry@lists.infradead.org X-Gm-Message-State: AOJu0YzJMQ5SjWmJgsT8mmmEom/Yqk7QTK9Efnr2lTuh26DonrYZfdaN 6cw1wbg95H4aROvfZpm0Mzhk/uQGU4oV+n44+93oWvyjiLkxiajmbMTesCuC X-Google-Smtp-Source: AGHT+IGpuSYUApsVlxE96RegA0p6FojKMuwIiy0j7XRDE+Uns7f4FOzDKSl5hSO6PEgMpBfIYTWuqA== X-Received: by 2002:a17:907:3daa:b0:a86:94e2:2a47 with SMTP id a640c23a62f3a-a9047ca074bmr759433466b.15.1726400638297; Sun, 15 Sep 2024 04:43:58 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a906109676esm188778266b.33.2024.09.15.04.43.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Sep 2024 04:43:57 -0700 (PDT) From: Laurentiu Mihalcea X-Google-Original-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 v4 0/3] Add support for imx8ulp's SIM Date: Sun, 15 Sep 2024 07:43:08 -0400 Message-Id: <20240915114311.75496-1-laurentiu.mihalcea@nxp.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-20240915_044401_584006_0588BBA6 X-CRM114-Status: GOOD ( 13.26 ) 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 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 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