From patchwork Sun Jun 9 12:58:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13691245 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 81635C27C53 for ; Sun, 9 Jun 2024 13:01:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PNlLyxxKLd1AnIJFnifT9IY/NoWSHbEEnf/z4YTMVOE=; b=XxPE3LmmmkiBm5 n1CpEJuNzW+by0VhWhYR33qSl0akBaPKbqEgtMxQJLJoc4Oq2Y0/alnotPXBcq3zTa0BWwo0lqzBf 1FeNJRq4fDm7u8h6fNMqqYNAt/SHfYHPJ6imuYja8ri3urLKURdRSzAfggBEUBsNemTgpomwKHhNQ 5GsP440PNt9ktv8Z5VV2X/JSi41MXZ2qvA5oiq9vjlJYq/uQHmb2QiodP2igclmxKx0TDpftbS5OR blONtoOlc3djitVnM4oohHJxOJx42nJun1uyx/VGLOThHGBIDzafHSX/4JPcjRvfgKdt1UHXS1tT/ kaVsY0rTeFmwiKtPl4tQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sGIAc-00000002bvf-3Z4F; Sun, 09 Jun 2024 13:01:15 +0000 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sGIAZ-00000002bv9-2ADn for linux-arm-kernel@lists.infradead.org; Sun, 09 Jun 2024 13:01:13 +0000 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a6e349c0f2bso263134066b.2 for ; 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=lists.infradead.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=ICwtjRVXylBawJJVlVsx7FHLMwihHv6/Jxd+8/Xk3NlkzSfmsOBLWTc2b0rsNFx7y6 IYMxTR2YmSB6yO+JWISGr5euPAUwd622/c1Ikt/cV6lbJhrFK3EzQPx31VspJ7dPlsHw BjjPM/t2T5oKNXIq7oSAxTwAZKG75ZhOuTymhJoQs81jA+IZo/U8S73AgIJJx5p19RVV LnPGrrIV33Y3ZtGnSFmu7zjjFrUJWIpTAyrqLVtgMTWwIqIutUmYrxBu3NTS6Jn31/oM d8PxodXNiU9CNLQJlGdaz052mc8/2UJwnrI53/cgKGcMgpYnl3Ap7YKKZVSQNKm/qLlV lN1g== 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=MHpB491GvnMmbZ+FPZpbkEXCnsBeb7mDQqJsDuYYeiMTwYZds6b/GyPYPvezT0oVb5 TfPPvb3SnA1ayz+U0uQ+TDMWCSsNjMUv3bxEgg6Uf6g5MKMP4AY9cDBiuvelNGVvgFVi f36hGVbhM852q68dlqKvCh7VVDKNJ6790j2Ufso5vVnchhg+QEiRphPjFSG7jgTsh+6u YxRz0uNRd1SK7/e8lTA425KNdPB3Dpape7m1v0RP4SanM9gb9cVWewl2CQsHyv4q/oHn 1SLG/ywyv/PMDkb2eerLMdRAbzbe890AtvklOTgR4g6NzNm1Xa+Ysxsj6OgF/y9uU4Qn DqvA== X-Forwarded-Encrypted: i=1; AJvYcCWDcpAca0RtNVnMnX0koPqfUuWsK4MLqw7cxxjKJ6RfxAeMEef2KixAouXAF9RDEFUPIYbVl+0NnLvPcGBDC+J2MoJBU5NvS/G6W+EPB2ZlKzz4vsI= X-Gm-Message-State: AOJu0Yw+hzbkLJhhH78KLUGrvn2+eRDjjpNg3csmRuz5ZJj1DP5618gm oSGQWfQn5kKCIBXU/8IU9g13rQ6xW+dPyrRbLtE6hTfCDEB6uZq8 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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240609_060111_590316_FAFFC5CE X-CRM114-Status: GOOD ( 13.17 ) 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 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 = "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>; + }; + };