From nobody Thu Dec 18 15:28:59 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 0AC801862B3; Mon, 15 Jul 2024 08:40:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721032805; cv=none; b=QI+dcK1FfQTJKFQzS996mf/JNGOFD+MMFQP18vM/fBOmjPsVn1v/9vAva2oD8EHyMYDWPt2lI2hFZvi4T3KQErJlN2obiOv2wTN+dxVICYgddlS0CWVxsZ7KQjvG831Sr/j1ttKXl4PSs9OSkeZl1VSVhpWHT3rfeUjH6qzL1bk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721032805; c=relaxed/simple; bh=kegMs5uhODxJGpWVpDmFdsZZDFuYrLYfPGjM2n5jZSQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nAL+YlMmsnLzH799wSYHsdVn4j1Wx+Mngru2rsdaUiqopjIUX6hKs6H/i3PsauZ9lEdXc2UkHoBZYpi/3OhH+sMVBoyeIgRBU5f4w/75F1czLInkC66L8x3834qj3Pbw6eHytz8R2Qwt6jcRWMPHg4BwKKoRx3w/hZ8LFPlibPc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hYuIIFtB; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hYuIIFtB" Received: by smtp.kernel.org (Postfix) with ESMTPS id B92E8C4AF0B; Mon, 15 Jul 2024 08:40:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721032804; bh=kegMs5uhODxJGpWVpDmFdsZZDFuYrLYfPGjM2n5jZSQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=hYuIIFtBPjHbnvi9C6h7fvD5qGd9kB/cEsD3QbqOMH7sDYQ25jY+aRfjB6sUz2RF1 0Oh4VQbQ7oKWu15BEcrZO+QAxWu6kr2wrNeZ3x7NyNvqubkeUCFj+zIb/pLmGRZiRX QPxi46zVai74DsFqmRdQi5gTNv1hXN7/5bAGrFgL/7KpyGRbH7W4cgHp48ehJZ3k+I ksTH/wjhPH+we2U1MMM1iBdkkUG2pemkNos2aWdf1uf2QK7ektnBAzr7xLh77o9W8F l7XXh0mKNjhrkyS31Pa6YLL6CNZhWT1tmpmG9szJn0t11UOOP72ghCBDfh6lQ0w5+Y HpYE0eRuVMH8w== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B14F9C3DA5A; Mon, 15 Jul 2024 08:40:04 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Mon, 15 Jul 2024 11:38:34 +0300 Subject: [PATCH v11 30/38] ARM: dts: ep93xx: add ts7250 board Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240715-ep93xx-v11-30-4e924efda795@maquefel.me> References: <20240715-ep93xx-v11-0-4e924efda795@maquefel.me> In-Reply-To: <20240715-ep93xx-v11-0-4e924efda795@maquefel.me> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nikita Shubin , Alexander Sverdlin Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.13-dev-e3e53 X-Developer-Signature: v=1; a=ed25519-sha256; t=1721032799; l=6186; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=F8g8fhLrok2XoBODc7kkFWBfV9QlTn8N1KFztkjBqBQ=; b=qEXOlNy1uSKGgvb9iKrlw2KX/tknjbDaK3ARQ5movRK5byZnD09O4uWLSFvoHhdCF0mafqHup559 Usr4Rc2BA+YMBgIRb5z+tdQpt/ZwHL6UX/vRg+YAuSdscHL7M3R5 X-Developer-Key: i=nikita.shubin@maquefel.me; a=ed25519; pk=vqf5YIUJ7BJv3EJFaNNxWZgGuMgDH6rwufTLflwU9ac= X-Endpoint-Received: by B4 Relay for nikita.shubin@maquefel.me/20230718 with auth_id=65 X-Original-From: Nikita Shubin Reply-To: nikita.shubin@maquefel.me From: Nikita Shubin Add device tree file for Technologic Systems ts7250 board and Liebherr bk3 board which have many in common, both are based on ep9302 SoC variant. Signed-off-by: Nikita Shubin --- arch/arm/boot/dts/cirrus/Makefile | 3 + arch/arm/boot/dts/cirrus/ep93xx-bk3.dts | 125 +++++++++++++++++++++++++ arch/arm/boot/dts/cirrus/ep93xx-ts7250.dts | 145 +++++++++++++++++++++++++= ++++ 3 files changed, 273 insertions(+) diff --git a/arch/arm/boot/dts/cirrus/Makefile b/arch/arm/boot/dts/cirrus/M= akefile index e944d3e2129d..211a7e2f2115 100644 --- a/arch/arm/boot/dts/cirrus/Makefile +++ b/arch/arm/boot/dts/cirrus/Makefile @@ -3,3 +3,6 @@ dtb-$(CONFIG_ARCH_CLPS711X) +=3D \ ep7211-edb7211.dtb dtb-$(CONFIG_ARCH_CLPS711X) +=3D \ ep7211-edb7211.dtb +dtb-$(CONFIG_ARCH_EP93XX) +=3D \ + ep93xx-bk3.dtb \ + ep93xx-ts7250.dtb diff --git a/arch/arm/boot/dts/cirrus/ep93xx-bk3.dts b/arch/arm/boot/dts/ci= rrus/ep93xx-bk3.dts new file mode 100644 index 000000000000..40bc9b2a6ba8 --- /dev/null +++ b/arch/arm/boot/dts/cirrus/ep93xx-bk3.dts @@ -0,0 +1,125 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree file for Liebherr controller BK3.1 based on Cirrus EP9302 S= oC + */ +/dts-v1/; +#include "ep93xx.dtsi" + +/ { + model =3D "Liebherr controller BK3.1"; + compatible =3D "liebherr,bk3", "cirrus,ep9301"; + #address-cells =3D <1>; + #size-cells =3D <1>; + + chosen { + }; + + memory@0 { + device_type =3D "memory"; + /* should be set from ATAGS */ + reg =3D <0x00000000 0x02000000>, + <0x000530c0 0x01fdd000>; + }; + + leds { + compatible =3D "gpio-leds"; + led-0 { + label =3D "grled"; + gpios =3D <&gpio4 0 GPIO_ACTIVE_HIGH>; + linux,default-trigger =3D "heartbeat"; + function =3D LED_FUNCTION_HEARTBEAT; + }; + + led-1 { + label =3D "rdled"; + gpios =3D <&gpio4 1 GPIO_ACTIVE_HIGH>; + function =3D LED_FUNCTION_FAULT; + }; + }; +}; + +&ebi { + nand-controller@60000000 { + compatible =3D "technologic,ts7200-nand"; + reg =3D <0x60000000 0x8000000>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + nand@0 { + reg =3D <0>; + partitions { + compatible =3D "fixed-partitions"; + #address-cells =3D <1>; + #size-cells =3D <1>; + + partition@0 { + label =3D "System"; + reg =3D <0x00000000 0x01e00000>; + read-only; + }; + + partition@1e00000 { + label =3D "Data"; + reg =3D <0x01e00000 0x05f20000>; + }; + + partition@7d20000 { + label =3D "RedBoot"; + reg =3D <0x07d20000 0x002e0000>; + read-only; + }; + }; + }; + }; +}; + +ð0 { + phy-handle =3D <&phy0>; +}; + +&i2s { + dmas =3D <&dma0 0 1>, <&dma0 0 2>; + dma-names =3D "tx", "rx"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&i2s_on_ac97_pins>; + status =3D "okay"; +}; + +&gpio1 { + /* PWM */ + gpio-ranges =3D <&syscon 6 163 1>; +}; + +&gpio4 { + gpio-ranges =3D <&syscon 0 97 2>; + status =3D "okay"; +}; + +&gpio6 { + gpio-ranges =3D <&syscon 0 87 2>; + status =3D "okay"; +}; + +&gpio7 { + gpio-ranges =3D <&syscon 2 199 4>; + status =3D "okay"; +}; + +&mdio0 { + phy0: ethernet-phy@1 { + reg =3D <1>; + device_type =3D "ethernet-phy"; + }; +}; + +&uart0 { + status =3D "okay"; +}; + +&uart1 { + status =3D "okay"; +}; + +&usb0 { + status =3D "okay"; +}; diff --git a/arch/arm/boot/dts/cirrus/ep93xx-ts7250.dts b/arch/arm/boot/dts= /cirrus/ep93xx-ts7250.dts new file mode 100644 index 000000000000..9e03f93d9fc8 --- /dev/null +++ b/arch/arm/boot/dts/cirrus/ep93xx-ts7250.dts @@ -0,0 +1,145 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree file for Technologic Systems ts7250 board based on Cirrus E= P9302 SoC + */ +/dts-v1/; +#include "ep93xx.dtsi" + +/ { + compatible =3D "technologic,ts7250", "cirrus,ep9301"; + model =3D "TS-7250 SBC"; + #address-cells =3D <1>; + #size-cells =3D <1>; + + chosen { + }; + + memory@0 { + device_type =3D "memory"; + /* should be set from ATAGS */ + reg =3D <0x00000000 0x02000000>, + <0x000530c0 0x01fdd000>; + }; + + leds { + compatible =3D "gpio-leds"; + led-0 { + label =3D "grled"; + gpios =3D <&gpio4 0 GPIO_ACTIVE_HIGH>; + linux,default-trigger =3D "heartbeat"; + function =3D LED_FUNCTION_HEARTBEAT; + }; + + led-1 { + label =3D "rdled"; + gpios =3D <&gpio4 1 GPIO_ACTIVE_HIGH>; + function =3D LED_FUNCTION_FAULT; + }; + }; +}; + +&ebi { + nand-controller@60000000 { + compatible =3D "technologic,ts7200-nand"; + reg =3D <0x60000000 0x8000000>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + nand@0 { + reg =3D <0>; + partitions { + compatible =3D "fixed-partitions"; + #address-cells =3D <1>; + #size-cells =3D <1>; + + partition@0 { + label =3D "TS-BOOTROM"; + reg =3D <0x00000000 0x00020000>; + read-only; + }; + + partition@20000 { + label =3D "Linux"; + reg =3D <0x00020000 0x07d00000>; + }; + + partition@7d20000 { + label =3D "RedBoot"; + reg =3D <0x07d20000 0x002e0000>; + read-only; + }; + }; + }; + }; + + rtc@10800000 { + compatible =3D "st,m48t86"; + reg =3D <0x10800000 0x1>, + <0x11700000 0x1>; + }; + + watchdog@23800000 { + compatible =3D "technologic,ts7200-wdt"; + reg =3D <0x23800000 0x01>, + <0x23c00000 0x01>; + timeout-sec =3D <30>; + }; +}; + +ð0 { + phy-handle =3D <&phy0>; +}; + +&gpio1 { + /* PWM */ + gpio-ranges =3D <&syscon 6 163 1>; +}; + +/* ts7250 doesn't have GPIO Port D present */ +&gpio3 { + status =3D "disabled"; +}; + +&gpio4 { + gpio-ranges =3D <&syscon 0 97 2>; +}; + +&gpio6 { + gpio-ranges =3D <&syscon 0 87 2>; +}; + +&gpio7 { + gpio-ranges =3D <&syscon 2 199 4>; +}; + +&spi0 { + cs-gpios =3D <&gpio5 2 GPIO_ACTIVE_HIGH>; + dmas =3D <&dma1 10 2>, <&dma1 10 1>; + dma-names =3D "rx", "tx"; + status =3D "okay"; + + tmp122: temperature-sensor@0 { + compatible =3D "ti,tmp122"; + reg =3D <0>; + spi-max-frequency =3D <2000000>; + }; +}; + +&mdio0 { + phy0: ethernet-phy@1 { + reg =3D <1>; + device_type =3D "ethernet-phy"; + }; +}; + +&uart0 { + status =3D "okay"; +}; + +&uart1 { + status =3D "okay"; +}; + +&usb0 { + status =3D "okay"; +}; --=20 2.43.2