From patchwork Thu Dec 5 11:17:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3695 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 8F91D40D6D for ; Thu, 5 Dec 2024 12:19:52 +0100 (CET) Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-5d0c64ce365sf1060866a12.0 for ; Thu, 05 Dec 2024 03:19:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1733397592; cv=pass; d=google.com; s=arc-20240605; b=GvtoJzVeErzVM7MN6KKy7hLrwTq/9SMw3N/N3xtgo4Y1ZfEawMd1pnT367TCFDP3ey VBxrAGs7kc2AxqnK+dTCiio0VeuDtb/gOR3l5fjU/IstIe6iHD2313+IVeIISZ0NqPGX XV4/nJ/wDmHoNNXWQrx6QRmsiuUiGLJ2s10jQxvtJOV/2UNdDKiEE7DxrRMHYcaJdcVD 8dszaQsZTiy5mqFRqSdfQ+NK9+6/OI2ZeF1yovR1aiiXCQzYkPan1uEQc96cAy598Y6r 02rrHX/u1luUiMijde75K2wLQAf3LehSnHRv0RQ3fs8urL5F8z8RHGfEcYXCJTwSg5Mz BWCw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=9nymctVnRnHCu5CRrnFkZHVAgvnSvAfadZqxW1dNbng=; fh=xPqG4aLm+ZjVJ8fZPhX0HAV2oJrxHt8CCkxciLrl0wI=; b=HpPnOUOMsKMllAcnPaeE2wHlgpC7fNo2xCzT1TMEi5GdFw+uGPleNOs7u/4R41RXQN mUly44bzHyVQoxLheiVWdmbGBC/3Rec8BzqdmsxHLE9shO9phdXo6hIjhY3MZ8aQPuSB C9Cdbjg0NbFRbOhMFAOmFZIAr0iVp+bnZiJMIEa9JlHsoqZ2RHPJXZsJzD+vWNm3//UI g+tbFMQZVofTDV4RYZUPC5RjqSoriXViI+H7GvlCjBl1lm99TAmaSC9rYTNxx5W1EaKx Ix0uz3OrN/FGJDAYdOrWXi/4VKzHL2ynPeuG75xO4TKKxkIIEYiZVu+r82NRFQJUqWke 1qMA==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=o1BYqXpg; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1733397592; x=1734002392; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=9nymctVnRnHCu5CRrnFkZHVAgvnSvAfadZqxW1dNbng=; b=iCpX1MBtkvMZU5noTI4q/cuJR/GKQjmlBNFrW6REweo4q10jGCPNPcTFOjjib6Owe8 a3pNRddL5zm/8W5Pn4NKHV5jPKZfP2iIvBdeNj2OnaToo4wo5lZ2iDt9BCN2EEhoAcDm NSVX3KVcf9lzzea19rbDhegB2pSTO2goXQq7g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733397592; x=1734002392; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9nymctVnRnHCu5CRrnFkZHVAgvnSvAfadZqxW1dNbng=; b=kseAUNXLQjArOR6XF/NAJH1nMnI8p2nQbOrv6b2hsUk4vmsp2Mnsv9S5Lnn9yWBVCa 0wIApKwPOrRIAZv+1NPgvE2akNN2ZXkPzMpGYPljVwmQ9BS45iMm6KkZybvE9vkjyQyl cK8OWXJnidpAppM2gcuLuvmPhQXeAJaAGDY5ezpsN2NI6pCcdQujfsrnhhhNDxKoG2d7 3LmEL1zBR9R41Pik18FFJEuM53OgMN9jaBZ/C7dZDQjsLOl9Vpm/GW5P0HiDfuVQwH0b mtaRpe9GlMoa+KUo0aq8NufGRG8kljsNgiAzEIhyf/wDzDBBxxRxQ5WO/+hrbcj4/M3L LAPw== X-Forwarded-Encrypted: i=2; AJvYcCVEFGi2fNVu/WGrNUcMGn1hvuYBr5nA3BPdrtgsGvgfUfZPxmKVdRgtrFaYPR4q96MX6JU01hSMRT06MGvY@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YyI67mNDVwO3B49BchwVkKpnUw4qVUPMoCW+FSorWavGPh6SeeJ kiEzFkVxc6P3HGVlGCvqXkONOjydNtTEM+heJ0bb17lWbHHdPzVBlHHn4ZcGIQnKRg== X-Google-Smtp-Source: AGHT+IHltCiDgadAHuu7/onmub3BR1qsybVgLcZbgT6Q1phOlgq2Ov7GzP4S1LyOpv23qMCi+bDnfQ== X-Received: by 2002:a05:6402:13d0:b0:5d0:c098:5b with SMTP id 4fb4d7f45d1cf-5d10cb5bf42mr8536909a12.19.1733397592177; Thu, 05 Dec 2024 03:19:52 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:12da:b0:5d1:245e:9dfb with SMTP id 4fb4d7f45d1cf-5d125050ff7ls96800a12.0.-pod-prod-04-eu; Thu, 05 Dec 2024 03:19:50 -0800 (PST) X-Received: by 2002:a17:906:3090:b0:aa5:1757:bdd3 with SMTP id a640c23a62f3a-aa5f7d1fb8dmr896611466b.20.1733397590429; Thu, 05 Dec 2024 03:19:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733397590; cv=none; d=google.com; s=arc-20240605; b=SlIpWhGnghi8bNVT3S08KcmgmpjRZkrGIMDRHLdPbIIf2NMOfE4qALdVytXOSTc9kb Is20zmU+VoC+ZIuM9XCAy9NHERwAaX4j0+I/iF3adBYvQ3RmARgEz2NztWlEPLszK2qq CTQUezqWrNZj4pHlitf9dUGHNaUt2nZIFreY+97i1RXN6o4sPI4uBGbqdEuB2uOUMesj d+14/OiTGVYHfNAWh/XTqirVMa0lxJ5v5gL+BZ7RJCrDSZEBHacpvcPbuwCPNZdOTway Dke0rBmkjkB7qpOelUJNG4AAT/De1Nv5yCscfyJjgQrMRN9v9wu/ARXIwV+smfHbXfpc 8iHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=JiY/U6wqtKU6IpvnYGmb6LinIE6E3Eav1zsujKOZRDc=; fh=TcT5mq+DOC99WOQKF/pyM5BqA4EvWwQBAkqh1EN56Eg=; b=an83NZMYbr5pATRZ1K/NpWd/TpR5JGIwV9JNC4lejmMYpkGmT2+wwXPAUG9i6Wzq/E g9Xkyli+OzCg7349BIuIxUrUD80mMkHcLg/WRFc81xY7vB4kvZROVZ54Pvq1ia8+NUVG Ue8XpRG0IS0nAka8BMzClMrJrcDyOB+W7jB6/3LQaghjFkLLyl35HYE2e373p24GmLGs 23qDU56pzH7slGEE10rJ5K6BcQl34OOu4eIQRZcjApF6zXiUx9x963I1BxX295PHgXSy edR/5kgAEs84II55lJI3/f+ZgUs81ZqyPrGelvoSDVQEyYJ3PGU0fQTb+d5KA+3BXIaG /ScA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=o1BYqXpg; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a640c23a62f3a-aa626019c87sor69207466b.15.2024.12.05.03.19.50 for (Google Transport Security); Thu, 05 Dec 2024 03:19:50 -0800 (PST) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Gm-Gg: ASbGncuZ2ZyDqPvcfmPlSbEBPre2jy9HHDSX402zu8wJwCvfBCrXeT7N8edJGUxg18z DYlHeaR5qHZPt5dM1ATJRH7dv8NkZPn4HjCMoaFyTyfor+ano5dEbErXOZtclfadGS0JLR5PnUP JekZtQR2n0LKaYK6BTRNaRZlbNIPrvl2FBxGaH7FZbJ9Y6QrxlZC7SdgucFDL3izjYgt9/0hxvG jyeo9HkXt/an8Ft/52AwXxpyc8l8o/szB+mZao5ItUiufQ9LNPF3NVEjU34Vo+NKLBYBYNS4aJt khsn8jwWvLDw6MsmamkuTTttFH41mNMzqCAX0l651q4CvQ== X-Received: by 2002:a17:906:328d:b0:aa5:46e7:4baa with SMTP id a640c23a62f3a-aa5f7cc1bb2mr781689466b.7.1733397590083; Thu, 05 Dec 2024 03:19:50 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2001:b07:6474:ebbf:61a1:9bc8:52c6:3c2d]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aa625eedcd0sm77505266b.87.2024.12.05.03.19.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2024 03:19:49 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Dario Binacchi , Conor Dooley , Fabio Estevam , Krzysztof Kozlowski , Michael Turquette , Peng Fan , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , Stephen Boyd , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: [PATCH v5 05/20] dt-bindings: clock: imx8m-anatop: define clocks/clock-names Date: Thu, 5 Dec 2024 12:17:40 +0100 Message-ID: <20241205111939.1796244-6-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241205111939.1796244-1-dario.binacchi@amarulasolutions.com> References: <20241205111939.1796244-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=o1BYqXpg; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Define clocks and clock-names properties of the anatop device node. Signed-off-by: Dario Binacchi --- (no changes since v4) Changes in v4: - New .../bindings/clock/fsl,imx8m-anatop.yaml | 53 ++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/clock/fsl,imx8m-anatop.yaml b/Documentation/devicetree/bindings/clock/fsl,imx8m-anatop.yaml index bbd22e95b319..f439b0a94ce2 100644 --- a/Documentation/devicetree/bindings/clock/fsl,imx8m-anatop.yaml +++ b/Documentation/devicetree/bindings/clock/fsl,imx8m-anatop.yaml @@ -30,22 +30,73 @@ properties: interrupts: maxItems: 1 + clocks: + minItems: 2 + maxItems: 3 + + clock-names: + minItems: 2 + maxItems: 3 + '#clock-cells': const: 1 required: - compatible - reg + - clocks + - clock-names - '#clock-cells' +allOf: + - if: + properties: + compatible: + contains: + const: fsl,imx8mq-anatop + then: + properties: + clocks: + items: + - description: 32k osc + - description: 25m osc + - description: 27m osc + clock-names: + items: + - const: ckil + - const: osc_25m + - const: osc_27m + else: + properties: + clocks: + items: + - description: 32k osc + - description: 24m osc + + clock-names: + items: + - const: osc_32k + - const: osc_24m + additionalProperties: false examples: - | - anatop: clock-controller@30360000 { + clock-controller@30360000 { compatible = "fsl,imx8mn-anatop", "fsl,imx8mm-anatop"; reg = <0x30360000 0x10000>; #clock-cells = <1>; + clocks = <&osc_32k>, <&osc_24m>; + clock-names = "osc_32k", "osc_24m"; + }; + + - | + clock-controller@30360000 { + compatible = "fsl,imx8mq-anatop"; + reg = <0x30360000 0x10000>; + #clock-cells = <1>; + clocks = <&ckil>, <&osc_25m>, <&osc_27m>; + clock-names = "ckil", "osc_25m", "osc_27m"; }; ...