Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp716346pxb; Fri, 14 Jan 2022 14:51:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJzblhcO3fhANhunJH+7C47jtzkPeqXtlar5AZ8kBoYbVGxs2mGo7GuvY8XE59JAIlDxQmSQ X-Received: by 2002:a05:6402:42ce:: with SMTP id i14mr11035476edc.289.1642200714749; Fri, 14 Jan 2022 14:51:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642200714; cv=none; d=google.com; s=arc-20160816; b=ZbLVXKyfWwAcgxiSiwc6afPspOluW7ZcsQxWUbWRU7OmDL2rUnrYAQmwEkumr4TKBF Xhe0qc67X4fEqZAPcr5IpmbYcyiD3+aKTIEQvg/xO/rTLl+QwOiNMZo8XRTgjd7hNCsY q/XuhnvGRSa4VXk9md+A3Uc7qj7ekYQYwMUjnPZ/VCwtdMbW7Aj13FChPFcl4zEVveI9 bEotWOukaarHhmcTETlWxdNGDSikEhHFMIJPtuS4CNYgVsAhSZD9Yh6aohAuuhJJZQDW b0W3Geged53IGGh4Gp3GmRLPQYWWW0AkFciaW3h4xhNLFZ9u7LfKMiAodeAqUceU4evc vy4Q== 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:date:subject:cc:to:from:message-id :dkim-signature; bh=bLy2QEgkt0p3V8bap4bKp9o2urCKFEbv7K1Eu4iH0AM=; b=ARbpp1NBtqN3G+pIBpBAcki6wiX23V7J1P/ymHkyV2xYW52bGk7ADU9699wHlhAkww qRxwAro0qf5hXO74qNe1JVWrPcV0fz2GaHl7S5wVaIuI29mHC6WBlaYovJFJ2us0rRJh ihtwff9FH8qP0qio/YBIlXPQExMovnD8GWiCJusz7qC7Z/CB/tkHi3XR/ps+D0YdDfcj btSE0FncdK7qUBrWZpQmqCCHbs6R6aHD1AUyIeOUOArCUzQBt4qqWTX87JaOdDpqMXTo AgSV+9QSpM9e5VTwFShZhFekSduHU30wIhU2ccb47VZEb4kXJXmnH+HI+L756IzlRVoD tR/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foxmail.com header.s=s201512 header.b=VFm+StM0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foxmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a11si1294714edh.231.2022.01.14.14.51.30; Fri, 14 Jan 2022 14:51:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@foxmail.com header.s=s201512 header.b=VFm+StM0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foxmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236227AbiANQdK (ORCPT + 99 others); Fri, 14 Jan 2022 11:33:10 -0500 Received: from out203-205-221-202.mail.qq.com ([203.205.221.202]:59084 "EHLO out203-205-221-202.mail.qq.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229813AbiANQdJ (ORCPT ); Fri, 14 Jan 2022 11:33:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1642177988; bh=bLy2QEgkt0p3V8bap4bKp9o2urCKFEbv7K1Eu4iH0AM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=VFm+StM03jig2F9onMND9lwosoJFKUa/I6Uu9ddXyCEcN/jALaX1zxDepa1WrPETG U6juj1wXbDLtrLsghqjdE16xik9SQqKFrrvUQNC/RCtZFhHEPEO8V9KFZ6qX6waz82 IEal7we/jfGaIw5VcqmB23owBvv04BWrVcnqHAGQ= Received: from fedora.. ([119.32.47.91]) by newxmesmtplogicsvrszc11.qq.com (NewEsmtp) with SMTP id 7F1958D8; Sat, 15 Jan 2022 00:31:49 +0800 X-QQ-mid: xmsmtpt1642177909tu68gz60g Message-ID: X-QQ-XMAILINFO: OLJT8zSTI41RbFnZZ/zp4LtNjEnirvFiCNomzyTEwUAH/RaYQwDAf98TAJ0PKz kNgGVF0A9h4YOXL1wM+zunpPoyb5RxaLxE2h1B1TpZ0iAHLjMA+THc97dCc/frYio3DCuE1SXWS7 a8cP7pRthLeGrM00P/ym1k3tJlZPafRH8uoDAJHsyC6dMGMfEOBBbcKK7npyeWhWM0XX1+/awwHO Oi7a0I/tVpuVPIyyNWoKn576hwmjgldCz2dPfCCaOfjW5bF61eHukXdnmnc7/Ww0LneJ/Ld3vDGo UKMBnHYDpWnG3jDRhbQYMjlJk3GIbTNtqd5CS69S//Ckfq2LWAoKzKauguZwS29vtsNyrQgkeOKv c8y/yPRGe2+ncEMvJqIthozEmt7lcjxo6KKcdTE255R4o2s1l3dquHoxAv38RO9zUcbyKi1tI6jQ BzrfaVurqTzvFWqdyklRFaSsZTpHD4gySOvyBm3BX/mskxB9W9aEBjb7t5wU1KxX6pQkXbMMuisg w9Bjb2kPxFu52+/yFposkCLwVSdOVyewuzmJCFfh0RyECyrKtshnAo0f4tj8W5WjD85GCLnp6ThK YArsbCtQ0OnIUpxk4InlOOBlU5DWU+yp+6H4MET6owMCW5GS4klbu5L5rUVBIogSU5OWAjB06AEy /L21ftX+wN8TWp56R+8RuGtDTbIgJgJ/ytpYPrmssZTbqUE0uQn+Uuj39h75jjBh/Vy4nHBurU3W CG5qjK/26XdOFNkweFjpAWkLjbsegjVFzlkRKZo2MYJ3dSkw+ED0mzS03X/6ytGc6gfjztuTN43a heH+2WNCR2Dob22mlG13C+ryLkvFcpjZI3uiyOrZYggymi8gdsBKQr9AFm8iunAAb7EL8hxPf67r 4JSlSkAXBC5w7bp3VeKqEqYEIBs6pvECunwyc1c/nR From: Conley Lee To: maxime@cerno.tech, mripard@kernel.org, wens@csie.org, robh@kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Conley Lee Subject: [PATCH v4 1/2] arm: dts: sun7i: Add A20-Marsboard Date: Sat, 15 Jan 2022 00:31:47 +0800 X-OQ-MSGID: <20220114163148.2854265-1-conleylee@foxmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Marsboard A20 is a A20 based SBC with 1G RAM, 8G Flash, micro SD card slot , SATA socketm 10/100 ethernet, HDMI port, 4 USB2.0 ports, 2 USB2.0 OTG, USB WIFI(RTL8188EU) with antenna. Signed-off-by: Conley Lee --- Change since v1. - Spearate biddings and dts as two patches. - use SPDX tag Change since v2. - reformat patch - dual-license with GPL and MIT - rename dts filename to sun7i-a20-haoyu-marsboard.dts Change since v3. - reformat patch - order dtb alphabetically - add gmac_txerr node and remove gmac_mii_pins node in sun7i-a20-marsboard.dts --- arch/arm/boot/dts/Makefile | 1 + .../boot/dts/sun7i-a20-haoyu-marsboard.dts | 183 ++++++++++++++++++ 2 files changed, 184 insertions(+) create mode 100644 arch/arm/boot/dts/sun7i-a20-haoyu-marsboard.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 0de64f237cd8..1850ff7c9006 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1213,6 +1213,7 @@ dtb-$(CONFIG_MACH_SUN7I) += \ sun7i-a20-bananapro.dtb \ sun7i-a20-cubieboard2.dtb \ sun7i-a20-cubietruck.dtb \ + sun7i-a20-haoyu-marsboard.dtb \ sun7i-a20-hummingbird.dtb \ sun7i-a20-itead-ibox.dtb \ sun7i-a20-i12-tvbox.dtb \ diff --git a/arch/arm/boot/dts/sun7i-a20-haoyu-marsboard.dts b/arch/arm/boot/dts/sun7i-a20-haoyu-marsboard.dts new file mode 100644 index 000000000000..056dbc415de7 --- /dev/null +++ b/arch/arm/boot/dts/sun7i-a20-haoyu-marsboard.dts @@ -0,0 +1,183 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2021 Conley Lee + * Conley Lee + */ + +/dts-v1/; +#include "sun7i-a20.dtsi" +#include "sunxi-common-regulators.dtsi" + +#include +#include + +/ { + model = "HAOYU Electronics Marsboard A20"; + compatible = "haoyu,a20-marsboard", "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>; + }; + }; + }; +}; + +&ahci { + target-supply = <®_ahci_5v>; + status = "okay"; +}; + +&codec { + status = "okay"; +}; + +&cpu0 { + cpu-supply = <®_dcdc2>; +}; + +&de { + status = "okay"; +}; + +&ehci0 { + status = "okay"; +}; + +&ehci1 { + status = "okay"; +}; + +&gmac { + pinctrl-names = "default"; + pinctrl-0 = <&gmac_mii_pins>, <&gmac_txerr>; + phy-handle = <&phy0>; + phy-mode = "mii"; + status = "okay"; +}; + +&hdmi { + status = "okay"; +}; + +&hdmi_out { + hdmi_out_con: endpoint { + remote-endpoint = <&hdmi_con_in>; + }; +}; + +&i2c0 { + status = "okay"; + + axp209: pmic@34 { + reg = <0x34>; + interrupt-parent = <&nmi_intc>; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + }; +}; + +&mmc0 { + vmmc-supply = <®_vcc3v3>; + bus-width = <4>; + cd-gpios = <&pio 7 10 GPIO_ACTIVE_LOW>; /* PH10 */ + status = "okay"; +}; + +&gmac_mdio { + phy0: ethernet-phy@0 { + reg = <0>; + }; +}; + +&ohci0 { + status = "okay"; +}; + +&ohci1 { + status = "okay"; +}; + +&otg_sram { + status = "okay"; +}; + +&pio { + gmac_txerr: gmac-txerr-pin { + pins = "PA17"; + function = "gmac"; + }; +}; + + +®_ahci_5v { + status = "okay"; +}; + +#include "axp209.dtsi" + +&ac_power_supply { + status = "okay"; +}; + +®_dcdc2 { + regulator-always-on; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1450000>; + 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"; +}; + +®_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 | GPIO_PULL_UP)>; /* PH4 */ + usb1_vbus-supply = <®_usb1_vbus>; + usb2_vbus-supply = <®_usb2_vbus>; + status = "okay"; +}; -- 2.31.1