Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4298255rdb; Thu, 14 Sep 2023 19:31:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGaAq278r9TKGrYD+xQbWJ+uHa+rdRiQKjPYV4cQPaHQ1qBJ8fGr96UT8DGao3M7FAnHGVH X-Received: by 2002:a05:6a00:15c5:b0:68c:49e4:bd71 with SMTP id o5-20020a056a0015c500b0068c49e4bd71mr478407pfu.34.1694745084076; Thu, 14 Sep 2023 19:31:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694745084; cv=none; d=google.com; s=arc-20160816; b=o46rimPowYh8PXbjMV0Qf0NnivLrEbiSOXQow6SZYLz8j8muW4Oeiy9an0l2nqnccb psj+pWJqm13nHjBX+gDYsAJ/M08zJqzpXqQRGqxecIxDG6Tx+TgEbSvAB91QUYnz1mAr ftD3m+k8CNLlJP3pcDZ6bsSxfxKi7b3XUDjA+1//sUYJuI4pAL5rn2fnsr1uS9gSMCwJ 83Z1NYJrDCuXtCuqnM/TGGjVd4dwS0z4kiMEXs6u7ZDGT0dXElo+Sby9gbrKqcYH36gb oHSQRFiEsSi19bpzB8LyRUPDs3TYF+UQW1JcUvC+CVbPtL4nceoJFHPQiFzzfBJ+J0Ja HV1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Fn5Q4zz4dzzyOVM7j71WqL4dSbKG1gkWBQ92zt+fSWA=; fh=cQYHR2RjC/EklMOjEP5+Ka2w5K4suBX/aK/cj/ZWAoE=; b=tl3W4MuBbw3kLnwcZC1jFtTOvkbJreyh7WBPZvS7Clt6HNzqD/bL7cdcrF5Ayzy1r/ eLCVcfWm60s26EzfCB4D8MdZ3fuI5wGaQNp2b4teMXzd0z6dU+AN6tBnJtp4k30lUN9S EzX6Q8HkaHj+ONdRQ000iICCF+7l5Zx4BT1U1MyL/UvvR+EARA4r1n/nUTzBgE0mrP0I 8kvtomUqTZFdByYSPgaBu2qf/tSLu06OV1/egJb0Yo9RwBYDSAOUh0Rr4ccJNSjeN4bS f7JUT1mOtB64gUf/d8idkPirwZYY6anV7Cn+7oweM6y/yNvdvsOuUl9MTGzVTBaRG9Kg O4qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=LlfisKNy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id f19-20020a056a0022d300b0068bc14cabc0si2579589pfj.31.2023.09.14.19.31.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 19:31:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=LlfisKNy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C694C82E27C2; Thu, 14 Sep 2023 03:03:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237853AbjINKDF (ORCPT + 99 others); Thu, 14 Sep 2023 06:03:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237811AbjINKDD (ORCPT ); Thu, 14 Sep 2023 06:03:03 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 054D41BE3; Thu, 14 Sep 2023 03:02:58 -0700 (PDT) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id E240F66072FF; Thu, 14 Sep 2023 11:02:55 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1694685776; bh=Ofj0RITyOx8ZemGDYGZjfNqU2kB288ZA4IwwfPxWoW4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=LlfisKNy4IW4w2gbgc72JiUbiqjpQI6jiBF09Ep7tAvU06ch0Z0DvZbjk0+O1VyB/ FHaoPo9Bx7K1XXhV7UlU5+D7Fc9dAlixH6T/3pBqbPYf6HCepkTvBvh45CBwcnIbt+ 4EenuCpJaFbNU1rOCtd489fvzA8LAQQwC1RYIo3qCW0g5OTdGLLeS0nxooxvIfg6eu LqA/Z6OS8yNkdX0q9VZHBoPhP/5BZt6/BZSLtx3xf+aI8L5BePE33X/kqGHE2HPXkU UlD7mZHEQZkW1TLu6IbEGi24sd4gVxOKg9NiG5iVUnr7bXLPFMw9k422fJavX3qUd+ vERLVVAD8xBiQ== Message-ID: <8596fd5e-035b-b7be-3588-c07f27d1f38f@collabora.com> Date: Thu, 14 Sep 2023 12:02:53 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [PATCH v3 2/2] arm64: dts: mediatek: add device-tree for Genio 700 EVK board Content-Language: en-US To: Macpaul Lin , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , =?UTF-8?Q?Bernhard_Rosenkr=c3=a4nzer?= , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: Bear Wang , Pablo Sun , Macpaul Lin , Chris-QJ Chen References: <20230914061833.32288-1-macpaul.lin@mediatek.com> <20230914061833.32288-2-macpaul.lin@mediatek.com> From: AngeloGioacchino Del Regno In-Reply-To: <20230914061833.32288-2-macpaul.lin@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 14 Sep 2023 03:03:09 -0700 (PDT) Il 14/09/23 08:18, Macpaul Lin ha scritto: > Add basic device-tree for the Genio 700 EVK board. The > Genio 700 EVK is based on MediaTek MT8390 SoC. > MT8390 hardware register maps are identical to MT8188. > > The Genio 700 EVK has following features: > > - MT8390 SoC > - MT6365 PMIC > - MT6319 Buck IC > - 12V DC Jack > - 2x4GB LPDDR4X > - 64GB eMMC 5.1 > - 64Mb SPI NOR > - M.2 Key A-E slot with PCIe Gen2 and USB 2.0 > - 2x DSI LCM ports > - 2x touch sensor ports > - 2x MIPI-CSI, as camera daughter board slots > - USB 2 micro USB connector > - USB 3 with 1 to 2 hub: > - M.2 Key B slot > - Type-C connector, with DisplayPort over Type-C > - HDMI 2.0 TX port with Type A HDMI connector > - eDP port > - Gigabit Ethernet with RJ45 connector > - SD card slot > - Earphone Jack > - Analog Microphone > - 2x Digital Microphone > - 3x UART with serial-to-usb converters and micro USB connectors > > Signed-off-by: Chris-QJ Chen > Signed-off-by: Pablo Sun > Signed-off-by: Macpaul Lin > --- > arch/arm64/boot/dts/mediatek/Makefile | 1 + > .../dts/mediatek/mt8390-genio-700-evk.dts | 880 ++++++++++++++++++ > 2 files changed, 881 insertions(+) > create mode 100644 arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts > > dependencies for v1: > - This patch should be applied after the following patch set > - mt8365-gneio-350-evk's dts change (v4) > - https://lore.kernel.org/linux-arm-kernel/20230912092444.31635-1-macpaul.lin@mediatek.com/T/ > - mt8395-genio-1200-evk's dts basic support (v6) > - https://lore.kernel.org/lkml/20230911115717.26184-1-macpaul.lin@mediatek.com/T/ > - mt8188 platform's basic support > - https://lore.kernel.org/lkml/a4e1a80ebd19896410f50b0297e05dce06fb47cc.camel@mediatek.com/T/ > > changes for v2: > - Fix gpio defines '0' to 'GPIO_ACTIVE_HIGH'. > - Drop duplicate name: 'default' for I2C4. > - Update dependencies > - mt8365-gneio-350-evk's dts change (v5) > - https://lore.kernel.org/lkml/20230913032226.4092-1-macpaul.lin@mediatek.com/ > - mt8395-genio-1200-evk's dts basic support (v7) > - https://lore.kernel.org/linux-arm-kernel/20230913032057.3197-1-macpaul.lin@mediatek.com/T/ > - mt8188 platform's basic support (v4) > - https://lore.kernel.org/lkml/a4e1a80ebd19896410f50b0297e05dce06fb47cc.camel@mediatek.com/T/ > > changes for v3: > - No change. > - Update dependencies > - mt8365-gneio-350-evk's dts change (v5) > - https://lore.kernel.org/lkml/20230913032226.4092-1-macpaul.lin@mediatek.com/ > - mt8395-genio-1200-evk's dts basic support (v8) > - https://lore.kernel.org/lkml/20230914055145.16801-1-macpaul.lin@mediatek.com/T/ > - mt8188 platform's basic support (v4) > - https://lore.kernel.org/lkml/a4e1a80ebd19896410f50b0297e05dce06fb47cc.camel@mediatek.com/T/ > > diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/mediatek/Makefile > index 22f362bbbdac..3262849c0f6b 100644 > --- a/arch/arm64/boot/dts/mediatek/Makefile > +++ b/arch/arm64/boot/dts/mediatek/Makefile > @@ -54,5 +54,6 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt8195-cherry-tomato-r3.dtb > dtb-$(CONFIG_ARCH_MEDIATEK) += mt8195-demo.dtb > dtb-$(CONFIG_ARCH_MEDIATEK) += mt8195-evb.dtb > dtb-$(CONFIG_ARCH_MEDIATEK) += mt8365-genio-350-evk.dtb > +dtb-$(CONFIG_ARCH_MEDIATEK) += mt8390-genio-700-evk.dtb > dtb-$(CONFIG_ARCH_MEDIATEK) += mt8395-genio-1200-evk.dtb > dtb-$(CONFIG_ARCH_MEDIATEK) += mt8516-pumpkin.dtb > diff --git a/arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts b/arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts > new file mode 100644 > index 000000000000..ed6bbf0c15cc > --- /dev/null > +++ b/arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts > @@ -0,0 +1,880 @@ > +// SPDX-License-Identifier: (GPL-2.0 OR MIT) > +/* > + * Copyright (C) 2023 MediaTek Inc. > + * Author: Chris Chen > + * Pablo Sun > + * Macpaul Lin > + */ > +/dts-v1/; > + > +#include "mt8188.dtsi" > +#include "mt6359.dtsi" > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > +/ { > + model = "MediaTek Genio-700 EVK"; > + compatible = "mediatek,mt8390-evk", "mediatek,mt8390", > + "mediatek,mt8188"; > + ..snip.. > + > +&i2c0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&i2c0_pins>; > + clock-frequency = <400000>; > + status = "okay"; > + > + touchscreen@5d { > + compatible = "goodix,gt9271"; > + reg = <0x5d>; > + interrupt-parent = <&pio>; > + interrupts = <6 IRQ_TYPE_EDGE_RISING>; interrupts-extended = <&pio 7 IRQ_TYPE_EDGE_RISING>; after which: Reviewed-by: AngeloGioacchino Del Regno