Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp242554lqp; Mon, 10 Jun 2024 02:38:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUIQT6o+sZseCsgpE8duc+uBzj5eEaWtQ05lR4p6dzJn2IGkhs5hGrTdXEsNV7h57ZoLr3ReqcnAs4YeMeuDQna3aFM5SCYvkjHpuDYvA== X-Google-Smtp-Source: AGHT+IEFgQfqpm8UWBdP+XFxYfNKuWRAoM522Sb24pbUV3Gqv7mXtfEnVTzNX8LCEi9DP9NKZubN X-Received: by 2002:a17:902:d342:b0:1f6:f3ca:c35f with SMTP id d9443c01a7336-1f6f3cac784mr46186155ad.63.1718012304847; Mon, 10 Jun 2024 02:38:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718012304; cv=pass; d=google.com; s=arc-20160816; b=wgymuXhS/m5jMEzw7/kFoH9aR6AcDP0zY9EgimJ0XEXyM0spH1J88TxDPppzovNF8r PaXpiObsRasOleTwJQSA55flLP0l3INNY24j3CJ61G4Q2PK8pZLa8jnKZhd4TCk/cr5r cku1FthPqxQpZIvlfuMm1Zlram1NDhPETN5Sow7Pcqkm9dEK5HuL7sl4lTkri328Sugm 0y4BfWifQ2QVhzCRbgsZS7S07qWAjTqxyu2VBlYYkzs4eDJytSwV7PfyF0n0+orebhGI A7/M0fRR1QEpu4BBcObR/T39SRwwcV1iWi9NhG2by8qOmR17qIMBDlx9FCxw2amtdXv+ +c2w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=C4yWlTloVbZ5SW0x56qOXKRjvHjmVwNqViyJLfc9etc=; fh=NNuRXrUL1jAJGYCRgZbmXKQzQTh6HSsrw0CKXVWbNdY=; b=mdcVMR9YTP1PVPQFr3Nx3Xswt+koQztY3xRvdnU/vJfFX95/MZ5WntkFw+ipqG9+nW xiLIXyafev+Dr2F+ja4TE0oYZPAKQD3SKl9TiHO21u0suEUKbVxXnpqRFY9r7LNzRIej BZzh1pwtd2huwcClPkEN9NI8mm9vegoWvOwUaugIdTvT1f6yMQlYh1BPgxejjBYmWeHP 3R3oDsCcY8cCS/i+Fbtxp+0/AB/4++nf1hizftj+gNOaBjfeeDOnF4gF26IoYA6YjjjP TX9jNEnR+3dOjlzHgtqTaVsAS7deRsYpajfHcPHl0/co3L2wfXbtXR+JT64GF4I7Agmb DcJg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PLOBC9CW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-207918-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207918-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd81984asi33927105ad.529.2024.06.10.02.38.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 02:38:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207918-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PLOBC9CW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-207918-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207918-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id A4EE7B26435 for ; Mon, 10 Jun 2024 09:08:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0E41173514; Mon, 10 Jun 2024 09:07:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PLOBC9CW" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1729E47A58; Mon, 10 Jun 2024 09:07:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718010433; cv=none; b=PUA1+92hx7VtzSU0259TKFLsCDUNMgeY4kNicw6h91Hu/9uKZTUcsMQrQbtoUugWcVY1MQdaF+O4rNf/Kjri4jRl0VxIb2j0iU2fhJ7H2tpYDdf8waPGOyQ6dWs6iGcvjLftOrLbrc+uljL1pxruGh+CmwFB/FREaALvRQ6oUCM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718010433; c=relaxed/simple; bh=Oe6aa/Sv/6QnbJTu+1EUV0CktmjLNuWgf1Yer3fRT78=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=t7TnYsS4Ana+BD5J3QFT1fClgBAdEBl+GyJH9dzing3EBSMKLn1yJuFSOJOyAEDOU+ear2VNG8e9CLwP1ncD9CGvEA9/xgN1jMk5lWduiajQRGcCJA9Fhbg3yE/SsKlduS+nn2qQc0ZUr1rPlmA0zTxWgBdaJBwlptLpJ2GZzsA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PLOBC9CW; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41491C2BBFC; Mon, 10 Jun 2024 09:07:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718010432; bh=Oe6aa/Sv/6QnbJTu+1EUV0CktmjLNuWgf1Yer3fRT78=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=PLOBC9CWZDed5NAwDsecmUULpmL68wKjoyo1E55ywQ4Z71xtN5Fb7w+XVqmrXY+vA ob8iDnr19X/bSzBgyw125RwvMvmsmMqRlkVL+SMKPy76qcXQlas+/DAKiQTXoSi0W/ Ct2iaPHzPq520RSM2y7Lk89JFIWhIWWNJbNzeMOmnRJ72OPe6y8Y+6Tb4RFEC0je32 M9a/w77RxwgkSk3YhAcZuleevO84TCYp/Q+51Mm+cEKc4GYjxB+PEGqYIdtuOPJ6H6 QdqlGJj9/NRzWJfDvvA1LNLQMPe+6F3V9PDb7AsWjxiEDf2Og0+9fj9qR4VmmB5/V4 ztqUUk8yQkiGg== Message-ID: Date: Mon, 10 Jun 2024 11:07:05 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/3] reset: add driver for imx8ulp SIM reset controller To: Laurentiu Mihalcea , 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 References: <20240609125901.76274-1-laurentiumihalcea111@gmail.com> <20240609125901.76274-3-laurentiumihalcea111@gmail.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX63hAAoJEBuTQ307 QWKbBn8P+QFxwl7pDsAKR1InemMAmuykCHl+XgC0LDqrsWhAH5TY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-3-laurentiumihalcea111@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 09/06/2024 14:59, Laurentiu Mihalcea wrote: > 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 +++ That's a binding, not driver. Keep it *always* with binding. > 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 > > +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)) { > + ret = PTR_ERR(simr->regmap); > + dev_err(dev, "failed to get regmap: %d\n", ret); > + return ret; syntax is return dev_err_probe() > + } > + > +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-bindings/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 Drop, not suitable for bindings. > + > +#endif /* DT_BINDINGS_RESET_IMX8ULP_SIM_H */ Best regards, Krzysztof