Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7955899pxb; Fri, 19 Feb 2021 03:53:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJzemJtUh7LuFPAcHTlHEsigubhmhZFYlGSpTC2ca8CY4w0/aswfJCG1cqSHDQC6wNQFStX6 X-Received: by 2002:a17:906:3556:: with SMTP id s22mr7495007eja.85.1613735622503; Fri, 19 Feb 2021 03:53:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613735622; cv=none; d=google.com; s=arc-20160816; b=geT5B7SlixOCOJkQ8zgvckeJifMMXv/YeShNzqQD7RCPgwjBMv0KvmFhVGyndl9qe3 k2t1AyJ3hXr+tIf+0SBtEMb+/wIGQqn2ixn/tJCL+I2W4ZoD0QBEtdv9iw6KqzfXUFa8 tKcO+P7Xg7kASNbY+yNjTyf9cZHDWD5P7Mho5cPnEiR9fjXj37b1q8RhEKA39e+NYHMy lIx44ZAPdlgtGvFdbY+LQuhHVWKehCtn7SPzlmCu3UPFAV/zf84/Aoj6byM/pR0/e1OP tzdSAx7tK3ecure45roePjcJv9TuGmce08SP+08i6kgxHOFvvNHYnkeBoMpwcIoyfbbt m2jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=aZern2yKBkAYfT9tSyK4y/aYiC2GCcYVc0aQT81xeHw=; b=wPvlo/J7vTOdf04VHtaDZqwgyCg0jlVhyvuzsaLjdSzikuP5t+RJ1KwpgPSEo/U9EI cTV8YsRifT8HUqKVNNU7ihQXT8VJy4ZQbN+U7FEEs+JcWOWbqr0gtOjfEmqQUfI6/R3y 4vxpCJ1Vcp1bXxBdZKMmrkXyp4KO/4VJGSOdbMjGhicvAH1uQEhFSwtxsu/6aykpgs2a rjGVh0jmcFqHvF+A4EUE1xX5eM8mhOuF/w6nDM/zWkXF/ojYNs8DeHj0NNp3gP0YMPkZ QfkkcRsUVb7ns+iRoggTeMNP2F7g6V8U9DBEzttNyQSlZpCENHofuCbl99JiJmMl8se6 AkVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=UK68A0rI; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=kzkNuBxB; 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=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id um17si6133609ejb.230.2021.02.19.03.53.09; Fri, 19 Feb 2021 03:53:42 -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=@cerno.tech header.s=fm2 header.b=UK68A0rI; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=kzkNuBxB; 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=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230263AbhBSLwR (ORCPT + 99 others); Fri, 19 Feb 2021 06:52:17 -0500 Received: from new2-smtp.messagingengine.com ([66.111.4.224]:33693 "EHLO new2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230144AbhBSLwQ (ORCPT ); Fri, 19 Feb 2021 06:52:16 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id BF72858017B; Fri, 19 Feb 2021 06:51:29 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Fri, 19 Feb 2021 06:51:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=aZern2yKBkAYfT9tSyK4y/aYiC2 GCcYVc0aQT81xeHw=; b=UK68A0rIVZrH6G9Y+0w0XT5pM0OV8NE+quAmg0XT6qA 3Olbig5PU39gxOg/MdZZHlBbIeHLKlrFn3sX6WbhE0OpPVuF24phUoXcyHYag6s0 cDP3WWaEYlddDtmGdJCEV96i+WM9kFHMR8I65cRgRxBlX3cHhvnp7GZdu+MtPmma 6rdMqw9T4sAKwvz2HmFLGV9U/twe0pb4aurl5zhfL9AVRICzbKEkmLxurTXRM9L+ 3LlEEoPVtD3muv9TDV8X2TwI+D6+ApdGM6YD3tFoNb6MejRWlnLD98KPPrKudE8h Bj6IFe8ExUvPgUKjTadcWd7zOb/RED4lz+WOdoqE0Uw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=aZern2 yKBkAYfT9tSyK4y/aYiC2GCcYVc0aQT81xeHw=; b=kzkNuBxBlDx3vpbYeGVS4T BD3XNKpE7df0iyskfEECt2uxZl9C4z8HMJaGJ1fyBQsOh5eQZHUaCfQVCg2EllV4 cBKSbpCnkD9Csl4zGzd2YAFQoygUdoYF5OmY+4pNjUkhqo4TIyEx9Vp192HAcnNt oSZqJJcdy13eZXtQwCKOFwZfUOtSiYIGRuR2P7uLu3oJqofZ2zb/0Mh/Um6mhFM5 xUOyD8vnMtsgvt6azDuxvAGbuJP6xlQbjp6jTh61g/pK6/8yRYhFjiSlwLZ466z7 eCMobWqp6krep6rK19IH/pS42uMadQXFP5npr9opRPIh6drBylbDvHcIziEslPIw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrjeeigdefvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtth gvrhhnpeelkeeghefhuddtleejgfeljeffheffgfeijefhgfeufefhtdevteegheeiheeg udenucfkphepledtrdekledrieekrdejieenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id 6A68E240065; Fri, 19 Feb 2021 06:51:27 -0500 (EST) Date: Fri, 19 Feb 2021 12:51:24 +0100 From: Maxime Ripard To: Pascal Roeleven Cc: Rob Herring , Chen-Yu Tsai , Jernej Skrabec , Arnd Bergmann , Olof Johansson , soc@kernel.org, =?utf-8?B?Q2zDqW1lbnQgUMOpcm9u?= , Corentin Labbe , Martin Cerveny , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: Re: [PATCH RESEND v3 2/2] ARM: dts: sun4i: Add support for Topwise A721 tablet Message-ID: <20210219115124.lneiioiksjflbsuo@gilmour> References: <20210216165954.43135-1-dev@pascalroeleven.nl> <20210216165954.43135-3-dev@pascalroeleven.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="mtxopajle64dkerr" Content-Disposition: inline In-Reply-To: <20210216165954.43135-3-dev@pascalroeleven.nl> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --mtxopajle64dkerr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Tue, Feb 16, 2021 at 05:59:54PM +0100, Pascal Roeleven wrote: > The Topwise A721/LY-F1 tablet is a tablet sold around 2012 under > different brands. The mainboard mentions A721 clearly, so this tablet > is best known under this name. >=20 > Signed-off-by: Pascal Roeleven > --- > arch/arm/boot/dts/Makefile | 3 +- > arch/arm/boot/dts/sun4i-a10-topwise-a721.dts | 242 +++++++++++++++++++ > 2 files changed, 244 insertions(+), 1 deletion(-) > create mode 100644 arch/arm/boot/dts/sun4i-a10-topwise-a721.dts >=20 > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index 3d1ea0b251..ba25b4235a 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -1103,7 +1103,8 @@ dtb-$(CONFIG_MACH_SUN4I) +=3D \ > sun4i-a10-olinuxino-lime.dtb \ > sun4i-a10-pcduino.dtb \ > sun4i-a10-pcduino2.dtb \ > - sun4i-a10-pov-protab2-ips9.dtb > + sun4i-a10-pov-protab2-ips9.dtb \ > + sun4i-a10-topwise-a721.dtb > dtb-$(CONFIG_MACH_SUN5I) +=3D \ > sun5i-a10s-auxtek-t003.dtb \ > sun5i-a10s-auxtek-t004.dtb \ > diff --git a/arch/arm/boot/dts/sun4i-a10-topwise-a721.dts b/arch/arm/boot= /dts/sun4i-a10-topwise-a721.dts > new file mode 100644 > index 0000000000..936171d30b > --- /dev/null > +++ b/arch/arm/boot/dts/sun4i-a10-topwise-a721.dts > @@ -0,0 +1,242 @@ > +// SPDX-License-Identifier: GPL-2.0+ > +/* > + * Copyright 2020 Pascal Roeleven > + */ > + > +/dts-v1/; > +#include "sun4i-a10.dtsi" > +#include "sunxi-common-regulators.dtsi" > + > +#include > +#include > +#include > +#include > + > +/ { > + model =3D "Topwise A721"; > + compatible =3D "topwise,a721", "allwinner,sun4i-a10"; > + > + aliases { > + serial0 =3D &uart0; > + }; > + > + backlight: backlight { > + compatible =3D "pwm-backlight"; > + pwms =3D <&pwm 0 100000 PWM_POLARITY_INVERTED>; > + power-supply =3D <®_vbat>; > + enable-gpios =3D <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */ > + brightness-levels =3D <0 30 40 50 60 70 80 90 100>; > + default-brightness-level =3D <8>; > + }; > + > + chosen { > + stdout-path =3D "serial0:115200n8"; > + }; > + > + panel: panel { > + compatible =3D "starry,kr070pe2t"; > + backlight =3D <&backlight>; > + power-supply =3D <®_lcd_power>; > + > + port { > + panel_input: endpoint { > + remote-endpoint =3D <&tcon0_out_panel>; > + }; > + }; > + }; > + > + reg_lcd_power: reg-lcd-power { > + compatible =3D "regulator-fixed"; > + regulator-name =3D "reg-lcd-power"; > + gpio =3D <&pio 7 8 GPIO_ACTIVE_HIGH>; /* PH8 */ > + enable-active-high; > + }; > + > + reg_vbat: reg-vbat { > + compatible =3D "regulator-fixed"; > + regulator-name =3D "vbat"; > + regulator-min-microvolt =3D <3700000>; > + regulator-max-microvolt =3D <3700000>; > + }; > + > +}; > + > +&codec { > + status =3D "okay"; > +}; > + > +&cpu0 { > + cpu-supply =3D <®_dcdc2>; > +}; > + > +&de { > + status =3D "okay"; > +}; > + > +&ehci0 { > + status =3D "okay"; > +}; > + > +&ehci1 { > + status =3D "okay"; > +}; > + > +&i2c0 { > + status =3D "okay"; > + > + axp209: pmic@34 { > + reg =3D <0x34>; > + interrupts =3D <0>; > + }; > +}; > + > +#include "axp209.dtsi" > + > +&ac_power_supply { > + status =3D "okay"; > +}; > + > +&battery_power_supply { > + status =3D "okay"; > +}; > + > +&i2c1 { > + status =3D "okay"; > + > + mma7660: accelerometer@4c { Chances are you don't need that label? > + compatible =3D "fsl,mma7660"; > + reg =3D <0x4c>; > + }; > +}; > + > +&i2c2 { > + status =3D "okay"; > + > + ft5406ee8: touchscreen@38 { Ditto > + compatible =3D "edt,edt-ft5406"; > + reg =3D <0x38>; > + interrupt-parent =3D <&pio>; > + interrupts =3D <7 21 IRQ_TYPE_EDGE_FALLING>; > + touchscreen-size-x =3D <800>; > + touchscreen-size-y =3D <480>; > + vcc-supply =3D <®_vcc3v3>; > + }; > +}; > + > +&lradc { > + vref-supply =3D <®_ldo2>; > + status =3D "okay"; > + > + button-vol-down { > + label =3D "Volume Down"; > + linux,code =3D ; > + channel =3D <0>; > + voltage =3D <761904>; > + }; > + > + button-vol-up { > + label =3D "Volume Up"; > + linux,code =3D ; > + channel =3D <0>; > + voltage =3D <571428>; > + }; Those two nodes will raise a warning during the DT validation, please make sure it doesn't have any warning. Maxime --mtxopajle64dkerr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYC+mPAAKCRDj7w1vZxhR xZGnAQCn/7v3lF2ukZHZeOJUN81E9GDut370DPQCWW3XFzAnEwD8DuS7ICW8HSoa UWbbNcjkHUaCL1O/dw/JXnUCvEkL5gQ= =oAqU -----END PGP SIGNATURE----- --mtxopajle64dkerr--