Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp480995imk; Sun, 3 Jul 2022 01:15:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tnP6jY5a4RuoCPBDLP+iZGURrFWyamr3pAZITyMrl489cqTg6YEXBwHjS+ZIPplF6EyDwF X-Received: by 2002:a17:907:271b:b0:72a:72bb:6f47 with SMTP id w27-20020a170907271b00b0072a72bb6f47mr15315819ejk.634.1656836158205; Sun, 03 Jul 2022 01:15:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656836158; cv=none; d=google.com; s=arc-20160816; b=et3EmLx6WJA9orfHdguFUIL9QU/DqJXPeO8YwVjTGwtgWa7fLFfcxx+DrhGoOBv1mP FTjCpiwm7mAAJnjkaze7uDO3P9vhZzIHbNIapJ3Adjdud7Eot/Mz4KayNFwNLwfqduJo apxwqyujIvJmsUnYWxzrHreN0xeHkqTFbbe+fy2DPQ/PjJRBd50k9YwnqjswIxU9tv5d 4BlST/BQzf5RiQK6WWX7iV7WRP6xbAYD2znVMI8yWumrzb3YFhqLw3acNl6Td0iPx3CO eBASTnSWTyNwYFvR5HhRW7HFFiu8oMWFv4ZLmh20780e8hNdl3pXwzm3J/MNWTrQHQJD 6IPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:feedback-id:dkim-signature:dkim-signature; bh=z5AiA0gEmtQjkziaFzwZfU31CiI1kYtFYGZXwcVQQqA=; b=dlUghMcXCFQCYWHjLYiuhMHDfFkQT7XIa6m5PeT9V+MolTa+/eCJj5uBBxtclzHgc8 vU8QY7kTxvtnrMJpVAVTQ8BICaGM1wr88Xun1XLjALSzCuufyg+yZhYRVacCoIHjylVW gCAjKv73FoqW7FTpjwOUSF/kIz7FDasCOf6XpKEvV9hM6eqW6gYax1+c0SUORuH1QA+J RlvoWXi3navSEVezbKJr+GVAc5XQGFvpFLCtSKKQIONxW6fRjbY0sub/JIDj0psFVp41 G3iIV1c2VX33ciCAvxDdaj0vm7KFxIJ9/y8xb6wfeZZ6aUI1Hsd4FyJW3SBb1HcBN6L7 /NAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm3 header.b=edaz+Jgn; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=u5AO7US0; 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 qw14-20020a1709066a0e00b00726c07b617fsi4710285ejc.512.2022.07.03.01.15.33; Sun, 03 Jul 2022 01:15:58 -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=@sholland.org header.s=fm3 header.b=edaz+Jgn; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=u5AO7US0; 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 S231295AbiGCHmb (ORCPT + 99 others); Sun, 3 Jul 2022 03:42:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230181AbiGCHm3 (ORCPT ); Sun, 3 Jul 2022 03:42:29 -0400 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D9B964C6; Sun, 3 Jul 2022 00:42:28 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id B66735C0078; Sun, 3 Jul 2022 03:42:27 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sun, 03 Jul 2022 03:42:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding: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=1656834147; x= 1656920547; bh=z5AiA0gEmtQjkziaFzwZfU31CiI1kYtFYGZXwcVQQqA=; b=e daz+JgnvO28GHJKwSmA9EOXRwrf3SQGNs0Vfi74Sj0mftTA6hGtZus8BYSFJB19O +GWFU3Az9xZtDvqAJYDOV8u99B7DjBk/Wo1Dh/hoNnqZz0dNoRQFZJWK8bOkursH wK0ZGTkig7NLa/5speBzQ64aAi5fpSBSf8yhffiUvAkY7v1ZlcBKM/FXhOx3aaMi CZ1Nq7uwQLZoLnSEqMFl/bpXTX/UPYPSUpMIeq5/+jeS2GgftVmzYnd+WbuJFUhJ Ro0iNvE9MMceZsvAH29b1Bv68gAQhi1+wp6EG3csWFnYshpf2ShpgqALUFRZz46s ioIP5qv9wUpP65I/BQVhw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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=1656834147; x= 1656920547; bh=z5AiA0gEmtQjkziaFzwZfU31CiI1kYtFYGZXwcVQQqA=; b=u 5AO7US0qCxOTKw1pmIPVVuXGQxulVnVIN3/axtLDLSAjB601B+27SDaE6Q5UJm7A w9uq+xrGGkzBgHczNm0YkMg1cNTzRDK1DJVx0C3e/xWWp0R0958L3l1nCfhQSQwi JiiIqRYhvOFlbiQXbV97DuY/tBfN0hVsr1+GzzavG5hORbsVv8FCCbYIKhqba5c3 FQHPO2d5SxzkcWUOF9TMMhr2Km3hcbdv02v9OWWgzsQtnw2lDjAwerHe6gZgbym8 jkPViCwj56iRrPNLcH106siAJiu00UgdYU76X38gX9VnxjPPTMkmt8UdVgAgXQMo YGZ83GGGjqcfl/Ro9eDhw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudehiedguddvhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfevfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomhepufgr mhhuvghlucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqne cuggftrfgrthhtvghrnhepffdtveekvdegkeeuueetgfetffeileevudekuefhheelvdfh iedtheduhfduhefhnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 3 Jul 2022 03:42:26 -0400 (EDT) Subject: Re: [PATCH v2 2/2] ARM: dts: sun8i: Add R16 Vista E board from RenewWorldOutreach To: Suniel Mahesh , Chen-Yu Tsai , Christopher Vollo , Michael Trimarchi , Jagan Teki Cc: Mark Brown , Maxime Ripard , dri-devel@lists.freedesktop.org, Mark Rutland , Rob Herring , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Thomas Petazzoni , linux-amarula@amarulasolutions.com References: <20220615093900.344726-1-sunil@amarulasolutions.com> <20220615093900.344726-3-sunil@amarulasolutions.com> From: Samuel Holland Message-ID: <0bb1761f-4fa4-c6e2-852f-f110d026eac0@sholland.org> Date: Sun, 3 Jul 2022 02:42:25 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20220615093900.344726-3-sunil@amarulasolutions.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,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 On 6/15/22 4:39 AM, Suniel Mahesh wrote: > The R16-Vista-E board from RenewWorldOutreach based on allwinner > R16(A33). > > General features: > - 1GB RAM > - microSD slot > - Realtek Wifi > - 1 x USB 2.0 > - HDMI IN > - HDMI OUT > - Audio out > - MIPI DSI > - TI DLPC3433 > > It has also connectors to connect an external mini keypad. > > Signed-off-by: Christopher Vollo > Signed-off-by: Jagan Teki > Signed-off-by: Suniel Mahesh > > --- > Changes for v2: > - Add missing compatible string > - insert missing signatures of contributors > --- > arch/arm/boot/dts/Makefile | 1 + > arch/arm/boot/dts/sun8i-r16-renew-vista-e.dts | 361 ++++++++++++++++++ > 2 files changed, 362 insertions(+) > create mode 100644 arch/arm/boot/dts/sun8i-r16-renew-vista-e.dts > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index 184899808ee7..b5966c0742e1 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -1353,6 +1353,7 @@ dtb-$(CONFIG_MACH_SUN8I) += \ > sun8i-r16-nintendo-nes-classic.dtb \ > sun8i-r16-nintendo-super-nes-classic.dtb \ > sun8i-r16-parrot.dtb \ > + sun8i-r16-renew-vista-e.dtb \ > sun8i-r40-bananapi-m2-ultra.dtb \ > sun8i-r40-oka40i-c.dtb \ > sun8i-s3-elimo-initium.dtb \ > diff --git a/arch/arm/boot/dts/sun8i-r16-renew-vista-e.dts b/arch/arm/boot/dts/sun8i-r16-renew-vista-e.dts > new file mode 100644 > index 000000000000..45f620203c33 > --- /dev/null > +++ b/arch/arm/boot/dts/sun8i-r16-renew-vista-e.dts > @@ -0,0 +1,361 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > +/* > + * Copyright (C) 2022 RenewWorldOutreach > + * Copyright (C) 2022 Amarula Solutions(India) > + */ > + > +/dts-v1/; > +#include "sun8i-a33.dtsi" > + > +#include > +#include > +#include > + > +/ { > + model = "RenewWorldOutreach R16-Vista-E"; > + compatible = "renewworldoutreach,r16-vista-e", "allwinner,sun8i-r16", "allwinner,sun8i-a33"; > + > + aliases { > + serial0 = &uart0; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + gpio-keys-polled { > + compatible = "gpio-keys-polled"; > + poll-interval = <100>; > + > + ok { > + label = "ok"; > + linux,code = ; > + gpios = <&pio 4 0 GPIO_ACTIVE_LOW>; > + }; > + > + left { > + label = "left"; > + linux,code = ; > + gpios = <&pio 4 1 GPIO_ACTIVE_LOW>; > + }; > + > + right { > + label = "right"; > + linux,code = ; > + gpios = <&pio 4 2 GPIO_ACTIVE_LOW>; > + }; > + > + up { > + label = "up"; > + linux,code = ; > + gpios = <&pio 4 3 GPIO_ACTIVE_LOW>; > + }; > + > + down { > + label = "down"; > + linux,code = ; > + gpios = <&pio 4 4 GPIO_ACTIVE_LOW>; > + }; > + > + back { > + label = "back"; > + linux,code = ; > + gpios = <&pio 4 5 GPIO_ACTIVE_LOW>; > + }; > + > + power { > + label = "power"; > + linux,code = ; > + gpios = <&pio 4 6 GPIO_ACTIVE_LOW>; > + }; > + > + vol-down { > + label = "vol-down"; > + linux,code = ; > + gpios = <&pio 7 3 GPIO_ACTIVE_LOW>; > + }; > + > + vol-up { > + label = "vol-up"; > + linux,code = ; > + gpios = <&pio 7 9 GPIO_ACTIVE_LOW>; > + }; > + }; > + > + leds { > + compatible = "gpio-leds"; > + > + battery-led0 { > + label = "renew-e:battery-led0"; > + gpios = <&r_pio 0 2 GPIO_ACTIVE_HIGH>; > + }; > + > + battery-led1 { > + label = "renew-e:battery-led1"; > + gpios = <&r_pio 0 3 GPIO_ACTIVE_HIGH>; > + }; > + > + battery-led2 { > + label = "renew-e:battery-led2"; > + gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; > + }; > + > + battery-led3 { > + label = "renew-e:battery-led3"; > + gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; > + }; > + > + pad-intz { > + label = "renew-e:pad-intz"; > + gpios = <&pio 4 16 GPIO_ACTIVE_HIGH>; > + default-state = "on"; > + }; Is this really an LED, or just a generic output? > + > + battery-led4 { > + label = "renew-e:battery-led4"; > + gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; > + }; > + > + volume-led0 { > + label = "renew-e:volume-led0"; > + gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>; > + }; Indent with tabs, please. > + > + volume-led1 { > + label = "renew-e:volume-led1"; > + gpios = <&pio 6 13 GPIO_ACTIVE_HIGH>; > + }; > + > + volume-led2 { > + label = "renew-e:volume-led2"; > + gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; > + }; > + > + volume-led3 { > + label = "renew-e:volume-led3"; > + gpios = <&pio 6 11 GPIO_ACTIVE_HIGH>; > + }; > + > + volume-led4 { > + label = "renew-e:volume-led4"; > + gpios = <&pio 6 10 GPIO_ACTIVE_HIGH>; > + }; > + > + fans-on { > + label = "renew-e:fans-on"; > + gpios = <&pio 4 14 GPIO_ACTIVE_HIGH>; /* FAN_ON/OFF: PE14 */ > + default-state = "on"; > + }; Does this drive an LED or control a fan? If it controls a fan, it should use the gpio-fan binding, and not pretend to be an LED. It also does not validate against the gpio-leds binding: sun8i-r16-renew-vista-e.dtb: leds: 'fans-on', 'pad-intz' do not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+' > + }; > + > + reg_vcc5v0: vcc5v0 { > + compatible = "regulator-fixed"; > + regulator-name = "vcc5v0"; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + }; > +}; > + > +&codec { > + status = "okay"; > +}; > + > +&cpu0 { > + cpu-supply = <®_dcdc3>; > +}; > + > +&cpu0_opp_table { > + opp-1104000000 { > + opp-hz = /bits/ 64 <1104000000>; > + opp-microvolt = <1320000>; > + clock-latency-ns = <244144>; /* 8 32k periods */ > + }; > + > + opp-1200000000 { > + opp-hz = /bits/ 64 <1200000000>; > + opp-microvolt = <1320000>; > + clock-latency-ns = <244144>; /* 8 32k periods */ > + }; > +}; > + > +&dai { > + status = "okay"; > +}; > + > +&de { > + status = "okay"; > +}; > + > +&dphy { > + status = "okay"; > +}; > + > +&ehci0 { > + status = "okay"; > +}; > + > +&mmc0 { > + vmmc-supply = <®_dcdc1>; > + bus-width = <4>; > + non-removable; > + status = "okay"; > +}; > + > +&mmc1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&mmc1_pg_pins>; > + vmmc-supply = <®_dcdc1>; > + bus-width = <4>; > + broken-cd; > + status = "okay"; > +}; > + > +&ohci0 { > + status = "okay"; > +}; > + > +&r_rsb { > + status = "okay"; > + > + axp22x: pmic@3a3 { > + compatible = "x-powers,axp223"; > + reg = <0x3a3>; > + interrupt-parent = <&r_intc>; > + interrupts = ; > + eldoin-supply = <®_dcdc1>; > + x-powers,drive-vbus-en; > + }; > +}; > + > +#include "axp223.dtsi" > + > +&ac_power_supply { > + status = "okay"; > +}; > + > +®_aldo1 { > + regulator-always-on; > + regulator-min-microvolt = <3000000>; > + regulator-max-microvolt = <3000000>; > + regulator-name = "vcc-io"; > +}; > + > +®_aldo2 { > + regulator-always-on; > + regulator-min-microvolt = <2500000>; > + regulator-max-microvolt = <2500000>; > + regulator-name = "vdd-dll"; > +}; > + > +®_aldo3 { > + regulator-always-on; > + regulator-min-microvolt = <3000000>; > + regulator-max-microvolt = <3000000>; > + regulator-name = "avcc"; > +}; > + > +®_dc1sw { > + regulator-name = "vcc-lcd"; > +}; > + > +®_dc5ldo { > + regulator-always-on; > + regulator-min-microvolt = <900000>; > + regulator-max-microvolt = <1400000>; > + regulator-name = "vdd-cpus"; > +}; > + > +®_dcdc1 { > + regulator-always-on; > + regulator-min-microvolt = <3000000>; > + regulator-max-microvolt = <3000000>; > + regulator-name = "vcc-3v0"; > +}; > + > +®_dcdc2 { > + regulator-always-on; > + regulator-min-microvolt = <900000>; > + regulator-max-microvolt = <1400000>; > + regulator-name = "vdd-sys"; > +}; > + > +®_dcdc3 { > + regulator-always-on; > + regulator-min-microvolt = <900000>; > + regulator-max-microvolt = <1400000>; > + regulator-name = "vdd-cpu"; > +}; > + > +®_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-3v3-main1"; > +}; > + > +®_dldo2 { > + regulator-always-on; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc-3v3-main2"; > +}; > + > +®_dldo3 { > + regulator-always-on; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc-3v3-main3"; > +}; > + > +®_dldo4 { > + regulator-always-on; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc-3v3-main4"; > +}; > + > +®_eldo1 { > + regulator-always-on; > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1200000>; > + regulator-name = "vcc-1v2-hdmi"; > +}; > + > +®_drivevbus { > + regulator-name = "usb0-vbus"; > + status = "okay"; > +}; > + > +®_rtc_ldo { > + regulator-name = "vcc-rtc"; > +}; > + > +&sound { > + status = "okay"; > + simple-audio-card,routing = > + "Left DAC", "AIF1 Slot 0 Left", > + "Right DAC", "AIF1 Slot 0 Right"; Please use "DACL" and "DACR" here, instead of the AIF1 Slot 0 widgets. The AIF1 Slot 0 widgets do not accurately describe the audio routing and are only kept for backward compatibility. > +}; > + > +&uart0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&uart0_pb_pins>; > + status = "okay"; > +}; > + > +&usb_otg { > + dr_mode = "host"; > + status = "okay"; > +}; > + > +&usbphy { > + usb0_vbus-supply = <®_vcc5v0>; You enable drivevbus and label it as "usb0-vbus". But this suggests the VBUS is always on. Which is correct? > + status = "okay"; > +}; >