Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1694591lqp; Mon, 15 Apr 2024 14:16:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWo53VS9apTj34AZ4OSeE4YoZYzUZ+hqGknEfzdtLNezOVoFTYm99Dqf9bI0frUuSl5Gy9JK+mLT7CUwNFM1+L1gaXdSMhbUuIEpgEUPw== X-Google-Smtp-Source: AGHT+IFV7Sl8TRJNdgiyYDwzn38fswtBQevWBz3V8GMfvP+cMTyD8dMMJBZDngxWjybctgjHOUeE X-Received: by 2002:a05:6a20:5602:b0:1a7:aabc:24ae with SMTP id ir2-20020a056a20560200b001a7aabc24aemr9332362pzc.18.1713215796032; Mon, 15 Apr 2024 14:16:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713215796; cv=pass; d=google.com; s=arc-20160816; b=Dbi00DKqk845KXUmiMxHEQvO8LOLepEEURA3KirusaFj8S8Z2ZAsyDd7kQEas/oUTF 2rtKRCtG+q54BAKAEimWcK20uo4vAbJ/daZ51OzsSz393/BLQJjfpqu15tdjTTA7b5Kz p6UGDWaHAF9wUeqtyxHW7fVSOG/GyIWVR8yaAHnh5qHNy8V8OjzKDxnwPY0mYV31ojKN jZ218RGJWp3kbuvZgR0XhkRI+KAutLx79sRQ392jCoEel/+anqtlopjOSsSZMpyf/RXe CLQpiAg+dT4hhnGhqqwQttMXbAdkqiX04OjFqxCVxTEQTyfaVQzBM9XjofLUeC7t+ojB X73Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=V9fIh3VALFqD9z061oWIYxmy/nGl9jyEMXX1h/25FRE=; fh=7zK60vCLefK1GfX8VzzpT3nHwxPG89R4w/XtXbdhicA=; b=aKXVxp2lCKfGd5u/Lm64xY6S4p2iHyP1k3qG79xieAP0idmyR9LCehScRWRfxMd1tW wOLueWjecuSWjsuVs49UTtwgXRE7bM44QFoweE6Q46c9UfEEwEv03dmLUrOJuP00aRZ/ qQwZSXIi9WLBr6Zq/xb6o+xnhA/u/B6hHKMWSSQenVGrTEz+1NeSO86fH4USBCoirLMc taIVRGKDE7Ied7ZJcztj4Sjmnea/0pSep6/RKkpkQEHjTYoOnv+KMXO9o3/yd1bevWHf l/lGP86Li2cwM8UwZ7PkWZRs86+n7Mrxh4DMDMpSQkbN7W8nGaWYWYY/C06BeMqus8pw Js4g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=li+2Ib5F; 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-145919-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145919-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 80-20020a630153000000b005dc82dde3b2si8232053pgb.793.2024.04.15.14.16.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 14:16:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145919-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=li+2Ib5F; 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-145919-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145919-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 AB9D9284F2A for ; Mon, 15 Apr 2024 21:16:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B61A5156992; Mon, 15 Apr 2024 21:16:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="li+2Ib5F" Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 991B7156978; Mon, 15 Apr 2024 21:16:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713215786; cv=none; b=uEGzz9sIeWeqHG6hZ3HjknKpW8U0tUTQQGY16+7lpy/QzjP7HaTRFZpMpBRXh5tRWNH4Opljx1euR5r18wWXYojKTpcgo4e5fZAecRDT1Awp8A5bHFmp/ECx2bQoJWaHTYdeZvyIRRE7bEHSVlT2a6ucyLHWZWcsxuZnADHFNVE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713215786; c=relaxed/simple; bh=oZPAjt91gUsPpRGNmYe9ZMT1R5xWBkyHHX9xbVqU6dA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=KJRJ88uFHt0nEmtP9xYPk9q7ZF0Hz+sntQ6tIJ+YufCOuaF+KTdB8iBv1AtRPC4wLA5qFp42q8cPpJUMih0wE4/Kr8PBcdOMph8qS8ivEQwShCh1mlC7N7vSLxw8jKVctNd6sv2jsHZiBOzCOxv+qqtqnlXwCySI1pNTcJOUABs= 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=li+2Ib5F; arc=none smtp.client-ip=209.85.128.49 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-wm1-f49.google.com with SMTP id 5b1f17b1804b1-41892a7518aso10595e9.1; Mon, 15 Apr 2024 14:16:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713215782; x=1713820582; darn=vger.kernel.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=V9fIh3VALFqD9z061oWIYxmy/nGl9jyEMXX1h/25FRE=; b=li+2Ib5FY4BwcgCJJae4j5Ggva+op1MyggsOJpxl9zq3WhvpSEE8vpyJ+QFgDfNT+o NMbuyCDasVOT33/P9ErqzcYXUMLDXD2jBYtR6hlEeDESt876k7uj1gKymg8uv4xriihR 79inGd9JqolqFfu9f9D50/rvjrKq+OUXNKXj19Raq7SmbHio8/AqFpcMNVwkt6E43YzX 0mQFsJkgNMCDB/Mr8jrd4G4TJk3PFySOySSVPqj8ORE/ylxwNZ0g7iWZ5m5mLLitxlZS qn2VBI2Gsp8+IQ1z4SH3tK0II6VEUO4kmnUvGtjrb0w0tixSdRA7XU14A71z8VZrWQMr 7rgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713215782; x=1713820582; 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=V9fIh3VALFqD9z061oWIYxmy/nGl9jyEMXX1h/25FRE=; b=Eg/ZtK8G6meyMXfPI8rWju/oOO8SxaNirenYCQNxHttoR3Szswc9siMo02xEqh1bC3 hRBYBo6wxxDQMJY98MarMam7LEFmfX5nMREfxA3ex/fbjoG8YE3hCleOSv3l+ftNTB2m Ir0a4zJVdAJrLYVtry2bFj+yL1l8d5IoVghep+hcBrUA4Cix+cfHcsuwrgLxNwX6WobC f5ANHie+5nD2Wm0ZJQawvAUntnEEtIvzeT51m6HsCL36SWeyf006qtBXczymoXzxaHkL Poad/hwhW0apwnmYD9xDYgkmkIHuwkvcon06zlEgs31qUJa4RqFavoMItUMjiGbH52jm rRhw== X-Forwarded-Encrypted: i=1; AJvYcCWbbTlW5pnBL04W3Zewu8Rw4+u4/KU67bsdcTpMGBYhkbcc23nmxYO7tcagFypKVrZ21Xs5h9CmBXBLXUNl1VtpRv25G3Xwa2R1nr7y X-Gm-Message-State: AOJu0Yw6m3dQXeif+y8ATBUPGZcm1YgBxsIcriazurWPcauPK6adSNAU DvM3avV60wW3SHtA7pY6HiLPPzZTieBPd//S9PBa0EzuYZKUjDJp X-Received: by 2002:a05:600c:1f89:b0:416:a4e8:715b with SMTP id je9-20020a05600c1f8900b00416a4e8715bmr8378072wmb.35.1713215781903; Mon, 15 Apr 2024 14:16:21 -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 a14-20020a05600c348e00b004188a8369d9sm675883wmq.47.2024.04.15.14.16.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 14:16:21 -0700 (PDT) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Samuel Holland , Maxime Ripard , Kamil Kasperski Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, Kamil Kasperski Subject: Re: [PATCH v4 3/3] arm64: dts: allwinner: h616: add support for T95 tv boxes Date: Mon, 15 Apr 2024 23:16:20 +0200 Message-ID: <1961464.PYKUYFuaPT@jernej-laptop> In-Reply-To: <20240319-add-t95-axp313-support-v4-3-6204b6d23229@gmail.com> References: <20240319-add-t95-axp313-support-v4-0-6204b6d23229@gmail.com> <20240319-add-t95-axp313-support-v4-3-6204b6d23229@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Hi Kamil, sorry for being a bit late. Dne torek, 19. marec 2024 ob 18:50:24 GMT +2 je Kamil Kasperski napisal(a): > 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"; > +}; I suppose UART1 is used for bluetooth, right? As is, this currently doesn't help much. Is there any appropriate BT compatible? Best regards, Jernej > + > +&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>; > +}; > >