Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1200486lqt; Tue, 19 Mar 2024 16:34:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUI1agMWieJMCv7uFJCXycSZhljyjtFHKntj8fkyiOQMreKfk2SAd8OTU16TPW8kZLsvFkchaByjPwcbzelQlfpcEocFol5fPO30eVpHQ== X-Google-Smtp-Source: AGHT+IHDhuQKRO9S0AdpMToEhnF3Ub5/9tTwM812I+lX4kc33jBTyevQL0aFs85L9C9CLBKsyjui X-Received: by 2002:a05:622a:a029:b0:430:b930:26a0 with SMTP id jt41-20020a05622aa02900b00430b93026a0mr6304942qtb.15.1710891245126; Tue, 19 Mar 2024 16:34:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710891245; cv=pass; d=google.com; s=arc-20160816; b=kKea4DcN2jKjZpVb3oSVAu/P7CwlqTyndGhRKDN7hHwMmoaWTNoGFMVjNhDtgayw98 FldCL33pbHtpbCtN70x758gZXDVMiOy1GWJNwQHgKg0iEbkxI7z4v9Rj/e5ecnN3iEna TrXsm9RoTQB0L7Ht1mYpsbYwz5KsKMhQGhlRCpfJMFGcM5b8zLj1haLItH5VhNZWHkEi 9fyUjU88TNGhrnWoPTigasFbns0lFlkdyf9YylIINGQIbE86sfgdRM2OpT3Nk6NN8ze3 zZD9ecJks5VM8AnuYegKFAlS1jnPJfb7OoCBCVKO6oGJepZWRvudNf5bGDp2GU06kk3o Rxkg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=FLndC0G/3mltcgg2R8D275R89gDEgymvsh3WuwDlfNg=; fh=NRtgYrNDOsE2aejqENFktcuUK35Wi8hUDwOJoBXaeW4=; b=ckdKAUZFWXYgdD2jKxrqeGziKVvarKZJ87eqUPJIFXyXCrYQf+cjg63zW6YajTOhFo IuPzjMVUBSGKwERLtig/dVxS2X2uz+3JLb9MouJd3AmEcNGS/4jqZNZH8eT9HDEGAVbL usTC1tC9BI2VxbrJuoK+hZ4aeCF35NXWpaL1YbTPOCcizjSL+qBUM2dq17Nt2tZrpBHj 1Ypfswuh26fd9f9MUoHyPqIWopIiGz9JlBRKewrLhQPpIUtc8w8gXdfY/QfC5sPJZR+B uDuroItw1JpcopmAaD27gdrVVLRwLQT+ALQs7M7GWBt22xnPtkGGy+glKiLbM3b3Zhek YpCg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=c2SfUKw3; 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-108237-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108237-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ay17-20020a05622a229100b00430d838c1eesi4500907qtb.445.2024.03.19.16.34.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 16:34:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108237-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=c2SfUKw3; 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-108237-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108237-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C79621C20B69 for ; Tue, 19 Mar 2024 23:34:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6D87E5FB9A; Tue, 19 Mar 2024 23:33:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="c2SfUKw3" Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (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 1989E5FB8A; Tue, 19 Mar 2024 23:33:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710891237; cv=none; b=FbzWpfjNq8dgWY8sqIJu7ZmDCDV97no1R6Zjtv1fNjz9G8Hs36zdztZ4AMMWg7jHIRcGKh5J4NlEu019yOAD7DqcV9PdOwc6J2f5XaDejTnKEgPDbfdNgNRNgcuNlwk78mip7PYUVjrnPJivClxZ2byoOohLR+8R4i+1XpN5gBM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710891237; c=relaxed/simple; bh=BAeQnfJc0stM5hGfJ6yx1+xz23o3scQQ6R6mOB0fJ6M=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=sCFp107HJ4mKdTj2Wt7gbru2p+OIbYD68Hhj6YewWN/XYAU3CA1XqXieSGfp8rvdNUbC7/kRxB+6FY4tqFkyPrVnD3YSeXq0/BKX3wqRVZ1fHMNwVFpz+fsyHrW+cUmeoT5Zd7t1vzh5KxOuiJrXD+dEFPMX1yW+dhTlU61sqNA= 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=c2SfUKw3; arc=none smtp.client-ip=209.85.167.54 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-lf1-f54.google.com with SMTP id 2adb3069b0e04-513a08f2263so6367646e87.3; Tue, 19 Mar 2024 16:33:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710891233; x=1711496033; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=FLndC0G/3mltcgg2R8D275R89gDEgymvsh3WuwDlfNg=; b=c2SfUKw3ks+s024aWGuHItjGuHaNmcV6O43+M5gvD14kdXba2FfN5TPFF9naRHs8Zr U/AmWAdWONcGligSVyTq19J11MDfjTTULQD2gP97Z6HP+A0+MZCixqJGkrFk81Sg4MS+ PXTDmBAqG5RnjYfAu5blFH02sqPT14k4g5SLrPSDFNqxvlob6g7w8cCcn6K8ImgbqeBO 2m8OUVWrHxGGYLBICRIVvSYxKpnhTH994ghzq2zIKlNuf85lFwOkb2m0stZeMoyycifX +Xz8auFpxDPjM7Wk4++1mpsXX0CZExBVafJQXw5qiaa+lNg1oT44Y74P20jPmDVv+GFL RXMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710891233; x=1711496033; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FLndC0G/3mltcgg2R8D275R89gDEgymvsh3WuwDlfNg=; b=nMDCiRi5VIlu3UIFYGzsW9aIxOHs+zRbFaD5OrNeG4KvKzh4vMtTBy1vtqfjiY51vn wDLv/SZoRo9CnSIuzStKZQEq3YNm2cLL/km4KGEAqEXGYkSHa+A4gLAwaWouTN3xkiQF NzVz8FC59iYWR9ES90iDlHDpGrtDWzh2U6iSjuCrYR/kzJMBsfopslRR2LjbTCkPY+X+ DScm1P8v3u732xZWHiHVquopEKzdlHd8T5UkSNWNVJc0TyoHJXFGUgaJG08JbSiMF4pq TAJKoxC+OYQgN5INERWG5+m4Q0vfEdiv3/jDp4+xaJ8poPSwZYKBq3oDsKkRmOK7s56b ZdIQ== X-Forwarded-Encrypted: i=1; AJvYcCVU6wcEO4EJS2jte/+QfqUYKeNPcePUrv/C8QAJnnnFyfWlIdn4ATjWN9UG1r0yrpOdqgsE3g6bWdrIPdnzmBvoFUFIta1xEOGWM7DLGrLriLXcdIr+/CXabOzY6teMpajxUwpw5nZK3w== X-Gm-Message-State: AOJu0YwaFQ5Eb2wE4VcVRj4rRzzFv3Gbs+T57j9nKKLVK6XGB2F4IC3G vaMF2EX1l/GJOMagqO6g5/4xd3qBnOWzs4bmmBKVaMNyaH80B/hh X-Received: by 2002:a05:6512:310c:b0:512:ee61:c32b with SMTP id n12-20020a056512310c00b00512ee61c32bmr2976573lfb.43.1710891232935; Tue, 19 Mar 2024 16:33:52 -0700 (PDT) Received: from [192.168.100.117] (89-76-44-138.dynamic.chello.pl. [89.76.44.138]) by smtp.gmail.com with ESMTPSA id m24-20020aa7d358000000b0056729e902f7sm6227771edr.56.2024.03.19.16.33.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Mar 2024 16:33:52 -0700 (PDT) Message-ID: Date: Wed, 20 Mar 2024 00:33:50 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 3/3] arm64: dts: allwinner: h616: add support for T95 tv boxes To: Andre Przywara Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Maxime Ripard , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev References: <20240319-add-t95-axp313-support-v4-0-6204b6d23229@gmail.com> <20240319-add-t95-axp313-support-v4-3-6204b6d23229@gmail.com> <20240319232236.07007592@minigeek.lan> Content-Language: pl From: Kamil Kasperski In-Reply-To: <20240319232236.07007592@minigeek.lan> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit W dniu 20.03.2024 o 00:22, Andre Przywara pisze: > On Tue, 19 Mar 2024 18:50:24 +0100 > Kamil Kasperski wrote: > > Hi Kamil, > >> 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 > thanks for the changes, looks good now, although a bit minimal ;-) > > Reviewed-by: Andre Przywara > > Please can you wait till the -rc1 release on Sunday, and send a rebased > version next week? There is a small merge conflict in the dts Makefile > as of now. > > Cheers, > Andre Sure, no problem. Thank you very much for a review. Once it gets merged I'll get back to u-boot patch. Cheers, Kamil > >> --- >> 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>; >> +}; >>