Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3219893rdh; Thu, 28 Sep 2023 06:13:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHKbKAiafTDEoVOYulhuPfMnPY3wqtxJL2cYszq9AhDmC4xe4PX6B2aWCKjfY2dF+VH7qft X-Received: by 2002:a17:902:c115:b0:1c3:4210:623f with SMTP id 21-20020a170902c11500b001c34210623fmr968580pli.13.1695906808030; Thu, 28 Sep 2023 06:13:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695906808; cv=none; d=google.com; s=arc-20160816; b=TID+sg1HGHuPrC9Lf/pLdFvxjF1uJZA77DJkOtYOlVk8DdfEv/lWm2/gRexPT49Rj5 jCUNcHAY45OsvcMea6xcNaesT2DY13BTcT3tG3pCb0NFBVrXESU2/1wf7T87INstL2ys TNlXrgGZ3w0FAKHnntKVS9tbt3XF3+wY6JPJoEsBrx8oW2zMEJPpat60WB7BnHae3yim 0P2ASTnThC92fIurguYEi+J5vMoGN0b0kYgn6Sug+rKnKpngzO00F4m3bDsR5/bmuqHJ Iwj7Pe0GP/+1T/a77lu1l2LnrT74BtA2V4NEvF+O/O7EWgA+wfNQpv+Sdh7Yh47wQQNa jkWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:feedback-id:dkim-signature:dkim-signature; bh=z/h4fES0SS47bjZAkAyklErYzVJ4ozg9Y5JIs7GVL5U=; fh=P8ZL/NJslQFup+GqIzlWAqSBlhgu/cwABN5Xkg5gYzU=; b=RU5ZHj/weWkKDegTJhvUI6UWf/QKPYdXjU6ynNMNS153uT4M4R22SsL/rJn3M3SN+J hZohffRT9xsu0nan4K+q4pqtYFuKDJASxGv12bgzKDWw1pFH5zYuNukV98RBAsXdN+bj a7nZTfXYxn5pdPnjpeQpupE6W3nPJnXV4LzBEV6y/YzdcRQ5dFoTkDfBBOT8ePk0nMOk hsFUD06/0c39DPaxNCx4o5UcUo2kf7n2sJI33yS7PDA9WeW4yQBdqPx8hwcXzGKPiEbl FSV+K73O7V5ptuxRQLujJWDGk+Pjkl1DXAnuajbfj/BgKQZSFFBjN/nKWWM80Z6mvipJ 4yAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm3 header.b=olotVyJ+; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="QCo/QAdK"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sholland.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id ay6-20020a1709028b8600b001b9d0ad0d40si16946068plb.128.2023.09.28.06.13.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 06:13:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@sholland.org header.s=fm3 header.b=olotVyJ+; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="QCo/QAdK"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sholland.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 48DD78209687; Wed, 27 Sep 2023 14:20:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229878AbjI0VUB (ORCPT + 99 others); Wed, 27 Sep 2023 17:20:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229691AbjI0VUA (ORCPT ); Wed, 27 Sep 2023 17:20:00 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC3FFD6; Wed, 27 Sep 2023 14:19:57 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 3FE515C2905; Wed, 27 Sep 2023 17:19:57 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 27 Sep 2023 17:19:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1695849597; x=1695935997; bh=z/h4fES0SS47bjZAkAyklErYzVJ4ozg9Y5J Is7GVL5U=; b=olotVyJ+N7j8cdoju2RGI6pXjslf5vkG3tkjrRwDWQdEVWxgA9u DIViJNOO1nHBt8EWwnyJdl3EloQ0cyReiISrV8SkwvMG433+0U4sc1Aap7JO5zG3 LLO8GjHnqRnP2fzvO9gV6gxRv/SF41CjvTjzGJeztI6bLTW28Un2aR3XPsr85Dw5 QhDztDl31p8tyr2m6DLWO0RsCXukliTboKWG4HAMxNvCS2BKDMoYWZTbFMqeZt8g KuJfdbRlGC9C21+v1remCgiiaWQIf4ZcHJo9CoOXhG4+THzMNWtbc1SUgPINKyM5 GVtnN2bQZizNwpPuMe59/lhc73z27jTguCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1695849597; x=1695935997; bh=z/h4fES0SS47bjZAkAyklErYzVJ4ozg9Y5J Is7GVL5U=; b=QCo/QAdKZyiuQa2zuGTta3TV7bCKJugAv9+Qgaf9gRsmtdr/NBO 79sZJ6rs23M+0+LKjGA/oS8ERy+Ef0okO7LhwgdUoXWe4+IdhErcuq7sqztITNYZ RqX2MpK99SK5+EuyN+9mEuBEsYWIThUiW3OoeQ0pkDyjcYRA5MDBnEIGVlj8+ZCA 6m+o2CidOKhgSQHGf10kKUmyYpQ6DcMfg852TY4psRfRgNIOpdjMkR9YdzxTPqcS FU4+Gq+jAoOBjMIeinbjTVXeotJEz+iZh13PlOETBZzKuLI7Qilm+7VsnUtCPgGZ Ll7mwy/QulX5NknRf7DexNBWvUFMg4r9gwQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvjedrtdeggdeljecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomhepufgrmhhu vghlucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecugg ftrfgrthhtvghrnheptefgveeigfetjefgudduvdejgfelkefgtdehiefgtedugeejueeu teelveetteeknecuffhomhgrihhnpeguthhsihdrhihouhenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsrghmuhgvlhesshhhohhllhgrnhgu rdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 27 Sep 2023 17:19:56 -0400 (EDT) Message-ID: <9730f21c-fd8e-9583-98c7-e5d923269f79@sholland.org> Date: Wed, 27 Sep 2023 16:19:55 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux ppc64le; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [PATCH v2 1/2] ARM: dts: sun7i: Add Iteaduino Plus A20 Content-Language: en-US To: Julian Ribbeck Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, Chen-Yu Tsai , Jernej Skrabec , linux-sunxi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, krzysztof.kozlowski@linaro.org References: <20230617205624.1178427-1-julian.ribbeck@gmx.de> From: Samuel Holland In-Reply-To: <20230617205624.1178427-1-julian.ribbeck@gmx.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 27 Sep 2023 14:20:14 -0700 (PDT) Hi Julian, Next time please CC everyone reported by scripts/get_maintainer.pl on this file, so we are aware of your patch. On 6/17/23 15:55, Julian Ribbeck wrote: > Iteaduino Plus A20 is very similar to Iteaduino Plus A10. In fact it > shares the same breakout board and the Itead Core A20 on top of it, is > only adapted to support the dual-core A20. > > This commits enables the following hardware: > > * HDMI Video output > * USB > * SATA (untested due to lack of hardware I could attach) > * Ethernet > * MMC storage > * UART > * USB OTG (untested, because I don't own an USB OTG cable/device) > > Signed-off-by: Julian Ribbeck > --- > arch/arm/boot/dts/Makefile | 1 + > .../dts/sun7i-a20-itead-iteaduino-plus.dts | 114 ++++++++++++++++++ > 2 files changed, 115 insertions(+) > create mode 100644 arch/arm/boot/dts/sun7i-a20-itead-iteaduino-plus.dts > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index 59829fc90315..3b6e284e4472 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -1334,6 +1334,7 @@ dtb-$(CONFIG_MACH_SUN7I) += \ > sun7i-a20-haoyu-marsboard.dtb \ > sun7i-a20-hummingbird.dtb \ > sun7i-a20-itead-ibox.dtb \ > + sun7i-a20-itead-iteaduino-plus.dtb \ > sun7i-a20-i12-tvbox.dtb \ > sun7i-a20-icnova-swac.dtb \ > sun7i-a20-lamobo-r1.dtb \ > diff --git a/arch/arm/boot/dts/sun7i-a20-itead-iteaduino-plus.dts b/arch/arm/boot/dts/sun7i-a20-itead-iteaduino-plus.dts > new file mode 100644 ARM devicetrees were moved into subdirectories, so this patch will need to be rebased. > index 000000000000..204c5f2c81c7 > --- /dev/null > +++ b/arch/arm/boot/dts/sun7i-a20-itead-iteaduino-plus.dts > @@ -0,0 +1,114 @@ > +// SPDX-License-Identifier: (GPL-2.0+ or MIT) > + > +/dts-v1/; > +#include "sun7i-a20.dtsi" > +#include "sunxi-itead-core-common.dtsi" > +#include "axp209.dtsi" axp209.dtsi is already included by sunxi-itead-core-common.dtsi. You don't need to include it again here. > + > +/ { > + model = "Itead Iteaduino Plus A20"; > + compatible = "itead,iteaduino-plus-a20", "allwinner,sun7i-a20"; > + > + hdmi-connector { > + compatible = "hdmi-connector"; > + type = "a"; > + > + port { > + hdmi_con_in: endpoint { > + remote-endpoint = <&hdmi_out_con>; > + }; > + }; > + }; > +}; > + > +&ac_power_supply { > + status = "okay"; > +}; > + > +&ahci { > + target-supply = <®_ahci_5v>; > + status = "okay"; > +}; > + > +&axp209 { > + interrupt-parent = <&nmi_intc>; > + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; > +}; > + > +&battery_power_supply { > + status = "okay"; > +}; > + > +&codec { > + stauts = "okay"; > +}; > + > +&de { > + status = "okay"; > +}; > + > +&emac { > + pinctrl-names = "default"; > + pinctrl-0 = <&emac_pa_pins>; > + phy-handle = <&phy1>; > + status = "okay"; > +}; > + > +&emac_sram { > + status = "okay"; > +}; > + > +&hdmi { > + status = "okay"; > +}; > + > +&hdmi_out { > + hdmi_out_con: endpoint { > + remote-endpoint = <&hdmi_con_in>; > + }; > +}; > + > +&mdio { > + status = "okay"; > + > + phy1: ethernet-phy@1 { > + reg = <1>; > + }; > +}; > + > +&mmc0 { > + vmmc-supply = <®_vcc3v3>; > + bus-width = <4>; > + cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */ > + status = "okay"; > +}; > + > + > +&otg_sram { > + status = "okay"; > +}; > + > +®_ahci_5v { > + status = "okay"; > +}; > + > + Extra blank line here and above otg_sram. > +®_usb0_vbus { > + status = "okay"; > +}; > + > +&usb_otg { > + status = "okay"; > + dr_mode = "otg"; The mini-USB port is always powered, and the ID pin isn't hooked up in a usable way, so this should be "host". > +}; > + > +&usb_power_supply { > + status = "okay"; > +}; The board's power supply is only connected to the ACIN pins of the AXP209, not the USBVBUS pin (which is pulled to 3.3V for some reason). So usb_power_supply should not be enabled or used below. > + > +&usbphy { > + usb0_id_det-gpios = <&pio 7 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH4 */ The ID pin is connected to N_VBUSEN on the PMIC, not this GPIO. Per the schematic, this GPIO is not connected to anything. > + usb0_vbus_det-gpios = <&pio 7 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH5 */ Per the schematic, this GPIO is not connected to anything. > + usb0_vbus_power-supply = <&usb_power_supply>; As explained above, please remove this property. Regards, Samuel > + usb0_vbus-supply = <®_usb0_vbus>; > +}; > -- > 2.41.0 >