Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10577155rwd; Thu, 22 Jun 2023 01:43:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ZPXa4FzsgA4KnDvQG5Fm73++iLbTZUEzP7/k507kw7W8G+1ZGTsY58SOvx07dExIdJn8a X-Received: by 2002:a05:6a20:12c7:b0:118:384f:89bc with SMTP id v7-20020a056a2012c700b00118384f89bcmr21875969pzg.27.1687423387395; Thu, 22 Jun 2023 01:43:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687423387; cv=none; d=google.com; s=arc-20160816; b=0H1p/cwLDCIatIRNh4Lc4lsi4LflAvK4MQLELsLI1tU33hSe7N9ovm6AJFPFnYwvW6 LAX7SIpR/LGGnwyEXHyABjUgVq3biHUi+MrZ7pZSMLVcdpY8jEXl+9z9Q4b+ImGZSCzx ED713nErAGNsQfrirFM41dQuCbkExz55WECDTkSL2m2zl0LKdfFE4naqMtNcXuVCn4H1 G7QSOD/qZSd/J5Feg+7tkVRTYQXY9Nnw71jQ9I7r2sBg2dr+oZ6DtbPtjvaSQH1Cy7P6 o0hB+JiHFEqoWOzYDr+2sYcmkbzr4NhhLcRgSmgl3LvesbgCX2s3a7BTPCksFYZUiG6N uuig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=N9YCzbE3BtCbYZxorE+VgLmJ94PqcGOmK4iEO6z1Lc4=; b=U1s6Tcxc7aMIZNzdwDXUo/yt7+E860bFrDKCZ9gTIzsilTIAweTRDPFBheKNLGUBRj PfOc4uNkeHVkWWOUWhhTCwZANCS1yrDp2HFEMc2IMWbnQPYysVHkAO+lLQeNnzFNO8QP B7U+i2qylTwipJ3Sx3vYYnIYTcmtTYgAsv3sFotgNsGngOqBip5JqlmI1YRDPxwReCad ZK95ui4SNTOCRF3bN4EaT9LzXTi/ejzXM87THzfxMYr6RrJ3q0akGq/+DEOgwj5wJNRq N3rvU0MHeQipjZ6N5Y/6L2fmEixgGEhZN9hQLqvp+d3SYMw98+9VIiZZYpclGV+zgRL1 FX9g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x1-20020a170902ec8100b001b55c029108si6725468plg.363.2023.06.22.01.42.53; Thu, 22 Jun 2023 01:43:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231189AbjFVIlf (ORCPT + 99 others); Thu, 22 Jun 2023 04:41:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230462AbjFVIlL (ORCPT ); Thu, 22 Jun 2023 04:41:11 -0400 Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4216A2705; Thu, 22 Jun 2023 01:40:50 -0700 (PDT) Received: by mail-lj1-f169.google.com with SMTP id 38308e7fff4ca-2b46b11051aso75837931fa.3; Thu, 22 Jun 2023 01:40:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687423248; x=1690015248; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=N9YCzbE3BtCbYZxorE+VgLmJ94PqcGOmK4iEO6z1Lc4=; b=U+XDv9j44Urv89V4dIndyN4gbXilizz/07MzUBu/Vaw921KGA5OWwW1Gbn3+shQRd4 UvIbjadU+thPrtWxOhZaTTakfwRWAZymW4O5bugArmi3BRW0Za4oi2TbQYAZjcKoxBSh ajcoFgwDyTWRHvwZ0wHl1aJn1zWqpEnJqBzOu5VOzyxU2oBqyAH+HTgy1ftOZ/S3z36e QRoseKv1xr8CNFo4XOqto2o3sJjELcln4lXyJ8AYwX6U7VBH7DoKS/SPdoN4RIytTPn/ 2rxPdUTwdnwzKAV4LwF0w0egBkBJg85x/3dyXmIbaILjuuO/6LEfQbR9H5Z0h/DUQanH zqEg== X-Gm-Message-State: AC+VfDysPoKhlWg5DcXe/5i/Nr+yFIGCz1Ka84Hokbe+2OPsWMLcwiih uUnzwbaeZ0Ci9y5CDS2U4cw= X-Received: by 2002:a2e:7a17:0:b0:2b5:1b80:2637 with SMTP id v23-20020a2e7a17000000b002b51b802637mr5498710ljc.25.1687423248013; Thu, 22 Jun 2023 01:40: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 v5-20020a05600c214500b003f7f87ba116sm15441277wml.19.2023.06.22.01.40.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 01:40: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 v4 0/3] Add Amlogic A311D2 and Khadas Vim4 Board Support Date: Thu, 22 Jun 2023 09:40:42 +0100 Message-ID: <20230622084045.519203-1-tanure@linux.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Khadas VIM4 uses the Amlogic A311D2 SoC, based on the Amlogic Meson T7 family. This chip is not the same as A311D used in Vim3 board. Work based on Khadas 5.4 branch: https://github.com/khadas/linux/tree/khadas-vims-5.4.y The current status is Vim4 board booting to emergency shell via uart. Board Features: - 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 Changes Since v3: - Fix issues with "amlogic,meson-t7-uart" documentation Changes Since v2: - Add "amlogic,meson-t7-uart" documentation Changes Since v1: - Drop the T7 clock driver as it is not needed for serial boot. It will later use the S4 clock driver as S4 and T7 seems to be similar chips. - Use "arm,gic-400" for interrupt controller to fix dtb_check - Remove CPU node properties not needed for serial boot - Move UART node to apb4 node - Drop T7 UART compatible line and use S4 uart - Use psci V1 instead of 0.2, it works, but I can't verify is correct as the datasheet I have doesn't contain that information. - Remove compatible from meson-t7.dtsi, move it to vim4 board dts - Add memory node with 8GB. Not sure about this one, works without, but doesn't detect 8GB - Use defines for GIC_CPU_MASK_SIMPLE, IRQ_TYPE_LEVEL_LOW, IRQ_TYPE_LEVEL_HIGH instead of hardcoded values Lucas Tanure (3): dt-bindings: arm: amlogic: add Amlogic A311D2 bindings dt-bindings: serial: amlogic,meson-uart: Add compatible string for T7 arm64: dts: meson-t7-a311d2-khadas-vim4: add initial device-tree .../devicetree/bindings/arm/amlogic.yaml | 7 + .../bindings/serial/amlogic,meson-uart.yaml | 6 + arch/arm64/boot/dts/amlogic/Makefile | 1 + .../amlogic/meson-t7-a311d2-khadas-vim4.dts | 52 ++++++ arch/arm64/boot/dts/amlogic/meson-t7.dtsi | 159 ++++++++++++++++++ 5 files changed, 225 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 -- 2.41.0