From patchwork Thu Jun 1 05:45:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Shubin X-Patchwork-Id: 101762 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp87116vqr; Wed, 31 May 2023 23:26:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ71tTtre0PC4dessiRSkEwNvs2OmnfEh8ASowfK887YCM1b9abfNfFkPwDqH+LZCuLUtM25 X-Received: by 2002:a05:6870:3c11:b0:19f:9dc5:c0b with SMTP id gk17-20020a0568703c1100b0019f9dc50c0bmr6484064oab.12.1685600790880; Wed, 31 May 2023 23:26:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685600790; cv=none; d=google.com; s=arc-20160816; b=YFwAIgrnGSi8UzT+hRO9ZW8iUBygtOe5c2UIF0rViic7Ya6udG4AlTD7C/xKUqnJXq zISYWkWRxzJpD22kvo74nYDWoY4uRivpBrDTJlQH64egXil8GPnVT1On93VEPIb7mIgu Xz0KND8GBb/35Opccclqidf6nAzzFR4fNfL5aUPXU0ki4qxxI3xdHBtmDxwGzeFM2I+M +Aig2i/Nnc9F0JI9AmhD7FBWtj6/qaRsvxPyqaIffvfgXHTNCOGXhn5M3OfZM49QbD3v XXaL+s3U/IC25PqtPZasTShOd1nGW3kIHTpco9gX41XdKYko3O0ESG2/KEJNmEmTmc7f 6alA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xD3SVSf4acaNP04jn6OY2mZkIosr4Bwx2X5BXPKtEow=; b=pyjaSrJ21FautbxjuhL/4X3eoliJOBH0ag8kaYNOBMkGXr0iNtlNxfMgKrIA1+bt2M Rk5c+ZB5MK1NwjVkl0lBwso7wEPBnIZSMhWjuWp30whZNXsq+yUxx/ASrRZny4lv8DkG roxG2AyZFcBGvPJBLSkUjAuKyA+FMEi+zB971BQBnRNJ/FfZ7XyPcT96Jj2gochPAqNR i9cNThiqzo9oYGc60GGSeKMksn+t7/WgQHkE2XCj2bQOD+9YvqWrEc7p01E4CA6DCdAn C1Wx2P5GqpUh4IQs2aYycMJQ/VaHni2s1ZY8jWZXs4MQCIqqJLnVDgxJk4PJHtU1/f2O kFFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maquefel.me header.s=mail header.b=SYg3dKVV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y30-20020a63b51e000000b0053fba84791asi2355372pge.243.2023.05.31.23.26.18; Wed, 31 May 2023 23:26:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@maquefel.me header.s=mail header.b=SYg3dKVV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231577AbjFAFtj (ORCPT + 99 others); Thu, 1 Jun 2023 01:49:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229724AbjFAFse (ORCPT ); Thu, 1 Jun 2023 01:48:34 -0400 Received: from forward100a.mail.yandex.net (forward100a.mail.yandex.net [178.154.239.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D54F1710; Wed, 31 May 2023 22:47:21 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net [IPv6:2a02:6b8:c1f:5e51:0:640:23ee:0]) by forward100a.mail.yandex.net (Yandex) with ESMTP id 4616346CED; Thu, 1 Jun 2023 08:46:43 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id pjGDMhnDduQ0-yXfE0LdX; Thu, 01 Jun 2023 08:46:43 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1685598403; bh=xD3SVSf4acaNP04jn6OY2mZkIosr4Bwx2X5BXPKtEow=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=SYg3dKVVEhH5oHPt1clRNOmzuX6chECD0wwJ3oKue13AgsoOvc/smfc2WBvMIiv8z 5THy0kuGaHc/WtHXtcHCCmOeptKKj67zf2SnFTtHfAh5QBiwK9cSnElE6WF8zFb5M6 U2wwipAs6Fkl1xJU0MDxSl2c3HzG8zkI5yYeYO48= Authentication-Results: mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net; dkim=pass header.i=@maquefel.me From: Nikita Shubin To: Alexander Sverdlin , Arnd Bergmann , Linus Walleij , Rob Herring , Krzysztof Kozlowski Cc: Nikita Shubin , Michael Peters , Kris Bahnsen , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 42/43] ARM: dts: ep93xx: Add EDB9302 DT Date: Thu, 1 Jun 2023 08:45:47 +0300 Message-Id: <20230601054549.10843-24-nikita.shubin@maquefel.me> X-Mailer: git-send-email 2.37.4 In-Reply-To: <20230424123522.18302-1-nikita.shubin@maquefel.me> References: <20230424123522.18302-1-nikita.shubin@maquefel.me> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764053346098152919?= X-GMAIL-MSGID: =?utf-8?q?1767480534643517413?= From: Alexander Sverdlin Add device tree for Cirrus EDB9302. Signed-off-by: Alexander Sverdlin Signed-off-by: Nikita Shubin --- Notes: v0 -> v1: - added USB - dropped 'Missing USB' in commit message - add mdio + eth phy arch/arm/boot/dts/ep93xx-edb9302.dts | 160 +++++++++++++++++++++++++++ 1 file changed, 160 insertions(+) create mode 100644 arch/arm/boot/dts/ep93xx-edb9302.dts diff --git a/arch/arm/boot/dts/ep93xx-edb9302.dts b/arch/arm/boot/dts/ep93xx-edb9302.dts new file mode 100644 index 000000000000..3ec89f7587db --- /dev/null +++ b/arch/arm/boot/dts/ep93xx-edb9302.dts @@ -0,0 +1,160 @@ +// 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 { + device_type = "memory"; + }; + + soc { + flash@60000000 { + compatible = "cfi-flash"; + reg = <0x60000000 0x1000000>; + bank-width = <2>; + }; + }; + + sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "EDB93XX"; + simple-audio-card,format = "i2s"; + simple-audio-card,mclk-fs = <256>; + simple-audio-card,convert-channels = <2>; + simple-audio-card,convert-sample-format = "s32_le"; + + simple-audio-card,cpu { + sound-dai = <&i2s>; + system-clock-direction-out; + frame-master; + bitclock-master; + dai-sample-format = "s32_le"; + dai-channels = <2>; + }; + + simple-audio-card,codec { + sound-dai = <&codec>; + }; + }; +}; + +&pinctrl { + compatible = "cirrus,ep9301-pinctrl"; +}; + +&gpio0 { + gpio-ranges = <&pinctrl 0 153 1>, + <&pinctrl 1 152 1>, + <&pinctrl 2 151 1>, + <&pinctrl 3 148 1>, + <&pinctrl 4 147 1>, + <&pinctrl 5 146 1>, + <&pinctrl 6 145 1>, + <&pinctrl 7 144 1>; +}; + +&gpio1 { + gpio-ranges = <&pinctrl 0 143 1>, + <&pinctrl 1 142 1>, + <&pinctrl 2 141 1>, + <&pinctrl 3 140 1>, + <&pinctrl 4 165 1>, + <&pinctrl 5 164 1>, + <&pinctrl 6 163 1>, + <&pinctrl 7 160 1>; +}; + +&gpio2 { + gpio-ranges = <&pinctrl 0 115 1>; + /delete-property/ status; + /delete-property/ pinctrl-0; + /delete-property/ pinctrl-names; +}; + +&gpio4 { + gpio-ranges = <&pinctrl 0 97 2>; + /delete-property/ status; +}; + +&gpio5 { + gpio-ranges = <&pinctrl 1 170 1>, + <&pinctrl 2 169 1>, + <&pinctrl 3 168 1>; +}; + +&gpio6 { + gpio-ranges = <&pinctrl 0 87 2>; + /delete-property/ status; +}; + +&gpio7 { + gpio-ranges = <&pinctrl 2 199 4>; + /delete-property/ status; +}; + +&spi0 { + cs-gpios = <&gpio0 6 GPIO_ACTIVE_LOW + &gpio0 7 GPIO_ACTIVE_LOW>; + use_dma; + /delete-property/ status; + + codec: cs4271@0 { + compatible = "cirrus,cs4271"; + #sound-dai-cells = <0>; + reg = <0>; + spi-max-frequency = <6000000>; + spi-cpol; + spi-cpha; + reset-gpio = <&gpio0 1 GPIO_ACTIVE_HIGH>; + }; + + eeprom: at25f1024@1 { + compatible = "atmel,at25"; + reg = <1>; + spi-max-frequency = <20000000>; + }; +}; + +&adc { + /delete-property/ status; +}; + +ð0 { + phy-handle = <&phy0>; +}; + +&mdio0 { + phy0: ethernet-phy@1 { + reg = <1>; + device_type = "ethernet-phy"; + }; +}; + +&uart0 { + /delete-property/ status; +}; + +&uart1 { + /delete-property/ status; +}; + +&usb0 { + /delete-property/ status; +}; + +&i2s { + pinctrl-names = "default"; + pinctrl-0 = <&i2s_on_ac97_pins>; + /delete-property/ status; +};