Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1037565lqt; Tue, 19 Mar 2024 10:51:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVjOEiJloySoLixkqR8unnsD4x2ETh1wI7tXakcao3UEyFYqH/rXA/4rq5JtxrU/IGPjy+ogjx+cMLx5wQvLCxlUlwlWXaMxnI1L/4blw== X-Google-Smtp-Source: AGHT+IFod4u+t5xIKqEOdLsZ17NHWcCyVRZXvJ0L63S3VsDEuqVbL5r1zDezLl65zW8gJ9tqKrEC X-Received: by 2002:aa7:888f:0:b0:6e6:bda3:c040 with SMTP id z15-20020aa7888f000000b006e6bda3c040mr3870138pfe.21.1710870681246; Tue, 19 Mar 2024 10:51:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710870681; cv=pass; d=google.com; s=arc-20160816; b=X/s6T+6ijmXPlxI00QAxvyRn5hrGIgMFyyW3s/EF5Fypy+u7bHJJVV5Sxx/D9b9YIX xOBuMhUDaKV7kd/MrbTMymGC+EjhTkWSuSg5iu/Ng9P/22bXSvDLrD8Swo+fEZqWtrSq XDVbNEUj5qcmNcsqdeK31kuweLCIH203j16nLXxlMrvWq+8/Cwe4hwZazs2Xo5WeosGn PdVbloO9kya2XGQeuP+Gjy0J9dHtWh6YsVjPUNN6KvhUCiyEbOOGkBr4Rdip9sqPPT++ +oG7pGz72Ik0uqhAbNVko3lBJSUz/oCxeRqImhHmTHCr0IQum9cQpDzIim2HRGd0YDR3 Ks2A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=K4h88E15TbnHDt476ZSp+9Jvp1kaoXpMk+VIBAfvxeU=; fh=j44WkQHzXguKJUwzQRNTrjXnACuu8CY0rFOKqi7eWIs=; b=LyuxkrOqYVeZ63Dr47IsRMliZWj7gAEHCdY0W17JBgr1trAlVTPGfBlMoPe8G+lOXQ EhyyK+dlRBznAOcBJSS7Rk5X/cw0KOyFNsjmsRnhIqubkDq17cQPek2wsd6WZjDbWFtf 8X3yGdfNk8KZE3uYAWpnHS3C+vT3ju4odk9LYofKkXL8xU2qw2hajablEOoA1aHLSOFj ngiwqRUn2RcO3qeB8fOuAPbLDIRNTC3YEssGaodZ95GRBJI7gdiELWkl8w0qlKgtBCR3 xGXFzK/BFabqEn6fxhv7HcvIQJCS03J1Hhw40lVAaHRjKZ2bzSOLa8r/J2AYXN7CaB7G CB8A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Zx7+h/Ui"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-107948-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107948-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ca16-20020a056a00419000b006e718338847si6491815pfb.385.2024.03.19.10.51.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 10:51:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107948-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Zx7+h/Ui"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-107948-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107948-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id DEA6D285380 for ; Tue, 19 Mar 2024 17:51:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3BBB836B00; Tue, 19 Mar 2024 17:50:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Zx7+h/Ui" Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3E82B286AC; Tue, 19 Mar 2024 17:50:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710870632; cv=none; b=fHEVEvCs4W8ld0Z9nJZ5Z6GD85zdtn6PeIsgyM9sX7NHL85HYN2BkqvxKScb388CHdNOgaNDo+9Lx490yylhjcCKL7KqNAw/QD6OmSyPxjx291R98y3af+3ek6klum+Nv/Z/fzXdWsLjSQ7zgpSMjQeqvbEZXaUdOsa2VI2Qgn0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710870632; c=relaxed/simple; bh=2srAD5ClkT3dKxDgxCvfkFQLhGt9MLkwM22uuag/53w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Po0wOTEdvbra7J3jWOt/u23xZyt2JFGw9SSBbHCmo55aRt/LLRe5vfNH/E2w6rwlCNHIDtUBB6Z1N7wuQZNNW7n/fsiABwLD5/16d6kS/5izZlb1uR8sw2oCRpNIW2695hNStURv97fwS1B3YWBf+B9UQrixOz/aVAi0gPwgcqE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Zx7+h/Ui; arc=none smtp.client-ip=209.85.208.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-56b93b45779so1427591a12.1; Tue, 19 Mar 2024 10:50:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710870628; x=1711475428; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=K4h88E15TbnHDt476ZSp+9Jvp1kaoXpMk+VIBAfvxeU=; b=Zx7+h/UigiSkspRkmZSmMrD8SskW0HFHqvqCf3i0BR1jjkTrW/Q03ysnEQ3YQES6Dt ekXQ0Ctfds1gv9Trx+DcVTuRJovkh+nOLJCh9vR/hEVyDelUqKs+9YXjwA6fKECoxY0+ PTb34SoiW16gPOo1d7wX2VZWzybN5XEvY2ZIZD+Mi6l19lAI3z8egEpCMOjIn9/z0Wn/ zVLXi+23/eAvP3nBHIQswCiDvXuA6gD4MPmZjzWgxSQzKMNImqaU/aILDTLv4eIIV5Ye TRpInRMbbAREnXwo6LWgJczhsW8Ce08vFMf7m2uGNWtvxLC5WvbHKJtR2TZc+1rLoX/G 2PbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710870628; x=1711475428; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=K4h88E15TbnHDt476ZSp+9Jvp1kaoXpMk+VIBAfvxeU=; b=PsEzI6p1WNIlBMaxB7KJ2Y6oFPkSDPibGqWIY31V4zKAkVf+8LST7RQTgg7orVZPT+ /3tnYvgtxoqn+tSdA//Z4gEnF67sFTcs99aEl5a/pOadDYtMhgW88gUESRLrJskiMi4B oSlqwM1WmGdGSbPm1nsIRlxtTmVLtS4/4p5cRyrmo4GC/mxAdPse348YPa9x1d64qQk+ BrGexc3E3+wJ8jQMNR8Fu6vxi7hcAQIL5ibZx9WwFdlZhAnG3srtsARgsJNlitk5FLUt subKik0NncUEj0F1gdoIK0FQaquP/uswmDlsTgLL2tLLN8eV198XBAYwO4PXn3Vx+Qd3 VA+g== X-Forwarded-Encrypted: i=1; AJvYcCWyrhSKbwbOZ7fwMQ0bpqxG/pJPKEOtPrglzoQ6ODUIFIkGxTp/WDchIvshUmLGC2t5wXj47RRVdjLUQCMxABI4ycJ0588lNpNH1wNj X-Gm-Message-State: AOJu0YzQZIRqdSCC/wMrTLXHmuG1A9V50p5sFxrFCZ33couROLL1PxUE F9GlvR+Q/G2BEWfl9L4kIHJduinYFbPhvcE5fu9cuERMJ+Djoogr X-Received: by 2002:a50:c04a:0:b0:567:45e2:c4db with SMTP id u10-20020a50c04a000000b0056745e2c4dbmr11207171edd.39.1710870628405; Tue, 19 Mar 2024 10:50:28 -0700 (PDT) Received: from ALDERLEJK. (89-76-44-138.dynamic.chello.pl. [89.76.44.138]) by smtp.gmail.com with ESMTPSA id et5-20020a056402378500b0056ba8b68505sm84329edb.92.2024.03.19.10.50.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 10:50:28 -0700 (PDT) From: Kamil Kasperski Date: Tue, 19 Mar 2024 18:50:24 +0100 Subject: [PATCH v4 3/3] arm64: dts: allwinner: h616: add support for T95 tv boxes Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240319-add-t95-axp313-support-v4-3-6204b6d23229@gmail.com> References: <20240319-add-t95-axp313-support-v4-0-6204b6d23229@gmail.com> In-Reply-To: <20240319-add-t95-axp313-support-v4-0-6204b6d23229@gmail.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Maxime Ripard Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, Kamil Kasperski X-Mailer: b4 0.13.0 Add dtsi file for T95 tv boxes and add initial support for T95 5G AXP313A variant with a board name H616-T95MAX-AXP313A-v3.0 Internal storage is not accessible due to lack of support for H616 NAND controller. Signed-off-by: Kamil Kasperski --- arch/arm64/boot/dts/allwinner/Makefile | 1 + arch/arm64/boot/dts/allwinner/sun50i-h616-t95.dtsi | 109 +++++++++++++++++++++ .../dts/allwinner/sun50i-h616-t95max-axp313.dts | 84 ++++++++++++++++ 3 files changed, 194 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile index 21149b346a60..294921f12b73 100644 --- a/arch/arm64/boot/dts/allwinner/Makefile +++ b/arch/arm64/boot/dts/allwinner/Makefile @@ -42,6 +42,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-tanix-tx6-mini.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-bigtreetech-cb1-manta.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-bigtreetech-pi.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-orangepi-zero2.dtb +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-t95max-axp313.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-x96-mate.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-longanpi-3h.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-orangepi-zero2w.dtb diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616-t95.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616-t95.dtsi new file mode 100644 index 000000000000..4c02408733bc --- /dev/null +++ b/arch/arm64/boot/dts/allwinner/sun50i-h616-t95.dtsi @@ -0,0 +1,109 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) 2024 Kamil Kasperski + * + * Common DT nodes for H616-based T95 TV boxes + * There are two versions reported with different PMIC variants. + */ + +#include "sun50i-h616.dtsi" + +#include +#include + +/ { + aliases { + ethernet1 = &sdio_wifi; + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + reg_vcc5v: vcc5v { + /* board wide 5V supply directly from the DC input */ + compatible = "regulator-fixed"; + regulator-name = "vcc-5v"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; + + reg_vcc3v3: vcc3v3 { + /* discrete 3.3V regulator */ + compatible = "regulator-fixed"; + regulator-name = "vcc-3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + wifi_pwrseq: pwrseq { + compatible = "mmc-pwrseq-simple"; + clocks = <&rtc CLK_OSC32K_FANOUT>; + clock-names = "ext_clock"; + pinctrl-0 = <&x32clk_fanout_pin>; + pinctrl-names = "default"; + reset-gpios = <&pio 6 18 GPIO_ACTIVE_LOW>; /* PG18 */ + }; +}; + +&ehci0 { + status = "okay"; +}; + +&ehci2 { + status = "okay"; +}; + +&ir { + status = "okay"; +}; + +&mmc0 { + cd-gpios = <&pio 8 16 GPIO_ACTIVE_LOW>; /* PI16 */ + bus-width = <4>; + status = "okay"; +}; + +&mmc1 { + mmc-pwrseq = <&wifi_pwrseq>; + bus-width = <4>; + non-removable; + status = "okay"; + + sdio_wifi: wifi@1 { + reg = <1>; + }; +}; + +&ohci0 { + status = "okay"; +}; + +&ohci2 { + status = "okay"; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_ph_pins>; + status = "okay"; +}; + +&uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; + uart-has-rtscts; + status = "okay"; +}; + +&usbotg { + dr_mode = "host"; /* USB A type receptable */ + status = "okay"; +}; + +&usbphy { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616-t95max-axp313.dts b/arch/arm64/boot/dts/allwinner/sun50i-h616-t95max-axp313.dts new file mode 100644 index 000000000000..08a6b4fcc235 --- /dev/null +++ b/arch/arm64/boot/dts/allwinner/sun50i-h616-t95max-axp313.dts @@ -0,0 +1,84 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) 2024 Kamil Kasperski + * + * Configuration for T95 TV box with board label H616-T95MAX-AXP313A-v3.0 + */ + +/dts-v1/; + +#include "sun50i-h616-t95.dtsi" + +/ { + model = "T95 5G (AXP313)"; + compatible = "t95,t95max-axp313", "allwinner,sun50i-h616"; +}; + +&mmc0 { + vmmc-supply = <®_dldo1>; +}; + +&mmc1 { + vmmc-supply = <®_dldo1>; + vqmmc-supply = <®_aldo1>; +}; + +&r_i2c { + status = "okay"; + + axp313: pmic@36 { + compatible = "x-powers,axp313a"; + reg = <0x36>; + #interrupt-cells = <1>; + interrupt-controller; + + vin1-supply = <®_vcc5v>; + vin2-supply = <®_vcc5v>; + vin3-supply = <®_vcc5v>; + + regulators { + reg_aldo1: aldo1 { + regulator-always-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "vcc1v8"; + }; + + reg_dldo1: dldo1 { + regulator-always-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc3v3"; + }; + + reg_dcdc1: dcdc1 { + regulator-always-on; + regulator-min-microvolt = <810000>; + regulator-max-microvolt = <990000>; + regulator-name = "vdd-gpu-sys"; + }; + + reg_dcdc2: dcdc2 { + regulator-always-on; + regulator-min-microvolt = <810000>; + regulator-max-microvolt = <1100000>; + regulator-name = "vdd-cpu"; + }; + + reg_dcdc3: dcdc3 { + regulator-always-on; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <1500000>; + regulator-name = "vdd-dram"; + }; + }; + }; +}; + +&pio { + vcc-pc-supply = <®_aldo1>; + vcc-pf-supply = <®_dldo1>; + vcc-pg-supply = <®_aldo1>; + vcc-ph-supply = <®_dldo1>; + vcc-pi-supply = <®_dldo1>; +}; -- 2.34.1