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 9A1F1CD11DF for ; Tue, 26 Mar 2024 22:37:53 +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=W8pyADB8/Xzz0NJBQLSjq/XK6mKTuf+BD7REzB0gSIw=; b=HnTZJKKMIkNyI5 19BAHLP2zyGGgPWC+j0Cn+vkpV30MXwfXZwsNk2axFqOr6FVt+wbVa6BDEYqG6T79TB1X7otIpAKr ufJ1UwGdru4v+mtHRXoSOXIrxyTe0WzjdruJSRTlOhisFkDJ4sFJ0aosQbODe8NNnE9w5b08Kt6i0 J76A5nUCfOyo8XSTs5n7YigLjzB13bpaWKwPT80O0rAHiwcbGGFM6Nz+p7O/mV0I6mbtvLxO5V5JJ x8aoeoNPa0dJsoyfjuE6MHf+djrWpaMALVcBiG59MY8g1JmrGNeFSjiRyvSyXwpxx7T3ipmptptWB HiMYSR2czlnjw2oJ/9Ng==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpFQJ-00000006iCv-2XOc; Tue, 26 Mar 2024 22:37:39 +0000 Received: from mail-io1-xd2f.google.com ([2607:f8b0:4864:20::d2f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpFQF-00000006iB6-3bWg for linux-arm-kernel@lists.infradead.org; Tue, 26 Mar 2024 22:37:37 +0000 Received: by mail-io1-xd2f.google.com with SMTP id ca18e2360f4ac-7cc01644f51so265888239f.2 for ; Tue, 26 Mar 2024 15:37:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711492650; x=1712097450; 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=SA/GLZl3h7HpI8vEB/ZyUsu3mvxu5V+a+bI3pQOrjds=; b=SoSsmmNp+tEFUDrkrWdCnNdsekWH1CYBPSEKQg1zFoKw9MT5JdyhUncOQxmgUPCNLe UGc86Yw48oMsPP63/edDcWpHaCKcMce35SoaJ1rX1lr2Ffszct8eVRuDN5XoyhQZvuqZ GHKiBoF+J9QfsS04BMT/lSo/WD4DCF/gAu6drx5IPIB3sKJqpn6UXkjCxORw3ZN9NCpJ zJhVfAmQ9JfP6BXwoGC1hyGVzi5CMLjXme+dkOviRqvQ08AiS1hPGUyHSocmE0vHiiGp jSd8oU81fELfubAuJWL5HOqs9+U/m2zLCOSBrAh86L0B/ujKuFUanZrOB1pROrBzr7R0 iWvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711492650; x=1712097450; 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=SA/GLZl3h7HpI8vEB/ZyUsu3mvxu5V+a+bI3pQOrjds=; b=vacMdqRcWjEyly/bJK1l4Jumq7UxYvW9z61+Lz6EJAnkWHUj4SqJfk5XceEH1rDjHL H0GdNbbU0DdC2Jj4KkVSp2CvAEdwvMkqDWFToFCrY1rqF9l81ck99piAon1cB73sQnYE Y7HGlRnjnJrymnwrYQ2rrEpvi3X9T9cEW7O5T+t/qT/Y30l25RPs+ZLY2fZsCb2mZ2UP i4jVVCRZfrQ1IyTPNb74k48htqAasLH7CsKycLVXa4PndMdxsJM5TgyoMXZdYN07cpz4 9xsyZXt/bNuG6I8U0Ilb2OJYLh9Ybj4VXaf0Ru96EuD7UjQ4FwTRrzey8LRf6tvWjq2/ ndFg== X-Forwarded-Encrypted: i=1; AJvYcCV0i5YHHar11tnWPtXY0QTX6+ZTIPhKTd/yjGcl9OOwLkQP+GT1lCM/dT8ffPXQS903gZ6VMt1intcE4K9xw7oI3ocR4wbK7w5+w6WmOYDE3Q/kkxw= X-Gm-Message-State: AOJu0YxO7/JzSnI7g2vGeHfzn1PyINiDd7wjMOQcxs0hQb2sCwDGL/0u bXcNqayDz8defgLz9t+uQwxdkpHJRow/uOlUIjH16EoYtuYvhdyv X-Google-Smtp-Source: AGHT+IEsZu1f6Tc3oBDcbNx9nMtrh3Lz5apUbtKBHtrG7Zi1dBfQ06ge4SOqm91WZkV/knfGjfY5oQ== X-Received: by 2002:a05:6602:1d54:b0:7d0:5735:c460 with SMTP id hi20-20020a0566021d5400b007d05735c460mr7502224iob.3.1711492650493; Tue, 26 Mar 2024 15:37:30 -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 it21-20020a056638859500b0047436275c32sm2950406jab.1.2024.03.26.15.37.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 15:37:30 -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: [PATCH v2 2/2] ARM: dts: sun5i: Add PocketBook 614 Plus support Date: Tue, 26 Mar 2024 23:37:26 +0100 Message-ID: <1959471.PYKUYFuaPT@jernej-laptop> In-Reply-To: <20240317083445.4668-2-hitechshell@mail.ru> References: <20240317083445.4668-1-hitechshell@mail.ru> <20240317083445.4668-2-hitechshell@mail.ru> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240326_153736_027409_5675DD69 X-CRM114-Status: GOOD ( 18.48 ) 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 nedelja, 17. marec 2024 ob 09:34:45 CET 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 > --- > arch/arm/boot/dts/allwinner/Makefile | 1 + > .../sun5i-a13-pocketbook-614-plus.dts | 215 ++++++++++++++++++ > 2 files changed, 216 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..b5449301789a > --- /dev/null > +++ b/arch/arm/boot/dts/allwinner/sun5i-a13-pocketbook-614-plus.dts > @@ -0,0 +1,215 @@ > +// SPDX-License-Identifier: GPL-2.0+ > +/* > + * Copyright 2024 Denis Burkov > + */ > + > +/dts-v1/; > +#include "sun5i-a13.dtsi" > +#include "sunxi-common-regulators.dtsi" > + > +#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 { led-0 is preferred by the DT binding. Please also add function and color properties. Please run DT check with W=2 to catch andy other potential issues. Best regards, Jernej > + gpios = <&pio 4 8 GPIO_ACTIVE_LOW>; /* PE8 */ > + default-state = "on"; > + }; > + }; > + > + gpio-keys { > + compatible = "gpio-keys"; > + > + key-right { Key node names should contain key-[number], starting with 0. > + label = "Right"; > + linux,code = ; > + gpios = <&pio 6 9 GPIO_ACTIVE_LOW>; /* PG9 */ > + }; > + > + key-left { > + 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