From patchwork Mon Jan 20 09:21:41 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergio Paracuellos X-Patchwork-Id: 13944906 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 315CF19F40B; Mon, 20 Jan 2025 09:21:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737364915; cv=none; b=pYCrPEaECfGYAALj0VlTx1BacKd5B3Kg2L+j5BPN9kvDhAHJ2X4JGwymaungtRI5bhNnHfZoKjntb/SGJdoiaDwIjsYAEuRpmbBH5Owx1APZVKYV9jVlG5/vmTiResLzBEDqlBbZAjHl2kq8qCAyy78A391l6ZG1Zi2Gl/89UzQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737364915; c=relaxed/simple; bh=+vfmmfzai3BUsJ0p2SOOa9HBVLnw6p/QW7a5k4BV2CA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=RmwMQ9eG77lJ1vD6+ABIbvcuiRyjFQka7JlzVppOOv9oZwzvD1Z4CHrEpWXCzDILbjT8gK61YHCFRiWo31o6lkmH9MYmt9k9THM994mtTE9eAnq6e3EFL7jLANyCL3PSSH12aAQBxF8cThnzeUJ6jTwISMbFWXVuym1LSrFqi4k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=bLjCEVgU; arc=none smtp.client-ip=209.85.128.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bLjCEVgU" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-43622267b2eso42031815e9.0; Mon, 20 Jan 2025 01:21:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737364911; x=1737969711; darn=vger.kernel.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=JSzbbwkX5zb+1VXEmlFF8JkxvF+4BUdLMuFERFZQBLE=; b=bLjCEVgUAoIaBRDL/P+RTKJ7H/oaLny57Ee7WwVIeOB7TV2ler4xsX4FXPvZut8zR9 qaRkPi7TyUqHF5qMLX2s//tz+wNfY7xOu1AIbKg3DP0Ud+Si3kcJ9wavWerHH4gtmbwC ukBXDzEJLsoG+YBKzRklusdbmx+1OPvpK90k5Jz75uP2V9FaYvu4pB52o25IQQmwJZx0 PNskymHYdZbf2tc/0ajPf3ZYbOW5D3vp/q43ueH8UIkc10dpAx1Bcboi8eDF4vANVpww gsj1vE/ov0MSMkx/r5z9mmrAz7hSSVH4B6dcjyS0LDqzeOyNgpSgvTd1Uf/W6bAVrWiU 1wbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737364911; x=1737969711; 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=JSzbbwkX5zb+1VXEmlFF8JkxvF+4BUdLMuFERFZQBLE=; b=uFoFE/FWMy7WrbuHa4lFP+63BcnAgDeF6v/HJSB5H/toUczrtWRW/ppD8ZoRIDVXWS o8GNRLPFBNZ3Ts0KPLaPKr08uHC4j3/RkRZqgxa1geHdqxBrTBFZbDqS+pBjuKf1qbJP jpBwtU01bRhGuPNnZEYlQQYIH4K4dN7mhfXksrt7pGwsnKz/0YecpUUZ7T4uRdm4gQPl 2wJr/mUvKdhjoKyayh6ZNq8tERX+YHPU8oT5ibUvtyAlQ+9letdyxRcXG83+ge3LKcer pHh4gnHukGeaYKZ2GXXrtOCNNGocRTILuZlQHsyVbvorVyh2+zIYwZw+9w8br3tkm8fi adgQ== X-Forwarded-Encrypted: i=1; AJvYcCW8FTGc8QZFaG99DgU9eMWcng5TXnElhsTypb0a9LLngzu1RWYERrYJe2fc1S/Fc3dnLIEUDWdLpmqNH2gW@vger.kernel.org, AJvYcCXjqiyKx5DYdlpAMRkXdZAMIQjYgQNqtOgbtYMB9N8isKDo4EqHPDpl5kO86Dipu01FWDgeCgoTOMP1@vger.kernel.org, AJvYcCXy6o42FHU+51Xq3+4inCVQ1N+0ZN4M1oXebYBhdinem0ayrYd3NT6m0qleXqb1X5jbLAOr5dzYV3JZVw==@vger.kernel.org X-Gm-Message-State: AOJu0YyaGkisQk8Fu9lfCuCtw5kEsYMeC0oDoKx4eQcJMfuYf8chFXyL 6+BPuTluVBvHTX4+ZVLCM/7tQ3IGLeV6/79RE3KmDFCegnS65YANd5X+vw== X-Gm-Gg: ASbGncuveFiOZIeSGSiCYklsiqOGg0wYLV7chlf85xb6as24lbMo5wFHyZwli5P6In3 BF+hDX2l8gJbU/rTg09HfAWZwwmy6RH6hnbgI0A6F2klGeuiLaNvAzAdGHN/mV8rGf7XH9Pt/fc RL95z/PBOAlqsHDMj9a9JpTSM5r2G5+OflQ0XRwKqJT2gm2nGpYSX1/SEWYds7r91MjmPy+nkAg EwiGl+NTO7j34p0rnflrWYIAYdV4qxFk4qrWvrheegBhRy8gEvawG/u1YQZoEUrhxUnnu7o9IQk K6DmAfG6M/znlt5wTslKuQGVsS139J1sXlkIQwVMpOfzsWkLyjjVd9VPDtl7 X-Google-Smtp-Source: AGHT+IEHGUU4/SV7zhm/eXOQtisgKi5bH8KTP0KuyEdpRiebIDYrCXkiS7BLNEenbFUG09gO1XF1Bg== X-Received: by 2002:a05:600c:4511:b0:435:9ed3:5698 with SMTP id 5b1f17b1804b1-4389143753bmr102833505e9.24.1737364910905; Mon, 20 Jan 2025 01:21:50 -0800 (PST) Received: from localhost.localdomain (249.red-88-10-54.dynamicip.rima-tde.net. [88.10.54.249]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-438a1ec39a3sm80680175e9.16.2025.01.20.01.21.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jan 2025 01:21:50 -0800 (PST) From: Sergio Paracuellos To: linux-clk@vger.kernel.org Cc: sboyd@kernel.org, mturquette@baylibre.com, tsbogend@alpha.franken.de, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, p.zabel@pengutronix.de, linux-mips@vger.kernel.org, devicetree@vger.kernel.org, yangshiji66@outlook.com, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/6] dt-bindings: clock: add clock definitions for Ralink SoCs Date: Mon, 20 Jan 2025 10:21:41 +0100 Message-Id: <20250120092146.471951-2-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250120092146.471951-1-sergio.paracuellos@gmail.com> References: <20250120092146.471951-1-sergio.paracuellos@gmail.com> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add clock missing definitions for RT2880, RT305X, RT3352, RT3383, RT5350, MT7620 and MT76X8 Ralink SoCs. Update bindings to clarify clock depending on these new introduced constants so consumer nodes can easily use the correct one in DTS files matching properly what is being used in driver code (clock IDs are implicitly used there). Signed-off-by: Sergio Paracuellos Reviewed-by: Krzysztof Kozlowski --- .../bindings/clock/mediatek,mtmips-sysc.yaml | 11 +- .../dt-bindings/clock/mediatek,mtmips-sysc.h | 130 ++++++++++++++++++ 2 files changed, 140 insertions(+), 1 deletion(-) create mode 100644 include/dt-bindings/clock/mediatek,mtmips-sysc.h diff --git a/Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml b/Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml index ba7ffc5b16a0..83c1803ffd16 100644 --- a/Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml +++ b/Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml @@ -18,6 +18,12 @@ description: | These SoCs have an XTAL from where the cpu clock is provided as well as derived clocks for the bus and the peripherals. + Each clock is assigned an identifier and client nodes use this identifier + to specify the clock which they consume. + + All these identifiers could be found in: + [1]: . + properties: compatible: items: @@ -38,7 +44,8 @@ properties: '#clock-cells': description: - The first cell indicates the clock number. + The first cell indicates the clock number, see [1] for available + clocks. const: 1 '#reset-cells': @@ -56,6 +63,8 @@ additionalProperties: false examples: - | + #include + syscon@0 { compatible = "ralink,rt5350-sysc", "syscon"; reg = <0x0 0x100>; diff --git a/include/dt-bindings/clock/mediatek,mtmips-sysc.h b/include/dt-bindings/clock/mediatek,mtmips-sysc.h new file mode 100644 index 000000000000..a03335b0e077 --- /dev/null +++ b/include/dt-bindings/clock/mediatek,mtmips-sysc.h @@ -0,0 +1,130 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* + * Author: Sergio Paracuellos + */ + +#ifndef _DT_BINDINGS_CLK_MTMIPS_H +#define _DT_BINDINGS_CLK_MTMIPS_H + +/* Ralink RT-2880 clocks */ + +#define RT2880_CLK_XTAL 0 +#define RT2880_CLK_CPU 1 +#define RT2880_CLK_BUS 2 +#define RT2880_CLK_TIMER 3 +#define RT2880_CLK_WATCHDOG 4 +#define RT2880_CLK_UART 5 +#define RT2880_CLK_I2C 6 +#define RT2880_CLK_UARTLITE 7 +#define RT2880_CLK_ETHERNET 8 +#define RT2880_CLK_WMAC 9 + +/* Ralink RT-305X clocks */ + +#define RT305X_CLK_XTAL 0 +#define RT305X_CLK_CPU 1 +#define RT305X_CLK_BUS 2 +#define RT305X_CLK_TIMER 3 +#define RT305X_CLK_WATCHDOG 4 +#define RT305X_CLK_UART 5 +#define RT305X_CLK_I2C 6 +#define RT305X_CLK_I2S 7 +#define RT305X_CLK_SPI1 8 +#define RT305X_CLK_SPI2 9 +#define RT305X_CLK_UARTLITE 10 +#define RT305X_CLK_ETHERNET 11 +#define RT305X_CLK_WMAC 12 + +/* Ralink RT-3352 clocks */ + +#define RT3352_CLK_XTAL 0 +#define RT3352_CLK_CPU 1 +#define RT3352_CLK_PERIPH 2 +#define RT3352_CLK_BUS 3 +#define RT3352_CLK_TIMER 4 +#define RT3352_CLK_WATCHDOG 5 +#define RT3352_CLK_UART 6 +#define RT3352_CLK_I2C 7 +#define RT3352_CLK_I2S 8 +#define RT3352_CLK_SPI1 9 +#define RT3352_CLK_SPI2 10 +#define RT3352_CLK_UARTLITE 11 +#define RT3352_CLK_ETHERNET 12 +#define RT3352_CLK_WMAC 13 + +/* Ralink RT-3883 clocks */ + +#define RT3883_CLK_XTAL 0 +#define RT3883_CLK_CPU 1 +#define RT3883_CLK_BUS 2 +#define RT3883_CLK_PERIPH 3 +#define RT3883_CLK_TIMER 4 +#define RT3883_CLK_WATCHDOG 5 +#define RT3883_CLK_UART 6 +#define RT3883_CLK_I2C 7 +#define RT3883_CLK_I2S 8 +#define RT3883_CLK_SPI1 9 +#define RT3883_CLK_SPI2 10 +#define RT3883_CLK_UARTLITE 11 +#define RT3883_CLK_ETHERNET 12 +#define RT3883_CLK_WMAC 13 + +/* Ralink RT-5350 clocks */ + +#define RT5350_CLK_XTAL 0 +#define RT5350_CLK_CPU 1 +#define RT5350_CLK_BUS 2 +#define RT5350_CLK_PERIPH 3 +#define RT5350_CLK_TIMER 4 +#define RT5350_CLK_WATCHDOG 5 +#define RT5350_CLK_UART 6 +#define RT5350_CLK_I2C 7 +#define RT5350_CLK_I2S 8 +#define RT5350_CLK_SPI1 9 +#define RT5350_CLK_SPI2 10 +#define RT5350_CLK_UARTLITE 11 +#define RT5350_CLK_ETHERNET 12 +#define RT5350_CLK_WMAC 13 + +/* Ralink MT-7620 clocks */ + +#define MT7620_CLK_XTAL 0 +#define MT7620_CLK_PLL 1 +#define MT7620_CLK_CPU 2 +#define MT7620_CLK_PERIPH 3 +#define MT7620_CLK_BUS 4 +#define MT7620_CLK_BBPPLL 5 +#define MT7620_CLK_SDHC 6 +#define MT7620_CLK_TIMER 7 +#define MT7620_CLK_WATCHDOG 8 +#define MT7620_CLK_UART 9 +#define MT7620_CLK_I2C 10 +#define MT7620_CLK_I2S 11 +#define MT7620_CLK_SPI1 12 +#define MT7620_CLK_SPI2 13 +#define MT7620_CLK_UARTLITE 14 +#define MT7620_CLK_MMC 15 +#define MT7620_CLK_WMAC 16 + +/* Ralink MT-76X8 clocks */ + +#define MT76X8_CLK_XTAL 0 +#define MT76X8_CLK_CPU 1 +#define MT76X8_CLK_BBPPLL 2 +#define MT76X8_CLK_PCMI2S 3 +#define MT76X8_CLK_PERIPH 4 +#define MT76X8_CLK_BUS 5 +#define MT76X8_CLK_SDHC 6 +#define MT76X8_CLK_TIMER 7 +#define MT76X8_CLK_WATCHDOG 8 +#define MT76X8_CLK_I2C 9 +#define MT76X8_CLK_I2S 10 +#define MT76X8_CLK_SPI1 11 +#define MT76X8_CLK_SPI2 12 +#define MT76X8_CLK_UART0 13 +#define MT76X8_CLK_UART1 14 +#define MT76X8_CLK_UART2 15 +#define MT76X8_CLK_MMC 16 +#define MT76X8_CLK_WMAC 17 + +#endif /* _DT_BINDINGS_CLK_MTMIPS_H */ From patchwork Mon Jan 20 09:21:42 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergio Paracuellos X-Patchwork-Id: 13944907 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DACA51AF4E9; Mon, 20 Jan 2025 09:21:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737364917; cv=none; b=OkWpTPzoP6UpNEj9lg8L95SNeGKB6BtahoyxKFScCFMlsX0Pd0wuVogPTi9mXXnjJqG75Uk3nCqiiBs59DFAZFs2jzQpoLRWF/T6Ke+TTw3/TyqPR2kzUw3df8sW9mgZAUQfYJf8SueP0QDDww/qlfU2OYziG0K0qHkIaoowVvI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737364917; c=relaxed/simple; bh=QXtKB6jNj1hMEwRy5f7ewX4xxN397kqMFyiJ7Eb/sCE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=KppTMrRkKJDBkk/9Jk15rLZM0zvgu+aP5z7aN0JCtKDuZwyvhDjfTg8dRlb1Nm4GcElOJAdWbCq+5znjQF+LrZ+6c1GApel+g3jfppRD55JjOIDQPOGtpdxI6aB4+T5/BECmkldeVaD20iMrKI6UbPnPTL5UvvpsNAlzkObOymw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=dGi8uHf1; arc=none smtp.client-ip=209.85.128.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dGi8uHf1" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-436281c8a38so29479535e9.3; Mon, 20 Jan 2025 01:21:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737364914; x=1737969714; darn=vger.kernel.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=CoamquXOCnAAaRWeOvWzV9A8HnHrnKqCSO9m8sNi1fo=; b=dGi8uHf1uCFEkZOnzNaKVHiVjiCS8wQ6OCw8H8qI5OYfg/BQSCibirBabfHPXAajVK X/Ys07mubvgr0HuvBNJP4DZNtDlV44o+ESTNIXv4BAPiZExb33cWV+olKNB7mdZRk7CI 7LF+009FTJpZ/Va8V9GJydUglygjAgDP514/WFGdapOzpeICoppGllm0HyRsiXDtMgcx EHUo6dzjcjP3Xt2KlNwmZdJ7D3Sstg2bnzW8loJ5jFI6QmuMLk0zkRrqAvmhMAH7Xz7A 1PHKoyXA48xpNehM5NZgTq00gDmQ7IkBuJg1z389EbHCwx6HWwhqhuraDFe9MyDccDbc V2fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737364914; x=1737969714; 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=CoamquXOCnAAaRWeOvWzV9A8HnHrnKqCSO9m8sNi1fo=; b=IwZqlxaXLMAE5zhhGxWq0foHA3e7IonAJYWPIhifk8LnSP9E+6sT436z2uBwHlZwBo VznEK+qgHcR5LCCR59fZKn4+mTFi7dFmee42SUIr1/X2qwv5Bcf1KLv3K3SAVaDbORiy qLQOBYqRnUkz4AlWp9DVNJda9NTzgEp17XBXQL+bxErxECxiUaA/E8TZJ4iu3JHMH9vt WmQ58AO/xbZ58oOMBpJ1eTg2l2Y+vgLW4DqkaAAVJDlRYQGgZ4pRn1OMWtC0bYG87YBd SpdHjPBVYdFk26zB2DqseAtqEQYEt/kATkNFXWvgzMIYLzYIp7bLA2xm/+eRXcCBgxVY kKFA== X-Forwarded-Encrypted: i=1; AJvYcCWmf9Bbv+deVsV2RYnmz/Id/Ll6LfcwtAiAuGEYwWwqqP1ItG1DZOTjR9b3yUssagdSB/GpmbQymtxz@vger.kernel.org, AJvYcCWn3EilMAbl0/Qe2juJ7geMbRRvHX8jnkB2qBqBBTKRUbd+xvOj+Q9IJUoJW0VA4SgPuYoeIL19/9C8tOH0@vger.kernel.org, AJvYcCX/64AcJIzPa1P0VaFYR3srTzQEU+E5KioFOFWTFt3VhxKyrx7x1VGODUo9OkrlMwE+SwZ2PjX6HsYFLQ==@vger.kernel.org X-Gm-Message-State: AOJu0YxL5LqCms2iVfr4CQGoJoFU5TBLfjvMAgkJmkJ+WltaVyJLJcBE dHZPF2YdX45Kqb8OJ7nohZD8S1Asm1c/isNnl0QffzBRZW1ynvy5B9caYQ== X-Gm-Gg: ASbGncvJS/ogEQ48opct/HoTci/rjRwZ7MEKynJqqwDPGC3FK6XrgQUOv3J/QQdDbOw 43/+gHcTFsnhScbFboGgTtMoexOZSZw1RDd7UpZFeNkan9HPIHXOkf4wvZfMFUqAtBZ2MyEibKx 0i/GijCsUg+zeAQdzn08oTQFbPvnd+4HjSqM0GlOkIftaEOM1YUTuNozaISsPgref3DA7cR10G4 J8qQKP5GQxVlzPggPEghrxugY5U2jyfp2HcO+Z1hLviPGZcjvob+sNBqU5feY0Lvko5BmC3gUGU IiY7pCF6aVW3Ts/4T66UU7Ju3zPAQLXDoUW7BKQBKMftVkupVbGpGQGnXWFw X-Google-Smtp-Source: AGHT+IHbo5jhqFJFNx1za7nz/wkN3HVisK5HEE+XxJhTcBPOU85BbcBdy7+oj4N/BwqjM9mVJ912AQ== X-Received: by 2002:a05:600c:3d06:b0:42f:7e87:3438 with SMTP id 5b1f17b1804b1-438912d91admr123607765e9.0.1737364913575; Mon, 20 Jan 2025 01:21:53 -0800 (PST) Received: from localhost.localdomain (249.red-88-10-54.dynamicip.rima-tde.net. [88.10.54.249]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-438a1ec39a3sm80680175e9.16.2025.01.20.01.21.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jan 2025 01:21:51 -0800 (PST) From: Sergio Paracuellos To: linux-clk@vger.kernel.org Cc: sboyd@kernel.org, mturquette@baylibre.com, tsbogend@alpha.franken.de, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, p.zabel@pengutronix.de, linux-mips@vger.kernel.org, devicetree@vger.kernel.org, yangshiji66@outlook.com, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/6] mips: dts: ralink: rt2880: update system controller node and its consumers Date: Mon, 20 Jan 2025 10:21:42 +0100 Message-Id: <20250120092146.471951-3-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250120092146.471951-1-sergio.paracuellos@gmail.com> References: <20250120092146.471951-1-sergio.paracuellos@gmail.com> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Current RT2880 device tree file system controller node is wrong since it is not matching bindings. Hence, update it to match current bindings updating it also to use new introduced clock constants. Signed-off-by: Sergio Paracuellos --- arch/mips/boot/dts/ralink/rt2880.dtsi | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/mips/boot/dts/ralink/rt2880.dtsi b/arch/mips/boot/dts/ralink/rt2880.dtsi index 8fc1987d9063..1f2ea3434324 100644 --- a/arch/mips/boot/dts/ralink/rt2880.dtsi +++ b/arch/mips/boot/dts/ralink/rt2880.dtsi @@ -1,4 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 +#include + / { #address-cells = <1>; #size-cells = <1>; @@ -25,9 +27,11 @@ palmbus@300000 { #address-cells = <1>; #size-cells = <1>; - sysc@0 { - compatible = "ralink,rt2880-sysc"; + sysc: syscon@0 { + compatible = "ralink,rt2880-sysc", "syscon"; reg = <0x0 0x100>; + #clock-cells = <1>; + #reset-cells = <1>; }; intc: intc@200 { @@ -50,6 +54,8 @@ uartlite@c00 { compatible = "ralink,rt2880-uart", "ns16550a"; reg = <0xc00 0x100>; + clocks = <&sysc RT2880_CLK_UARTLITE>; + interrupt-parent = <&intc>; interrupts = <8>; From patchwork Mon Jan 20 09:21:43 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergio Paracuellos X-Patchwork-Id: 13944908 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 19DB21B413F; Mon, 20 Jan 2025 09:21:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737364919; cv=none; b=u2lacA+vgeGIDy/AEiqrRmmzvMB0dMGaGZcRHSpuRqAQ6TG4Y6fg0AgeYa7tYPZa1fNBcaL+mOnGCxprF8R60JjCxhYZEwRms0815aOTjqK4SyJ7hTb29aAYzdoUZwn9HXLvlGbLoQMN1KuifSBzR+d5Mub7QAXUyS6P8kGb3Gk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737364919; c=relaxed/simple; bh=fj6MxMup+5Ya9FrqXJkojWceGQ1l1OmJpY0zT/psZFo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=pv7mOM/QYSvV+MC0rInWy8QwyPiL7bZeo2AG5AVe48PrTXml9BsZw2h86nRI+YOF/G5HMv6dMF8Ud4rulPGltewyJczZoEwEcSaA0h3NUYyp67PtNABewQ8/qsAKtISwu5STpO5o6hfnjnT/1OmLjoII2gQn/1Ed1PVoBZ5F2gc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=hQw+xkB4; arc=none smtp.client-ip=209.85.128.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hQw+xkB4" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-4361f65ca01so43337905e9.1; Mon, 20 Jan 2025 01:21:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737364916; x=1737969716; darn=vger.kernel.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=VC45fS+EHzOo4eokzsH9DiWrLQSofxt9a5G84Y+GdME=; b=hQw+xkB4NfvZY1p8KIsUXPuXw02VKD7IKcbu1fYsbYdJ8/NKOwKsDi1Pmb176nE2oa wY0VbKM7/d4Oxe7h+Y6vzkQqFITTGVozMRSG2b5DFor0jciy3jUfQtBfekkA71G1cHUa InZFfE7dNx5Cg2kK/KUtTDU+qGG5g1r772bfSv1paqeWU9SJ+bPdx9leNVX4mE/NC45F +Pr6kuQY8ajkUztTM6yCmilWexWVITXHvQsJPHD9OWcNcwlSMyDx6tPVWIC4zf5srDDC 4IEGnZqSm+667joTtMTWs0WZyYUmigl1pkMeuTHgI+rnzSPaHh1LN5fbBGcXbOP+d54M eTbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737364916; x=1737969716; 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=VC45fS+EHzOo4eokzsH9DiWrLQSofxt9a5G84Y+GdME=; b=diMKKwB4sXaIDSMcxYNoVAcDNmO5CjeLoc/xjQ5tH6Lb2rziXMfHELmCwKIoBl5w5O WikSE8W/hZjsdNvzX1PKNu+YbJU2ztwGnzpQEzPkguiIhXH8XrRJp3aYU+N37yt6veMa 5HSnFnC/QiBecGxJVHAmgwKK9Gm2MzbAGYcGlg2etPTaX5K7q4um3OBZfnZOstsQN09Q hNuE9lu41YPiv0kj3aIVfys5tCFb3lB8rnEngz81AqtFQjFF3rq9zsy2sVI7rL5PGabw TFpFMaR0wvSEAzZkEp/u/EwVrT3umGxSO9zm3qxSnidzRF+xBtL9mmCsA21QDn44bgM+ KFMg== X-Forwarded-Encrypted: i=1; AJvYcCU5q4cC2VvhSJL1mi0d00vDQiyieuhbAfLnZyZMQCXp0skbgHUoJFn4ILk6Ppy97nNQm7fDlewqmDgfDQ==@vger.kernel.org, AJvYcCXAQpsyCdRV+w9opzwKHCoLN2WCNRf+uMwIJKs735YD8DK9V06NsxmOCJDktWuQBNu1thSwfFs2h1ri@vger.kernel.org, AJvYcCXCt9CxylPyOBYH+UkDRsRy3TMPJZVRUtUbLP3AkGq36FDoijPRgujIe7EIc2+U0KDxDlAvZPZPpSoENyfR@vger.kernel.org X-Gm-Message-State: AOJu0YxKJYKmqqz6JBvQsp/erwGO1YpmwfFacsuZS9Qfa0S88wHSXXiT ZVxz3NaoX/fpmhjsvKW0tHFxoUfhZoz7QMA6ZKW7ByPkpK1UvIQhotM+Wg== X-Gm-Gg: ASbGnctXHNFR8cbki5RN4aGmWasL8VdKK0VfAIngQe+1U0bWg9NwTSlCJtiU921uN/n P/8pS5skPykphhZMvWrerr6DPNg0YAojaIBi7Y8kCVzg691G8dQpU9PVSFI6aXvuMmgFN4EupXq PXRqvY/aZHEhvumczLi9YXo2v7RDC8JygIQFsll7StEz7em4wF01vsVc+qdpES9Uy3tqT6GI2p6 cd/NMBs3/v7Q2w/uA4Cc5827u2jOZ/CROsOBmRHlUcdQ2a+AyinYoYVHrsY1yWOgyfm/308ilCH rCmBq7oKWm+4TWQAOyoRUz3+7aCr0iIjL9u0DpTHe5oz6DuuTiGmhegVSnwc X-Google-Smtp-Source: AGHT+IFqohmc0kzz613OXb3KoDy7J4hdVJIE7DosZ4lXlYDnnC4C04BDuIXm3+CurX+K+ilaX4Tl/Q== X-Received: by 2002:a7b:c3d8:0:b0:436:17e4:ad4c with SMTP id 5b1f17b1804b1-438a0d3c71fmr61724915e9.6.1737364915956; Mon, 20 Jan 2025 01:21:55 -0800 (PST) Received: from localhost.localdomain (249.red-88-10-54.dynamicip.rima-tde.net. [88.10.54.249]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-438a1ec39a3sm80680175e9.16.2025.01.20.01.21.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jan 2025 01:21:54 -0800 (PST) From: Sergio Paracuellos To: linux-clk@vger.kernel.org Cc: sboyd@kernel.org, mturquette@baylibre.com, tsbogend@alpha.franken.de, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, p.zabel@pengutronix.de, linux-mips@vger.kernel.org, devicetree@vger.kernel.org, yangshiji66@outlook.com, linux-kernel@vger.kernel.org Subject: [PATCH v3 3/6] mips: dts: ralink: rt3050: update system controller node and its consumers Date: Mon, 20 Jan 2025 10:21:43 +0100 Message-Id: <20250120092146.471951-4-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250120092146.471951-1-sergio.paracuellos@gmail.com> References: <20250120092146.471951-1-sergio.paracuellos@gmail.com> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Current RT3050 device tree file system controller node is wrong since it is not matching bindings. Hence, update it to match current bindings updating it also to use new introduced clock constants. Signed-off-by: Sergio Paracuellos --- arch/mips/boot/dts/ralink/rt3050.dtsi | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/mips/boot/dts/ralink/rt3050.dtsi b/arch/mips/boot/dts/ralink/rt3050.dtsi index 23062333a76d..a7d9bb9bc1af 100644 --- a/arch/mips/boot/dts/ralink/rt3050.dtsi +++ b/arch/mips/boot/dts/ralink/rt3050.dtsi @@ -1,4 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 +#include + / { #address-cells = <1>; #size-cells = <1>; @@ -25,9 +27,11 @@ palmbus@10000000 { #address-cells = <1>; #size-cells = <1>; - sysc@0 { - compatible = "ralink,rt3052-sysc", "ralink,rt3050-sysc"; + sysc: syscon@0 { + compatible = "ralink,rt3052-sysc", "ralink,rt3050-sysc", "syscon"; reg = <0x0 0x100>; + #clock-cells = <1>; + #reset-cells = <1>; }; intc: intc@200 { @@ -50,6 +54,8 @@ uartlite@c00 { compatible = "ralink,rt3052-uart", "ralink,rt2880-uart", "ns16550a"; reg = <0xc00 0x100>; + clocks = <&sysc RT305X_CLK_UARTLITE>; + interrupt-parent = <&intc>; interrupts = <12>; From patchwork Mon Jan 20 09:21:44 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergio Paracuellos X-Patchwork-Id: 13944909 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A24681B423E; Mon, 20 Jan 2025 09:21:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737364921; cv=none; b=NlcYX1iskx3mAK5k8yDuelxtcAVSMqdG2YN9ZnO5V0ja76iTxDIn2Fm/5EMMwUow0SWYKl96dfKUwT2ym+OMeNrvrnudgbp4TkPuE7Lba1Oh0AkBDH92NS6FPKatCIZtX/5pt474nCf7KdgTnF74UgzuDAD4U/KNBGvbeezISxg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737364921; c=relaxed/simple; bh=j1bB0LohY6Q4ZWswaHmpsEMNIOAEiiDhiYORQ5U0qBA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=fz1UXR4HqLHK4H/n9stDWsaZMgw8hf8oBiVt/cAYVMmCRBrkZuoxaKE07WTe+XU5yJMagDiLPpPUUs2iItezQcm0E3Y9COmgXZ+SEfKFbmeN3/oZqEQI6hRyPm+CERIb107cxUJgAAm8VWemtUShIlHZVSCydMQHB/+EIEseyeo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=IYjcGIWA; arc=none smtp.client-ip=209.85.128.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IYjcGIWA" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4361b6f9faeso26375955e9.1; Mon, 20 Jan 2025 01:21:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737364917; x=1737969717; darn=vger.kernel.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=9MK30M1/4LGOcL0ZrPE9gPryc2MA/RdOwp1GOptQnIo=; b=IYjcGIWA2WuXo6hRNzqRbFVuknb7QsW+Q5lW5XB/vb8kB/xGz/UgoPU3aAxJsiRxha PljYZtKXSjW8qgN+MD1pFAR9EaTKaUitadyVqTEJ9h8FqAOv7RnF2uZU1yB1upR2kGK7 Xs3DeXoEW0bHcWps5Hu7xM7Zot4C/jNgl97KY+MXrre3h/tlCuCMPcF1SnNtuuXhjMK/ uHjy4CnrmYm9l84MbigifGQihl8HMb+koSvOWYB6jw0tzZG/rqHXoZo/amK9SqnlJy14 jTw0+03PXzFJF89CI1EEYmeku/+tLgqm8uMIOrHGXgMVNpcRTie6nXflzDTHo9Hpdzix vMBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737364917; x=1737969717; 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=9MK30M1/4LGOcL0ZrPE9gPryc2MA/RdOwp1GOptQnIo=; b=hGil4vKOD5nrF/VHEtmfkLaTujg0awtinCjC73e0N/ex/wybnskpb9XbjodnT4bB4J Sj9WFmgpBrcwS5dJlsaW7RTMYheUWmfrpLE6V0W7SrcciBrKkka07PtpAcB5nDs1YGdv 5QF3PfVwXeSlM9QCDvFTw2cTPl+DfJtxn+xRS7Ov+drawK3cuR1IJsxcjRIRf3xvwKzj D/1mA/KGGiUirBoxZBE7tDUZazzsmIaPv+hLSYXP2DLW7fl4m5pCzoodT46FDP7a0q1l m4oJ5oHxFjW9CfRKR3M4STAFO4iadDhYYKCx+xYyuPU8It/DVS2Gtzo4GIUTZ4Xzo2jU 9xuA== X-Forwarded-Encrypted: i=1; AJvYcCUI8ISmj7Zqbe6q9nVIbXeFIcvG/qmYoZlaVJkNQMTT6y7Wn0hlZDKMMss5zjdu2sE02SOEhqxMeIpd@vger.kernel.org, AJvYcCVJEn3v3JgrpxD8wIJyG6lz88OzTua5QHiuVCgapEp2NbGhANnO6cOsxezMfXrJ8n948nunRmUiESdXPPg2@vger.kernel.org, AJvYcCXiY7/MRPojQ15lBkcbVerwuj7ti3ZDRIq8C8ahvQUs8nva1W14pUYEjLBpht+mIAAjMD2LuDE9Hdp5dg==@vger.kernel.org X-Gm-Message-State: AOJu0YwYrX0BNhBnAi1A7hpLMYtF+T7L2wAKcZgFxVfTVNux19gm5zt8 MfbCWjKIPJ7QjsQrGkkMiqlMutxueb5obwURDFYLBz+Jym18CU8HVJK+AA== X-Gm-Gg: ASbGncvQV7n68UzPKbaCZLN7iR32VfDfMzfCJXlH2mJ6c090TUaHrpZ8C+cNH4JCTVL V/Qvhc3EtBZtX6IGCjVNU3OoRTrZKqYNlaiRWkOkb9TrDb484J/f1IrQqiSaFEpPQL+Yt5sU+2K 3idnuxqS6CZALkQb6neMlEZSTYEuCswBS1JvERxCBB2Y6LHVKfutw+RM/I4SbmK28ks2qqfAj4s 40Tk7VX1UVheMRcyo6xF3bJdhcvxNaDbaLe0v60EfYqpfJLwJAVlhuCjT+UEHTr7wSbq7y1q3UO DWYLNZquAnA6u6R1IoeioNID0osBVzrjL4ZAenDGzRJ5yf7zYV0SsxMoqJ71 X-Google-Smtp-Source: AGHT+IGCrq/0Abvy7xsVDyj14gE/VqJh0WqMtO/RzLZDTzW09lbb9I+ejRB5GAx3SmfPOx0BPhqP1Q== X-Received: by 2002:a05:600c:5cc:b0:42c:baf1:4c7 with SMTP id 5b1f17b1804b1-437c6af202cmr174066615e9.4.1737364917418; Mon, 20 Jan 2025 01:21:57 -0800 (PST) Received: from localhost.localdomain (249.red-88-10-54.dynamicip.rima-tde.net. [88.10.54.249]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-438a1ec39a3sm80680175e9.16.2025.01.20.01.21.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jan 2025 01:21:56 -0800 (PST) From: Sergio Paracuellos To: linux-clk@vger.kernel.org Cc: sboyd@kernel.org, mturquette@baylibre.com, tsbogend@alpha.franken.de, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, p.zabel@pengutronix.de, linux-mips@vger.kernel.org, devicetree@vger.kernel.org, yangshiji66@outlook.com, linux-kernel@vger.kernel.org Subject: [PATCH v3 4/6] mips: dts: ralink: rt3883: update system controller node and its consumers Date: Mon, 20 Jan 2025 10:21:44 +0100 Message-Id: <20250120092146.471951-5-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250120092146.471951-1-sergio.paracuellos@gmail.com> References: <20250120092146.471951-1-sergio.paracuellos@gmail.com> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Current RT3883 device tree file system controller node is wrong since it is not matching bindings. Hence, update it to match current bindings updating it also to use new introduced clock constants. Signed-off-by: Sergio Paracuellos --- arch/mips/boot/dts/ralink/rt3883.dtsi | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/mips/boot/dts/ralink/rt3883.dtsi b/arch/mips/boot/dts/ralink/rt3883.dtsi index 61132cf157e5..11d111a06037 100644 --- a/arch/mips/boot/dts/ralink/rt3883.dtsi +++ b/arch/mips/boot/dts/ralink/rt3883.dtsi @@ -1,4 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 +#include + / { #address-cells = <1>; #size-cells = <1>; @@ -25,9 +27,11 @@ palmbus@10000000 { #address-cells = <1>; #size-cells = <1>; - sysc@0 { - compatible = "ralink,rt3883-sysc", "ralink,rt3050-sysc"; + sysc: syscon@0 { + compatible = "ralink,rt3883-sysc", "syscon"; reg = <0x0 0x100>; + #clock-cells = <1>; + #reset-cells = <1>; }; intc: intc@200 { @@ -50,6 +54,8 @@ uartlite@c00 { compatible = "ralink,rt3883-uart", "ralink,rt2880-uart", "ns16550a"; reg = <0xc00 0x100>; + clocks = <&sysc RT3883_CLK_UARTLITE>; + interrupt-parent = <&intc>; interrupts = <12>; From patchwork Mon Jan 20 09:21:45 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergio Paracuellos X-Patchwork-Id: 13944910 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DCE2E1B6CEC; Mon, 20 Jan 2025 09:22:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737364922; cv=none; b=bBNw/0ZDsUxSCkjkTUk1uPtW0G8qaGZbUoIimr4cpI+WrSwZBm7D0/GtHLZrJ9h/UbVs0BvTQvFFXWlrmpgWadCg/0Ey4frYGh8qAvqfkC/nYN1EAsW8EdWydsfhqbAmqezNPUBN2V2ctOYYrer7PFyfA9jFCeMGfW3EsTK8SBw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737364922; c=relaxed/simple; bh=u8xwRiiCuQLkhGAjzAw29/lLxgn/oUBnngKnpNkEa0o=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=C1YDr0fhGZWpxS7PV2OyYpeaz0tYwJH7imzJRPyQdgG/ZFhjz1YYFRXbd1HoaxAnqG+VN+SCV/JWByTjDksLelTv+2NqzEQ4Ag/S3m5kPgLuBMMocJGdvfPjBIn6XKI0RPNmv+zNQyp5nH6EcYKDBHWOblXTfqmC0FegyxMIk40= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=VP0gOt4v; arc=none smtp.client-ip=209.85.128.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VP0gOt4v" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-436a03197b2so28428375e9.2; Mon, 20 Jan 2025 01:22:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737364919; x=1737969719; darn=vger.kernel.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=Bx/Vz3lnnQGL+fWlhChgYUST4mHwANO098Y8yGy2x8w=; b=VP0gOt4vm512ai4zHtZTtFf3SrkiVVmgs0wyju52Axm/2Pb4TJp+dHVnoXFvxTaF0e JO3CllK1yX1BXOEbEMGH0/NYoOnvr9kMIRGd45EFnic2IoOuid1H5n1l1nkON00cdebj crmv3NKxROuT0VgPSwY57CBZwKd81xnGtSsPEQ++qtm0r0YEHl+ENQX992aNhk/+zR+K ZZ5QMBgNyaE08A4GnUEEu/fS62wUDAr/y4er9HjQRCcL6VaEdLXoCnrM0idQ71cCwQFP y+qdBJ2OfvhrQCAw5l5KIkRQiucePb0sd1djPhAZIv085pXmB85uyrRgh4kJLx0UxZlh 97ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737364919; x=1737969719; 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=Bx/Vz3lnnQGL+fWlhChgYUST4mHwANO098Y8yGy2x8w=; b=N2g0HdLfMdNiY6kDeF1AIe+maAAcAN7PQ+Pb72g++0TsepQRK44IiJJtk1wO4qme2K 1RLYE7ESJXRA6Y7/bvYxYbfaGn2n2Yd8S5HvDIrWsYL/KSrB3/B9PUSCda/YW5A2negU 3JKv6KruvrZoZD24ClBIak5qvWCdDrHcUR6ixLy1RvLFNxX3BclKz1foANZl3zaQyV27 zWhL8Missk3EG7228KGvco+fdisxm50eD+85oQM1HuiSQA7WftqvAuUGAaV+uKNcNF+t jevg9M/lUZy2v6RcY48Bz31UQGUQdKD8WLxwyq69ntQ2SQYic6+4vLIQT5YP+jp924NV AUAg== X-Forwarded-Encrypted: i=1; AJvYcCVTRcP2nFpzGyQWa8R7z3JebugzjaLNFCrmMzR1bTF5zY3ByTRo8KWTdEUSb/RQcnUevhK5H+09HldHGOUd@vger.kernel.org, AJvYcCXBMyCxjjvK0wSCSK5uEcQyZKmhRpvDUYuDEymfg2Hzamm/YltKkyHRqXCyo/wGScdoIULQBo130AGO@vger.kernel.org, AJvYcCXCD0LS11UXwYfxMRJ556SV4HUkKtrfRQR9s65ELR0xU6OL8HCxWULs2jsq1q198HBVIeBVv7kF+gY4og==@vger.kernel.org X-Gm-Message-State: AOJu0YzoCE74Zq/dJy8AlLwq6X0OWnrBj9+BAed5aoURjXj5yMxt/TP4 vmgzHyNCJ1eLlKji41hqkBbFwn/ZR5umtSEHcA2+Yj60//laniofBQcKNw== X-Gm-Gg: ASbGncu31lSt/+AIzOPVrBRX5fdiAjLBvIracMF7qCssXwdKLXzuMP+eeNcIf0ubik1 PnzzO/tHsCXtrgCruAjg5xin57d6MDsjkke+DLPNp+HmHv1CfRn4kIA22zljgqAoEFT7bf+mZO9 eUgvBjZwmITxArYCJsZ++aoJskfDf+3dDFIkFiagaIZ3AdXSuPIwzAgzB8kr/eIdyBOfrG9IxMi uPwDYvgoPKZ4+0Gnzga3/C4cLEQ2W6VLLuzUTH0pNL7OJwvSSViXH3TsGyrvUSg5xlwxrHqM2LX L54jF+KvnJkufhgv6PuZhDuQmdN1cKEe7RaWyEvNoc3PniRi9il/Y0yZoWBq X-Google-Smtp-Source: AGHT+IG2TXtO4QB4izfd6gv/dsovfT+xC2gJkwSMgFTsHrp99jubYZkaGFoFiwmAFNlf54gN2P+vdg== X-Received: by 2002:a05:600c:3d97:b0:436:f960:3427 with SMTP id 5b1f17b1804b1-4389142745amr102033075e9.22.1737364918812; Mon, 20 Jan 2025 01:21:58 -0800 (PST) Received: from localhost.localdomain (249.red-88-10-54.dynamicip.rima-tde.net. [88.10.54.249]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-438a1ec39a3sm80680175e9.16.2025.01.20.01.21.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jan 2025 01:21:58 -0800 (PST) From: Sergio Paracuellos To: linux-clk@vger.kernel.org Cc: sboyd@kernel.org, mturquette@baylibre.com, tsbogend@alpha.franken.de, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, p.zabel@pengutronix.de, linux-mips@vger.kernel.org, devicetree@vger.kernel.org, yangshiji66@outlook.com, linux-kernel@vger.kernel.org Subject: [PATCH v3 5/6] mips: dts: ralink: mt7620a: update system controller node and its consumers Date: Mon, 20 Jan 2025 10:21:45 +0100 Message-Id: <20250120092146.471951-6-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250120092146.471951-1-sergio.paracuellos@gmail.com> References: <20250120092146.471951-1-sergio.paracuellos@gmail.com> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Current MT7620A device tree file system controller node is wrong since it is not matching bindings. Hence, update it to match current bindings updating it also to use new introduced clock constants. Signed-off-by: Sergio Paracuellos --- arch/mips/boot/dts/ralink/mt7620a.dtsi | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/mips/boot/dts/ralink/mt7620a.dtsi b/arch/mips/boot/dts/ralink/mt7620a.dtsi index 1f6e5320f486..d66045948a83 100644 --- a/arch/mips/boot/dts/ralink/mt7620a.dtsi +++ b/arch/mips/boot/dts/ralink/mt7620a.dtsi @@ -1,4 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 +#include + / { #address-cells = <1>; #size-cells = <1>; @@ -25,9 +27,11 @@ palmbus@10000000 { #address-cells = <1>; #size-cells = <1>; - sysc@0 { - compatible = "ralink,mt7620a-sysc"; + sysc: syscon@0 { + compatible = "ralink,mt7620-sysc", "syscon"; reg = <0x0 0x100>; + #clock-cells = <1>; + #reset-cells = <1>; }; intc: intc@200 { @@ -50,6 +54,8 @@ uartlite@c00 { compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a"; reg = <0xc00 0x100>; + clocks = <&sysc MT7620_CLK_UARTLITE>; + interrupt-parent = <&intc>; interrupts = <12>; From patchwork Mon Jan 20 09:21:46 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergio Paracuellos X-Patchwork-Id: 13944911 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BD8441B87D5; Mon, 20 Jan 2025 09:22:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737364924; cv=none; b=mSEBkT5thv5ceF2+jzEFFmUXAeIO/NTurGFeg6xmQy1pMMm0XM8JRbvYJ8LFoY830FQHzNRl1H01/Ug5pL3FUiver+CSeY2V/NxC7Q+dowWcCt/h2XA7K1BO0X4OhvfdD8E0TVGBZuuNpFD4uvTfgLh1P/WwvaOJ5NTj3WrkHYw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737364924; c=relaxed/simple; bh=0Ib6CCZCXGLLnxvNMqthiY5L7ImeJqbIkZLt8Kg4k+8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=rygq/FNDL9ET9brmoljv1wDvTX5w+rdNQZ9wUDRbYKBJVEb3C3nHNNP5NDifTTyEhEz0kPGUGXDAp0gCaMWrgLl7coPY8sH/wfjR1kdPCKc3e4xKSlDhPEQ/9T3y1hHsVDBDPGpUyCjQjGDolmFMO2UkiOryoMx0w4Lpv9C/r+s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=aJ+HzOp3; arc=none smtp.client-ip=209.85.128.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="aJ+HzOp3" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-4361e89b6daso28618025e9.3; Mon, 20 Jan 2025 01:22:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737364920; x=1737969720; darn=vger.kernel.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=7SYOrmjXULZWrV3aYpbPZPuiNow+yUL2z22OQoOzio8=; b=aJ+HzOp3CFwDNKkMfO2d78qzEMg8pU2hzQiTEYMTEGW2ZLKJp3nSTbIZpS0gEhrZBk hn73Y5Qr//QpkqX6/YLmJey0wpqIW7AqSzhVyj3a2UeAWNobhjL/goWNQUg66w8f3ik2 lKwfAmJbPe60HrnXogAFi7Unol9QM3SkoasanYshmJ8VYC7WAip1dOihoX2TwTz2NcIU PWmdKKeB+CPmzSnMOzncF7PLCsrdGSStlTlPdQtaPgJ61LWWHP9lfifBXA4GsdSyVEFO NVDFOlL3nxhv4Z1JU5Dw9LKG4k7mq+9lMtmzD+KhhH3llEfyM1eCehCkp9DR/dbjdgfV Vh+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737364920; x=1737969720; 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=7SYOrmjXULZWrV3aYpbPZPuiNow+yUL2z22OQoOzio8=; b=GRiAdApbNYYQEMBMvJkoMHR2FThBPaLHKENymggMuCpQeRzVvB0PlY1ddfX1Yw2AON 6xoN0N9gvWO+++TR5qGro0Z2+ZydMhwgOdtkp/EaNdo8o351QnLFdSMsKUd9i7Y8M/ML 7MbZ3sKWFa18XLDWxu6nV635wXY8xqizAdPyu4JUuyKLoAgo4NHsTSJphQmTbeFDgFUw ZYvC9CwXtdTtC/SpIDyZTFIrMEKS3FeRX/utUxfVw5pbhgOe5tnQg8SJ0W0oZ3Cdrde5 +8Elf6fusg5Jv/yCxvYZ0N0xhy/dNJ8Ti1fr41Lo4leMN+Y1antDxRoHwXfSee8Q+msH OnCg== X-Forwarded-Encrypted: i=1; AJvYcCV1bC0U/54yugQU2oa454XWgRykgKd7F7vcL0A7vI3NIyZm5y3FckteezomkA6aG5rIqbiqPA2Vc9TJ7FvR@vger.kernel.org, AJvYcCVgLxgT6QsczGET7Y9djr8NsCJhP1LCVMkVVr+d9IAhISz5ue9mCNsk8zCSiv+unC46npcGSpgHc8lG@vger.kernel.org, AJvYcCX0QW3htkDZ18KC4vZMURC7ndSZ41lDXOwnEFHgIbduwt59XkfQ/vEQ2t3lt7YItvRjpbTSiaHx4gdcqQ==@vger.kernel.org X-Gm-Message-State: AOJu0Ywqxevh/i66oNaxMPIOwy42ZKMA5ciLY//z7v0iCqzSn60KnfkT FXSlvPW06rEzq8kND2MDferqBkVIrDVGovclKqpLY+v2uAtKG90DD3TRtA== X-Gm-Gg: ASbGncvoK+j5ALb2ZcdzNO2fd7zV6Gfv/Wa/EDtyq+O2HXENni7u0xrFACDP26Pc+/o df0r5CUbN2iFEFxdMs6Pzp2fWeZgrBgR368mdY8waVzlbF+AuyOyJIH3/XPPUz8sU3+luWU/Ye7 WH6F3kBzawSkMUyDzgznWaJY+aLIMGEouccuJakqyN1L7SOwpx5miDAe6n4ca/NZh0nLxnaWXW0 sSRTOBnDFaAl/B72IvwjvL0QZFNJY5pQpDQiCnn3Vl1f1T1uqg667hGSEZJbYTW4tovse09Yiec /SoCjPaxE5/awcmp/MahoJV1JWRkcYXYI4S8pUmwFTJhce2Zk0MmfbtMVW3C X-Google-Smtp-Source: AGHT+IHesuI++LiyfBLPMict7L94Ay4gDQBJEaEzfY+4QdPcPx0zi/sAUAqEQhwYiVXRVfds4GFb3g== X-Received: by 2002:a05:600c:46cb:b0:434:f1e9:afb3 with SMTP id 5b1f17b1804b1-438913bea88mr108869335e9.3.1737364920277; Mon, 20 Jan 2025 01:22:00 -0800 (PST) Received: from localhost.localdomain (249.red-88-10-54.dynamicip.rima-tde.net. [88.10.54.249]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-438a1ec39a3sm80680175e9.16.2025.01.20.01.21.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jan 2025 01:21:59 -0800 (PST) From: Sergio Paracuellos To: linux-clk@vger.kernel.org Cc: sboyd@kernel.org, mturquette@baylibre.com, tsbogend@alpha.franken.de, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, p.zabel@pengutronix.de, linux-mips@vger.kernel.org, devicetree@vger.kernel.org, yangshiji66@outlook.com, linux-kernel@vger.kernel.org Subject: [PATCH v3 6/6] mips: dts: ralink: mt7628a: update system controller node and its consumers Date: Mon, 20 Jan 2025 10:21:46 +0100 Message-Id: <20250120092146.471951-7-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250120092146.471951-1-sergio.paracuellos@gmail.com> References: <20250120092146.471951-1-sergio.paracuellos@gmail.com> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Current MT7628A device tree file system controller node is wrong since it is not matching bindings. Hence, update it to match current bindings updating it also to use new introduced clock constants. Signed-off-by: Sergio Paracuellos --- arch/mips/boot/dts/ralink/mt7628a.dtsi | 38 ++++++++++++++++---------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/arch/mips/boot/dts/ralink/mt7628a.dtsi b/arch/mips/boot/dts/ralink/mt7628a.dtsi index 45a15e005cc4..309966049c56 100644 --- a/arch/mips/boot/dts/ralink/mt7628a.dtsi +++ b/arch/mips/boot/dts/ralink/mt7628a.dtsi @@ -1,4 +1,5 @@ // SPDX-License-Identifier: GPL-2.0 +#include / { #address-cells = <1>; @@ -16,11 +17,6 @@ cpu@0 { }; }; - resetc: reset-controller { - compatible = "ralink,rt2880-reset"; - #reset-cells = <1>; - }; - cpuintc: interrupt-controller { #address-cells = <0>; #interrupt-cells = <1>; @@ -36,9 +32,11 @@ palmbus@10000000 { #address-cells = <1>; #size-cells = <1>; - sysc: system-controller@0 { - compatible = "ralink,mt7620a-sysc", "syscon"; + sysc: syscon@0 { + compatible = "ralink,mt7628-sysc", "syscon"; reg = <0x0 0x60>; + #clock-cells = <1>; + #reset-cells = <1>; }; pinmux: pinmux@60 { @@ -138,7 +136,7 @@ watchdog: watchdog@100 { compatible = "mediatek,mt7621-wdt"; reg = <0x100 0x30>; - resets = <&resetc 8>; + resets = <&sysc 8>; reset-names = "wdt"; interrupt-parent = <&intc>; @@ -154,7 +152,7 @@ intc: interrupt-controller@200 { interrupt-controller; #interrupt-cells = <1>; - resets = <&resetc 9>; + resets = <&sysc 9>; reset-names = "intc"; interrupt-parent = <&cpuintc>; @@ -190,7 +188,9 @@ spi: spi@b00 { pinctrl-names = "default"; pinctrl-0 = <&pinmux_spi_spi>; - resets = <&resetc 18>; + clocks = <&sysc MT76X8_CLK_SPI1>; + + resets = <&sysc 18>; reset-names = "spi"; #address-cells = <1>; @@ -206,7 +206,9 @@ i2c: i2c@900 { pinctrl-names = "default"; pinctrl-0 = <&pinmux_i2c_i2c>; - resets = <&resetc 16>; + clocks = <&sysc MT76X8_CLK_I2C>; + + resets = <&sysc 16>; reset-names = "i2c"; #address-cells = <1>; @@ -222,7 +224,9 @@ uart0: uartlite@c00 { pinctrl-names = "default"; pinctrl-0 = <&pinmux_uart0_uart>; - resets = <&resetc 12>; + clocks = <&sysc MT76X8_CLK_UART0>; + + resets = <&sysc 12>; reset-names = "uart0"; interrupt-parent = <&intc>; @@ -238,7 +242,9 @@ uart1: uart1@d00 { pinctrl-names = "default"; pinctrl-0 = <&pinmux_uart1_uart>; - resets = <&resetc 19>; + clocks = <&sysc MT76X8_CLK_UART1>; + + resets = <&sysc 19>; reset-names = "uart1"; interrupt-parent = <&intc>; @@ -254,7 +260,9 @@ uart2: uart2@e00 { pinctrl-names = "default"; pinctrl-0 = <&pinmux_uart2_uart>; - resets = <&resetc 20>; + clocks = <&sysc MT76X8_CLK_UART2>; + + resets = <&sysc 20>; reset-names = "uart2"; interrupt-parent = <&intc>; @@ -290,6 +298,8 @@ wmac: wmac@10300000 { compatible = "mediatek,mt7628-wmac"; reg = <0x10300000 0x100000>; + clocks = <&sysc MT76X8_CLK_WMAC>; + interrupt-parent = <&cpuintc>; interrupts = <6>;