Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2327606lqz; Tue, 2 Apr 2024 14:02:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWjVzBjUlv0K89spvilPAQCQYwc+Bub4gWFQLwfP+YpXc0RHfOoR4FGS2n2iaiOvffKjkz7vEPkzHFGw773Vm2PIjjlssoanoLjwXBCzQ== X-Google-Smtp-Source: AGHT+IEM9StVC8WWEi44J12So/cAVxV/dnx0iUK+jspJvDYuuwpkeWk46mibt++yAZ/xC+E6Lc0e X-Received: by 2002:a17:902:8549:b0:1dd:7da:e0a9 with SMTP id d9-20020a170902854900b001dd07dae0a9mr12579216plo.69.1712091778614; Tue, 02 Apr 2024 14:02:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712091778; cv=pass; d=google.com; s=arc-20160816; b=F8WyCz6zDDI83q7FoaWZ1px6YoPHMcKIKPrxrXe5tl3LF5Z5gDfDE9qBNshrGlmlAm vAzps2HnBTSoBYU2sYElL/hS3ZF70IiuUXzruDnOuJ26tGIQ7nbpEcW2fDi1pic8SM7O ZR76J3dQfWnz0L14TU2tzB/1KF5qSmXvvzOR3Y4nWQx5GFHzX3zBO28OF2BBOvEIvqaL cOqo0n4yBLyf57oM8JAEyfk/R4adFoM5v+VxrfueJtzmcq924GQJYZvd2Z65Ry4komhj nt8fEmBxs9virpNfQTno1c4aElGc9nKEWfT7LO7YIL+wkL0aq1ysgesaV5KI+KtxsZKL 59PQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from; bh=+BSCLMByv6+CzHKRAEpJ452sewdWyd3syXes3/lETDY=; fh=K73bxqFgZqNlDm/a9Ea99P3/dCVkXIy3uHuj+akyDto=; b=a6309vTPACKGeePCyv62mnDglUqBJ9kPoJQ67VNAhYIttZ/qK3upH5iRODJ02Jsf5i c+GamAGEHaP9gdiB84gVrjXNzXMrxhPo/y01Vhk0+HraRtB3jR266sjXnnId8CBUx+qv 0Mgve4bU2RxxU3AvcnoDvwm8/TWkR6wBc0z6hpL0C7gBOq0hTZfcBHb6o7rgVdEhhQR2 DXq+0cNINXNJbkjRoKNf+Hrn2lJDRKRmaWESVVI0XNfPzncRPKAPBBtCNENIJCeWUeMA ef6PaVt7VeDPbg2XFBH0B5gacjv8HuAZUdet2h3wmabK1W2Tm5H40erxsRpXHIUhagBR pVKw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=skole.hr); spf=pass (google.com: domain of linux-kernel+bounces-128694-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128694-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d14-20020a170902654e00b001dc6cd28614si1648977pln.231.2024.04.02.14.02.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 14:02:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128694-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=skole.hr); spf=pass (google.com: domain of linux-kernel+bounces-128694-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128694-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3C03B287918 for ; Tue, 2 Apr 2024 21:02:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0491215E5DC; Tue, 2 Apr 2024 21:02:34 +0000 (UTC) Received: from mx.skole.hr (mx1.hosting.skole.hr [161.53.165.185]) (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 CCEC615E1F6; Tue, 2 Apr 2024 21:02:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=161.53.165.185 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712091753; cv=none; b=EA69nziULueIpm0QcAOcAu+K8vcnlqJw2nW3cdibfzKAT+gq3ryL/Mxp0foZ1r+3ulRPJw+g73plzReoHJqHX4gF2SHnqGmXFyOsi74Yr0iT3eh5GAnkEp0JBE6M+z7u3kbHJgllFyskVlyBjJEkDvNJ/wHjJV8SUncD8XzYu2U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712091753; c=relaxed/simple; bh=G/6CzBPMR2IdjedF4w4XrlraPS9yPAuDYR/nosMS8O0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=U1JuH/2JCuTUdOoHzH5T7Sybl1frrOblIxnAkUWEjQELMiBk1STP2RFeWQkOnq8RQnTp1V28AbzHlCw33Px6yYTH7zjIqHhrpBa4QgYkL0qskR3SON6qZOvA5/PQtlNXFxBjUGFHmZk705L4iFuinMlBnfwq7FJDaT6+Utk2+AU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=skole.hr; spf=pass smtp.mailfrom=skole.hr; arc=none smtp.client-ip=161.53.165.185 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=skole.hr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=skole.hr Received: from mx1.hosting.skole.hr (localhost.localdomain [127.0.0.1]) by mx.skole.hr (mx.skole.hr) with ESMTP id 578CC86C51; Tue, 2 Apr 2024 22:55:50 +0200 (CEST) From: =?utf-8?q?Duje_Mihanovi=C4=87?= Date: Tue, 02 Apr 2024 22:55:40 +0200 Subject: [PATCH v9 4/9] dt-bindings: clock: Add Marvell PXA1908 clock bindings Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240402-pxa1908-lkml-v9-4-25a003e83c6f@skole.hr> References: <20240402-pxa1908-lkml-v9-0-25a003e83c6f@skole.hr> In-Reply-To: <20240402-pxa1908-lkml-v9-0-25a003e83c6f@skole.hr> To: Michael Turquette , Stephen Boyd , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Tony Lindgren , Haojian Zhuang , =?utf-8?q?Duje_Mihanovi=C4=87?= , Lubomir Rintel , Catalin Marinas , Will Deacon , Kees Cook , Tony Luck , "Guilherme G. Piccoli" , Rob Herring Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Karel Balej , David Wronek , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Conor Dooley X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4927; i=duje.mihanovic@skole.hr; h=from:subject:message-id; bh=G/6CzBPMR2IdjedF4w4XrlraPS9yPAuDYR/nosMS8O0=; b=owEBbQKS/ZANAwAIAZoRnrBCLZbhAcsmYgBmDHDNvT1J7o2pgHDeBGg5IgRb6LVDk52ND+8HX EWK1FGZAbKJAjMEAAEIAB0WIQRT351NnD/hEPs2LXiaEZ6wQi2W4QUCZgxwzQAKCRCaEZ6wQi2W 4dGkD/9f3jJfrguZz9faxLT1c/yVXCGE2Gd8PosXHmWuxPP0l4leiMGR3jSgTBABr/AAI469BqX wz8+u3cIhANkrOwXQXBCuo4/rNFflvrC0NQ3MpsphtN9ZqMEbhZcTRL9i9s305Bguog9hbwa+JR KeLhjwUsgY+L1soAPpT+Dn1zcdr9c+OCbRSF6XKu/r4sYmHU5aTpipT2KOYVsdmjq4JK8SmJBjI kGouI4Wb8FrjGX1bkx6e8cv+ZFnm/T53NWQkv3AQL9L0lQpgV8a7X1ZwxVN5HQLxIjNe2RzfN+0 J/7kNj5A7n2i76xxWdpaSirxWobHM/If+MLlogZ7Mk9EnD5GQc+WxZg1lgFKtWLGSVmIoGlieUH 21QShykpvVbDeV2yhTH6GYWDyxplc1xz36T+uE4MDUBXuL/+MFCI0jM1PydUyCdDHM4ZeakPRR9 2brXFuIUC6XkTdX6r0Um9SM1uYGyP//Xsadts/8AmOQhG6jbSfG6C878fH+/IOv3InWLRTebigx yltG1BcmsN6xGIv7iUie/044IHHkDeQ/WTjnqH4ChyXtv0lP2YA98dvbGVD8zVesz9H7OvDTTdD yjHXCaymevnOJIs6lqE15/T+KizRrewDLs/CUGG2HgY5vhvp1R5QbwVw+KKNwvwTtEj0M+wd3YK yd4SBmSbhrpiS4Q== X-Developer-Key: i=duje.mihanovic@skole.hr; a=openpgp; fpr=53DF9D4D9C3FE110FB362D789A119EB0422D96E1 Add dt bindings and documentation for the Marvell PXA1908 clock controller. Reviewed-by: Conor Dooley Signed-off-by: Duje Mihanović --- .../devicetree/bindings/clock/marvell,pxa1908.yaml | 48 ++++++++++++ include/dt-bindings/clock/marvell,pxa1908.h | 88 ++++++++++++++++++++++ 2 files changed, 136 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/marvell,pxa1908.yaml b/Documentation/devicetree/bindings/clock/marvell,pxa1908.yaml new file mode 100644 index 000000000000..4e78933232b6 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/marvell,pxa1908.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/marvell,pxa1908.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Marvell PXA1908 Clock Controllers + +maintainers: + - Duje Mihanović + +description: | + The PXA1908 clock subsystem generates and supplies clock to various + controllers within the PXA1908 SoC. The PXA1908 contains numerous clock + controller blocks, with the ones currently supported being APBC, APBCP, MPMU + and APMU roughly corresponding to internal buses. + + All these clock identifiers could be found in . + +properties: + compatible: + enum: + - marvell,pxa1908-apbc + - marvell,pxa1908-apbcp + - marvell,pxa1908-mpmu + - marvell,pxa1908-apmu + + reg: + maxItems: 1 + + '#clock-cells': + const: 1 + +required: + - compatible + - reg + - '#clock-cells' + +additionalProperties: false + +examples: + # APMU block: + - | + clock-controller@d4282800 { + compatible = "marvell,pxa1908-apmu"; + reg = <0xd4282800 0x400>; + #clock-cells = <1>; + }; diff --git a/include/dt-bindings/clock/marvell,pxa1908.h b/include/dt-bindings/clock/marvell,pxa1908.h new file mode 100644 index 000000000000..fb15b0d0cd4c --- /dev/null +++ b/include/dt-bindings/clock/marvell,pxa1908.h @@ -0,0 +1,88 @@ +/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */ +#ifndef __DTS_MARVELL_PXA1908_CLOCK_H +#define __DTS_MARVELL_PXA1908_CLOCK_H + +/* plls */ +#define PXA1908_CLK_CLK32 1 +#define PXA1908_CLK_VCTCXO 2 +#define PXA1908_CLK_PLL1_624 3 +#define PXA1908_CLK_PLL1_416 4 +#define PXA1908_CLK_PLL1_499 5 +#define PXA1908_CLK_PLL1_832 6 +#define PXA1908_CLK_PLL1_1248 7 +#define PXA1908_CLK_PLL1_D2 8 +#define PXA1908_CLK_PLL1_D4 9 +#define PXA1908_CLK_PLL1_D8 10 +#define PXA1908_CLK_PLL1_D16 11 +#define PXA1908_CLK_PLL1_D6 12 +#define PXA1908_CLK_PLL1_D12 13 +#define PXA1908_CLK_PLL1_D24 14 +#define PXA1908_CLK_PLL1_D48 15 +#define PXA1908_CLK_PLL1_D96 16 +#define PXA1908_CLK_PLL1_D13 17 +#define PXA1908_CLK_PLL1_32 18 +#define PXA1908_CLK_PLL1_208 19 +#define PXA1908_CLK_PLL1_117 20 +#define PXA1908_CLK_PLL1_416_GATE 21 +#define PXA1908_CLK_PLL1_624_GATE 22 +#define PXA1908_CLK_PLL1_832_GATE 23 +#define PXA1908_CLK_PLL1_1248_GATE 24 +#define PXA1908_CLK_PLL1_D2_GATE 25 +#define PXA1908_CLK_PLL1_499_EN 26 +#define PXA1908_CLK_PLL2VCO 27 +#define PXA1908_CLK_PLL2 28 +#define PXA1908_CLK_PLL2P 29 +#define PXA1908_CLK_PLL2VCODIV3 30 +#define PXA1908_CLK_PLL3VCO 31 +#define PXA1908_CLK_PLL3 32 +#define PXA1908_CLK_PLL3P 33 +#define PXA1908_CLK_PLL3VCODIV3 34 +#define PXA1908_CLK_PLL4VCO 35 +#define PXA1908_CLK_PLL4 36 +#define PXA1908_CLK_PLL4P 37 +#define PXA1908_CLK_PLL4VCODIV3 38 + +/* apb (apbc) peripherals */ +#define PXA1908_CLK_UART0 1 +#define PXA1908_CLK_UART1 2 +#define PXA1908_CLK_GPIO 3 +#define PXA1908_CLK_PWM0 4 +#define PXA1908_CLK_PWM1 5 +#define PXA1908_CLK_PWM2 6 +#define PXA1908_CLK_PWM3 7 +#define PXA1908_CLK_SSP0 8 +#define PXA1908_CLK_SSP1 9 +#define PXA1908_CLK_IPC_RST 10 +#define PXA1908_CLK_RTC 11 +#define PXA1908_CLK_TWSI0 12 +#define PXA1908_CLK_KPC 13 +#define PXA1908_CLK_SWJTAG 14 +#define PXA1908_CLK_SSP2 15 +#define PXA1908_CLK_TWSI1 16 +#define PXA1908_CLK_THERMAL 17 +#define PXA1908_CLK_TWSI3 18 + +/* apb (apbcp) peripherals */ +#define PXA1908_CLK_UART2 1 +#define PXA1908_CLK_TWSI2 2 +#define PXA1908_CLK_AICER 3 + +/* axi (apmu) peripherals */ +#define PXA1908_CLK_CCIC1 1 +#define PXA1908_CLK_ISP 2 +#define PXA1908_CLK_DSI1 3 +#define PXA1908_CLK_DISP1 4 +#define PXA1908_CLK_CCIC0 5 +#define PXA1908_CLK_SDH0 6 +#define PXA1908_CLK_SDH1 7 +#define PXA1908_CLK_USB 8 +#define PXA1908_CLK_NF 9 +#define PXA1908_CLK_CORE_DEBUG 10 +#define PXA1908_CLK_VPU 11 +#define PXA1908_CLK_GC 12 +#define PXA1908_CLK_SDH2 13 +#define PXA1908_CLK_GC2D 14 +#define PXA1908_CLK_TRACE 15 +#define PXA1908_CLK_DVC_DFC_DEBUG 16 + +#endif -- 2.44.0