Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1153929rbb; Sun, 25 Feb 2024 23:38:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU9EwTWwJQyu4cIUVp9LeJCROZOis/MJd7YEZfaqUoyxfiMdKaw+hHulUKWYAoDaW/gGAwBnN/yECbnyQSi5AL/KcJB1vst1CxxKwO1jQ== X-Google-Smtp-Source: AGHT+IEKmJUJi0LLOSHvFrKi3CKRFgeQ95tf/huVDafErWMZX3fP9OVRG+q3GrDTuEaOWF51Ftdy X-Received: by 2002:a17:902:db09:b0:1dc:ad9a:7602 with SMTP id m9-20020a170902db0900b001dcad9a7602mr461332plx.34.1708933079982; Sun, 25 Feb 2024 23:37:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708933079; cv=pass; d=google.com; s=arc-20160816; b=m7rb1KU1BHvlBN4AHM3F6GeEkCTIAFIqOIf44rLaiKMuTd4JjwpIKSbEf3SmCdQ+Uf TeaPgWySrGGPVRP4KN5EJVBWcQgJN1pdHUraEzYHZrrEIrcQBE3QMhPee6koBAZp1s/E bes1rlkVYnV82Acgt/6LPFng0mZBa7Rl77K0Nb9480udo9gaaXcjy6GyrJr1oqOxhUD9 +Dsbbhpou0UPUhSHTKiwrD8XxKlFVM/n0BJ1Lv82+QvOWwnDXRaBMKAusN0k6ErfWqL0 MISatQSniYZaobW0Rl4gvCDhKij7GxgA2liuaDOYMMEoaZkuOBUOJtzwxtikaodmTOlt DDcg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=YGfg70yqyFhCAQTg3eGWpydBxWRH7xfGllOTGZLN7GU=; fh=TX9Lf+Zolq6sNbIRhw3Ts9jqBA0oz/bKebxG6ZgYQLc=; b=H5l1csi+jRiz8R5pZY+MFMiGjLfx57EAzfOIIWI63wusa0tJoT5epsSAlGbiSJRNG6 tm70QAozzuyvg0MnLxSZHEOlOi3BzWXEsyb0L4OFn41ElxnKYI8AFWF5+YoBGix2nOH+ eLxLrQnkCIT/DDfWF5dHJBo4SgHnh06xFx01xPY2HsqBivQBiIyaUufl/emB40bH6DiU oCebT24vCPrrCPEFWsknd5QErSPUAPJusqGgNdjgvIjOHXMm2lxvCM6AaQsnviR7xzUd WlWcRCMarNysSM2kJpoeHQz1hvjZg3fJtbldRaYOi+xsew+KnSyGhjiqxhg2PYtjvMwf iDNg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iTsmT9Oi; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-80665-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80665-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j6-20020a170903028600b001d8d6ff3f0esi3319479plr.274.2024.02.25.23.37.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 23:37:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80665-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iTsmT9Oi; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-80665-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80665-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A76E8288965 for ; Mon, 26 Feb 2024 07:37:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4412253E3B; Mon, 26 Feb 2024 07:31:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iTsmT9Oi" 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 C9AA41EB23; Mon, 26 Feb 2024 07:31:24 +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=1708932684; cv=none; b=meBM4F88h4xx8UKWIx4C6rRxXjJVghNbDg8FE5X2kdu40+ercMXfJibPHqHnT3AI/t47W+UkjAjP67jCAfitolMn8KZoz2KUJV6rG7UHRuRH6kGtUoIPF4r8Qia9hvUtMyH873PnY1eiYD3TtdCRM/RUXlMdxKTgV89FaqhxuE8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708932684; c=relaxed/simple; bh=D8xErp0zejwZpfi8Wd+6nBZxa9LPVk/TpSjAq+BHZns=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=oAPQg7jOXm1KagGhTVKE7yRCI9/uiULmZIV6pTlEiB+g1Qum2xY4UedyKlnJN6jSuqt9lo4c1lzlhSuv7aSKemqMstqdBcWwRMg61GDtL0C8vPtysP8SgjK/6a+C4UlFzodvGSj34ea3XWS6ZwNAhyklteDoZP6AhSycTrxtkDA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iTsmT9Oi; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id A44BDC4E758; Mon, 26 Feb 2024 07:31:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708932683; bh=D8xErp0zejwZpfi8Wd+6nBZxa9LPVk/TpSjAq+BHZns=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=iTsmT9OipHKTeCEDuNgwqalbHgRDT0MOw59H1xZNbvfWiG+ifxi3utkao9rU7TnlE g3QFmYl1ZhBa5Y+wo6+UubXJeRdW0pioZ9l0WVEbKUEqWs5+MVpBBhnn8CBPDhvQDN WNFQYdGqAWF3G6UtVatc3XIYPhfI7Zkty41q+X1yAJsxRg6EPMAlr24lXo9AnQN/vL rFYk2mDdy4I4OES8TgLF4mM+9tdjLGiyWR2T7E7/XOailLSnIBm0+EDB4C26GxJGgc SyHen4hI6ekJTEa17yizSy/suN8nmzBy5Dl64bgdxHL5uqafSQDQxscIDqS8Zq86Ew 3yrI51XQwE3KQ== 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 91BECC54E52; Mon, 26 Feb 2024 07:31:23 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Mon, 26 Feb 2024 10:30:27 +0300 Subject: [PATCH v8 31/38] ARM: dts: ep93xx: Add EDB9302 DT 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: 7bit Message-Id: <20240226-ep93xx-v8-31-3136dca7238f@maquefel.me> References: <20240226-ep93xx-v8-0-3136dca7238f@maquefel.me> In-Reply-To: <20240226-ep93xx-v8-0-3136dca7238f@maquefel.me> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nikita Shubin , Andre Przywara , Baruch Siach , Romain Perier , Paul Barker , Alexander Sverdlin Cc: Enric Balletbo i Serra , Jesper Nilsson , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann X-Mailer: b4 0.13-dev-e3e53 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708932678; l=4429; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=KR6AhAHkrEaDtUcRyLyul6gEHO42boKFUOuHc7e+r74=; =?utf-8?q?b=3DzCIxM2vkUqLv?= =?utf-8?q?9Xug6H6kzJa1Uam+9C7/80ysZ6zraW21+JkfsmmJnpUKEmHzP2s/p9uq5TcAW5/g?= kujRJRhLCreOmaF0qZQsD//EJdr+n0e011JEynxKc7Ol3uMq5Ajh 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: From: Alexander Sverdlin Add device tree for Cirrus EDB9302. Signed-off-by: Alexander Sverdlin Signed-off-by: Nikita Shubin --- arch/arm/boot/dts/cirrus/Makefile | 1 + arch/arm/boot/dts/cirrus/ep93xx-edb9302.dts | 182 ++++++++++++++++++++++++++++ 2 files changed, 183 insertions(+) diff --git a/arch/arm/boot/dts/cirrus/Makefile b/arch/arm/boot/dts/cirrus/Makefile index 211a7e2f2115..e6015983e464 100644 --- a/arch/arm/boot/dts/cirrus/Makefile +++ b/arch/arm/boot/dts/cirrus/Makefile @@ -4,5 +4,6 @@ dtb-$(CONFIG_ARCH_CLPS711X) += \ dtb-$(CONFIG_ARCH_CLPS711X) += \ ep7211-edb7211.dtb dtb-$(CONFIG_ARCH_EP93XX) += \ + ep93xx-edb9302.dtb \ ep93xx-bk3.dtb \ ep93xx-ts7250.dtb diff --git a/arch/arm/boot/dts/cirrus/ep93xx-edb9302.dts b/arch/arm/boot/dts/cirrus/ep93xx-edb9302.dts new file mode 100644 index 000000000000..f015c6b8c802 --- /dev/null +++ b/arch/arm/boot/dts/cirrus/ep93xx-edb9302.dts @@ -0,0 +1,182 @@ +// SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +/* + * Device Tree file for Cirrus Logic EDB9302 board based on EP9302 SoC + */ +/dts-v1/; +#include "ep93xx.dtsi" + +/ { + #address-cells = <1>; + #size-cells = <1>; + compatible = "cirrus,edb9302", "cirrus,ep9301"; + model = "cirrus,edb9302"; + + chosen { + }; + + memory@0 { + device_type = "memory"; + /* should be set from ATAGS */ + reg = <0x0000000 0x800000>, + <0x1000000 0x800000>, + <0x4000000 0x800000>, + <0x5000000 0x800000>; + }; + + sound { + compatible = "audio-graph-card2"; + label = "EDB93XX"; + links = <&i2s_port>; + }; + + leds { + compatible = "gpio-leds"; + led-0 { + label = "grled"; + gpios = <&gpio4 0 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + function = LED_FUNCTION_HEARTBEAT; + }; + + led-1 { + label = "rdled"; + gpios = <&gpio4 1 GPIO_ACTIVE_HIGH>; + function = LED_FUNCTION_FAULT; + }; + }; +}; + +&adc { + status = "okay"; +}; + +&ebi { + flash@60000000 { + compatible = "cfi-flash"; + reg = <0x60000000 0x1000000>; + bank-width = <2>; + }; +}; + +ð0 { + phy-handle = <&phy0>; +}; + +&gpio0 { + gpio-ranges = <&syscon 0 153 1>, + <&syscon 1 152 1>, + <&syscon 2 151 1>, + <&syscon 3 148 1>, + <&syscon 4 147 1>, + <&syscon 5 146 1>, + <&syscon 6 145 1>, + <&syscon 7 144 1>; +}; + +&gpio1 { + gpio-ranges = <&syscon 0 143 1>, + <&syscon 1 142 1>, + <&syscon 2 141 1>, + <&syscon 3 140 1>, + <&syscon 4 165 1>, + <&syscon 5 164 1>, + <&syscon 6 163 1>, + <&syscon 7 160 1>; +}; + +&gpio2 { + gpio-ranges = <&syscon 0 115 1>; +}; + +/* edb9302 doesn't have GPIO Port D present */ +&gpio3 { + status = "disabled"; +}; + +&gpio4 { + gpio-ranges = <&syscon 0 97 2>; +}; + +&gpio5 { + gpio-ranges = <&syscon 1 170 1>, + <&syscon 2 169 1>, + <&syscon 3 168 1>; +}; + +&gpio6 { + gpio-ranges = <&syscon 0 87 2>; +}; + +&gpio7 { + gpio-ranges = <&syscon 2 199 4>; +}; + +&i2s { + pinctrl-names = "default"; + pinctrl-0 = <&i2s_on_ac97_pins>; + status = "okay"; + i2s_port: port { + i2s_ep: endpoint { + system-clock-direction-out; + frame-master; + bitclock-master; + mclk-fs = <256>; + dai-format = "i2s"; + convert-channels = <2>; + convert-sample-format = "s32_le"; + remote-endpoint = <&codec_ep>; + }; + }; +}; + +&mdio0 { + phy0: ethernet-phy@1 { + reg = <1>; + device_type = "ethernet-phy"; + }; +}; + +&spi0 { + cs-gpios = <&gpio0 6 GPIO_ACTIVE_LOW + &gpio0 7 GPIO_ACTIVE_LOW>; + dmas = <&dma1 10 2>, <&dma1 10 1>; + dma-names = "rx", "tx"; + status = "okay"; + + cs4271: codec@0 { + compatible = "cirrus,cs4271"; + reg = <0>; + #sound-dai-cells = <0>; + spi-max-frequency = <6000000>; + spi-cpol; + spi-cpha; + reset-gpio = <&gpio0 1 GPIO_ACTIVE_HIGH>; + port { + codec_ep: endpoint { + remote-endpoint = <&i2s_ep>; + }; + }; + }; + + at25f1024: eeprom@1 { + compatible = "atmel,at25"; + reg = <1>; + address-width = <8>; + size = <0x20000>; + pagesize = <256>; + spi-max-frequency = <20000000>; + }; +}; + +&uart0 { + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; + +&usb0 { + status = "okay"; +}; + -- 2.41.0