From nobody Sat Oct 4 12:46:55 2025 Received: from mx4.wp.pl (mx4.wp.pl [212.77.101.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5C5932E336E for ; Sat, 16 Aug 2025 13:20:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.77.101.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755350412; cv=none; b=AtoOeDRXDbifItGkmsJ8i1malLJ7FQ77oDlI7IdifH7m/sGyzQYJLL/ogPZA2igwd+k2Fm5VsN+QqXhZQvclKeMOpq3GG4mV4tLKaNr9iOWI10KI5tYoBsGtNIdaaOd01wtbmtBEOGDiOjU5nKcKai9ZJB8qZw69e9AwnD0Get4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755350412; c=relaxed/simple; bh=MdkvusHD3UIMg4HamLtJwrp0gShI+hicyimSjQSdKwE=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lmA6/pHOos3RP1GXdCuq4CjCb3+uYFqo6NFyuYgza5B17FZSGvOvOFRRZRKG3uFQd0f4s0Z6wX1Ql0jvW4GKJTV7UqkLoXVptEkPfElw3vNk+gbljya+AqBOnH/oDYHJDQdHRucU0Ctg7YtIRErKXjn2hIlO0ap3c6R2AJwTbnE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=wp.pl; spf=pass smtp.mailfrom=wp.pl; dkim=pass (2048-bit key) header.d=wp.pl header.i=@wp.pl header.b=swI3jef0; arc=none smtp.client-ip=212.77.101.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=wp.pl Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wp.pl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wp.pl header.i=@wp.pl header.b="swI3jef0" Received: (wp-smtpd smtp.wp.pl 14292 invoked from network); 16 Aug 2025 15:20:06 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=20241105; t=1755350406; bh=0XEqsmMq5hrMgacB8KUDiYmfK9MEHEC/pUrzmlgLZ+s=; h=From:To:Subject; b=swI3jef05aCBQCB5jMpxpl4HuLTk5MWoV6PoVYgW4a/WXcabVLMS0CpY9Rtszxz0z vXPRpwu/uFe/SvgXeUvkPVq5td7JEXS5kG1JkV/YA3LSIGisb0fVBKRomKFTw0lGIJ /GlZcfto4+mjUKAqI1ezd6XYuVmvyl0K+VpCLXWysRL5qzLGPVURcmudQq7Q8nD7hJ 5lFhN3Ls58X5uaKBcbYYYpSKDrd2OHDFLTT0FOI66iZ6BcCrMBsX0L/mHlNLn+Uqzi I6yKSQ8E5RxVanhBNREiF4RzuviDCJ0JoaII+1lPJ31/nNOvJwbraIbndEc+Oi1bPs R0GKlBZe46NSA== Received: from 83.24.134.210.ipv4.supernova.orange.pl (HELO laptop-olek.lan) (olek2@wp.pl@[83.24.134.210]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 16 Aug 2025 15:20:06 +0200 From: Aleksander Jan Bajkowski To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, tsbogend@alpha.franken.de, olek2@wp.pl, john@phrozen.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/3] dt-bindings: mips: lantiq: Document Lantiq Xway GPTU Date: Sat, 16 Aug 2025 15:16:22 +0200 Message-ID: <20250816132002.3632343-2-olek2@wp.pl> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250816132002.3632343-1-olek2@wp.pl> References: <20250816132002.3632343-1-olek2@wp.pl> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-WP-MailID: 9d1687f224e8f74fbdc8cc8c204753f7 X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000000 [EYPB] Content-Type: text/plain; charset="utf-8" The Lantiq SoC has six built-in 16-bit general purpose timers (GPTU). Signed-off-by: Aleksander Jan Bajkowski --- .../mips/lantiq/lantiq,gptu-xway.yaml | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/mips/lantiq/lantiq,gp= tu-xway.yaml diff --git a/Documentation/devicetree/bindings/mips/lantiq/lantiq,gptu-xway= .yaml b/Documentation/devicetree/bindings/mips/lantiq/lantiq,gptu-xway.yaml new file mode 100644 index 000000000000..fcbcd98def46 --- /dev/null +++ b/Documentation/devicetree/bindings/mips/lantiq/lantiq,gptu-xway.yaml @@ -0,0 +1,67 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mips/lantiq/lantiq,gptu-xway.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Lantiq Xway SoC series General Purpose Timer Unit (GPTU) + +maintainers: + - Aleksander Jan Bajkowski + +description: + The Lantiq SoC has six built-in 16-bit general purpose timers. The voice + firmware needs these timers as a reference. + +properties: + $nodename: + pattern: "^gptu@[0-9a-f]+$" + + compatible: + items: + - enum: + - lantiq,ase-gptu + - lantiq,danube-gptu + - lantiq,xrx100-gptu + - lantiq,xrx200-gptu + - const: lantiq,gptu-xway + + reg: + maxItems: 1 + + interrupts: + items: + - description: timer1a interrupt + - description: timer1b interrupt + - description: timer2a interrupt + - description: timer2b interrupt + - description: timer3a interrupt + - description: timer3b interrupt + + interrupt-names: + items: + - const: timer1a + - const: timer1b + - const: timer2a + - const: timer2b + - const: timer3a + - const: timer3b + +required: + - compatible + - reg + - interrupts + - interrupt-names + +additionalProperties: false + +examples: + - | + gptu@e100a00 { + compatible =3D "lantiq,ase-gptu", "lantiq,gptu-xway"; + reg =3D <0xe100a00 0x100>; + interrupt-parent =3D <&icu0>; + interrupts =3D <126>, <127>, <128>, <129> ,<130>, <131>; + interrupt-names =3D "timer1a", "timer1b", "timer2a", "timer2b", + "timer3a", "timer3b"; + }; --=20 2.47.2 From nobody Sat Oct 4 12:46:55 2025 Received: from mx4.wp.pl (mx4.wp.pl [212.77.101.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9C3D12E5D34 for ; Sat, 16 Aug 2025 13:20:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.77.101.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755350413; cv=none; b=HX0W9iXxCgmlBmn5URLk/UsGYm5IPn+QwTQe/YQP8zRzRnOAX8cwcZPc4CJUmnVY7NgtrTASDZ3ublKqwHz/vn9zi52E1tOML7AuOX+4vPmRxpXjEy638TMZLOC/CvNkODfYMRMAsji/IUxXbrt4d/V7Sb8HH5uaxAAhaVhfKXc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755350413; c=relaxed/simple; bh=h/v9ujGE8odtWlDIS1VYDDLdtv2P8kRgkNSSPf9ULfc=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TVrgt3/VLIRolLfAQv94kVB2E3/Px6j1BaJ7VwFTNRlY+I0aUx1UHUXYyEdnFqe1aoJY2JXdB7qer4juwpk7hWs0tMnGfKJ8iGezBKpzgbsfmGsMbo2lGigoc36Omrh3Zg11K+A2iESlC0LZEfJD2c6mFNeM0x4HI7s+fDmI5Do= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=wp.pl; spf=pass smtp.mailfrom=wp.pl; dkim=pass (2048-bit key) header.d=wp.pl header.i=@wp.pl header.b=wFzQlAtG; arc=none smtp.client-ip=212.77.101.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=wp.pl Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wp.pl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wp.pl header.i=@wp.pl header.b="wFzQlAtG" Received: (wp-smtpd smtp.wp.pl 21064 invoked from network); 16 Aug 2025 15:20:09 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=20241105; t=1755350409; bh=BSybUhQorMByn+HYAhAbD0K4nDxfFdsvec1CtZCfSCw=; h=From:To:Subject; b=wFzQlAtGRDRgiBFKu1IZjehEKETbwIrkiVSDRlyKcyuvf+NFubpLBSuhHvep4HyC2 Z4V+alW04vBNAaXwCuFwL7bXNO0PMaB/v8vQApYABBrsGVyrooaqq/A16EduDbV/kz F4Ni1Ui6fNa6K2ANUYGE9WFk1r3k1H18gnQ8C6mvx/DuoKDYE7M9kceccXZZLybgKf /Po6OR9YbafUZ9rudpYybrxAFB169er8/LAgh43C1DO9EWdhwpQoWmHUMgUe80UZNO GaC0zY6bgnS7LnLtDbkpwykJWc1E6/w6Uz7WPlNlvtzMs3ayluMJT9kQkPxjoyCB3L l+2l0HmvBQjWA== Received: from 83.24.134.210.ipv4.supernova.orange.pl (HELO laptop-olek.lan) (olek2@wp.pl@[83.24.134.210]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 16 Aug 2025 15:20:09 +0200 From: Aleksander Jan Bajkowski To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, tsbogend@alpha.franken.de, olek2@wp.pl, john@phrozen.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/3] mips: lantiq: danube: add missing timer interrupts Date: Sat, 16 Aug 2025 15:16:23 +0200 Message-ID: <20250816132002.3632343-3-olek2@wp.pl> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250816132002.3632343-1-olek2@wp.pl> References: <20250816132002.3632343-1-olek2@wp.pl> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-WP-MailID: dbf883a0be23ea35d53b0d02bf1fe655 X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000000 [odPh] Content-Type: text/plain; charset="utf-8" The driver expects six interrupt lines to be specified. Fixes: 30404aec4d09 ("MIPS: lantiq: adds support for gptu timers") Signed-off-by: Aleksander Jan Bajkowski --- arch/mips/boot/dts/lantiq/danube.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/mips/boot/dts/lantiq/danube.dtsi b/arch/mips/boot/dts/lan= tiq/danube.dtsi index 7a7ba66aa534..8e92573aaf75 100644 --- a/arch/mips/boot/dts/lantiq/danube.dtsi +++ b/arch/mips/boot/dts/lantiq/danube.dtsi @@ -71,6 +71,10 @@ fpi@10000000 { gptu@e100a00 { compatible =3D "lantiq,gptu-xway"; reg =3D <0xe100a00 0x100>; + interrupt-parent =3D <&icu0>; + interrupts =3D <126 127 128 129 130 131>; + interrupt-names =3D "timer1a", "timer1b", "timer2a", + "timer2b", "timer3a", "timer3b"; }; =20 serial@e100c00 { --=20 2.47.2 From nobody Sat Oct 4 12:46:55 2025 Received: from mx3.wp.pl (mx3.wp.pl [212.77.101.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5F9E02E7F3A for ; Sat, 16 Aug 2025 13:20:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.77.101.10 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755350415; cv=none; b=F1gu2c/Mt68EIKhE+qcUvU36QgSpFWDF++3QjkaqCynIPt6aBda3494gWBkjLC8yXR9Ice68woBEHwMxDWoZfNQhhMhVorGnoB3/NiXzyK6kT9CFE4WRvygsseO9riI0mfjLc7tYyc1mfnkA5zN2DimkSve3jZ84VR3leZRQ+Uw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755350415; c=relaxed/simple; bh=3PbhZqHEi4vaBFsYSL0yw+zK3kFanY9DMQDt5CbV03c=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AhBAsbUkQu74B2IbqeYmHSZkEhgQqSALQGpzvDtmBI1riDDyNq0wcniN3F8blepxyitcR9hK7wRYAKhoynZTxpZYfNe6a33I67R520fYZTeJkptw9uNpTBFUuNYfXzyIF9oPEagEpoeUYMmblSSltt93lj5zlZmWB0k0pUElfwQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=wp.pl; spf=pass smtp.mailfrom=wp.pl; dkim=pass (2048-bit key) header.d=wp.pl header.i=@wp.pl header.b=QvaapAyW; arc=none smtp.client-ip=212.77.101.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=wp.pl Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wp.pl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wp.pl header.i=@wp.pl header.b="QvaapAyW" Received: (wp-smtpd smtp.wp.pl 27459 invoked from network); 16 Aug 2025 15:20:11 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=20241105; t=1755350411; bh=9YJ1lPO0WvMR//31eSCB17Ig95szVlmjfIv6jeugCes=; h=From:To:Subject; b=QvaapAyWVdZv9EA4BRBTkmumg5DQM8mK3BIFBiq+6dfKeKwGoENJYclkZTxd14jB6 X7wte6kU8LYm9X2jEQc0Kz8REuLwpoyccG8Y5l9Ss2oj1ih3JnlFHlird4oCaDMmgV SNtgbwkbCaYKGoWRf6emq/ojbIibhVmjAiH0ivfS8C0aGwvUt19TBA8N3UtfflX0Vc T0NWxAfLGnzDK1x0u8wYIB7YqjYpNOZpJI5VEyGSmzsHaYt8cgA3mzKXOfWNv891fX sfMiylAkEqGk9hhKf6Oct/oy4lxhihnGGsuhpDF0byX68QthtJVePhKqLDGG9dqthM Bz2jjydkJRovg== Received: from 83.24.134.210.ipv4.supernova.orange.pl (HELO laptop-olek.lan) (olek2@wp.pl@[83.24.134.210]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 16 Aug 2025 15:20:11 +0200 From: Aleksander Jan Bajkowski To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, tsbogend@alpha.franken.de, olek2@wp.pl, john@phrozen.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/3] mips: lantiq: danube: add device-specified compatible in GPTU node Date: Sat, 16 Aug 2025 15:16:24 +0200 Message-ID: <20250816132002.3632343-4-olek2@wp.pl> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250816132002.3632343-1-olek2@wp.pl> References: <20250816132002.3632343-1-olek2@wp.pl> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-WP-MailID: 88a931d89730847405752da1b9d15df0 X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000001 [kSIx] Content-Type: text/plain; charset="utf-8" This patch adds device-specific compatibility in the GPTU node. Signed-off-by: Aleksander Jan Bajkowski --- arch/mips/boot/dts/lantiq/danube.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/boot/dts/lantiq/danube.dtsi b/arch/mips/boot/dts/lan= tiq/danube.dtsi index 8e92573aaf75..d09276b31718 100644 --- a/arch/mips/boot/dts/lantiq/danube.dtsi +++ b/arch/mips/boot/dts/lantiq/danube.dtsi @@ -69,7 +69,7 @@ fpi@10000000 { reg =3D <0x10000000 0xef00000>; =20 gptu@e100a00 { - compatible =3D "lantiq,gptu-xway"; + compatible =3D "lantiq,danube-gptu", "lantiq,gptu-xway"; reg =3D <0xe100a00 0x100>; interrupt-parent =3D <&icu0>; interrupts =3D <126 127 128 129 130 131>; --=20 2.47.2