Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp25955720rwd; Mon, 3 Jul 2023 03:30:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlGld6hrkoCB3D0J8CWrJ2KO2L83fNa+vjJa6uo6Y1ZgTR/r/+2qK9kQUIdJvjwtFoSeh6FI X-Received: by 2002:a92:dc8d:0:b0:345:ab58:5afd with SMTP id c13-20020a92dc8d000000b00345ab585afdmr10588128iln.16.1688380249256; Mon, 03 Jul 2023 03:30:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688380249; cv=none; d=google.com; s=arc-20160816; b=vgbfNDgDyTHZ6/W+MoDrxuJudkYk4FcbtGC11fQ7hn6mwhxFuY/lqQNna5U12V70G/ ab16ObrF+X2XMiecDGJnPneMwDl2LrcvXx9Nae9Oc6W7+J/8Q1YWwTqmUvV9Jd9W8xQK VuhhUfIGm6nL4YQCQEsprdlVp9OyHbUMCTHRtVgHi4Smc9jcGuI7Wur0ylF8sVXQfcCM 94Ir/3gwE75V/U/oRHPyk3oTo4+BTo2Psn3tWa3IVsJPgTimzdBi0xaPvdyRV6qRL6fG lwmrB9AmkjaBDN3OFat3gqLrzRRafc4hjnWNLEuZXMYZ//zZM6n6qRoQDsNgCIYQWP+i +upw== 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 :organization:references:cc:to:content-language:subject:reply-to :from:user-agent:mime-version:date:message-id:dkim-signature; bh=6YxmwD91c/+NBVGd4LTXYec9yyX92sVVNyvoTP8SC/o=; fh=l9Lcf6R7JkbGJY3qzpNTMrQgy+SFPfCbZzwmleyvVBw=; b=pVeNtwFKWXuELh4qBlR2zPNkBr4rzu32jzn8o6LFToXWlncTmy9rbQ2gbGIsID0MJr AuHx6rLEUbJvUVK3PxfkouZHO5TUPFiAxlszQGzG7DVg1LNxvF64EqLebFOx4KOcaXxU gtPIZo6qT9uP9oTjJzMsjqWzzn9a4a/HNDXjuGZ6UU9kN9s6jlDtm/lqLNO0d4qBTRGM prwGKANCWKeLGPkg52CAInruJ6ZuNcxIpg/OTwUob2uv4hP7PS2IZcDAaJajHxrQ1Wew zAl5TEsxh4smzFN4lsMFNbXSgvj2DnhZey7gkRB5PcxXLyZvkvODWVdz9DiBXdYGUVLi aodw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rfe7q1pa; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020a63f508000000b0054fef6280d1si19010509pgh.745.2023.07.03.03.30.35; Mon, 03 Jul 2023 03:30:49 -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; dkim=pass header.i=@linaro.org header.s=google header.b=rfe7q1pa; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231174AbjGCJqZ (ORCPT + 99 others); Mon, 3 Jul 2023 05:46:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231147AbjGCJqV (ORCPT ); Mon, 3 Jul 2023 05:46:21 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DC7E12E for ; Mon, 3 Jul 2023 02:46:16 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-3fa9850bfebso42957285e9.1 for ; Mon, 03 Jul 2023 02:46:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688377574; x=1690969574; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=6YxmwD91c/+NBVGd4LTXYec9yyX92sVVNyvoTP8SC/o=; b=rfe7q1paV04u4WMl2xsU7lXAnbdFMZx3b98Y7omL3Ya/ErjM/UypQeramJBzF7nK5A r9FeN4Ppms24FWznaT7iptXS/rC8JuUsRurTKuUPy638lv4Zn/h1Pi/lFdPaXd+IW4aN m54fPBVbptaX5O6nD5ujFMeeYzUvATviaE7zGOwnL2x9fUc1wLnQrNZ4tVG+ejSr9sKT OR4RxYHsJXXXh/Jc1y/IsyRpzhWvpGO81S5CClAEEqWs3KwpvvJ/xmi6FqmJHU9EuAPm LV2Dj1UD1zMawzkZQO4q0VQLAbyxJUvsFw8Xgvog73z6q5a+KPTCENFObGQOMRGnt2S1 K6KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688377574; x=1690969574; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6YxmwD91c/+NBVGd4LTXYec9yyX92sVVNyvoTP8SC/o=; b=aTJyAlj+jWLGKXLpXNcypgpTORgy9NVi1faCepevVNrMo/7WXrIKn2BnxbyH99Om9D 2PHgw9zjZLOgjBoJB6R2qwkO7QHix20qxy8QunfMy7stPMQx5I3LtdsMUzUQa5Nz2VE8 a86HrvyiJkg8nCjrlpSMg2qm8uvZHU84ILVE1Ce7nqYMLt8b2HaKowRKaV3DPkKSPjyO Hg//WJYDNjkEfZhWrVprzZp3VbJQvgb+W/rLTU/t4jphctIaa+7c12PkojBYH3TOOmwF kraa3cbX0G+tuzHueQXSA2T/gJ3M9q0fZ358hfybDJBf6oAS38krT9ROm7KjHiZ+XWnI VWQQ== X-Gm-Message-State: AC+VfDzPYvG9j5v6UZ6OcVaBuI348HHRrN7ZNRAgDAY1347Q161uuWCr OBmFAa5U2v40Hyo5BeQbwWtKtg== X-Received: by 2002:a05:600c:2114:b0:3fa:8874:fe69 with SMTP id u20-20020a05600c211400b003fa8874fe69mr7601791wml.29.1688377574572; Mon, 03 Jul 2023 02:46:14 -0700 (PDT) Received: from [192.168.7.21] (679773502.box.freepro.com. [212.114.21.58]) by smtp.gmail.com with ESMTPSA id x19-20020a1c7c13000000b003fbb0c01d4bsm14432177wmc.16.2023.07.03.02.46.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Jul 2023 02:46:14 -0700 (PDT) Message-ID: <296e4ed1-29ec-cfbc-1843-43c16b87e416@linaro.org> Date: Mon, 3 Jul 2023 11:46:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 From: Neil Armstrong Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH v7 0/4] Add Amlogic A311D2 and Khadas Vim4 Board Support Content-Language: en-US To: Lucas Tanure , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jerome Brunet , Kevin Hilman , Xianwei Zhao Cc: Nick , Artem , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org References: <20230629073419.207886-1-tanure@linux.com> Organization: Linaro Developer Services In-Reply-To: <20230629073419.207886-1-tanure@linux.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hi Lucas, On 29/06/2023 09:34, Lucas Tanure wrote: > The Khadas VIM4 uses the Amlogic A311D2 SoC, based on the Amlogic 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 I've applied patches 1 & 4, now you can send the serie with only uart changes, it will simplify Greg's life. Thanks, Neil > > Changes Since v6: > - Move Uart clock to amlogic-t7-a311d2-khadas-vim4 dts > - Fix GIC_CPU_MASK_SIMPLE > - Lowercase uart label > > Changes Since v5: > - Remove meson as T7 its not a meson chip > - Change Uart Document descript to S4 compatibles > > Changes Since v4: > - Use S4 instead of G12a for uart fallback > - Add OF_EARLYCON_DECLARE for T7 uart > > 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 (4): > dt-bindings: arm: amlogic: add Amlogic A311D2 bindings > dt-bindings: serial: amlogic,meson-uart: Add compatible string for T7 > tty: serial: meson: Add a earlycon for the T7 SoC > arm64: dts: amlogic-t7-a311d2-khadas-vim4: add initial device-tree > > .../devicetree/bindings/arm/amlogic.yaml | 7 + > .../bindings/serial/amlogic,meson-uart.yaml | 4 + > arch/arm64/boot/dts/amlogic/Makefile | 1 + > .../amlogic/amlogic-t7-a311d2-khadas-vim4.dts | 54 ++++++ > arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi | 155 ++++++++++++++++++ > drivers/tty/serial/meson_uart.c | 2 + > 6 files changed, 223 insertions(+) > create mode 100644 arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts > create mode 100644 arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi > > -- > 2.41.0 >