From patchwork Wed Nov 14 08:22:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hao Zhang X-Patchwork-Id: 10682097 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3BCBF139B for ; Wed, 14 Nov 2018 08:22:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F97C2B19F for ; Wed, 14 Nov 2018 08:22:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2293B2B1A2; Wed, 14 Nov 2018 08:22:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E2EC42B19F for ; Wed, 14 Nov 2018 08:22:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727595AbeKNSYb (ORCPT ); Wed, 14 Nov 2018 13:24:31 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:38944 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725907AbeKNSYa (ORCPT ); Wed, 14 Nov 2018 13:24:30 -0500 Received: by mail-pf1-f194.google.com with SMTP id c72so2843381pfc.6; Wed, 14 Nov 2018 00:22:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=K7ItcJWwvKMLaQcfSseVZvj/btn1QQHDrmPP1U1fZzA=; b=rtRZ+fvwv6D4KLK0GYe3CnpLy5e74ugBAP/DSK13U0UNPMirbBSrSoom1MLV8kdxy7 h5kmcPy1r6XGjsDPZdFyMFAZ7WQwoJQ84/DGuztowjKsFGoNyhPSU8ipJGa04FQTDshX FiYEDNgAIUBEUcDVoG2S3a6sKVefTBOUnJA0rrOAINoGKiOIaINjuhUikJ7k/tXrNzK3 CQHJQGgOUxCXm9Yxzq3CBUs6iRzUuXx8cXnxUMvOd4f+gj4sO4v0WkKWRInUVjpu5GyZ Xy5/KFodaQ8Zw0+Cwn85r8bDvXJFU2nSVE0u27fEQJlKzq58YRyrzk0W5X+s7vLxloED hfbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=K7ItcJWwvKMLaQcfSseVZvj/btn1QQHDrmPP1U1fZzA=; b=X8R8hWbLYffL+hnQHXUJk7YBIV+eT6AhtpWjb4XJSPlerSbwGsUmg23rclI0Uwujes eoVgwtBeFCvJunAEWo9CIDjRgX15zT3ZjRnd+Zf/z+EnkGRLywfgjJYQkPdYt3+U0KZE yuLzv62NXzH2ZQzugvq9rYC5t8+JsaufPcbrdfwhUaVNAmEp+8mL3c65P06rP2U0xo4q nHLqkT9AgrUNS8U+06nmS+y3oilFbPRPtWTYltaMBA2qBODtNyUyQRJprI7Po++3AXPn LPsdp8VKooExB9Wo662XxaSZr34F+6sL27I28L6sY03SxkH5NwWnqLUO2UzL6JsHkobX zyKA== X-Gm-Message-State: AGRZ1gIAfxBV9Oz8+zn7RsV7eI08GHa9s5nRD94bCI9wsNIS+IonD9uy 2+D67TyB9HJfJJvGCwiERwU= X-Google-Smtp-Source: AJdET5eKTw3u71M45Scq91nQq0zhcJ5qivNsiIlaQKKSbc7plMY8vUS3hQLIHHYdZiirOEyVJWMmBg== X-Received: by 2002:a63:4a0a:: with SMTP id x10mr846448pga.237.1542183738908; Wed, 14 Nov 2018 00:22:18 -0800 (PST) Received: from arx-s1 ([114.95.230.67]) by smtp.gmail.com with ESMTPSA id g7-v6sm24334012pfo.139.2018.11.14.00.22.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Nov 2018 00:22:18 -0800 (PST) Date: Wed, 14 Nov 2018 16:22:07 +0800 From: hao_zhang To: robh+dt@kernel.org, maxime.ripard@free-electrons.com, wens@csie.org, linus.walleij@linaro.org Cc: linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-sunxi@googlegroups.com, icenowy@aosc.io Subject: [PATCH v0 1/2] ARM: dts: sun8i: Add board dts file for t3-cqa3t-bv3. Message-ID: <20181114082207.GA21068@arx-s1> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The T3/R40/V40 using the same sdk and config file in allwinner sdk, it seem they are the same SOC just with different name, so compatible with R40. The t3-cqa3t-bv3 based on Allwinner T3 SoC, it has various connectors, leds, buttons, and sell on: https://item.taobao.com/item.htm?spm=2013.1.w4023-4203040713.25.62704cce7UCgLS&id=557154455330 It features: - X-Powers AXP221s PMIC connected to i2c0 - 1/2 GB DDR3 DRAM - 8 GB eMMC - 2x USB 2.0 hosts - 1x USB 2.0 OTG - 2 LVDS connectors - 24 bit RGB LCD connector - HDMI output - DVP camera interface (support 500w cmos camera) - GPIO connectors - 5 TTL uarts and 2 RS232 uarts - 1 RS485 connector - support i2c capacitive tp and usb infrared tp - boot control, reset and customer buttons - 3.5mm headphone and 3.5mm mic jack - 100M RJ45 - micro SD card slot - DC power jack - RCT power slot - 1 CVBS TVIN - 1 CVBS TVOUT - 2 customer leds - 1 buzzer - 1 minipcie - I2C output - SPI output - PCM output - wifi and bt connector reserved. Board info can find here: https://github.com/Axl-zhang/Allwinner-V40-T3-R40-manual Signed-off-by: hao_zhang --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/sun8i-t3-cqa3t-bv3.dts | 226 +++++++++++++++++++++++++++++++ 2 files changed, 227 insertions(+) create mode 100644 arch/arm/boot/dts/sun8i-t3-cqa3t-bv3.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 2a1a8c6..7ca266a 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1053,6 +1053,7 @@ dtb-$(CONFIG_MACH_SUN8I) += \ sun8i-r16-nintendo-super-nes-classic.dtb \ sun8i-r16-parrot.dtb \ sun8i-r40-bananapi-m2-ultra.dtb \ + sun8i-t3-cqa3t-bv3.dtb \ sun8i-v3s-licheepi-zero.dtb \ sun8i-v3s-licheepi-zero-dock.dtb \ sun8i-v40-bananapi-m2-berry.dtb diff --git a/arch/arm/boot/dts/sun8i-t3-cqa3t-bv3.dts b/arch/arm/boot/dts/sun8i-t3-cqa3t-bv3.dts new file mode 100644 index 0000000..6931aaa --- /dev/null +++ b/arch/arm/boot/dts/sun8i-t3-cqa3t-bv3.dts @@ -0,0 +1,226 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2017 Chen-Yu Tsai + * Copyright (C) 2017 Icenowy Zheng + * Copyright (C) 2018 Hao Zhang + * + * This file is dual-licensed: you can use it either under the terms + * of the GPL or the X11 license, at your option. Note that this dual + * licensing only applies to this file, and not this project as a + * whole. + * + * a) This file is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * Or, alternatively, + * + * b) Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +/dts-v1/; +#include "sun8i-r40.dtsi" + +#include + +/ { + model = "t3-cqa3t-bv3"; + compatible = "qihua,t3-cqa3t-bv3", "allwinner,sun8i-t3", + "allwinner,sun8i-r40"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + connector { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_con_in: endpoint { + remote-endpoint = <&hdmi_out_con>; + }; + }; + }; + + reg_vcc5v0: vcc5v0 { + compatible = "regulator-fixed"; + regulator-name = "vcc5v0"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&pio 7 23 GPIO_ACTIVE_HIGH>; /* PH23 */ + enable-active-high; + }; +}; + +&ahci { + ahci-supply = <®_dldo4>; + phy-supply = <®_eldo3>; + status = "okay"; +}; + +&de { + status = "okay"; +}; + +&ehci1 { + status = "okay"; +}; + +&ehci2 { + status = "okay"; +}; + +&hdmi { + status = "okay"; +}; + +&hdmi_out { + hdmi_out_con: endpoint { + remote-endpoint = <&hdmi_con_in>; + }; +}; + +&i2c0 { + status = "okay"; + + axp22x: pmic@34 { + compatible = "x-powers,axp221"; + reg = <0x34>; + interrupt-parent = <&nmi_intc>; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + }; +}; + +#include "axp22x.dtsi" + +&mmc0 { + vmmc-supply = <®_dcdc1>; + bus-width = <4>; + cd-gpios = <&pio 7 15 GPIO_ACTIVE_LOW>; /* PH15 */ + status = "okay"; +}; + +&mmc2 { + vmmc-supply = <®_dcdc1>; + vqmmc-supply = <®_dcdc1>; + bus-width = <8>; + non-removable; + status = "okay"; +}; + +&ohci1 { + status = "okay"; +}; + +&ohci2 { + status = "okay"; +}; + +®_aldo2 { + regulator-always-on; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <2500000>; + regulator-name = "vcc-pa"; +}; + +®_aldo3 { + regulator-always-on; + regulator-min-microvolt = <2700000>; + regulator-max-microvolt = <3300000>; + regulator-name = "avcc"; +}; + +®_dcdc1 { + regulator-always-on; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + regulator-name = "vcc-3v0"; +}; + +®_dcdc2 { + regulator-always-on; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1300000>; + regulator-name = "vdd-cpu"; +}; + +®_dcdc3 { + regulator-always-on; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1300000>; + regulator-name = "vdd-sys"; +}; + +®_dcdc5 { + regulator-always-on; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <1500000>; + regulator-name = "vcc-dram"; +}; + +®_dldo1 { + regulator-always-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc-pg"; +}; + +®_dldo3 { + regulator-always-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc-dldo3"; +}; + +®_eldo3 { + regulator-always-on; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-name = "vcc-pe"; +}; + +&tcon_tv0 { + status = "okay"; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_pb_pins>; + status = "okay"; +}; + +&usbphy { + usb1_vbus-supply = <®_vcc5v0>; + usb2_vbus-supply = <®_vcc5v0>; + status = "okay"; +}; From patchwork Wed Nov 14 08:22:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hao Zhang X-Patchwork-Id: 10682101 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B66D1139B for ; Wed, 14 Nov 2018 08:23:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AA5B72B19F for ; Wed, 14 Nov 2018 08:23:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 99E732B1A2; Wed, 14 Nov 2018 08:23:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3C54D2B19F for ; Wed, 14 Nov 2018 08:23:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732295AbeKNSZM (ORCPT ); Wed, 14 Nov 2018 13:25:12 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:43568 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730764AbeKNSZM (ORCPT ); Wed, 14 Nov 2018 13:25:12 -0500 Received: by mail-pg1-f196.google.com with SMTP id n10-v6so7013880pgv.10; Wed, 14 Nov 2018 00:23:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=SwesKq7poU3m2w5kED5bCS/WxtggZRtfZFpLrKKme4E=; b=b0gSJF/oMiTzNdVKeEg10156vbpq9DTGLPF76kRVff50kCqWqWm8kWTtzy/P98WCYC uM05c6HBkv7QqijnfJxuhYf3SwU/cQGWOIEpgPa+zy0JrovTJSJOmdTK7lsM1I9e9Dtv 30AmzhGxxJFLEaoOE7+uXZ+Z64CDIZD/43S9tH4srVqJVGh291JyVN/58dYO8XVyDvQ4 iSIpjL///NmiDKeJoE4gZv4yv9P4/px3v5ck92a6ItcSueV1qMstCiwLG630x2zk5F6P GqqTZDZ029omHnHmvEJyy0139pusCmK3lpMYlXBogkN0FFzyn5UzHaFD5yq3KA3cUQ7d ZE7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=SwesKq7poU3m2w5kED5bCS/WxtggZRtfZFpLrKKme4E=; b=tFT5yF9HfA2kKCRWnoIT1OURr9r++BFmXp0OZGYorwQ2CNi2209SCeujz7/JmTFY7/ ALrINbo0LMSon1Ras8AK9w+Fs5LcC+pDrNNnvz9WpsbEhKxQdrotdfU3tFPvDJkRK8Jr K03obPUePSSyqL9X/dLWnAfRl1nSmN+r2811ZfI6yxL+0ZXPeuu9ESAx3cucw2+Gtl1o WPu9h5r87QUKLHG90pXxwuoQvQnNmEtEVcb4Rnq4iK6izNLMp0xPY7tzoWyZOz++9o7+ mmfLu5BWx527E6Jw6oaKOO308LLoqVevqjwDPx/CHvCW83aZn8ta4SDhP2GnGsESKro4 /dkg== X-Gm-Message-State: AGRZ1gK90HVdyFvNa7BH3+/gTQHY4c8loI6I5z6liTMukguS8OJsAWYz G71dQyELw/sGHGaowZMVKww= X-Google-Smtp-Source: AJdET5dtsDgp2p6jp9XcAcPwnJ5LT4Qzogx33U6xBSljT6/Rdx72kJ4QYcIem+piHHzzIvvpd0HuOg== X-Received: by 2002:a63:2bc9:: with SMTP id r192mr916634pgr.172.1542183780480; Wed, 14 Nov 2018 00:23:00 -0800 (PST) Received: from arx-s1 ([114.95.230.67]) by smtp.gmail.com with ESMTPSA id v12sm22423218pgg.41.2018.11.14.00.22.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Nov 2018 00:22:59 -0800 (PST) Date: Wed, 14 Nov 2018 16:22:53 +0800 From: hao_zhang To: robh+dt@kernel.org, maxime.ripard@free-electrons.com, wens@csie.org, linus.walleij@linaro.org Cc: linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-sunxi@googlegroups.com, icenowy@aosc.io Subject: [PATCH v0 2/2] Documentation: ARM: sunxi: Add Allwinner SoC T3. Message-ID: <20181114082253.GA21081@arx-s1> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add Allwinner SoC T3 document and fix format. Signed-off-by: hao_zhang --- Documentation/devicetree/bindings/arm/sunxi.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/arm/sunxi.txt b/Documentation/devicetree/bindings/arm/sunxi.txt index e4beec3..94b9c12 100644 --- a/Documentation/devicetree/bindings/arm/sunxi.txt +++ b/Documentation/devicetree/bindings/arm/sunxi.txt @@ -14,7 +14,8 @@ using one of the following compatible strings: allwinner,sun8i-a83t allwinner,sun8i-h2-plus allwinner,sun8i-h3 - allwinner-sun8i-r40 + allwinner,sun8i-r40 + allwinner,sun8i-t3 allwinner,sun8i-v3s allwinner,sun9i-a80 allwinner,sun50i-a64