From nobody Wed Dec 17 23:29:22 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C66A2C61D9C for ; Wed, 22 Nov 2023 09:03:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235175AbjKVJDZ (ORCPT ); Wed, 22 Nov 2023 04:03:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343572AbjKVJB0 (ORCPT ); Wed, 22 Nov 2023 04:01:26 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A45EE19E for ; Wed, 22 Nov 2023 01:01:19 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPS id F266FC32781; Wed, 22 Nov 2023 09:01:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700643676; bh=QxXyV+4znc/zev1U+GCmM5SgxTS+tx1I8YHe7cbBQAM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=tG93JfupN4Uz56TWtLhvVpjCATZpw8TIvCumqLoF4gkp/jG7lAl/kGiGSPChiQbpH DcAj6aZJ5qN7RzWn7DT1MfRa+qILC5z1bmqQ3SiPpm+Y4k0JSaL4KcJOWOYNv5iHJ+ /FkxEsZuuZ3Mj2bjocz+59jcw2GwR0Zwaux3PW3bojbNM5aOX8oD1t9WM82SNGQ7MH Y8qvqGtfVFq3seBH7Bp7SxdPUZUKMc6gjDIOFRQP6d93wKW3ex7RTMgYQT8HJdo5jD KBZcKDA9eBWHIGgnj0OdPKRnA7C25sC00tnMgU5HIhP80/iyZPXJk/ZjccKnEC0Ibr ds5VvGyT7fEmw== 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 DD980C61D9C; Wed, 22 Nov 2023 09:01:15 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Wed, 22 Nov 2023 12:00:09 +0300 Subject: [PATCH v5 31/39] ARM: dts: ep93xx: add ts7250 board MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20231122-ep93xx-v5-31-d59a76d5df29@maquefel.me> References: <20231122-ep93xx-v5-0-d59a76d5df29@maquefel.me> In-Reply-To: <20231122-ep93xx-v5-0-d59a76d5df29@maquefel.me> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nikita Shubin , Andre Przywara , Romain Perier , Geert Uytterhoeven , Jesper Nilsson , Alexander Sverdlin Cc: Claudiu Beznea , Paul Barker , Sudeep Holla , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Alexander Sverdlin X-Mailer: b4 0.13-dev-e3e53 X-Developer-Signature: v=1; a=ed25519-sha256; t=1700643671; l=6189; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=nFAzcOth5DIkxc0/jY6Pz4HPUfRPm3ZyzaiBWKElNNs=; =?utf-8?q?b=3DQKiijwGa3/3i?= =?utf-8?q?nIrnYCJz2Yesy4lNQt7E6JgyDVFFmPbI45h6tC3F0DvZEGsT2Prwps+Z8zGjXOVN?= WTnCceVmC6E6oUQoSJ3gSKO3GGFh25/sAHJkxyxN/JDewL6wtCNj 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: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 | 126 +++++++++++++++++++++++++ arch/arm/boot/dts/cirrus/ep93xx-ts7250.dts | 145 +++++++++++++++++++++++++= ++++ 3 files changed, 274 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..5409a700cdfe --- /dev/null +++ b/arch/arm/boot/dts/cirrus/ep93xx-bk3.dts @@ -0,0 +1,126 @@ +// 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.41.0