From patchwork Fri Jun 23 08:12:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Tanure X-Patchwork-Id: 13290127 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1E0CEC001B0 for ; Fri, 23 Jun 2023 08:13:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=yaXHKgS9jXvXi1ywkRwaYdfm8Ds08ig8M33z1zkc0LQ=; b=cOFJRuSFGnBykS SMyDCY+z3Xb7V0tR1RUn7V1qblCoqMMkLj5CRwq2QfVmi3olb3Gy4FyFYaQX4TrYiw5FAYuzkDwbT YLdXCf4LXg0skqjXG1wATgztgbbEsMsxmNsxtriz1CrCL9SEA0MYVHg/8gba6ZYGMhL3n8SxvLgMe ob1AiVjNEFEaUs4Uk3XIftUQPBnXMsGCC9us/U0Rlyt6MK/dnmHw5Deez64eZM+6SBxi6/TZzB3gf X4Im8Y13Z8hYAswI+0frCq82wqwqxi8prLopsyqHdXWRPH+igvEdpXkGQPX6+43p/qw/GXNiZnCAy zK9mGuEamSO5gV/3xsGA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qCbuX-002t5h-0z; Fri, 23 Jun 2023 08:12:53 +0000 Received: from mail-lf1-f50.google.com ([209.85.167.50]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qCbuT-002t2V-0n; Fri, 23 Jun 2023 08:12:50 +0000 Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-4f85966b0f2so348111e87.3; Fri, 23 Jun 2023 01:12:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687507966; x=1690099966; 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=x/BXWd+aXbwkUNKUI7mfSjhHzxj8tSAcMR0CS9iLOvM=; b=jhCVkvZDjVsV/2bv1+AlbmpzJbXXwM25vOE0sNUVa/THSHsKf1kjCKWaNHjDJ3mv5J +HfjC6Aj6FTCfOM8cMW6L5Iz70N3Y2hQXthqHW8ElJniiMBksSrYzqjzVe2nF8dlBqpt ksjOib6QgPb2JZEoV06A+eH0rCw6Eq3FiheA3yN0K2Ve+SDe3BlEc6mpTe5MCYwdj95B L4428qNZ4d7xqSSjpqueMsQpKHDFzDNKuuNgAHsPG3dFMclk6E+rjhd6vS5DZAHcxsLF CEveMaIUwpBdgp1xqkFXmc8NbADG/+XgCQy4erSM7MaDqqOdwxXVp3kpIFpRqGTFYyF1 SMDA== X-Gm-Message-State: AC+VfDxM6Jl1ivP4umE5CHdlbdjLxaWsof0MK3meDjbNSu712yFrh57W Nuq9jjoBTEP7bi2hkyVAqu0= X-Google-Smtp-Source: ACHHUZ4ck5IbQ01mdf/Ix/HFvSnfENX3i8B4yUMTbBumPBiunLk6yqstbrgqlT6rHg2SlJAMH3vWJw== X-Received: by 2002:a19:7708:0:b0:4f8:770f:1b0b with SMTP id s8-20020a197708000000b004f8770f1b0bmr7889691lfc.33.1687507965493; Fri, 23 Jun 2023 01:12:45 -0700 (PDT) Received: from ryzen.lan (cpc87451-finc19-2-0-cust61.4-2.cable.virginm.net. [82.11.51.62]) by smtp.gmail.com with ESMTPSA id l21-20020a7bc455000000b003f9b29ba838sm1594141wmi.35.2023.06.23.01.12.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jun 2023 01:12:45 -0700 (PDT) From: Lucas Tanure To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Jerome Brunet , Kevin Hilman Cc: Nick , Artem , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Lucas Tanure , Conor Dooley Subject: [PATCH v5 1/4] dt-bindings: arm: amlogic: add Amlogic A311D2 bindings Date: Fri, 23 Jun 2023 09:12:39 +0100 Message-ID: <20230623081242.109131-2-tanure@linux.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230623081242.109131-1-tanure@linux.com> References: <20230623081242.109131-1-tanure@linux.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230623_011249_284214_549A4D06 X-CRM114-Status: UNSURE ( 7.16 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Add bindings for the Khadas Vim4 board, using A311D2 soc, a Meson T7 family chip. Signed-off-by: Lucas Tanure Acked-by: Conor Dooley --- Documentation/devicetree/bindings/arm/amlogic.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/amlogic.yaml b/Documentation/devicetree/bindings/arm/amlogic.yaml index 274ee0890312..8dbd65170c50 100644 --- a/Documentation/devicetree/bindings/arm/amlogic.yaml +++ b/Documentation/devicetree/bindings/arm/amlogic.yaml @@ -211,6 +211,13 @@ properties: - amlogic,aq222 - const: amlogic,s4 + - description: Boards with the Amlogic Meson t7 A311D2 SoC + items: + - enum: + - khadas,vim4 + - const: amlogic,a311d2 + - const: amlogic,t7 + additionalProperties: true ... From patchwork Fri Jun 23 08:12:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Tanure X-Patchwork-Id: 13290128 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CDDF8EB64DD for ; Fri, 23 Jun 2023 08:13:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=soJsZepj7qffpjFiXU5iFQT0UUgx5BTUpl12zUXrm0A=; b=cfXKcNeE8RBMMs +YgIaujGcR+CUMYuUKxvTdDt8fqboOylffh3BDEN4q9KDyQT2GxndPbqNPPumQFTI/buxeu0kVCSK WGv/MMNG2Fg9unWBTGgG6FmyOVHm3oY6Bv0CAGl+1HpPI4bNR5j8yhOW+dz2FSPtRI8UXzxgD2win UMBxNiGZsRig1w1j/e4nth4j07S1MeA5BRN56r55xFypnHRYL0cEZR2Nt1C6SB+0naAa2UrqnLeDv CmV2gpIgT9+/y/pllXqHogyNzTxbQzKdML3bCXe/4n2gAod99HUQEC+14c2QZ+mrgm0IA2cGjkUDu ePu0EVleKScLa+YQrZKw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qCbuY-002t6b-0v; Fri, 23 Jun 2023 08:12:54 +0000 Received: from mail-lf1-f41.google.com ([209.85.167.41]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qCbuU-002t2X-05; Fri, 23 Jun 2023 08:12:51 +0000 Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-4f954d78bf8so367854e87.3; Fri, 23 Jun 2023 01:12:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687507966; x=1690099966; 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=hGvZYo2Xe8nWteW+0mB4VjnmUSaAF1CaOPdHGsKnyTU=; b=RKzYe0fVTFfsBW2DMWDejrBo2AuBDDk+/RBnKVT333ceu2laEQw2FZLJfb/+lCcXUs kGPXnnMwo+TRjTDHGsrndSoHnxtNhcnaf38zlJRv7ciED++ema4XK7wv/DvVz3Bk2Yxs YCEzm5HiEJRJ9R3CHGjCtFI9QWpycAC81B2sTEejfYNAj4aYj5bTrwzcuzKMxr/LPWEt uq1NT7YuIMqWVanMgcVXn6NO+vrEUhsQWvv+jqiGbxTsRlJNzCCq2rL76mXSELSjqHXp WOq5eP/mHNYfz+qV4zATNDA9mI7TI9fPZ+uR1bhM5Xy7SpTC+cFDu5bdz4pTEtmm3bIx 7acQ== X-Gm-Message-State: AC+VfDx6gjYLsImWjwTYFAVtKO4oxPH4KBdgqjSWfY3Q+97fUky17/5w btTb53Y80pH0kLNwD3kH0JU= X-Google-Smtp-Source: ACHHUZ7SXZVXvO3FSaVk617WP+fiSNU/3M9rGM3KTy+vnSTVvZiAFrnSd7gmCEczmqQ/5m9A4TcPfg== X-Received: by 2002:a19:8c49:0:b0:4f8:6e6e:4100 with SMTP id i9-20020a198c49000000b004f86e6e4100mr9597994lfj.52.1687507966306; Fri, 23 Jun 2023 01:12:46 -0700 (PDT) Received: from ryzen.lan (cpc87451-finc19-2-0-cust61.4-2.cable.virginm.net. [82.11.51.62]) by smtp.gmail.com with ESMTPSA id l21-20020a7bc455000000b003f9b29ba838sm1594141wmi.35.2023.06.23.01.12.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jun 2023 01:12:45 -0700 (PDT) From: Lucas Tanure To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Jerome Brunet , Kevin Hilman Cc: Nick , Artem , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Lucas Tanure Subject: [PATCH v5 2/4] dt-bindings: serial: amlogic,meson-uart: Add compatible string for T7 Date: Fri, 23 Jun 2023 09:12:40 +0100 Message-ID: <20230623081242.109131-3-tanure@linux.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230623081242.109131-1-tanure@linux.com> References: <20230623081242.109131-1-tanure@linux.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230623_011250_062405_0C957B97 X-CRM114-Status: UNSURE ( 8.02 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Amlogic T7 SoCs uses the same UART controller as S4 SoCs and G12A. There is no need for an extra compatible line in the driver, but add T7 compatible line for documentation. Signed-off-by: Lucas Tanure Acked-by: Krzysztof Kozlowski --- .../devicetree/bindings/serial/amlogic,meson-uart.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml b/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml index 01ec45b3b406..ad970c9ed1c7 100644 --- a/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml +++ b/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml @@ -50,6 +50,10 @@ properties: items: - const: amlogic,meson-g12a-uart - const: amlogic,meson-gx-uart + - description: UART controller on T7 compatible SoCs + items: + - const: amlogic,meson-t7-uart + - const: amlogic,meson-s4-uart reg: maxItems: 1 From patchwork Fri Jun 23 08:12:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Tanure X-Patchwork-Id: 13290129 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7A48FEB64DD for ; Fri, 23 Jun 2023 08:13:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=r3L7tz/go3zeNY55DVZfMFE0hNcW/yurnKJPEL7Mhz0=; b=HZkAo/Tx/lenBM i3AqbK2cTb7xaZxrueVErz7W9HqQ5e9E18DEp+VMNLTMziZwvhgp2e+9ew9MPtSEf5SYr7h8s7cLG P7RY/wPGUkZq7FAobQSAJ+kLuZmRI8/ZJfVj8EIEnmyhdO+VZzkZWp3PxTmHpTvyPTy39DETesoFj by5+9un14HJvMcgzReALS9OBch5DnfH3HURspwbhHMGT3Wzdj4RM5j8ppgXR/pdQ3Ig9NltV9LSGa h2/LGI9tI6malS7oWQ1fI3T4azc1Oagh6/ikeTZ3+mIGXP1tq7Ql6gc52Fp5o1XPpYkq2WNOxC7j0 /62rqOQAcwFmn9zjf/QQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qCbuW-002t4r-1G; Fri, 23 Jun 2023 08:12:52 +0000 Received: from mail-lf1-f50.google.com ([209.85.167.50]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qCbuT-002t2d-0o; Fri, 23 Jun 2023 08:12:50 +0000 Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-4f95bf5c493so331175e87.3; Fri, 23 Jun 2023 01:12:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687507967; x=1690099967; 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=upg0hHPusTHNHHtpH4yxVwhsX5Py4GST1osQ8SxWcwo=; b=Qq0eo0bm2zbtJiUJaFBRtW4YULw/LXk8inXwVznJUcrENSJ51EbAd2avr+xlAK0Wia Sz9UMvHq68A7ZpbGQPk8cIRYUXYjBGrjvyNbLhBRtRALT1cADv2oj6gdWPeTgsJ3hIqt 8fkJgJ25PfPpmcGmFx+hkGidxllbsgqPUe+ps6pnuUPImp2Dhf7UW662F8MbcV4Ggibd E429vSr9y/0/LiTgfTXXe5gicmxPuHxP/bxEBP/vla/mr6JSvF0AdJoFF6xfvKlIuzr/ ay/7HMZU00OyAOa3rNtdPWVfdpAADSxnGxahmlQUGohP7d/ZDHm34CvD+U6fauxWISOT RxLA== X-Gm-Message-State: AC+VfDwxGIqb2n0/NP9zUpqlqytQtaqMzZK/qcojxAKNA9q38xDa/As6 UaoJRlcdCTj2kQxieUqTOJY= X-Google-Smtp-Source: ACHHUZ5e7jJXR6du4xziaPnDR4mPvThK3pjT/SA1z9xUsBWSRcruANHFzNte7v3kqfjF7i3BLtOuwQ== X-Received: by 2002:a19:7912:0:b0:4f4:dfd4:33e4 with SMTP id u18-20020a197912000000b004f4dfd433e4mr11028306lfc.51.1687507967132; Fri, 23 Jun 2023 01:12:47 -0700 (PDT) Received: from ryzen.lan (cpc87451-finc19-2-0-cust61.4-2.cable.virginm.net. [82.11.51.62]) by smtp.gmail.com with ESMTPSA id l21-20020a7bc455000000b003f9b29ba838sm1594141wmi.35.2023.06.23.01.12.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jun 2023 01:12:46 -0700 (PDT) From: Lucas Tanure To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Jerome Brunet , Kevin Hilman Cc: Nick , Artem , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Lucas Tanure Subject: [PATCH v5 3/4] tty: serial: meson: Add a earlycon for the T7 SoC Date: Fri, 23 Jun 2023 09:12:41 +0100 Message-ID: <20230623081242.109131-4-tanure@linux.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230623081242.109131-1-tanure@linux.com> References: <20230623081242.109131-1-tanure@linux.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230623_011249_284368_67FE40B7 X-CRM114-Status: UNSURE ( 8.73 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org The new Amlogic Meson T7 SoC does not have a always-on uart, so add OF_EARLYCON_DECLARE for it. Signed-off-by: Lucas Tanure Acked-by: Neil Armstrong --- drivers/tty/serial/meson_uart.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/tty/serial/meson_uart.c b/drivers/tty/serial/meson_uart.c index 2501db5a7aaf..84d33903038a 100644 --- a/drivers/tty/serial/meson_uart.c +++ b/drivers/tty/serial/meson_uart.c @@ -649,6 +649,8 @@ meson_serial_early_console_setup(struct earlycon_device *device, const char *opt OF_EARLYCON_DECLARE(meson, "amlogic,meson-ao-uart", meson_serial_early_console_setup); +OF_EARLYCON_DECLARE(meson, "amlogic,meson-t7-uart", + meson_serial_early_console_setup); #define MESON_SERIAL_CONSOLE (&meson_serial_console) #else From patchwork Fri Jun 23 08:12:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Tanure X-Patchwork-Id: 13290130 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4A99BEB64D7 for ; Fri, 23 Jun 2023 08:13:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hkfuhf0gh0qRKAKPb5y58qwYoGtfq9OuUNW8etgjycM=; b=eFC34meDv4lrty f432wW8B7xXhIe+AIzaTLb/f7RLyGw/XWUaGRhyqHuCUyiUc/lQCo9blt9QoS33tJda7KMzdSNGEl y6IpO5grk3M24aplRByFSSKGPzcwps5ullwVHdwRBXggCHjhP0mjrPChiHVly85coLhiqJ8JqT347 +FDjl+smxwdBY3WewkF2PKkqik90PjLjFW3fkN3AfYlhTHUpBTX/3cC7RbnVuN4OZT12ZRSq2FetF 7O2i9xGmkXKxBSlC538tZX6PylTiJBFm8u7fMn511SsLeVd14H4Bghv/686IJEB8JZv+8smpRCoJe tA6tbu5ipTQyOYZ0m42g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qCbus-002tHC-3B; Fri, 23 Jun 2023 08:13:14 +0000 Received: from mail-lj1-f181.google.com ([209.85.208.181]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qCbuV-002t2t-20; Fri, 23 Jun 2023 08:12:53 +0000 Received: by mail-lj1-f181.google.com with SMTP id 38308e7fff4ca-2b45e6e1b73so6178261fa.0; Fri, 23 Jun 2023 01:12:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687507968; x=1690099968; 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=97BZTwL+XGk6txP1+XwORBw5PdtQcH3A6RHbZTtRDIw=; b=E1tZKPhLdKRm2mW/58Po01J5hF1gtXS1eHSQSKNgzjXef1PhVh8kK9B7nARYmWSk9i ufjwzUw1+tE/kslZ9L4zEZPh/yaKogRjwKxXrqMyqGvudAr0j/7YP9xYsZJN31IB/Zyx jni5bZ74T4bn2nSZYFLhWQo/pRsbqMuSJ4wr6kpLvAGoPGjomeoyBOmyFhcxgWgv5UvK wxVEH5w/aKX0ydhYhIrGlFGe0h0D8XMbvt8FW7tHZEGHYX2CgekEkYJWj3mwJ7yKkqum uqQhgLV+nCcXoazUq9SQjWr8+oK4GJr7uK1wy4Leoauez1uBRMacOVeEIX23J9t2HXeX mh4g== X-Gm-Message-State: AC+VfDyTFHeoWse6Ho53iAilu+hbDGQO5CQAYnHzpVL8qVlNvdaAHwQV NF3x2lti30tKgBJQIb2+JKQ= X-Google-Smtp-Source: ACHHUZ5sGb5iPEk9nldmuWxdkt4tP7qCrccPRjBqMVhZl9UKXwW+kPXxdqFbAKfaPwPIcrkeclyAlw== X-Received: by 2002:a2e:9053:0:b0:2b5:8f85:bf71 with SMTP id n19-20020a2e9053000000b002b58f85bf71mr3402061ljg.18.1687507968155; Fri, 23 Jun 2023 01:12:48 -0700 (PDT) Received: from ryzen.lan (cpc87451-finc19-2-0-cust61.4-2.cable.virginm.net. [82.11.51.62]) by smtp.gmail.com with ESMTPSA id l21-20020a7bc455000000b003f9b29ba838sm1594141wmi.35.2023.06.23.01.12.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jun 2023 01:12:47 -0700 (PDT) From: Lucas Tanure To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Jerome Brunet , Kevin Hilman Cc: Nick , Artem , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Lucas Tanure Subject: [PATCH v5 4/4] arm64: dts: meson-t7-a311d2-khadas-vim4: add initial device-tree Date: Fri, 23 Jun 2023 09:12:42 +0100 Message-ID: <20230623081242.109131-5-tanure@linux.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230623081242.109131-1-tanure@linux.com> References: <20230623081242.109131-1-tanure@linux.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230623_011251_659551_D2AAAF79 X-CRM114-Status: GOOD ( 13.83 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org The Khadas VIM4 uses the Amlogic A311D2 SoC, based on the Amlogic T7 SoC family, on a board with the same form factor as the VIM3 models. - 8GB LPDDR4X 2016MHz - 32GB eMMC 5.1 storage - 32MB SPI flash - 10/100/1000 Base-T Ethernet - AP6275S Wireless (802.11 a/b/g/n/ac/ax, BT5.1) - HDMI 2.1 video - HDMI Input - 1x USB 2.0 + 1x USB 3.0 ports - 1x USB-C (power) with USB 2.0 OTG - 3x LED's (1x red, 1x blue, 1x white) - 3x buttons (power, function, reset) - M2 socket with PCIe, USB, ADC & I2C - 40pin GPIO Header - 1x micro SD card slot Signed-off-by: Lucas Tanure --- arch/arm64/boot/dts/amlogic/Makefile | 1 + .../amlogic/meson-t7-a311d2-khadas-vim4.dts | 52 ++++++ arch/arm64/boot/dts/amlogic/meson-t7.dtsi | 158 ++++++++++++++++++ 3 files changed, 211 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-t7-a311d2-khadas-vim4.dts create mode 100644 arch/arm64/boot/dts/amlogic/meson-t7.dtsi diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile index cd1c5b04890a..1c5846bd1ca0 100644 --- a/arch/arm64/boot/dts/amlogic/Makefile +++ b/arch/arm64/boot/dts/amlogic/Makefile @@ -74,3 +74,4 @@ dtb-$(CONFIG_ARCH_MESON) += meson-sm1-odroid-hc4.dtb dtb-$(CONFIG_ARCH_MESON) += meson-sm1-sei610.dtb dtb-$(CONFIG_ARCH_MESON) += meson-sm1-x96-air-gbit.dtb dtb-$(CONFIG_ARCH_MESON) += meson-sm1-x96-air.dtb +dtb-$(CONFIG_ARCH_MESON) += meson-t7-a311d2-khadas-vim4.dtb diff --git a/arch/arm64/boot/dts/amlogic/meson-t7-a311d2-khadas-vim4.dts b/arch/arm64/boot/dts/amlogic/meson-t7-a311d2-khadas-vim4.dts new file mode 100644 index 000000000000..04cc8b0dfd8c --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-t7-a311d2-khadas-vim4.dts @@ -0,0 +1,52 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2022 Wesion, Inc. All rights reserved. + */ + +/dts-v1/; + +#include "meson-t7.dtsi" + +/ { + model = "Khadas vim4"; + compatible = "khadas,vim4", "amlogic,a311d2", "amlogic,t7"; + + aliases { + serial0 = &uart_A; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x0 0x2 0x0>; /* 8 GB */ + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* 3 MiB reserved for ARM Trusted Firmware (BL31) */ + secmon_reserved: secmon@5000000 { + reg = <0x0 0x05000000 0x0 0x300000>; + no-map; + }; + + /* 32 MiB reserved for ARM Trusted Firmware (BL32) */ + secmon_reserved_bl32: secmon@5300000 { + reg = <0x0 0x05300000 0x0 0x2000000>; + no-map; + }; + }; + + xtal: xtal-clk { + compatible = "fixed-clock"; + clock-frequency = <24000000>; + clock-output-names = "xtal"; + #clock-cells = <0>; + }; + +}; + +&uart_A { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/amlogic/meson-t7.dtsi b/arch/arm64/boot/dts/amlogic/meson-t7.dtsi new file mode 100644 index 000000000000..9b8c33708ecd --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-t7.dtsi @@ -0,0 +1,158 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 Amlogic, Inc. All rights reserved. + */ + +#include + +/ { + interrupt-parent = <&gic>; + #address-cells = <2>; + #size-cells = <2>; + + cpus { + #address-cells = <0x2>; + #size-cells = <0x0>; + + cpu-map { + cluster0 { + core0 { + cpu = <&cpu100>; + }; + core1 { + cpu = <&cpu101>; + }; + core2 { + cpu = <&cpu102>; + }; + core3 { + cpu = <&cpu103>; + }; + }; + + cluster1 { + core0 { + cpu = <&cpu0>; + }; + core1 { + cpu = <&cpu1>; + }; + core2 { + cpu = <&cpu2>; + }; + core3 { + cpu = <&cpu3>; + }; + }; + }; + + cpu100: cpu@100 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x0 0x100>; + enable-method = "psci"; + }; + + cpu101: cpu@101{ + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x0 0x101>; + enable-method = "psci"; + }; + + cpu102: cpu@102 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x0 0x102>; + enable-method = "psci"; + }; + + cpu103: cpu@103 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x0 0x103>; + enable-method = "psci"; + }; + + cpu0: cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a73"; + reg = <0x0 0x0>; + enable-method = "psci"; + }; + + cpu1: cpu@1 { + device_type = "cpu"; + compatible = "arm,cortex-a73"; + reg = <0x0 0x1>; + enable-method = "psci"; + }; + + cpu2: cpu@2 { + device_type = "cpu"; + compatible = "arm,cortex-a73"; + reg = <0x0 0x2>; + enable-method = "psci"; + }; + + cpu3: cpu@3 { + device_type = "cpu"; + compatible = "arm,cortex-a73"; + reg = <0x0 0x3>; + enable-method = "psci"; + }; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = , + , + , + ; + }; + + psci { + compatible = "arm,psci-1.0"; + method = "smc"; + }; + + sm: secure-monitor { + compatible = "amlogic,meson-gxbb-sm"; + }; + + soc { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + gic: interrupt-controller@fff01000 { + compatible = "arm,gic-400"; + #interrupt-cells = <3>; + #address-cells = <0>; + interrupt-controller; + reg = <0x0 0xfff01000 0 0x1000>, + <0x0 0xfff02000 0 0x0100>; + interrupts = ; + }; + + apb4: bus@fe000000 { + compatible = "simple-bus"; + reg = <0x0 0xfe000000 0x0 0x480000>; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x0 0x0 0x0 0xfe000000 0x0 0x480000>; + + uart_A: serial@78000 { + compatible = "amlogic,meson-t7-uart", + "amlogic,meson-s4-uart"; + reg = <0x0 0x78000 0x0 0x18>; + interrupts = ; + status = "disabled"; + clocks = <&xtal>, <&xtal>, <&xtal>; + clock-names = "xtal", "pclk", "baud"; + }; + }; + + }; +};