From patchwork Sun Feb 11 08:17:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 199382 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp1830065dyd; Sun, 11 Feb 2024 00:31:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW37MSPMJUu4Ss/z2b+a4afcPjIZQpnUhnhT03qQ0+3gUz63EgU5RpbcOmddJWz59qio6k6LRPmPhz1u1ognlsywlPL1A== X-Google-Smtp-Source: AGHT+IFoSysPTWMsqjFJ9Lp8sdfFEiUnuZvr3WOibKohl+hLWUi//T6JKgy73JHvjVPACK+P7/uC X-Received: by 2002:a05:620a:2484:b0:785:4fda:6610 with SMTP id i4-20020a05620a248400b007854fda6610mr5870094qkn.58.1707640267342; Sun, 11 Feb 2024 00:31:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707640267; cv=pass; d=google.com; s=arc-20160816; b=akSO8vkEDk9jed3Z6+2MRWCG5vt1X9iBTbIMvc3jG4etXKMML3NDzznoiEGOpsaa8a Y0OkyZKlRY23kyucsQ6of3JCxyEY6+Lip+uXXt0VfT7anoII4906jAzJGyt/quw2DI6D QGRp2xtroPx8IOUjNF3MLjsT1RKpnrh76cB+7UlfBAcZ18b06AY5NeLIbjfE8qRf0bfs 5cYHVeq0C7W7ElPS9d3B2hKsRn4/NPZpNE+uWY8QT7sdTan2BIpcqp0c26ktoUZDRxTO ZzD3JIj7GuZF6uDspbns0APJJ6WTu/gLG+BwiriK85LYQRHxXi0UZVBVCSysJjc3LUSW 737Q== 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=g+MVmOo+Q/aPZoj3nyzNPy60pj/rwQEdFEYGREHr9ns=; fh=eJeJ4j1CaRAUro/spIQM5A4RnsmE6fYgS7Qw/SWmFoc=; b=Xqcp4Ij6CdjFILGzLdzzF4JKim+laH1+265z0W3JYLmFvKiim1sLZzC7BegVYnNLir SeYwsqmIzMWiztK1K0TbMYMpkQjTBs0sdSRL3EVD9DvARN7ghe+tlIGQHPrKk8lRnWN9 p+S4tZu1fDLAKDJ5BqWsBfqQjWxa4Enb/XkWJhrXnlylGHWii9HKs0+iD+9YXKk1JZPI U2AGsAyo0EcYNrkTI2O7W6yuZouC6xbleySoxfXWxPZQMRPTaQfrcwxWfzs0IcDd7pd8 99ZJrpWVoCECboDMQHa1dPS64arJZGoDTwOWjIegU+ACbg7wnFpAOxsqTZOIKJk6x4dn H55Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dBDMlzPJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-60656-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60656-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCX7+usx+K8CPYVrDTJiCNPdy4E+caDYFFnIe6nhiDEBAnia4mcP2v3uABjb2EdVs0IhvY/kVFJnE7sKI4sL3WA2mV+d0A== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w12-20020a05620a444c00b00785d4a9d9a6si93089qkp.457.2024.02.11.00.31.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 00:31:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60656-ouuuleilei=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=@kernel.org header.s=k20201202 header.b=dBDMlzPJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-60656-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60656-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 24E981C208D6 for ; Sun, 11 Feb 2024 08:31:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 724F14CDEC; Sun, 11 Feb 2024 08:30:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dBDMlzPJ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BA1AA4C600; Sun, 11 Feb 2024 08:30:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707640239; cv=none; b=bsHlJm0XugTN9Iw+UBqMnI0sHkjvvbQlV2vfPQ89hi/W5ecA41KdCHPRdqq22yQL52u+Aa9TJS+eXtdFeGXprCUHX+a8gF9nCmvSsw5Nfg/STG9JkiuC2tF9i7spXhAJJKyLl2XaWI/h0OReMKdmneMCmLo8t1TbERwinIpOIjw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707640239; c=relaxed/simple; bh=P5YLYD6H2barwQbUJyuy1ic5ANsbxNgTsIlabr1argw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QxMIkW6Z08g5jXZcLLy+qi0fHMqP0qcZlz/JbRM+qsYfGzCpJdsRRCJSTYS+pLeeU0LWXDhVJ7txAfbU18TyD4hRRKFOUEufOfo7v6XtsObQqXZ3aGW8mjuPWBiGNQFJ49LeKcwS5M9a78/o2beNag7Y7uw8JGKSq9QfvD9V7Tk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dBDMlzPJ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 082B5C43390; Sun, 11 Feb 2024 08:30:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707640239; bh=P5YLYD6H2barwQbUJyuy1ic5ANsbxNgTsIlabr1argw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dBDMlzPJR/r2SJfn/2zj0UVSerbZCfru09XO12kY0UEpIywVi5IEFrqZFUtXLtLyj AqchY12D030mG4uQmMBKfnMEr7CAmkX7RyWhq+lyvX+C4BdEDKNOJX3nvlSDQndWcV hYBAgsBy4oMrTs91I6J5ehwJIsRoXsAmTWximuqA02VDFZqiaq21BOowvRLbPvVx2f jKKtpcuGgwjciZZ4V1oKDYO4Vk4oaGfSA3SDptgLzfvZ/2/3kprL3Ons46D7HfDIhL WzPvy3t6WPqeK245Da6ksmrc9wQd9ad7W+Nbi8WWnipBqO98QyptnNv4uXfWKdLu1B P1JK64R8YDupA== From: Jisheng Zhang To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Andre Przywara Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/2] dt-bindings: arm: sunxi: Add Sipeed Longan Module 3H and Longan Pi 3H Date: Sun, 11 Feb 2024 16:17:38 +0800 Message-ID: <20240211081739.395-2-jszhang@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240211081739.395-1-jszhang@kernel.org> References: <20240211081739.395-1-jszhang@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790590601245264125 X-GMAIL-MSGID: 1790590601245264125 Add name & compatible for the Sipeed Longan Module 3H and Longan PI 3H board. Signed-off-by: Jisheng Zhang Reviewed-by: Andre Przywara Acked-by: Conor Dooley --- Documentation/devicetree/bindings/arm/sunxi.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b/Documentation/devicetree/bindings/arm/sunxi.yaml index a9d8e85565b8..a97d44ba10ac 100644 --- a/Documentation/devicetree/bindings/arm/sunxi.yaml +++ b/Documentation/devicetree/bindings/arm/sunxi.yaml @@ -835,6 +835,12 @@ properties: - const: sinlinx,sina33 - const: allwinner,sun8i-a33 + - description: Sipeed Longan Pi 3H board for the Sipeed Longan Module 3H + items: + - const: sipeed,longan-pi-3h + - const: sipeed,longan-module-3h + - const: allwinner,sun50i-h618 + - description: SourceParts PopStick v1.1 items: - const: sourceparts,popstick-v1.1 From patchwork Sun Feb 11 08:17:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 199383 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp1830164dyd; Sun, 11 Feb 2024 00:31:26 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXPh50gKQcSSg5FBHOovIBaAhs2Lg6ZGmcmnQfB4Khw5j+5PWDxmhUpABD+t3j5mMI8RgexhiJMwsvMvvanc94fpyBzrw== X-Google-Smtp-Source: AGHT+IFnyI/Mvi+upqY21QBkHHSRmvpoVbmsbu9AiMOCDH7Y0W6VQKZlooeZ+noxTRKB5xf40MtO X-Received: by 2002:aa7:989a:0:b0:6e0:6e9b:2866 with SMTP id r26-20020aa7989a000000b006e06e9b2866mr3937605pfl.12.1707640286213; Sun, 11 Feb 2024 00:31:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707640286; cv=pass; d=google.com; s=arc-20160816; b=Gcp1Liqio+nYPrORQIvGWuV1oG15ssBDpOcK9jG8m6akZm5F9BSR8VnnxUTu34TtaR Cw6qEYmYCTMmFUCKZTk2FJHWfgf/nP7ZHKXyCL2iu0DBec1eY4ThPHMnLiuHTo0nE5Bo bYRfXNuSNj2G+SaFgXKBsgGqEjNRgJym6qXO+VnEczSaLxzcLd91YhunWWB+ytOko0dD KsPd53RyhZrBocMg2yXKHlSYo4SMab8Pkbdy8IyQ+jntS9gCDHz+p6le9QR7zSs09ol3 ++N/M4R4k3RHyjQOog7psl2ksYyZ2vdwFrJXT1rzNAGZrj+0MyPb5O/Pcl/DaKnmU05n rcEg== 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=NGTapQK8gz3tIqYwmU5R79tDc75Wnx5hQQ5/GuF8oA8=; fh=xdCgE0jKZJBUVBiA2OAuPAc2U5qk1/bGEVGYyfXTwPE=; b=iwtA7XfLM85SWG6FIzclDE3hOwg2vQRHpl0Ce62QSqnHc9FZFImxdn5pZxMt+kAkWF OrOY5W0gmbg4dCbfrhmAITkk+rfNSBu6nklQHinxZW/8LGsKI+konhLhb4bCteW9BKOP 3K6rldzD9u40t9PAIs1zJr9mthcCGcZAJO1LyOJMqWDGpZLJfln90xGmM9zcmainyusk IZuZgOlUAjO5daZFUfQ3ucwBVowUDBH3TzJ0sUp/bI8uTiqm5+APZE7N9mFdGuqtIpvW ExbBhamP9Y4jfzLCMuRMW1LhMxHXTnTH1iXem9hFMIoIhhH3gtf6F86FRJWWNVdvwhKf FQ9Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iy3X3sVN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-60657-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60657-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCUs563S4qW68MmYaAFpoch68y7qCgpm6J/OLU14zZM2pgM394aa0aBcrDN2Rpo1Cgo0h9rh6UDPbalVlIxBE6MtrsO5Ow== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id jo36-20020a056a0090a400b006e081c9be0fsi3253388pfb.392.2024.02.11.00.31.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 00:31:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60657-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iy3X3sVN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-60657-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60657-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A1660B22C55 for ; Sun, 11 Feb 2024 08:31:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A70444D13B; Sun, 11 Feb 2024 08:30:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iy3X3sVN" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5811A4CDEB; Sun, 11 Feb 2024 08:30:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707640242; cv=none; b=JyhsAERkUsTdMwDr1SqwafE/CuwQ8iTw50D3XaJGgOeHt9JhQZwOZKgORNb7z9lHlKgdrte5MZA2k6F4rKcRbJtv4WeCJocPweVnFnhWPgG/2Q/qdAzqvqGew9+Kt2FdDuMEiX8tfyTTozpGdyteXolreMMjGwZ40dLKTc7N8Vg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707640242; c=relaxed/simple; bh=hlTXI6UMycx+TmqfADYS2mcyoWnWOeTxWDUhNcbZ2Lc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NngDtV5WXF4Z8kRxX0i9VZe88cWhyk6q4NxZGEHouGTThAo7PTbyxTBHT2ebRy6aq0PKuRll4qAF2RtUN1LzJGswLFKj5dULpFgYQceR2YnMt9FuBnru8+0g3+6fZDtDIO7OQoLJaHXWmmXlmmkeW1bCp1BSSGB1PZM7DTZVsp8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iy3X3sVN; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AED75C433C7; Sun, 11 Feb 2024 08:30:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707640241; bh=hlTXI6UMycx+TmqfADYS2mcyoWnWOeTxWDUhNcbZ2Lc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iy3X3sVNKk801bGIoz3l2BA6iHEWjb4xDKo26QHWe5a90yoV1XpdBGvOmyy9KaRse AKJJ7/Ruv0SaB9bxNAJcejGwJ5xvD8duOPopzP7ixW80lBMVIHmZW/HXQnsOmpw6PX OFWbRpMRvTjijmiJhZmvWoNj2CZOVrhFkueiJoHJam77m1PDMGSllT3CfZMK0yM/d6 TqiLeZfZxLyBvapyMr2nvYHKv0jBVWGkyq9Ab/F+E7oKjyPqYYZhwc4Bsal/JfSWLB fiCwe5oGV30oHFNjWVyzPhdY/N1R44AKQ1IUnHud3N4gsH0Jxgeks1zjZrFIdsBJEA SjL6VpWwqOUEQ== From: Jisheng Zhang To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Andre Przywara Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/2] arm64: dts: allwinner: h616: Add Sipeed Longan SoM 3H and Pi 3H board support Date: Sun, 11 Feb 2024 16:17:39 +0800 Message-ID: <20240211081739.395-3-jszhang@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240211081739.395-1-jszhang@kernel.org> References: <20240211081739.395-1-jszhang@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790590620295040995 X-GMAIL-MSGID: 1790590620295040995 The Sipeed Longan SoM 3H is a system on module based on the Allwinner H618 SoC. The SoM features: - Four ARM Cortex-A53 cores, Mali-G31 MP2 GPU - 2/4 GiB LPDDR4 DRAM SoMs - AXP313a PMIC - eMMC The Sipeed Longan PI 3H is a development board based on the above SoM. The board features: - Longan SoM 3H - Raspberry-Pi-1 compatible GPIO header - 2 USB 2.0 host port - 1 USB 2.0 type C port (power supply + OTG) - MicroSD slot - 1Gbps Ethernet port (via RTL8211 PHY) - HDMI port - WiFi/BT chip Add the devicetree file describing the currently supported features, namely PMIC, LEDs, UART, SD card, eMMC, USB and Ethernet. Signed-off-by: Jisheng Zhang Reviewed-by: Andre Przywara Reviewed-by: Jernej Skrabec --- arch/arm64/boot/dts/allwinner/Makefile | 1 + .../sun50i-h618-longan-module-3h.dtsi | 75 +++++++++ .../dts/allwinner/sun50i-h618-longanpi-3h.dts | 144 ++++++++++++++++++ 3 files changed, 220 insertions(+) create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h618-longan-module-3h.dtsi create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h618-longanpi-3h.dts diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile index 91d505b385de..4b9173a16efe 100644 --- a/arch/arm64/boot/dts/allwinner/Makefile +++ b/arch/arm64/boot/dts/allwinner/Makefile @@ -42,5 +42,6 @@ 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-x96-mate.dtb +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-longanpi-3h.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-orangepi-zero3.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-transpeed-8k618-t.dtb diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h618-longan-module-3h.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h618-longan-module-3h.dtsi new file mode 100644 index 000000000000..8c1263a3939e --- /dev/null +++ b/arch/arm64/boot/dts/allwinner/sun50i-h618-longan-module-3h.dtsi @@ -0,0 +1,75 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) Jisheng Zhang + */ + +#include "sun50i-h616.dtsi" + +&mmc2 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc2_pins>; + vmmc-supply = <®_dldo1>; + vqmmc-supply = <®_aldo1>; + bus-width = <8>; + non-removable; + cap-mmc-hw-reset; + mmc-ddr-1_8v; + mmc-hs200-1_8v; + status = "okay"; +}; + +&r_i2c { + status = "okay"; + + axp313: pmic@36 { + compatible = "x-powers,axp313a"; + reg = <0x36>; + #interrupt-cells = <1>; + interrupt-controller; + + regulators { + reg_aldo1: aldo1 { + regulator-always-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "vcc-1v8-pll"; + }; + + reg_dldo1: dldo1 { + regulator-always-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc-3v3-io"; + }; + + 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 = <1100000>; + regulator-max-microvolt = <1100000>; + regulator-name = "vdd-dram"; + }; + }; + }; +}; + +&pio { + vcc-pc-supply = <®_dldo1>; + vcc-pf-supply = <®_dldo1>; + vcc-pg-supply = <®_aldo1>; + vcc-ph-supply = <®_dldo1>; + vcc-pi-supply = <®_dldo1>; +}; diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h618-longanpi-3h.dts b/arch/arm64/boot/dts/allwinner/sun50i-h618-longanpi-3h.dts new file mode 100644 index 000000000000..18b29c6b867f --- /dev/null +++ b/arch/arm64/boot/dts/allwinner/sun50i-h618-longanpi-3h.dts @@ -0,0 +1,144 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) Jisheng Zhang + */ + +/dts-v1/; + +#include "sun50i-h618-longan-module-3h.dtsi" + +#include +#include +#include + +/ { + model = "Sipeed Longan Pi 3H"; + compatible = "sipeed,longan-pi-3h", "sipeed,longan-module-3h", "allwinner,sun50i-h618"; + + aliases { + ethernet0 = &emac0; + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + leds { + compatible = "gpio-leds"; + + led-0 { + color = ; + function = LED_FUNCTION_INDICATOR; + function-enumerator = <0>; + gpios = <&pio 6 2 GPIO_ACTIVE_LOW>; /* PG2 */ + }; + + led-1 { + color = ; + function = LED_FUNCTION_INDICATOR; + function-enumerator = <1>; + gpios = <&pio 6 4 GPIO_ACTIVE_LOW>; /* PG4 */ + }; + }; + + reg_vcc5v: regulator-vcc5v { + /* board wide 5V supply directly from the USB-C socket */ + compatible = "regulator-fixed"; + regulator-name = "vcc-5v"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; + + reg_vcc3v3: regulator-vcc3v3 { + compatible = "regulator-fixed"; + regulator-name = "vcc-3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + vin-supply = <®_vcc5v>; + }; +}; + +&axp313 { + vin1-supply = <®_vcc5v>; + vin2-supply = <®_vcc5v>; + vin3-supply = <®_vcc5v>; +}; + +&ehci1 { + status = "okay"; +}; + +&ohci1 { + status = "okay"; +}; + +&ehci2 { + status = "okay"; +}; + +&ohci2 { + status = "okay"; +}; + +/* WiFi & BT combo module is connected to this Host */ +&ehci3 { + status = "okay"; +}; + +&ohci3 { + status = "okay"; +}; + +&emac0 { + pinctrl-names = "default"; + pinctrl-0 = <&ext_rgmii_pins>; + phy-mode = "rgmii"; + phy-handle = <&ext_rgmii_phy>; + allwinner,rx-delay-ps = <3100>; + allwinner,tx-delay-ps = <700>; + phy-supply = <®_vcc3v3>; + status = "okay"; +}; + +&mdio0 { + ext_rgmii_phy: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + }; +}; + +&mmc0 { + bus-width = <4>; + cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 */ + vmmc-supply = <®_vcc3v3>; + status = "okay"; +}; + +&uart0 { + status = "okay"; +}; + +&usbotg { + /* + * PHY0 pins are connected to a USB-C socket, but a role switch + * is not implemented: both CC pins are pulled to GND. + * The VBUS pins power the device, so a fixed peripheral mode + * is the best choice. + * The board can be powered via GPIOs, in this case port0 *can* + * act as a host (with a cable/adapter ignoring CC), as VBUS is + * then provided by the GPIOs. Any user of this setup would + * need to adjust the DT accordingly: dr_mode set to "host", + * enabling OHCI0 and EHCI0. + */ + dr_mode = "peripheral"; + status = "okay"; +}; + +&usbphy { + usb1_vbus-supply = <®_vcc5v>; + usb2_vbus-supply = <®_vcc5v>; + status = "okay"; +};