From patchwork Sun Mar 5 13:20:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 6117 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1379866wrd; Sun, 5 Mar 2023 05:52:33 -0800 (PST) X-Google-Smtp-Source: AK7set9gyfGErcRhtQuWSaGmBjs5OTQDfd4TU/E8lAQzc1l2byn5wJIsGkac9pq5OeWfL+0/xs5V X-Received: by 2002:a05:6a20:7290:b0:b8:a0e1:2739 with SMTP id o16-20020a056a20729000b000b8a0e12739mr8873428pzk.3.1678024353249; Sun, 05 Mar 2023 05:52:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678024353; cv=none; d=google.com; s=arc-20160816; b=rbFvc/szxHcgjnwqPZedQ7o1C9KX3miR0mJUt/tT1hPDU21jZdLhSDQeHexT3SOouq WddmrdgDRV/AKpeBH7bVzYm0f8o0HLnQf/40c02q4J9YJZt+GSAASsd19S9c6TMPPLw/ jCtGRsHR4Q+mURUDZViuhuMd+J6D3LxF1EJI0p79uyZj8QJw6GP/WXTfgOAsudX5iHCs Rk6CLwNgkO9giPrPCeMpe/EnWr+tIizyAw3wbpV45QMHEnMlsDwLcYb91Ld7URynUvqS l/Dtnu8nGkiaVJB1FWCD9STNR25b6T2tefaHYPh/r9TRhn4WHn+T9rMNpRx3JVRhvdRd mi0w== 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:dkim-signature; bh=Q22ZwtQznlTgrwEVXTJZ6qwfUdxTbmV0QrtKqsGsNBw=; b=NcWuTomrNd7py0ZKBS5EdlZdavPw3uj15TkHYzFTg5zc86XrJzDyTaWIGeAeFYIoWH jvnKHVHjx801fCVbqGowf/zRn0rzMFinYuELsKgJuGrSmXa1WdqNFu4EJSU6d06DzKkQ qtmjnILA1/mvbaX/bZKNe+NfzJuPmDJ0tHO2954C+zbeEc4LxlZ2LoYPIZkI8SpTEQ9m s5i+hMODG2EwpYUXJmYI5OjiJp2qFJx3KZj3Y1+80sj7gs+Po5UiZB23VIoV0Xt5WQ3M izAbTB68VFqiGq4PZVUJEMNDDXnWo7XvvAm59+3SfVzkwqD0jnBs4PBw97bXPatU8MW7 zmfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RYQ1PbzN; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g16-20020aa79dd0000000b005a8a9bfdee1si7254973pfq.38.2023.03.05.05.52.18; Sun, 05 Mar 2023 05:52:33 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=RYQ1PbzN; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229673AbjCENUx (ORCPT + 99 others); Sun, 5 Mar 2023 08:20:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229495AbjCENUw (ORCPT ); Sun, 5 Mar 2023 08:20:52 -0500 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F08011655; Sun, 5 Mar 2023 05:20:51 -0800 (PST) Received: by mail-wr1-x42d.google.com with SMTP id l25so6336374wrb.3; Sun, 05 Mar 2023 05:20:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Q22ZwtQznlTgrwEVXTJZ6qwfUdxTbmV0QrtKqsGsNBw=; b=RYQ1PbzN70fP9d3SxckyvuhAi2CMCeqcdUn5RtItTe+w9clgA6PRoSqUsYibZ4IJUO KHhZnV0kglgJkZ0IPOtCcopMYh1k5CO3gjdq8SK4Wjcr86jVwnePeUWAwd4rWKWH+48t y+ZATTgxktoZPQn8WVQCCF7nt1K+4GDJplwZiaWvu9oqSuOyqXtHmsxNOQsYDHHuwghe UxEBcUCCXT/K3A+AOP2qvbZLz2BLrZE43KppBnq4M0NU1kNHQHbrUWCwQOqdv0uI1eWs kZxRdRwPtVVopaC2gypbphRejS7HFjJZPoxLpTSH6IGyqhC9i4WKIKVfq1IudJN1HIVn AiLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=Q22ZwtQznlTgrwEVXTJZ6qwfUdxTbmV0QrtKqsGsNBw=; b=dllNj4qMIEleq2PAUTTrgxGhTDN0wa7xU1uebs6Dm/SjH2KzWDxaj7j4zMg6TBAysE mX3ILhfU3NC4bIL6/bHTAdit7YWjuv1whdPRxi4qRtislf67mWD+tRi76abHhTCGoKCU 4geAtg2PRiVpDPXPzs1QPoTSU9eCYEFEeVUKZNlHo4DMwJZnZbxotodIliYdSHf2f3Vq NofwcP2zqL3LfaUvVoyweJiVfO5yoj/FYSkl1K66PI1oEGZV7quFs97HerixAL8VYWsv xId1nc2IfV8gFkXQZQcKCElvB0y9DPkzeKIXrdeItvZGxiOoylIceTvpbh1qowY/MusH 65bw== X-Gm-Message-State: AO0yUKVmv6wY1AU9GuZAvRL3Vl7Utoffmm1q7w/2U5CWxQAJP4OZKsPT +tYVtQt/6+w3MGgzk73aOTQJ91xYHwTe+A== X-Received: by 2002:adf:f849:0:b0:2c5:7c26:c2cc with SMTP id d9-20020adff849000000b002c57c26c2ccmr5495387wrq.29.1678022449684; Sun, 05 Mar 2023 05:20:49 -0800 (PST) Received: from toolbox.. ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id w7-20020a5d6087000000b002c567b58e9asm7496851wrt.56.2023.03.05.05.20.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Mar 2023 05:20:49 -0800 (PST) From: Christian Hewitt To: Rob Herring , Krzysztof Kozlowski , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Christian Hewitt Subject: [PATCH 0/2] arm64: amlogic: Add initial support for BPI-M2S variants Date: Sun, 5 Mar 2023 13:20:42 +0000 Message-Id: <20230305132044.1596320-1-christianshewitt@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759536063941204140?= X-GMAIL-MSGID: =?utf-8?q?1759536063941204140?= Add support for the BananaPi M2S which ships in two board variants with the Amlogic S922X or A311D chipset. Schematics for the board are not currently available from Sinovoip so the device-tree is largely derived from the Khadas VIM3 (also S922X/A311D) and other recent BPI boards that have public documentation. The device-tree also supports the RTL8822CS WiFi/BT module. This is optional so the nodes must be enabled though an overlay or fdtput. Patches are based on current (v6.3) for-next branch. Christian Hewitt (2): dt-bindings: arm: amlogic: add support for BananaPi M2S variants arm64: dts: meson: add support for BananaPi M2S variants .../devicetree/bindings/arm/amlogic.yaml | 2 + arch/arm64/boot/dts/amlogic/Makefile | 2 + .../amlogic/meson-g12b-a311d-bananapi-m2s.dts | 37 ++ .../boot/dts/amlogic/meson-g12b-bananapi.dtsi | 521 ++++++++++++++++++ .../amlogic/meson-g12b-s922x-bananapi-m2s.dts | 14 + 5 files changed, 576 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12b-a311d-bananapi-m2s.dts create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12b-bananapi.dtsi create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12b-s922x-bananapi-m2s.dts