From patchwork Thu May 16 20:40:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13666522 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 4BE44C25B74 for ; Thu, 16 May 2024 20:41:55 +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=pWE/GrRgCSecalEI5W5fn+mt4vOO07SIm2Au7qu/7y0=; b=VIyWUzhs2GMTCK 6g/6NBP2986zc/9pDPxjhCokqNnAWc0Pz4ll/3mKkiNX5zjO1TzAQGPs/scd5DAwck+nZHU1F4soo jP7WGL/j6tNVWy5hA6XwGQAIsytWP+EuZv2piNyjf12Eu+g6HgExCYfyfTD13+t3998Mb9aQfTsg5 39zpcg2CPzAI/pDCUfAb6X4HpCYsqJwVGllqegeoxgfcrIvokMVPnPkK4yU+on5Qo3pBy8sM4ZaIR Gc097WLt6ntSc0HEi96q2zyid9c0MXBqUXse2PQyf/uwH8fPeSoQuspe4ZIkY6QAbE9eA89/JMu+E VMVupjmP5Fv0qR7ChqMw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s7hv5-000000065mX-1Oab; Thu, 16 May 2024 20:41:43 +0000 Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s7huw-000000065hQ-3qRr for linux-arm-kernel@lists.infradead.org; Thu, 16 May 2024 20:41:36 +0000 Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2df848f9325so14874301fa.1 for ; Thu, 16 May 2024 13:41:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715892093; x=1716496893; 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=Opo8rK0GjT1pcxD/DdT5h2EA1MA57S7z8/+NMoMMi8Y=; b=FxEadYe+SdTwb35iJ5ze/lXoHPfvZalzX2Swan3uHRGDdH1r2d1st4MhGBJtYzU1n0 Qr3H7Gea1LHUg5yMloX9NuCsN8j7ag04mfZ6crdcJxmJX0J8CHYHMqnzgq4a4dDoWxzX CTdFz6stayc5L1/Rex+LJmim8gsHtktaqoeLQDItUk/hdHqEYfeELC3ADSIm6EQrMh1n Mv3LPCtU+qDiFCg+yIx55DL/LymunFAIn3YQO7f5UhRdGRW9/ik8G16V96DpdLQvdOQY r7kVbH81nAJj3fWrg7eMoBX9OGD3O7llg0n32MabbpCm8Fv/k/iF6PAFIREtGEvf1wer V4Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715892093; x=1716496893; 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=Opo8rK0GjT1pcxD/DdT5h2EA1MA57S7z8/+NMoMMi8Y=; b=IeWsfO5N46qPcHhMadEtv0Mm+4WPJaKfSzoJ9cYarRTmVWxEwbarGpn6uDmhKR2Mpa 0vYQageGbpB7rJuony0oLho4YXXQl+de4fbgoDpMGMVBYJCFghAOWKYAIbPZiSIS5TUG 4fjrFmok5I1c1k1BTslcdbiqLMhCBwzcDtG31xHl5IsmVUVxX+2rj3Td6K0b5tAwn1O5 2fZ6Djukkr8SdbunNGFhBaoHuarAxZznhSZsi0aX1cOvpDqPbIIMu15+u7AvM0DL8sD8 NMqjwSBdhADRggRMEu60q2AUiKhTAPLE9OCHCJIzicJC4/O49rKYrspYGOxJKvRGcC0B bm2Q== X-Forwarded-Encrypted: i=1; AJvYcCVE+q5dSsuR1GBS6Qj4GThXUxoJ/ctTuNVQI/Vn8GRucUhq2YVcqJxbmHl0mjpeGtyKLvskB3GthxNz5y3+gByr882gH6Ho1KkZBQacMfolfPEOvn0= X-Gm-Message-State: AOJu0YxYKPeCBIvuAh/jWfgxcNnpeAMz/HBhKVub7gVEBHgqQ5jXrrte iNk2q9vnxQvH2mCublQv6Gvco+RSS7eG81WpVe677QRabn/uIg+E X-Google-Smtp-Source: AGHT+IFkZ7z3jVZAtbsPTlP+QbCw2nX9bvAx9eVFbzWe4AfgwJu6Me5+ek3irY+a0N8SYp2fo3MWDA== X-Received: by 2002:a2e:7405:0:b0:2da:c37f:655e with SMTP id 38308e7fff4ca-2e51fd4a7a6mr124569501fa.16.1715892092957; Thu, 16 May 2024 13:41:32 -0700 (PDT) Received: from localhost.localdomain ([188.25.209.252]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5733c2b8f7fsm10859828a12.66.2024.05.16.13.41.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 13:41:32 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones , 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 3/4] dt-bindings: mfd: add schema for 8ulp's SIM Date: Thu, 16 May 2024 23:40:30 +0300 Message-Id: <20240516204031.171920-4-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240516204031.171920-1-laurentiumihalcea111@gmail.com> References: <20240516204031.171920-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240516_134135_062669_4029E89A X-CRM114-Status: GOOD ( 14.61 ) 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 i.MX8ULP's SIM. Signed-off-by: Liu Ying Signed-off-by: Laurentiu Mihalcea --- .../bindings/mfd/nxp,imx8ulp-sim.yaml | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/nxp,imx8ulp-sim.yaml diff --git a/Documentation/devicetree/bindings/mfd/nxp,imx8ulp-sim.yaml b/Documentation/devicetree/bindings/mfd/nxp,imx8ulp-sim.yaml new file mode 100644 index 000000000000..fbb17c06e3c0 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/nxp,imx8ulp-sim.yaml @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/nxp,imx8ulp-sim.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP i.MX8ULP System Integration Module + +maintainers: + - Liu Ying + +description: | + 8ULP's SIM provides control and configuration options for + some of the chip's components. + +properties: + compatible: + items: + - enum: + - nxp,imx8ulp-avd-sim + - const: syscon + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + mux-controller: + $ref: ../mux/reg-mux.yaml + + reset-controller: + $ref: ../reset/nxp,imx8ulp-sim-reset.yaml + +required: + - compatible + - reg + - clocks + +allOf: + - if: + properties: + compatible: + contains: + const: nxp,imx8ulp-avd-sim + then: + required: + - reset-controller + - mux-controller + +additionalProperties: false + +examples: + - | + #include + syscon@2da50000 { + compatible = "nxp,imx8ulp-avd-sim", "syscon"; + reg = <0x2da50000 0x38>; + clocks = <&pcc5 IMX8ULP_CLK_AVD_SIM>; + + mux-controller { + compatible = "mmio-mux"; + #mux-control-cells = <1>; + mux-reg-masks = <0x8 0x00000200>; + }; + + reset-controller { + compatible = "nxp,imx8ulp-avd-sim-reset"; + #reset-cells = <1>; + }; + };