From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E7686C4345F for ; Mon, 15 Apr 2024 21:00:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=mHzXugTf5MyaLwRT+9qDQGgfO7PjtAaWiEjzFS9t/WA=; b=gp7/H0XZFfDLwn Qqj88LqM5wShI79iOuFhl/WPuTrpdvx7sZPl7kzykSq+UkUn41/cET23HXSkOvrPDi+uxYD4ew4oc RqIAkObcR/LNZU3EfoqrmgzqMZPdFL97xrAsh3bSV+1pM/CvnHtXPshBpnesPqctGWGAezc5duWGi MaDQOQpchoG573+Dg7tHQiry0zrb63edhifsUNYMv2YLqw14KUy9WlC6Kc4Bbu1l1xO4D+wHmK/pJ 5QLkKrlDX69SliK3gGwWZpPyl088Ha/kJu6vLC6AxZJBEAsBlYYk738X5T3nm7veZlcaTciAc33lu 5Q9n7JmXSKpT16nr6rYw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rwTQo-00000009tuF-0coN; Mon, 15 Apr 2024 21:00:02 +0000 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rwTQl-00000009ttT-29qj for linux-arm-kernel@lists.infradead.org; Mon, 15 Apr 2024 21:00:00 +0000 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-345b857d7adso2721309f8f.1 for ; Mon, 15 Apr 2024 13:59:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713214796; x=1713819596; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zIujiiQ5KBMmQZ0xSWh9oPvw+odeP026KffyQO/ahy4=; b=Hn3tHaDkFDockot+Cgp6dcogdDrcwcf4lqkbfl2FAORAdEoIywQtA/E2XPROhPYVhL NgjEXP2FSGo34afbntwoD2MaIfbbNrrvxh7LZAXhARTy74N3fLk51tfOy4Aql/FPrxop xghJVRtN4uz08MP5qtNaWWHlzxJkJGZxq5eMVfc2Sl9DYRx7yXrSDwllz2MXw0vCq9YX H77qLeMLJNhVJwS6JLqgARKr6JGOXkFQYpdAS9WKgDLbKFgtdE5psRN5wkSlu7bUmBjY Fy+wKsG64xSa/VqA6xhrFdd6KnJL3/Sy9LLVCQDJhaW9CQg8CHqDrQW5DHKldyGjV4j8 uKZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713214796; x=1713819596; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zIujiiQ5KBMmQZ0xSWh9oPvw+odeP026KffyQO/ahy4=; b=wCx+gpe1RbZpz3CZKu42aCiGs1cLxFtP8dhIDReHNRQ1aOVC1z1OH2qEgglEYKFB1j VRG1HnSx3Pg2MUegm94gRACiTm1h+KqL21Hxbg6lVHcrgt8Wb3PE+JHst4JrsAe5Od3q 7BmdI+nsDiXfAtyJLXYcBLtEJxIOJtUDVROF0lgrCForV7h5dRBYXo05rSCWPL4Bc30E FjvldO+9oiaYAxb2KYYSF9EkOHvlvrJuVVZfz9vqVAyJiy1brrpuc7kuQuoIwtUu7Tck 0tQ/Vp3DX9Raj4hVFDqQQIMbGHzB00pi35u3FEP170Mixt+Qy7HOtldJSJiHY1W0K4oO R2NQ== X-Forwarded-Encrypted: i=1; AJvYcCXDhjlWDODPQ7d1KqaJmxoK3mEqTBTn2OwOOKQp+evRBj9TvOymnh4Jm6vcPCuOY2apRfR84XdHo7lag2O3+KNTcpqaaN0o0CaUy+z4crP0i7r7IBA= X-Gm-Message-State: AOJu0YygCGU7Cjjwpd/g3rS0w+ixVQeNP/KC9FOdGKPwcRF9RD9HVyOx 2eDsu/trVdwFBQsVcIlpAyPMJ1tXpKR9PAw8bcC0AyPMzKjne9Up X-Google-Smtp-Source: AGHT+IHLt75Hbddgm1n0rfPGmNATVpDEyp3DLt4Oh+UEnPfrQwWDQqwHqZKyKiUIUtDQczSdsXcfIA== X-Received: by 2002:a05:6000:1150:b0:343:a117:7d2 with SMTP id d16-20020a056000115000b00343a11707d2mr6499005wrx.71.1713214796199; Mon, 15 Apr 2024 13:59:56 -0700 (PDT) Received: from jernej-laptop.localnet (86-58-6-171.dynamic.telemach.net. [86.58.6.171]) by smtp.gmail.com with ESMTPSA id d15-20020adffbcf000000b0034720354152sm9450736wrs.117.2024.04.15.13.59.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 13:59:55 -0700 (PDT) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Samuel Holland , Maxime Ripard , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Denis Burkov Cc: Denis Burkov Subject: Re: [RESEND v3 2/2] ARM: dts: sun5i: Add PocketBook 614 Plus support Date: Mon, 15 Apr 2024 22:59:54 +0200 Message-ID: <2178156.irdbgypaU6@jernej-laptop> In-Reply-To: <20240415173416.13838-2-hitechshell@mail.ru> References: <20240415173416.13838-1-hitechshell@mail.ru> <20240415173416.13838-2-hitechshell@mail.ru> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240415_135959_663469_309BB24F X-CRM114-Status: GOOD ( 17.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Dne ponedeljek, 15. april 2024 ob 19:34:16 GMT +2 je Denis Burkov napisal(a): > What works: > > - Serial console > - mmc0, mmc2 (both microSD card slots on the board) > - All buttons (gpio and lradc based) > - Power LED > - PMIC > - RTC > - USB OTG/gadgets mode > > Signed-off-by: Denis Burkov You haven't provided changelog for v3. Checkpatch doesn't complain, so: Reviewed-by: Jernej Skrabec Best regards, Jernej > --- > arch/arm/boot/dts/allwinner/Makefile | 1 + > .../sun5i-a13-pocketbook-614-plus.dts | 218 ++++++++++++++++++ > 2 files changed, 219 insertions(+) > create mode 100644 arch/arm/boot/dts/allwinner/sun5i-a13-pocketbook-614-plus.dts > > diff --git a/arch/arm/boot/dts/allwinner/Makefile b/arch/arm/boot/dts/allwinner/Makefile > index 5fbb44ddacd0..6209243ad975 100644 > --- a/arch/arm/boot/dts/allwinner/Makefile > +++ b/arch/arm/boot/dts/allwinner/Makefile > @@ -61,6 +61,7 @@ dtb-$(CONFIG_MACH_SUN5I) += \ > sun5i-a13-olinuxino.dtb \ > sun5i-a13-olinuxino-micro.dtb \ > sun5i-a13-pocketbook-touch-lux-3.dtb \ > + sun5i-a13-pocketbook-614-plus.dtb \ > sun5i-a13-q8-tablet.dtb \ > sun5i-a13-utoo-p66.dtb \ > sun5i-gr8-chip-pro.dtb \ > diff --git a/arch/arm/boot/dts/allwinner/sun5i-a13-pocketbook-614-plus.dts b/arch/arm/boot/dts/allwinner/sun5i-a13-pocketbook-614-plus.dts > new file mode 100644 > index 000000000000..ab8d138dc11d > --- /dev/null > +++ b/arch/arm/boot/dts/allwinner/sun5i-a13-pocketbook-614-plus.dts > @@ -0,0 +1,218 @@ > +// SPDX-License-Identifier: GPL-2.0+ > +/* > + * Copyright 2024 Denis Burkov > + */ > + > +/dts-v1/; > +#include "sun5i-a13.dtsi" > +#include "sunxi-common-regulators.dtsi" > + > +#include > +#include > +#include > +#include > + > +/ { > + model = "PocketBook 614 Plus"; > + compatible = "pocketbook,614-plus", "allwinner,sun5i-a13"; > + > + aliases { > + serial0 = &uart1; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + leds { > + compatible = "gpio-leds"; > + > + led-0 { > + color = ; > + function = LED_FUNCTION_POWER; > + linux,default-trigger = "default-on"; > + gpios = <&pio 4 8 GPIO_ACTIVE_LOW>; /* PE8 */ > + }; > + }; > + > + gpio-keys { > + compatible = "gpio-keys"; > + > + key-0 { > + label = "Right"; > + linux,code = ; > + gpios = <&pio 6 9 GPIO_ACTIVE_LOW>; /* PG9 */ > + }; > + > + key-1 { > + label = "Left"; > + linux,code = ; > + gpios = <&pio 6 10 GPIO_ACTIVE_LOW>; /* PG10 */ > + }; > + }; > + > + reg_3v3_mmc0: regulator-mmc0 { > + compatible = "regulator-fixed"; > + regulator-name = "vdd-mmc0"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + gpio = <&pio 4 4 GPIO_ACTIVE_LOW>; /* PE4 */ > + vin-supply = <®_vcc3v3>; > + }; > +}; > + > +&cpu0 { > + cpu-supply = <®_dcdc2>; > +}; > + > +&ehci0 { > + status = "okay"; > +}; > + > +&i2c0 { > + status = "okay"; > + > + axp209: pmic@34 { > + compatible = "x-powers,axp209"; > + reg = <0x34>; > + interrupts = <0>; > + }; > +}; > + > +#include "axp209.dtsi" > + > +&i2c1 { > + status = "okay"; > + > + pcf8563: rtc@51 { > + compatible = "nxp,pcf8563"; > + reg = <0x51>; > + #clock-cells = <0>; > + }; > +}; > + > +&lradc { > + vref-supply = <®_ldo2>; > + status = "okay"; > + > + button-300 { > + label = "Down"; > + linux,code = ; > + channel = <0>; > + voltage = <300000>; > + }; > + > + button-700 { > + label = "Up"; > + linux,code = ; > + channel = <0>; > + voltage = <700000>; > + }; > + > + button-1000 { > + label = "Left"; > + linux,code = ; > + channel = <0>; > + voltage = <1000000>; > + }; > + > + button-1200 { > + label = "Menu"; > + linux,code = ; > + channel = <0>; > + voltage = <1200000>; > + }; > + > + button-1500 { > + label = "Right"; > + linux,code = ; > + channel = <0>; > + voltage = <1500000>; > + }; > +}; > + > +&mmc0 { > + vmmc-supply = <®_3v3_mmc0>; > + bus-width = <4>; > + cd-gpios = <&pio 6 0 GPIO_ACTIVE_LOW>; /* PG0 */ > + status = "okay"; > +}; > + > +&mmc2 { > + pinctrl-names = "default"; > + pinctrl-0 = <&mmc2_4bit_pc_pins>; > + vmmc-supply = <®_vcc3v3>; > + bus-width = <4>; > + non-removable; > + status = "okay"; > +}; > + > +&ohci0 { > + status = "okay"; > +}; > + > +&otg_sram { > + status = "okay"; > +}; > + > +®_dcdc2 { > + regulator-always-on; > + regulator-min-microvolt = <1000000>; > + regulator-max-microvolt = <1500000>; > + 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"; > +}; > + > +®_usb0_vbus { > + status = "okay"; > + gpio = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */ > +}; > + > +®_usb1_vbus { > + gpio = <&pio 6 11 GPIO_ACTIVE_HIGH>; /* PG11 */ > + status = "okay"; > +}; > + > +&uart1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&uart1_pg_pins>; > + status = "okay"; > +}; > + > +&usb_otg { > + dr_mode = "otg"; > + status = "okay"; > +}; > + > +&usb_power_supply { > + status = "okay"; > +}; > + > +&battery_power_supply { > + status = "okay"; > +}; > + > +&usbphy { > + usb0_id_det-gpios = <&pio 6 2 GPIO_ACTIVE_HIGH>; /* PG2 */ > + usb0_vbus_det-gpios = <&axp_gpio 1 GPIO_ACTIVE_HIGH>; > + usb0_vbus-supply = <®_usb0_vbus>; > + usb1_vbus-supply = <®_usb1_vbus>; > + status = "okay"; > +}; > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel