Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp570495rwr; Thu, 20 Apr 2023 03:34:08 -0700 (PDT) X-Google-Smtp-Source: AKy350Yqqq0EbfeQaBtHLzt0sRg8t0Ibqz+fXnT3Ma3QyAYh/G6VZpPpEwIc7B55qN6b/B8oALNG X-Received: by 2002:a05:6a00:1143:b0:63d:3ae4:7c72 with SMTP id b3-20020a056a00114300b0063d3ae47c72mr1061532pfm.0.1681986847630; Thu, 20 Apr 2023 03:34:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681986847; cv=none; d=google.com; s=arc-20160816; b=S6VxEh7ThzKoirQVzW1ZRtsnlfNPSOuvxxUHZdFYxZ7plsIyPZ2xiQavo0CeNTA8r+ 0tk8avTnoq1pMU+dXSMPZPhsvYESFKWmqKAds8dMtc0dcV/9wbQzJXOEtHwZWpecMtQV RvACf1JmleJH12Gy9gkEbtTPOH2Wbt8z1QGJn9lnmfzMQAPa2nyERAfrY2W+sEBcYJo1 8Gxno1ZKOXSxOePw4019Zp+PcSBhJq59Id/qs2m9A6BuvZjRvs6RxrMJdFjt2ap1jC5l 9G6xcDDzNBkSPXYz/3In9fV2j5hug3mXQs0AvyVKFEu6ltC4cBeHYCY9/Q7HMI3csb0h pPlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=LISfG5BG/LyOMSKgWXEO+W3aZwiEM6TdBx4YBCKu9oE=; b=uiRQGfJA/83ELM4IiZJhBktkuui/XW/ViBDwjEwQK/vRCZYJI4lXQpCJgrqLy+vSt2 Zo+9fvrJLhn91b8BSTm8Gg2Y34UND/UFey6U0aBtp8SPm9PzGgFaTh1JWZ4e+DKW1+AM 0mMLyjqDZi8IEccTglKOBjqZT+LyIDj/3Ha+q2r77uTSoYb33Xxq8GUHkeYaSG2YPDw/ XksKOA+2Q4w+4cbDt4FcW2M1MxpWZ0m9xW1yz+AGYBHzDtWfU2ixr5IjyqhC3d0k59fX 91WqZDq2llB4mZghJQKQiZTjNnBfc6WDrSd2YhWQ/E+cYj07YTNxksBvZDPPrUSUEjD7 s/jQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k12-20020aa79d0c000000b0063b8a37e42bsi1331953pfp.123.2023.04.20.03.33.36; Thu, 20 Apr 2023 03:34:07 -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; 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 S234587AbjDTK0K (ORCPT + 99 others); Thu, 20 Apr 2023 06:26:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234466AbjDTKZl (ORCPT ); Thu, 20 Apr 2023 06:25:41 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09AE010E; Thu, 20 Apr 2023 03:24:50 -0700 (PDT) Received: from debian-test.local.in-circuit.de ([84.160.205.173]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MkHd3-1qZXrS352n-00kjbY; Thu, 20 Apr 2023 12:24:23 +0200 From: Ludwig Kormann To: samuel@sholland.org, jernej.skrabec@gmail.com, wens@csie.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, andre.przywara@arm.com Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/2] arm: dts: sunxi: Add ICnova A20 ADB4006 board Date: Thu, 20 Apr 2023 12:24:09 +0200 Message-Id: <20230420102409.1394618-3-ludwig.kormann@in-circuit.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230420102409.1394618-1-ludwig.kormann@in-circuit.de> References: <20230420102409.1394618-1-ludwig.kormann@in-circuit.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:JbOfNKJY/XEtp6xkqjP477VwoJD1Qd9/OAA6HP5NHPxfW9FyPkG SCU38rRyPfux0sEwYxcfMDBjKKYiUAD0r4BA4il1i9vhUfijqGBADEbzsCvDQ2rmqCG3H8+ cQbuZvQmAK5GFW4q6eRPgpMVfAQ2aKE1vWDzJvYQ5uLnPtXkUxW7s0kEKn2c6Xhi7LgM1VX BHOA5ryj/1sDCo9msAMSw== UI-OutboundReport: notjunk:1;M01:P0:AVn3Uaprw/4=;j3zIXB8WhXc/d/QsB7681u99fpJ nbQ0YeJXJYQZcdkBRklk/nQaV2dR+qY65HzmF4VVcZF1XarM1uqHrvv6l+GKu5Wvm7nQHW1DE J9zb2rDUWiUHiMamot6kPS3jhwqcWueB5nYKGZRDwxcNMT041PRdOd+s5cyBeZxVPAxS3MF8a oroSCv3M2tVjrD98qAAlM7a8WJPliFP2o2BFM2Z4DMZe5JJmdzx5RduXO96YIqCxyXyLHwnoQ 8138yTvCb/4CK5YXXbYlCbki4x4Q59r6FgyHrQugtWA/1G4XA9Oc3c209kU85N6GZhTNKjc88 fRQ+gB+qUAstFJPzakvs3TQzX+7113F4EuE/YU2Fy7YrxmXzWht+smApvhIowvmVXeocJFR05 ZnPAbD00HI7i60v3rylbhc4CBMXBLnOn6/Pj8DArjUkB+Ul58aCgjyPnxN4/u0JU9CV81QlDl wrmfjnhFm7GhR+irWoSzE2QbVXJd2vRfC3nLAFQDmeiwMO3GX6q1JFRlUxWVkZrgTDB1Exsf4 KaraBHnR/AWP5VUKWCn8BFVfQtRUZMt5jRn2F2dLdHOfs7KIQBgjLxor5JhM2s2kp1fXWiL5t lDVBhZw6RTUmmDn80onzL6xS0G2jRUE62On/fBghB3y5XZ5NrKAawt26azHVWKq+6DNnqisq6 xoTOA4KUO4QR5EGeKmyuPlA2/xesIlNyQ5NrMewnBA== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,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 Add board support for ICnova A20 SomPi compute module on ICnova ADB4006 development board. Specification: SoM - Processor: Allwinner A20 Cortex-A7 Dual Core at 1GHz - 512MB DDR3 RAM - Fast Ethernet (Phy: Realtek RTL8201CP) ADB4006 - I2C - 2x USB 2.0 - 1x Fast Ethernet port - 1x SATA - 2x buttons (PWRON, Boot) - 2x LEDS - serial console - HDMI - µSD-Card slot - Audio Line-In / Line-Out - GPIO pinheaders https://wiki.in-circuit.de/index.php5?title=ICnova_ADB4006 https://wiki.in-circuit.de/index.php5?title=ICnova_A20_SODIMM Reviewed-by: Andre Przywara Signed-off-by: Ludwig Kormann --- arch/arm/boot/dts/Makefile | 1 + .../boot/dts/sun7i-a20-icnova-a20-adb4006.dts | 137 ++++++++++++++++++ arch/arm/boot/dts/sun7i-a20-icnova-a20.dtsi | 62 ++++++++ 3 files changed, 200 insertions(+) create mode 100644 arch/arm/boot/dts/sun7i-a20-icnova-a20-adb4006.dts create mode 100644 arch/arm/boot/dts/sun7i-a20-icnova-a20.dtsi diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 3cc32722c394..b6b408417261 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1321,6 +1321,7 @@ dtb-$(CONFIG_MACH_SUN7I) += \ sun7i-a20-hummingbird.dtb \ sun7i-a20-itead-ibox.dtb \ sun7i-a20-i12-tvbox.dtb \ + sun7i-a20-icnova-a20-adb4006.dtb \ sun7i-a20-icnova-swac.dtb \ sun7i-a20-lamobo-r1.dtb \ sun7i-a20-linutronix-testbox-v2.dtb \ diff --git a/arch/arm/boot/dts/sun7i-a20-icnova-a20-adb4006.dts b/arch/arm/boot/dts/sun7i-a20-icnova-a20-adb4006.dts new file mode 100644 index 000000000000..577ead1d02a0 --- /dev/null +++ b/arch/arm/boot/dts/sun7i-a20-icnova-a20-adb4006.dts @@ -0,0 +1,137 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +// Copyright (C) 2023 In-Circuit GmbH + +/dts-v1/; + +#include "sun7i-a20-icnova-a20.dtsi" + +#include +#include + +/ { + model = "In-Circuit ICnova A20 ADB4006"; + compatible = "incircuit,icnova-a20-adb4006", "incircuit,icnova-a20", + "allwinner,sun7i-a20"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + hdmi-connector { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_con_in: endpoint { + remote-endpoint = <&hdmi_out_con>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + led-0 { + function = LED_FUNCTION_POWER; + color = ; + gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>; /* PH21 */ + default-state = "on"; + }; + + led-1 { + function = LED_FUNCTION_HEARTBEAT; + color = ; + gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>; /* PH20 */ + linux,default-trigger = "heartbeat"; + }; + }; +}; + +&ahci { + target-supply = <®_ahci_5v>; + status = "okay"; +}; + +&codec { + status = "okay"; +}; + +&de { + status = "okay"; +}; + +&ehci0 { + status = "okay"; +}; + +&ehci1 { + status = "okay"; +}; + +&hdmi { + status = "okay"; +}; + +&hdmi_out { + hdmi_out_con: endpoint { + remote-endpoint = <&hdmi_con_in>; + }; +}; + +&mmc0 { + vmmc-supply = <®_vcc3v3>; + bus-width = <4>; + cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ + status = "okay"; +}; + +&ohci0 { + status = "okay"; +}; + +&ohci1 { + status = "okay"; +}; + +&otg_sram { + status = "okay"; +}; + +®_ahci_5v { + status = "okay"; +}; + +&ac_power_supply { + status = "okay"; +}; + +®_usb1_vbus { + status = "okay"; +}; + +®_usb2_vbus { + status = "okay"; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_pb_pins>; + status = "okay"; +}; + +&usb_otg { + dr_mode = "otg"; + status = "okay"; +}; + +&usbphy { + usb0_id_det-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */ + usb0_vbus_det-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */ + usb1_vbus-supply = <®_usb1_vbus>; + usb2_vbus-supply = <®_usb2_vbus>; + status = "okay"; +}; diff --git a/arch/arm/boot/dts/sun7i-a20-icnova-a20.dtsi b/arch/arm/boot/dts/sun7i-a20-icnova-a20.dtsi new file mode 100644 index 000000000000..46616c6bc899 --- /dev/null +++ b/arch/arm/boot/dts/sun7i-a20-icnova-a20.dtsi @@ -0,0 +1,62 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +// Copyright (C) 2023 In-Circuit GmbH + +#include "sun7i-a20.dtsi" +#include "sunxi-common-regulators.dtsi" + +#include + +&cpu0 { + cpu-supply = <®_dcdc2>; +}; + +&gmac { + pinctrl-names = "default"; + pinctrl-0 = <&gmac_mii_pins>; + phy-handle = <&phy1>; + phy-mode = "mii"; + status = "okay"; +}; + +&i2c0 { + status = "okay"; + + axp209: pmic@34 { + reg = <0x34>; + interrupt-parent = <&nmi_intc>; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + }; +}; + +&gmac_mdio { + phy1: ethernet-phy@1 { + reg = <1>; + }; +}; + +#include "axp209.dtsi" + +®_dcdc2 { + regulator-always-on; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1400000>; + regulator-name = "vdd-cpu"; +}; + +®_dcdc3 { + regulator-always-on; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1400000>; + regulator-name = "vdd-int-dll"; +}; + +®_ldo1 { + regulator-name = "vdd-rtc"; +}; + +®_ldo2 { + regulator-always-on; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + regulator-name = "avcc"; +}; -- 2.30.2