From patchwork Sun Jan 19 15:44: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: 13944520 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 C42C71DED4F; Sun, 19 Jan 2025 15:44:55 +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=1737301497; cv=none; b=FWE5ha1MgLxlnpnt8Z6FYRmCyRes43jA2w5FkYCNAOPoyrLPSuleMeClUcj4+r+M7uZo/kJs+gz1igODWFEmKYcbm5h9DI0aj0Z0FP7zC5vzApGgcrWHt2PJJTpMFoEkV6HenrXiZdWlqKgSDWB9iZ1i3b6vnVVG+y1W4R3r/Io= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737301497; c=relaxed/simple; bh=Ep96jUMsztncXZUEOefoNDyLWDduRgGtDWaLhe4PRZM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=oZmRCXv06ESeSHtjeW/p90EUbxHgv87kyyuqVHCLBVlSpxYtTfHKAEuogdsBAkj/ON6kNNtSjEkkLF1KQpA0LYBx1hTMVunoRWV6o2xr1TfmGldvaR76A778LRO9I6O8RdIfRG8UsAfaGmEyNfouy2eaupowg0Fw9NT13AMl2hU= 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=buUMqEHl; 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="buUMqEHl" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-4361f664af5so41826265e9.1; Sun, 19 Jan 2025 07:44:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737301493; x=1737906293; 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=gIk9dNDM0y1fGHAFjJiPmiekeu53KNHHoqoGWF4LqU0=; b=buUMqEHlEjKS2EVUjiPrLeJLfRUHnk44Z9N18aHLSdggRSVV/jlFg1gK8nlDSAMlTX hhCI46z4Bul+F6tVqWRROP8Ym3ZeQMoacyZqJ+WioM+FC0oL5cP5apwwRMRxk+uBLyf3 5t2WrAEyKhLoGbi5qJZVtsyK9ngi3gUHQXqdk0MRzECnloKZ4EV9xqO63ELsQAnX6U/X QWiTbSvF36LHnB9PGy1cLTBBLwR8zjj7lJVOPoJA/5JMPrUV+D9ebcIlSFZY+hXGGSTO KjQXPcWDEtj220pe0pW8h1DtNdYiR/p9OQgi/IXQT7THC6LKEnFKH9h6hpA4r9j+R4ZJ j42A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737301493; x=1737906293; 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=gIk9dNDM0y1fGHAFjJiPmiekeu53KNHHoqoGWF4LqU0=; b=fqpqn6Ue9NhEc/DI8p9x6UtUUvc6NDK/gx6swGkV4rGKG860P0VdcTHMO7nW1WxfWz KBqLvI/VYlrtMns1LSCCe/NeGkbRVNW5XaFC90dsXNjc+kjU7xxqwCvPaNzW5gAV4DXV D1+iMHlMWiocjI6fWwjGnvkJgdP0aSfUF2QZ8zZfVahJlM71MKCuPNn7Imnoqr3WLCx6 aCyefnXUBTsT3NEMW3vujUV5rj9UjlKG64Mqs/BM4TmDuH6Tgdk5lH+QSCLZStZB9A/w iz0KrcuH9rMvM2SFViDpYo7qaPoX4qWjnWaSONJRsq/HgvbauHJN/qXZAxDb0U9AABOc Uj5Q== X-Forwarded-Encrypted: i=1; AJvYcCVl5HXxQ7CKzjf0pPKfwOTuf/0hqeUJkB9PmocpY/IWb7UKVRmYiyf9hqD1Jci7tAO3sBY6fiqq735CPQ==@vger.kernel.org, AJvYcCWz8h5otjUrJMOv0zhMZbY0mWNxcHe4ZZlKWp0f5wvursDZqzwqMioCuW+PMZiUJw6W1jJ4Hdymm9CzirA7@vger.kernel.org, AJvYcCXUdGwFsBkQfwuRsACF4MhlLZ2APSR0ifGjobtObwBgBnZjBNFX0RXlvm9Y3/MVmEOX2A05KMSVhC4e@vger.kernel.org X-Gm-Message-State: AOJu0Yw0PtdhQdapyAnWuKDS+ixXsbJ8egULbmb9eKLy9QwDutApG1NY 8a3FWOH6GxnDQ9j5FcHHX3eFKAyRfmGbwoFVvZkzCPjbnvJOsINGXWBdCA== X-Gm-Gg: ASbGncs8gjzEucem+tIA3tUkGaE1wfGQIWEchEsOjTWoa963eRzy8p5RvW2jrjqqzQx psBuiUUpOlzPF3XdGJey4/COcVEKuX5Iia7yPRBB8tbsZvFLPOoSz8p+6VM9CAfVJb+GToHkA9I s42N6McR2YTVJiJi949TSMa64QtB05TDQPIemyb738yfHRxA8nQT+k/5n6/DGqIzchL3u8KOilg BhyIEACDR2LQ2pX389APX7zftilGHdUgyj0OBQlNyTQOWu9xV0wDlzsODQ/z6YyRQ55yuAqQyfe adElhoFRS7UDJtvBn/ceLIBfvrFYgqHd40Q9uYJImREb/hhZVathVFmgHfRH X-Google-Smtp-Source: AGHT+IFvDubY+lyc6bh5Y08rtlRV2TjQ9zfEoykPw7Yd6krOqYsaG2WHjMCeJ3VitiNwGRZT1bF6+A== X-Received: by 2002:a7b:cbda:0:b0:438:a240:c55 with SMTP id 5b1f17b1804b1-438a2400f62mr34814585e9.1.1737301493105; Sun, 19 Jan 2025 07:44: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-4389046885esm104532655e9.36.2025.01.19.07.44.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Jan 2025 07:44:52 -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 v2 1/6] dt-bindings: clock: add clock and reset definitions for Ralink SoCs Date: Sun, 19 Jan 2025 16:44:42 +0100 Message-Id: <20250119154447.462857-2-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250119154447.462857-1-sergio.paracuellos@gmail.com> References: <20250119154447.462857-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 and reset missing definitions for RT2880, RT305X, RT3352, RT3383, RT5350, MT7620 and MT76X8 Ralink SoCs. Update bindings to clarify clock and reset cells 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 and reset bits are implicitly used there). Signed-off-by: Sergio Paracuellos --- .../bindings/clock/mediatek,mtmips-sysc.yaml | 18 ++- .../dt-bindings/clock/mediatek,mtmips-sysc.h | 130 +++++++++++++++ .../dt-bindings/reset/mediatek,mtmips-sysc.h | 152 ++++++++++++++++++ 3 files changed, 298 insertions(+), 2 deletions(-) create mode 100644 include/dt-bindings/clock/mediatek,mtmips-sysc.h create mode 100644 include/dt-bindings/reset/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..3d60e65836ed 100644 --- a/Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml +++ b/Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml @@ -18,6 +18,15 @@ 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]: . + + Reset related bits are defined in: + [2]: . + properties: compatible: items: @@ -38,12 +47,14 @@ 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': description: - The first cell indicates the reset bit within the register. + The first cell indicates the reset bit within the register, see + [2] for available resets. const: 1 required: @@ -56,6 +67,9 @@ additionalProperties: false examples: - | + #include + #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 */ diff --git a/include/dt-bindings/reset/mediatek,mtmips-sysc.h b/include/dt-bindings/reset/mediatek,mtmips-sysc.h new file mode 100644 index 000000000000..1bc6024b1f22 --- /dev/null +++ b/include/dt-bindings/reset/mediatek,mtmips-sysc.h @@ -0,0 +1,152 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* + * Author: Sergio Paracuellos + */ + +#ifndef _DT_BINDINGS_RST_MTMIPS_H +#define _DT_BINDINGS_RST_MTMIPS_H + +/* Ralink RT-2880 resets */ + +#define RT2880_RST_SYS 0 +#define RT2880_RST_I2C 9 +#define RT2880_RST_FE 18 + +/* Ralink RT-305X resets */ + +#define RT305X_RST_SYS 0 +#define RT305X_RST_TIMER 8 +#define RT305X_RST_INTC 9 +#define RT305X_RST_MEMC 10 +#define RT305X_RST_PCM 11 +#define RT305X_RST_UART 12 +#define RT305X_RST_PIO 13 +#define RT305X_RST_DMA 14 +#define RT305X_RST_I2C 16 +#define RT305X_RST_I2S 17 +#define RT305X_RST_SPI 18 +#define RT305X_RST_UARTLITE 19 +#define RT305X_RST_WLAN 20 +#define RT305X_RST_FE 21 +#define RT305X_RST_OTG 22 +#define RT305X_RST_SW 23 + +/* Ralink RT-3352 resets */ + +#define RT3352_RST_SYS 0 +#define RT3352_RST_TIMER 8 +#define RT3352_RST_INTC 9 +#define RT3352_RST_MEMC 10 +#define RT3352_RST_PCM 11 +#define RT3352_RST_UART 12 +#define RT3352_RST_PIO 13 +#define RT3352_RST_DMA 14 +#define RT3352_RST_I2C 16 +#define RT3352_RST_I2S 17 +#define RT3352_RST_SPI 18 +#define RT3352_RST_UARTLITE 19 +#define RT3352_RST_WLAN 20 +#define RT3352_RST_FE 21 +#define RT3352_RST_UHST 22 +#define RT3352_RST_SW 23 +#define RT3352_RST_EPHY 24 +#define RT3352_RST_UDEV 25 +#define RT3352_RST_MIPS_CNT 28 + +/* Ralink RT-3883 resets */ + +#define RT3883_RST_SYS 0 +#define RT3883_RST_TIMER 8 +#define RT3883_RST_INTC 9 +#define RT3883_RST_MEMC 10 +#define RT3883_RST_PCM 11 +#define RT3883_RST_UART 12 +#define RT3883_RST_PIO 13 +#define RT3883_RST_DMA 14 +#define RT3883_RST_I2C 16 +#define RT3883_RST_I2S 17 +#define RT3883_RST_SPI 18 +#define RT3883_RST_UARTLITE 19 +#define RT3883_RST_WLAN 20 +#define RT3883_RST_FE 21 +#define RT3883_RST_UHST 22 +#define RT3883_RST_SW 23 +#define RT3883_RST_EPHY 24 +#define RT3883_RST_UDEV 25 +#define RT3883_RST_MIPS_CNT 28 + +/* Ralink RT-5350 resets */ + +#define RT5350_RST_SYS 0 +#define RT5350_RST_TIMER 8 +#define RT5350_RST_INTC 9 +#define RT5350_RST_MEMC 10 +#define RT5350_RST_PCM 11 +#define RT5350_RST_UART 12 +#define RT5350_RST_PIO 13 +#define RT5350_RST_DMA 14 +#define RT5350_RST_I2C 16 +#define RT5350_RST_I2S 17 +#define RT5350_RST_SPI 18 +#define RT5350_RST_UARTLITE 19 +#define RT5350_RST_WLAN 20 +#define RT5350_RST_FE 21 +#define RT5350_RST_UHST 22 +#define RT5350_RST_SW 23 +#define RT5350_RST_EPHY 24 +#define RT5350_RST_UDEV 25 +#define RT5350_RST_MIPS_CNT 28 + +/* Ralink MT-7620 resets */ + +#define MT7620_RST_SYS 0 +#define MT7620_RST_TIMER 8 +#define MT7620_RST_INTC 9 +#define MT7620_RST_MEMC 10 +#define MT7620_RST_PCM 11 +#define MT7620_RST_UART 12 +#define MT7620_RST_PIO 13 +#define MT7620_RST_DMA 14 +#define MT7620_RST_NAND 15 +#define MT7620_RST_I2C 16 +#define MT7620_RST_I2S 17 +#define MT7620_RST_SPI 18 +#define MT7620_RST_UARTLITE 19 +#define MT7620_RST_WLAN 20 +#define MT7620_RST_FE 21 +#define MT7620_RST_ESW 23 +#define MT7620_RST_EPHY 24 +#define MT7620_RST_UHST0 25 +#define MT7620_RST_PCIE0 26 +#define MT7620_RST_MIPS_CNT 28 +#define MT7620_RST_SDHC 30 +#define MT7620_RST_PPE 31 + +/* Ralink MT-76X8 resets */ + +#define MT76X8_RST_SYS 0 +#define MT76X8_RST_SPIS 3 +#define MT76X8_RST_WIFI 4 +#define MT76X8_RST_HIF 5 +#define MT76X8_RST_TIMER 8 +#define MT76X8_RST_INTC 9 +#define MT76X8_RST_MEMC 10 +#define MT76X8_RST_PCM 11 +#define MT76X8_RST_UART0 12 +#define MT76X8_RST_PIO 13 +#define MT76X8_RST_GDMA 14 +#define MT76X8_RST_I2C 16 +#define MT76X8_RST_I2S 17 +#define MT76X8_RST_SPI 18 +#define MT76X8_RST_UART1 19 +#define MT76X8_RST_UART2 20 +#define MT76X8_RST_UHST 22 +#define MT76X8_RST_ETH 23 +#define MT76X8_RST_EPHY 24 +#define MT76X8_RST_PCIE0 26 +#define MT76X8_RST_AUX_STCK 28 +#define MT76X8_RST_CRYPTO 29 +#define MT76X8_RST_SDXC 30 +#define MT76X8_RST_PWM 31 + +#endif /* _DT_BINDINGS_RST_MTMIPS_H */ From patchwork Sun Jan 19 15:44: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: 13944521 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 325F31DF980; Sun, 19 Jan 2025 15:44:57 +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=1737301499; cv=none; b=DKXnUrHM7cIaEGt0e+/UQpaMsgOS4vipyaQedmZPsaQuK5hy28AQz8BZL9Z4EiKmofj2Y3KZHlAMx4UXPZLEIVNEUP9cDNDdE3MxVnQckcw7CK2UG2DkzvEDTg+rgRo7uMBxBtSENLSpjL/IDW2bw5/r2nJdmZOYXsH1Jmbtz1E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737301499; c=relaxed/simple; bh=QXtKB6jNj1hMEwRy5f7ewX4xxN397kqMFyiJ7Eb/sCE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=k7CELqIFIjUgfD98DbxE0dKezf37EhjY0TneuvOGLQeFy7Qlz010tNyjn3wRoS2o38kE1r5ZY9hg6OenkaObL4JD7tgPhEu9MdgaiI1boAgFNk5u3qgayYPhPPBS+fvUWuZLmvrMTXbVTvhw092RdS5juvzUtrlAjC2icW/jtYg= 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=lFEKk3Wg; 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="lFEKk3Wg" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-438a39e659cso5170405e9.2; Sun, 19 Jan 2025 07:44:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737301496; x=1737906296; 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=lFEKk3Wg6XI9a1BUY3gV1OS0OTIxQBx3SX8CFVzv2pESNEWsfC44cbZCeZnDuTLC8u 1ab3gxkxsxNRhPkYM1oIzDPMhBIOZ155lVjWFxzR+Be9pAzSogVqTKrDd/xbEP+DUFx6 nZQRek1Bq6RleAX8pDAGJY+ujoKSZgKusPUw1PKmKojFwDI4iOZS8wVA2wWIuLoSYift hg25xMKrC9gLtD+Xdb+hB3lg6P2kCJZsBR8xv84lXPpojEeRrBFyM+fFjCwifKTiUdyq m86BIjkLc7VhjEBKCYQKf4PpmqndLzQnKTtjsyMTo/VE6cvBifzNSoopTO5NuCUKFIav xgbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737301496; x=1737906296; 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=en76TJVc7pmv4an0zQjeyDNlBCLCEzGnUqWvnh9j5JMOs9Ttf2shHl7koH7tWfOxjk qefoE/lsmKDQxrcILzXXkhIIryvFj/ctAJGo65SZ9NZGwwAz0BzUWmX+bDcMGlAhb+Bx ULnOedNT2BztFRkufJFfHYXFDTXJ+nrGRYqDfWOQsazdH1b7ROLjCjQ2KzXdF3YlJPY5 sM4TElBNbOQFBBLfApmFuzI7ap5L5ZRoq4eQ/uRITIqq/WN6D2egbVl9PoQwKnn3zKEL U6T/Aw9y//V8SDkf7DYSMiVjnhTFDG5cUllZpGYxfWt+Ggr9lO0DYK45zvR6rDqxX5ah LHUw== X-Forwarded-Encrypted: i=1; AJvYcCVRr82MlgDPPZAYu1JUpIg84N3MGWv4b5MScoQvE85BhOD7Vuo4+/JGFbvrGU/RUwN0oFGy6EbP7m6zFw==@vger.kernel.org, AJvYcCXGdmOo2A9WbbO+zgICQxaUqxyoHJzxKNBFshg4NmRs9D6efFGS9f7RNN1cIox5UsaxHcJP1kel/kpGFgJQ@vger.kernel.org, AJvYcCXRBY3bZOrmv/oQrbjrSI/ijqWy9NHu+4CuqsRWqwO9fTCCUeP4HlfuuVzFIC0HZCbSl95hj05mX8se@vger.kernel.org X-Gm-Message-State: AOJu0Yzdu0AwnE3Q0mkGxoJyfqT461eey1qKB+rli7oonThF8ZqOkaPB IGqKUKq7kPrS6XgGFdU5HpfBAscrNHhqIXTdeKgHXhrAfqN1dWQb92nW0g== X-Gm-Gg: ASbGncvfa3pbN/bdAZ0YFr4muWWYa8wzjhkO/nrbAH32PR3qZBZMuSjpIDIFz2wtWuH oBrs3gAMrPzKll8+etJKBqngR6SWknMyEP3bLocri0QDHf6Au1s+2lfm3qPtYEtTYVC8/vtbyKH tUkRDJKrUZAdxeYD82JETrUNJUizglm/+mqMOg9cG3/jQlOtW2GQUIoedB6Iz/ijTltu/U6IsiH OG90WO7fyDnIBFZRDsepXDmbHkYhNt8mr8wrEsdsCJDGpllLx9mUmfpMc7zEbW/COGajlEDrJ0A ZsP7jNfqakTDxAY8l18LLl0dN43rRkEbnsMLQIRP+90rJi/XFWnDT9l/J6/E X-Google-Smtp-Source: AGHT+IEqWdAWETHQ/lb0yG0uQwt5TSiZmx096IYkr75dK6NzyPYHZAdhifKxqR+YuXSdw30faxKM9w== X-Received: by 2002:a05:600c:1c93:b0:431:5863:4240 with SMTP id 5b1f17b1804b1-43891429c77mr82388415e9.24.1737301495590; Sun, 19 Jan 2025 07:44: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-4389046885esm104532655e9.36.2025.01.19.07.44.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Jan 2025 07:44: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 v2 2/6] mips: dts: ralink: rt2880: update system controller node and its consumers Date: Sun, 19 Jan 2025 16:44:43 +0100 Message-Id: <20250119154447.462857-3-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250119154447.462857-1-sergio.paracuellos@gmail.com> References: <20250119154447.462857-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 Sun Jan 19 15:44: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: 13944522 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 9172E1DF995; Sun, 19 Jan 2025 15:44:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737301501; cv=none; b=uKN7YBCGG8w454TPdPBL3ZoQJsHitXt1ujGceGfCQX3+uaB4QVzO8asF2NaM4tBFi0VYNknRhtmAqHvbLFBsVTXruIRxOjvjewz5qDYmYTsxn0UkY7cyTMIzWQvWcIJR/trSjXPkNAuCCtUlQab1dv5c5BXlc1QTE7VeJXYoGdM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737301501; c=relaxed/simple; bh=fj6MxMup+5Ya9FrqXJkojWceGQ1l1OmJpY0zT/psZFo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=oHJrof5jnAPuOrOZh+HnAA7V0Bp6GcgEnwEbmwbnC70EnKL1FM5Mdx+r8Rn2d0nTTXRWOskJcNcU7w4+vxrv15yfBofGuHk/oCEpnIR0yAlIL0/AQd6341DMfXajkGRgaKF/S6Vy8EkZB7Y8zJsAGX9IyCfiT8DPslsBNG6kPtk= 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=TlVdlFZh; arc=none smtp.client-ip=209.85.128.45 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="TlVdlFZh" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-43626213fffso28573385e9.1; Sun, 19 Jan 2025 07:44:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737301497; x=1737906297; 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=TlVdlFZhTDhdeeAmpBpWYjB+090xGbR8VUUdQqJdwofG8FWsXzvv+51dXHbx1qd99t aDDPafStPZxZ241QwfVQZEX0bwO4LJeLLjmMLAt0IcytgA/A4Qtnji7CDlwEnGZSoPTf GukqsQIHm4olywGxhPW7HdmcGSFexJ8PuiUSLBrBWf6WDZL/H1eftM0I63FcqDmnN8kA yVbHyBKiu5YALxjarHF3frAEG0rbIKS3jyan16Y2Gj7zUPLmtftR3zGPrArRa5h5Vgox ODm5ocwWd7kEf2ujjSE1ZBmqZ/YRjkhA6kaeLi8v/Jz2/4DdHPkT4aspXebNlTB4PMj0 BocQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737301497; x=1737906297; 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=JsC4topd6tOqhoIMzItwIZ1BwbQSu+8nIZEG7i/zx3TJFEyHELwqruvNCQ7GAMH47y gMZNICOx9krijN03flVA1PWiPDUfDOBx7vrcvVrGL3cjafX9E+8/x5pbIIGOpoIsusjy 7FdRxh0ICv0TRdZk27CrU/DPCxREQQRwiJm0Z6W43jnaQfTOGKWPv/GO8BFm+j+wvXfy o6hpYjd/R7NcKIB2t6wojJK/jTcIOhYM+C4PPOaueIO8oKVUtryrTkBMdGzSv0KxNOhg nfJxUaiWF6iYORYkvvCMVKBEp17qShv2G38xSaIubSdDRCQDfiQoVlKAPpgdMKDhLuXy NU7Q== X-Forwarded-Encrypted: i=1; AJvYcCUGD0DN26Cj00EVd4OrccbMp00RpEfaAFxswCNBfFueWkmYIeKpuadu/tRGtvw+L0yzh0dRroXAjSLFpSAI@vger.kernel.org, AJvYcCUd6GeBw0xbvZtPzkCaUVIUGaIe4lwN9lHcYMHNFwnB6NiulATgDjZ49NZbbq6iBIyplGOUa9E2c7Yc@vger.kernel.org, AJvYcCXIwqleW2ABBY4RBBP1eCdPJR2Ol/5f/+FbYoaZhsDMV3Pf6zPOIk72ocyMGikhayaYEImqpqlV7a2r3A==@vger.kernel.org X-Gm-Message-State: AOJu0Yzs5OwGBl9i8jIkS74AQEy5Z5EeHejHmvzTfAC+PdGAmOTm6pqC kCplWuDTj4Vl7nWNTqx8ss8FefYbs+WWKdJBIR8n69I8zWUS28BzF9IgYA== X-Gm-Gg: ASbGncsmgj70g3dhX4s4xikbGa32DfcnsEkupUdCSiJu1jHI3RIm7/Jyn7nXKHe0uou pzZctzobPWwyuW+ywwnZgYLmsvBP1+fQwS6pusqG1ixh34H7sqRC0jPbCDLNsuL1t8HcLPTqR2/ WBdmPMDi8qzwLMnvqPyfw3X3l8bLhp+O4Vdz+qDrzRnsegyFRm2kpflghnraYP5GPdnjRs3V0j3 iIeORg9A985aUFuA28+tQIlVnf2+D8XHMhVtSG2mO9nfJA4Xp/D5ZrkKtFwd1L5ZWMQyCkD0C21 0yBniZGPtGSgMNGhIZMoity1zQh8TM0WA1Ld97fLWw5quivaYdPAYQnTamq2 X-Google-Smtp-Source: AGHT+IFe4GMjnqetWKpFs2zdZsy4aHPSHy/dcDgz6QWV4hW1a5kvxTgom7JmvDBTVfEo/1fMRmRQOw== X-Received: by 2002:a05:600c:348c:b0:436:1b86:f05 with SMTP id 5b1f17b1804b1-438918f61acmr83714455e9.11.1737301497014; Sun, 19 Jan 2025 07:44: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-4389046885esm104532655e9.36.2025.01.19.07.44.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Jan 2025 07:44: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 v2 3/6] mips: dts: ralink: rt3050: update system controller node and its consumers Date: Sun, 19 Jan 2025 16:44:44 +0100 Message-Id: <20250119154447.462857-4-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250119154447.462857-1-sergio.paracuellos@gmail.com> References: <20250119154447.462857-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 Sun Jan 19 15:44: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: 13944523 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 E08061DFD95; Sun, 19 Jan 2025 15:45:00 +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=1737301502; cv=none; b=ERUbIyiQ9mWyqRDG25ADkd8lL7UxnJz6LfrJyJGC9m0A4TvBBCU38raXC1CRbfIOAt88Z6MbsIJ6mSm9biH1gO1QKA5nv6fWqANfXoVkGyHjZSsVaMJr9WSjknk2n3PZ+fHgqHL78AGCv/AEd5inKHliwYtzv60o9JQXuIrQHik= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737301502; c=relaxed/simple; bh=j1bB0LohY6Q4ZWswaHmpsEMNIOAEiiDhiYORQ5U0qBA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=PeMMuN+op/mUiGx1w3MGAqUbgRqow45XjKebpN8mwnVc+vSQjrF29NpF3tSxmsY4TJOizB6kJII8eYeBvrJyj+p+BYGVsa5AKL4hdWP6UzLgfXA+D9JRaO1h/XTH2ScZEmXSIYP44Jr8VKsVlbpdO4Ew0/uYXAtiDzPHTQ5GEyA= 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=jQz0rx1p; 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="jQz0rx1p" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-436326dcb1cso24577935e9.0; Sun, 19 Jan 2025 07:45:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737301498; x=1737906298; 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=jQz0rx1pIWFmyGcDqt1ZIOJOhhil8HTIXdUACMgRogE4rPR1LiVThuUofgbR8MNLvL jsE8O0SbmIcNus5r+Epku34m3bt9CgzCVOPt0fn6rRyzw6FkUpzYrIrAOB3CBy2SvZnr sZ1fIcpm1B60RnN1DA8ZButkBXuJTVBtmFuowsLqIAWAQ3gZJw/bvJH1/Rb+RIbNE62Y FVY25FBbLfUVpWTG2F5+3eBJlxVNS1BbObLGpudV+4GqVhVT7KQqjtyoEKbUlKH2Aspl kEpzIsJ/GipqKC0KyEPRtC+jqx8Q+rGGtMryu9Sz+kslCchnkvUEzrsbbEeWIWyY2Z0x 4mQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737301498; x=1737906298; 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=X3FeACjBMx/80/87IZ5qTczQOGc7OilKcNvRVRpyXiQ9KSFWHCBsmbrHlDz8RcCw1f +cJ7h90LiW4SvoUpXkA/VDcaL1jGdr9LzhIOd486w32ApAwZwTa4SeNK3P6WRwTDMGd4 LDvJO7eg3dXQJ7gASHI3nNpHSrL0cw/IAegHOhQ3Cv60bbmx1vgKLZk1JVAtC3DvYCo/ r/Scnm232bHehLd4xn/sXHXesXE64up+sBViuEjrklVX+nEH5KRYZALTL9ueSSCU99mx g++z4RJtPQQa1kGHj40HkZ15ld/S9DtZ4uYjX0CeRGE9JGHl8JfDc1wed275JpsrmQv6 OTbg== X-Forwarded-Encrypted: i=1; AJvYcCW4Ue79orwUP5sW+mur3/JMPcAFTgqT1wnQgHklpVhuG3DX9JR7sRVntuC4Fgh6+Q+5ynuqYGb61NVJA8qq@vger.kernel.org, AJvYcCWBMkpU5VmOK8Z+UkoE1RG5LX6XprjAgBW7A/T1ok5xZDj7E/yYFKN6lK9giQhXZpBjezb/wmHbTpBS@vger.kernel.org, AJvYcCWzdqQGMTSslhPyp6JAmIU+9bM4XQG/zqXnA1rrnOAxLP+594/NvzZfk27GuF6QlTJNLXy+l7T8egOUPQ==@vger.kernel.org X-Gm-Message-State: AOJu0Yxfbfif2yINmN9Zpunh83myIuipr4CQobrV+wP1HKjX2xtMjwWU Fnwe5cTpquu8YPhy8xUg6SM1Kc8LHSOgFhHTCp3/w5fqSgomPI651P4WpQ== X-Gm-Gg: ASbGncv+HGh0wDCF+5g3vVgQ6Wlz2qC+1rDU3tdpr3EJQENDLL2DRf2FpKYj4GLI+r0 tZaJslbXG7iBLw4beEPINbVXWEweo/D0EBpO7p5L9vW7AtLoxCDgr8uJ30el8KhZdcd5bx1V5Ib i4lVQ6pjzOGIAOFZ/4pDFm6LB882KRhqynmHzjvHGNcISIdejI1QtBcHLRE+mBs5kKtLW8Uz8wE xTeki7XQU24P0jLRy6tYVxN077JaEyrg9v1ae15meaJK/yhJG9uHm8G6ZPeE58C0R8yZRQBWVn5 qrU/kdEHB8vcLuzY2gs2d66CRcncbCLrhkXxKJrH8BUU2PhC/pg9WoNz+iym X-Google-Smtp-Source: AGHT+IEpuOcwhndfyvWYPRAI3p1i6MxAq5drgewlnyxnKTDOpi0mw1sBE9reqq+g/zwydm07CMJssg== X-Received: by 2002:a05:600c:1c93:b0:42a:a6d2:3270 with SMTP id 5b1f17b1804b1-43891426ebcmr78545355e9.21.1737301498564; Sun, 19 Jan 2025 07:44: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-4389046885esm104532655e9.36.2025.01.19.07.44.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Jan 2025 07:44:57 -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 v2 4/6] mips: dts: ralink: rt3883: update system controller node and its consumers Date: Sun, 19 Jan 2025 16:44:45 +0100 Message-Id: <20250119154447.462857-5-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250119154447.462857-1-sergio.paracuellos@gmail.com> References: <20250119154447.462857-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 Sun Jan 19 15:44: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: 13944524 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (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 550721DF74B; Sun, 19 Jan 2025 15:45:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737301504; cv=none; b=lr5MPY7sKY21mgUnjPEpYIzhNTDL7mN4wKBkwe1J4i4Y2Rb6fU2e/kqECU6IwU906GN9TguToqbFmbPsn4/E3NDwvn9zxS8cbOKlLLE0DpW5NjZdhfNxeTgib4YnjMPn/7o3svdAK60mRGnMdb1Ev7QmfOkVlb8Vd8xhT/DrcIg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737301504; c=relaxed/simple; bh=u8xwRiiCuQLkhGAjzAw29/lLxgn/oUBnngKnpNkEa0o=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=p+i7sUcFB93fpiZreqbvrjpY17PHvNBUQVLedknNAPrpE8tZsGDsX0XwYUpAk5O1eK/i/rEKwaR/2h35Del7EFKIKgru6uPbq2SaY1YxIzq34rS+gThaCSyBWqOsaVNtjZP3f+8npBA1WS3j53fsBjZ0u8xQoGn2btTi0mGhNPA= 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=EO5hGU+y; arc=none smtp.client-ip=209.85.221.41 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="EO5hGU+y" Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-385df53e559so2822062f8f.3; Sun, 19 Jan 2025 07:45:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737301500; x=1737906300; 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=EO5hGU+y40QpCoJvSKDGgwXw6HGLAlkcZB0APa2GQXPOnLpCINfzlb4CR5PKJpqOfG vR76MKCSKT2ngojFQfbsuIg6561DfLtzH3OuWhxPX3Od/HPeDL6nVTo4xQsHVNfFvS+C eCMpirXgpk+ria0DOfZEFtWe0Wg3lvyLs5gEzh7Z5LlAngqLZD4ZQeftVxM5WWigtSQa 2tYavCzuSSwzVEayjmivld7EAtnWD3QLd2/ALFwd7xjjRAm1SIcURH4/0WzLYRrjw9Hj vUdkF1IHt6oOUWojURx3Wqvf2tjvBeq0PHXB1YwlRil5JXHqw22QuE6WFANztI+y4q4C d5Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737301500; x=1737906300; 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=com/awLPik5biJC4QmDfbrq2TwrP10o91TtruTNnYyoAqSrwoOX+YNYnABEPqtmLGy AMC9i6DIO5vY4bEX6SmGOBLm5j0B8wfXDArWB6HAUtATwknZCx5xr4zgz4z/CijTS5L/ QaHX3vzJGWUv/hzg8MJ57WQIyzGYxx5Vv6oC+s/w9kjb0sbKoljyuaxuBG6UVvu+1gEu 863NzaepFAtvKa8nv2DRnQPQd7+DaueasfSd0UBXJYg16ZzZg4Z/s3rE+e00bedXdHwP pg6ESzjH+rIWQXWmFvPCEX6zxn4vQMBvj+Er/6VxMllQvJjrej8rSdx2yhEcwRBHYecd 30ew== X-Forwarded-Encrypted: i=1; AJvYcCVky0a+LmIRz2kud3XlefxJNoCvK118Fj6OpcDvBo4WHPbG1SP52PJQiB2+1FvCSPoUwWRQf0UyaRI9@vger.kernel.org, AJvYcCWZ8RVvDf1eJsURAfNquXoEcWCHv44MST8yL8U5DZ339VWySNP+v3Kz7gtramovIFXpu5N6Iz9pnzaTnLbE@vger.kernel.org, AJvYcCXiFZeBgaGgE9ALXa8Ovy+XBoDxtHvcJzmEBeZaWM98t8QPjdJYRWbq0NsX2Rf2A1/yfqFGfzRYMxxvHw==@vger.kernel.org X-Gm-Message-State: AOJu0Yy0xPPGXbjIr85mdOfTHpGxSPty7b9ez1NCyfwml0s/0XKMboqu BuoGPkHwLoc3lz1EsSRKi669a1WhpX9u+68KHCjfMpYT6G+s72Y3fMOInw== X-Gm-Gg: ASbGnctOZWY1S++hmE8Nq+Xu1FbzaoHaymNcTPzhJ79ziezHWk9RYwXB6QIGybVWMHi kjqRNyNeLVIzLwWhkYsBKmCyEfz6sv2lUOyU0tIR1h/lfxq+02FKjlJWgtN4URr2946CBtzKQdJ tLPHkEzx19DSE4FgUPCQNkKO0HFzx+dxzAWMPDWykkBTkLmohcaVcukzYcRi5WSHAy/LDtUHHiv y4GoLO2aRPoSwqBX4yFQTIEvWNLctzPTp2tv2/B422IQcgayniAC2RQag/9wL3fI8OO3XPcxNJ2 LqfHUC0dQNY57+Pg5sQPaZEbd5uRCUOC98q7xPP3bkG5l93fZleUHcRANgd9 X-Google-Smtp-Source: AGHT+IHNjv6tIXcJHFJJCtwYlJ7zWvZ9G3rS4DULFBXzvZw22e2N1RTUgmcUtBZ893WfMDTRyk/MTw== X-Received: by 2002:a5d:64e4:0:b0:385:e35e:9da8 with SMTP id ffacd0b85a97d-38bf56635bemr9449648f8f.18.1737301499960; Sun, 19 Jan 2025 07:44:59 -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-4389046885esm104532655e9.36.2025.01.19.07.44.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Jan 2025 07:44: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 v2 5/6] mips: dts: ralink: mt7620a: update system controller node and its consumers Date: Sun, 19 Jan 2025 16:44:46 +0100 Message-Id: <20250119154447.462857-6-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250119154447.462857-1-sergio.paracuellos@gmail.com> References: <20250119154447.462857-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 Sun Jan 19 15:44:47 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergio Paracuellos X-Patchwork-Id: 13944525 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 DAC9C1E0084; Sun, 19 Jan 2025 15:45:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737301505; cv=none; b=t6OBXXobHpFSc8xgLPxicfKqXFAFnAmsfyDwsagjWtVketvIkFEz1pQ8xSuURY7huqlA/denX3Lprmz0kOyxWVC9PS55VLWLsvgWshM+gVRWW5u5clVQCh4IkJCjEzj6Q1NrzC38hm8Izng2osXYbphTt5R3lILSwPfBo2reZg8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737301505; c=relaxed/simple; bh=IBymv+5TDEmYwyqmdDX890Yd5LAsscouFSa+tmi6vWI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Mi31NBtRyeQ2F8iow0QcX33ZnlZ8HGj6bHLwfQfEnCfrDVpqQW4ysJegrAF6JHDo/eiedUMI0HhweJ5yg46ZCzDSvNasq+1RKTCj9c2QlBLDkmKzIO2QVd6x/xbTmQ0Z2iXgTnaEhOnIk9V0zzawnDX94eoOI8kHIDD4EZi0p8w= 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=VW/IzFF2; arc=none smtp.client-ip=209.85.128.42 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="VW/IzFF2" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-4361b6f9faeso22729035e9.1; Sun, 19 Jan 2025 07:45:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737301501; x=1737906301; 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=gB2oi9UW0AgG+WyHwVHLYuh2/7vA+ejEkotzlNh3+0A=; b=VW/IzFF2Ia/uiYNUuc2wEtrwiY9xLcjuATQKLhmvaxK8/Pm+NwSU0E7oxVsEcs38tS TLJDnAbmx/TB7C4nL5/ijZEMpTqXnb/W/STvqufgSHwYx91OdTIqKE8JwSlAmOOjEhra dalsbKcAG9/vnuwVf8SSKWzDzSZRwHMbRM20pH4eqD/PvvbkuQ5DJx40J5r+st6hY4t/ bQXyON8hBq01XvNk8b8Eow9tPk6GQQhRlUdnMrlWMrkbugafAzRjgWvF5CfHOuoByXY6 GG+Aeu3kd1lTTaVxUEZA4DFDUjNW6IZy75UqPyc8jx1Irhavorx9a5vSN5mLjOExuXip hQ3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737301501; x=1737906301; 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=gB2oi9UW0AgG+WyHwVHLYuh2/7vA+ejEkotzlNh3+0A=; b=li+UXh1+A5MGfZdj4ekwi5N+CCeB7qAg5CrLmkI9ACMm8dwamKjXJYPhi08bTBcnAI j9fWryF1jcDIj9ZanCo3W+EczJnaAm75tPyWD8c2RFbXwpUtScNeitSEHqj5dIyXvNil 13areEOsvBbESR33d3Tf2WtbPyAGZm9/iEBYBxv+Rvn2qrBf5W4Uv2F9yNFHtmdnOZov 87UEJa3tpFE2P5IA4VatXPo18G42TugYfvmhDw1DxZyn14iiqr3HNszcmN/fXnf0ECZu TDi4Q8Y08tG0vV23J4tLk9ZbruWzkjLEH5E3mAbihdmo9sSgEnKhKa8C5smzRyssag0B 7fXQ== X-Forwarded-Encrypted: i=1; AJvYcCUadWrslpTa8dMGceGgh/cRs8vJ+va2k3zQXSd4WmdlPakgV/KYW6brTFDuLJXF8Pdu2mB6giSTGngAeA==@vger.kernel.org, AJvYcCV4/Mz772hO4HDg5Wa9J1FKX/zRoDCAP4jetFuKQLiH5jVNQvS7K7Ag+lIB4P4sDqldH7jC8nEEJX4gAaMy@vger.kernel.org, AJvYcCX8Wy13MYmctjzDhhYYHEEM9wk9GzAYKpcN5mUeBquDG1dAmOX8gXNnShR/dnqCZxBInEUrvjU+WqPy@vger.kernel.org X-Gm-Message-State: AOJu0YzinzEIZ1kx7rfiH83SuAD20jMjsM+6GmPrvZ0NA/zybwxGG0JW 62MT2LZro2Musfl5CzILdbIapKBjQtjogEWy2nZvi6wY9yM6OcB+0tw0Gg== X-Gm-Gg: ASbGncsWh32eMDUiZgg0Kad2+OnwhUzlqUtyZ3dFA+i3t0qalMOCqwJeqLc+wAMXGxY 0ZNhlQXssbgdVt0lgsCVGCFdmxjJepv2/bNcaQZm41UGlvKJYBmtbUs56CfX3k+yAk5BYLVDolX Y4ntT6LZXECQlozC9SW9Z2QeWmxdkwyB3CMqxgaLl86ZH6aq0naTshGI9DC1o7GtxudmeNdF7QT YtmBGr8TiyzC3U5xW+UTenNkhQYV+xipvkviPXR2wBysPllAM+oPqVaaR3FJraDsHvCOfXDuiqK NRLAW+d3xSTtccv3L+78jhuB3cOV9oueG3dCPoVJmf3snIh4zPs8qL6QXKj2 X-Google-Smtp-Source: AGHT+IG4OZ1690iwftC0cKNvWGezwc8KjmFsKGz73HBEG0+WiykY2102VOI4tbtQFLIDooxMFr4Jjg== X-Received: by 2002:a05:600c:218e:b0:434:e65e:457b with SMTP id 5b1f17b1804b1-437c6ae9bdcmr162684545e9.3.1737301501403; Sun, 19 Jan 2025 07:45:01 -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-4389046885esm104532655e9.36.2025.01.19.07.45.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Jan 2025 07:45:00 -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 v2 6/6] mips: dts: ralink: mt7628a: update system controller node and its consumers Date: Sun, 19 Jan 2025 16:44:47 +0100 Message-Id: <20250119154447.462857-7-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250119154447.462857-1-sergio.paracuellos@gmail.com> References: <20250119154447.462857-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 and reset constants. Signed-off-by: Sergio Paracuellos --- arch/mips/boot/dts/ralink/mt7628a.dtsi | 43 ++++++++++++++++---------- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/arch/mips/boot/dts/ralink/mt7628a.dtsi b/arch/mips/boot/dts/ralink/mt7628a.dtsi index 45a15e005cc4..bc69866e2134 100644 --- a/arch/mips/boot/dts/ralink/mt7628a.dtsi +++ b/arch/mips/boot/dts/ralink/mt7628a.dtsi @@ -1,4 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 +#include +#include / { #address-cells = <1>; @@ -16,11 +18,6 @@ cpu@0 { }; }; - resetc: reset-controller { - compatible = "ralink,rt2880-reset"; - #reset-cells = <1>; - }; - cpuintc: interrupt-controller { #address-cells = <0>; #interrupt-cells = <1>; @@ -36,9 +33,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 +137,7 @@ watchdog: watchdog@100 { compatible = "mediatek,mt7621-wdt"; reg = <0x100 0x30>; - resets = <&resetc 8>; + resets = <&sysc MT76X8_RST_TIMER>; reset-names = "wdt"; interrupt-parent = <&intc>; @@ -154,7 +153,7 @@ intc: interrupt-controller@200 { interrupt-controller; #interrupt-cells = <1>; - resets = <&resetc 9>; + resets = <&sysc MT76X8_RST_INTC>; reset-names = "intc"; interrupt-parent = <&cpuintc>; @@ -190,7 +189,9 @@ spi: spi@b00 { pinctrl-names = "default"; pinctrl-0 = <&pinmux_spi_spi>; - resets = <&resetc 18>; + clocks = <&sysc MT76X8_CLK_SPI1>; + + resets = <&sysc MT76X8_RST_SPI>; reset-names = "spi"; #address-cells = <1>; @@ -206,7 +207,9 @@ i2c: i2c@900 { pinctrl-names = "default"; pinctrl-0 = <&pinmux_i2c_i2c>; - resets = <&resetc 16>; + clocks = <&sysc MT76X8_CLK_I2C>; + + resets = <&sysc MT76X8_RST_I2C>; reset-names = "i2c"; #address-cells = <1>; @@ -222,7 +225,9 @@ uart0: uartlite@c00 { pinctrl-names = "default"; pinctrl-0 = <&pinmux_uart0_uart>; - resets = <&resetc 12>; + clocks = <&sysc MT76X8_CLK_UART0>; + + resets = <&sysc MT76X8_RST_UART0>; reset-names = "uart0"; interrupt-parent = <&intc>; @@ -238,7 +243,9 @@ uart1: uart1@d00 { pinctrl-names = "default"; pinctrl-0 = <&pinmux_uart1_uart>; - resets = <&resetc 19>; + clocks = <&sysc MT76X8_CLK_UART1>; + + resets = <&sysc MT76X8_RST_UART1>; reset-names = "uart1"; interrupt-parent = <&intc>; @@ -254,7 +261,9 @@ uart2: uart2@e00 { pinctrl-names = "default"; pinctrl-0 = <&pinmux_uart2_uart>; - resets = <&resetc 20>; + clocks = <&sysc MT76X8_CLK_UART2>; + + resets = <&sysc MT76X8_RST_UART2>; reset-names = "uart2"; interrupt-parent = <&intc>; @@ -271,8 +280,8 @@ usb_phy: usb-phy@10120000 { #phy-cells = <0>; ralink,sysctl = <&sysc>; - resets = <&resetc 22 &resetc 25>; - reset-names = "host", "device"; + resets = <&sysc MT76X8_RST_UHST>; + reset-names = "host"; }; usb@101c0000 { @@ -290,6 +299,8 @@ wmac: wmac@10300000 { compatible = "mediatek,mt7628-wmac"; reg = <0x10300000 0x100000>; + clocks = <&sysc MT76X8_CLK_WMAC>; + interrupt-parent = <&cpuintc>; interrupts = <6>;