Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1522893rwd; Thu, 15 Jun 2023 11:38:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4BXMXUjK4MTeIBPhP5v/3RyFSULOxZrQzV14lqUuAyhyWXAgO86J5bOo6zSGQF84i4wViL X-Received: by 2002:a17:90a:305:b0:256:4196:f722 with SMTP id 5-20020a17090a030500b002564196f722mr4730403pje.47.1686854292829; Thu, 15 Jun 2023 11:38:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686854292; cv=none; d=google.com; s=arc-20160816; b=GOOT/UJW3VNoVcjxkPMfbXPhHwHQIyC6abvenDkhD6hdVH9a1OIDs27JPgEHNXz5M6 fNrB2npZbzuMLmtLgOq/7phSbMQ36XPBkwVaFpuR57OB9UX100GhMx7A1Ac94zilWTfE DaZcTNr+21s8X0sFOgC4NNEjIH/GLhE5ICSatkVTbJ538LG2BHTJJDlTTgFaAgnKrGXE AykiPLMNRt0h/jX0X1BRFP1oQhzqqHkGudFvAR/VTLSguBFDF/r7TgYrtkt02F5z1QRu iZ/yCEIAOWWUTXBZYWnSKqxb3/LbdWO959cHH4JxLkR2KTI0R1bbYj83D9s5TYAjIZhf cBxg== 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=c8i3hO6Asw9z4pBJsjq1JNXvz4oP43/hziP/VGcJWDw=; b=HIhmhCBwv/CaJ/YmQWq/IZEqHnB4YtvtuoDKfSrW82ankkwjk2ljYWYyQXknmFM+g/ 60wwsKHxjQBxOaFjc2McnBwt620qh2Mp9aulHiSqlBMlmtw17KX/b+4+aFQXZ4U5JOM5 vlF22ZbMNPzOFOnv4pPXYQCV86RGE/Nb0MjtO0LvKH2brWOMO6ejMidMCc59tLtNj59X DvzZtIIBl6RXcamBeV19dPnadeXU39XNuBaUujXRvSMetkIkeP3f0VKL6jrcIKag0cVl jGfEwOr7K0cam3eGC/iCJyNItz1Edtc1T6nzSHb5KcBBaFWu3FcB4Ed0h3ht5lEc9nHh aI3g== 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 i13-20020a17090a138d00b00256918d8db9si2780036pja.17.2023.06.15.11.38.00; Thu, 15 Jun 2023 11:38:12 -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 S237408AbjFOS3s (ORCPT + 99 others); Thu, 15 Jun 2023 14:29:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229798AbjFOS3n (ORCPT ); Thu, 15 Jun 2023 14:29:43 -0400 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5812A7; Thu, 15 Jun 2023 11:29:42 -0700 (PDT) Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-30e3caa6aa7so8061301f8f.1; Thu, 15 Jun 2023 11:29:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686853781; x=1689445781; 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=c8i3hO6Asw9z4pBJsjq1JNXvz4oP43/hziP/VGcJWDw=; b=NMaDZHnDQ3Z7ZmSAQTNabAZvQhaN6MlPLivFhypaF4Osrc9bPn8oStXT7dDFcwREbH spKHCOcDlCUls045W042NqKFqb0IXj88a5cWvjTuTFcPPEhJMj/MbrJY3aKstPJGGW7c ckz9ld2O1pSW5l0PqqcQnOieFPPbVmfQi8xhNLA90yDIPwTrcAXX5OIUw5AIgpNj84dq iPDOTe8j0bkzbF7i7D4gtgaNjB2Ark+pgNSMDCxSe6udXwKYvlcENirEIeeOsZ1dGDdd tJlIWm7Yfu+f4njbfV8ban3J9jteDFQMuhMZSYlqjS/vE2L+tl6l6fdJnRz3jLhYF6LY 3crQ== X-Gm-Message-State: AC+VfDxbjV+17RjI7JOn2IDkWmJNass3LA/ZHoHvSIopw7PZnT0RHSLR tqBV17pOKBLO02o52iUuT3c= X-Received: by 2002:adf:f810:0:b0:30f:d32c:ed8e with SMTP id s16-20020adff810000000b0030fd32ced8emr4950226wrp.45.1686853781021; Thu, 15 Jun 2023 11:29:41 -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 c3-20020adffb03000000b0030ab5ebefa8sm21525887wrr.46.2023.06.15.11.29.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jun 2023 11:29:40 -0700 (PDT) From: Lucas Tanure To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Kevin Hilman , Greg Kroah-Hartman Cc: Nick , Artem , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, Lucas Tanure Subject: [PATCH 0/6] Add Amlogic A311D2 and Khadas Vim4 Board Support Date: Thu, 15 Jun 2023 19:29:32 +0100 Message-ID: <20230615182938.18487-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 SoC 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 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 Lucas Tanure (6): dt-bindings: arm: amlogic: add Amlogic T7 based Khadas VIM4 bindings dt-bindings: clock: Bindings for Meson T7 clock controller clk: meson: t7: add peripheral clock controller dt-bindings: serial: amlogic, meson-uart: support T7 tty: serial: meson: Added T7 SOC compatibility arm64: dts: meson-t7-a311d2-khadas-vim4: add initial device-tree .../devicetree/bindings/arm/amlogic.yaml | 7 + .../bindings/clock/amlogic,mesont7.yaml | 69 + .../bindings/serial/amlogic,meson-uart.yaml | 1 + arch/arm64/boot/dts/amlogic/Makefile | 1 + .../amlogic/meson-t7-a311d2-khadas-vim4.dts | 112 + arch/arm64/boot/dts/amlogic/meson-t7.dtsi | 202 + drivers/clk/meson/Kconfig | 17 + drivers/clk/meson/Makefile | 1 + drivers/clk/meson/t7.c | 8014 +++++++++++++++++ drivers/clk/meson/t7.h | 235 + drivers/tty/serial/meson_uart.c | 4 + include/dt-bindings/clock/mesont7-clkc.h | 487 + 12 files changed, 9150 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/amlogic,mesont7.yaml 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 create mode 100644 drivers/clk/meson/t7.c create mode 100644 drivers/clk/meson/t7.h create mode 100644 include/dt-bindings/clock/mesont7-clkc.h -- 2.41.0