From nobody Fri Dec 19 05:01:41 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1856EC0015E for ; Sat, 12 Aug 2023 00:47:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236976AbjHLAro (ORCPT ); Fri, 11 Aug 2023 20:47:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234509AbjHLArj (ORCPT ); Fri, 11 Aug 2023 20:47:39 -0400 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E58BF30C8 for ; Fri, 11 Aug 2023 17:47:38 -0700 (PDT) Received: by mail-pg1-x52e.google.com with SMTP id 41be03b00d2f7-5654051b27fso1939447a12.0 for ; Fri, 11 Aug 2023 17:47:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1691801258; x=1692406058; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=HmdmIvNh/weap9MCOBtwxIGhp4oicSDBRHV6ZK3T3dg=; b=QALbaU6x4orin16gFjGYFXKD8oGQjIw3f/9c1lDaQisRvcVGSdUeygN4poOY5EaTiT vIiSPPBWTXpu1GXMSz64WqbRy+39EBM4uHCRZZgFqrbl5GBBtBvKLBdPzy9yraK88DD2 AdqZZgngOWqDcDaYszrnQFV+W5Xcx85sxgp/5gHJwelLFYd3TzNm2ekSrY74aRhPpzih 0xYwwjIm4owYuFouxYnBT5OEQESo0gM7hq4Cxv6R+bHFhSQsuZTAFJpAiX7nimEOpOKC wIeV7CTAO2/cxcCFP0C6+xMvxVfKKFNXc0oNnx4ZZqkeEcPI5+9eMmsmjoD9LULyRGWr feuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691801258; x=1692406058; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HmdmIvNh/weap9MCOBtwxIGhp4oicSDBRHV6ZK3T3dg=; b=EtUwpbOuTrS9rbYY5eRWCP8oks7uHKjSEC6MfunmM1WEEvakemwVwqLwnUIbo7Wlcd PComASSgJoq9hQMvnJWd+GkOYpMdS0vdUioWAAO/XzpS441/KgatXA+uKA3cS7m2fOkv uPcVaaspm+KwVJz/YGPQ4PKbwbqgmIZheF+vT5YcMxvKs6ke31t9p6X1i0Dv8n3uk60E qQsN4UczXC7QJWCLci4IPlHy70zoLQHnA0xZIKBuRJtLKlTssaAEfxxseMaqHpehjjPQ pFOGpnpF/jRMBAvoRgiydRNEvOSU0wJiZz+4nxQ6vRmrL4MzvSFDoQOw+vG0z6g7+qnx hQQg== X-Gm-Message-State: AOJu0YyflTVgjvb82H+L5wRG8LMm9WIgd2ePM5l3awJWFWnLW3hTy0IR 4yLNKt9f0SS0YwSFVmvDVq98lw== X-Google-Smtp-Source: AGHT+IESs2XUKo+SiAONsY7RNLNHDIvsAKRSKpimxWRh15azy5U0zARIzqL0fSIXLqJ9NMuoZMuMeQ== X-Received: by 2002:a17:90b:2350:b0:262:e6d2:2d6 with SMTP id ms16-20020a17090b235000b00262e6d202d6mr3034198pjb.47.1691801258387; Fri, 11 Aug 2023 17:47:38 -0700 (PDT) Received: from [127.0.1.1] ([2601:1c2:1800:f680:5b85:b986:e090:9abc]) by smtp.gmail.com with ESMTPSA id c11-20020a170902724b00b001b246dcffb7sm4559247pll.300.2023.08.11.17.47.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Aug 2023 17:47:38 -0700 (PDT) From: Drew Fustini Date: Fri, 11 Aug 2023 17:47:16 -0700 Subject: [PATCH v3 1/2] dt-bindings: riscv: Add BeagleV Ahead board compatibles MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20230811-ahead-dt-v3-v1-1-aef2294bed86@baylibre.com> References: <20230811-ahead-dt-v3-v1-0-aef2294bed86@baylibre.com> In-Reply-To: <20230811-ahead-dt-v3-v1-0-aef2294bed86@baylibre.com> To: Jisheng Zhang , Guo Ren , Fu Wei , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Robert Nelson , Jason Kridner , Drew Fustini , Krzysztof Kozlowski , Conor Dooley X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1691801256; l=1099; i=dfustini@baylibre.com; s=20230430; h=from:subject:message-id; bh=3zE3DAtWNRR0RNhye3g4EXsbaTzQt3JjGH1aItoKzE4=; b=omtPwIJKWc6olP3mETH19n3OvHpWkCCS9zbRPPpPd2NcvHtbTP4tQ3pYM0vJeQrTFlCGyHUVI lqqqwZdSxG9DCjl2nSY1KKXRyn2CO6LwGZ3uF034IbMQi7QOJKAqaBH X-Developer-Key: i=dfustini@baylibre.com; a=ed25519; pk=p3GKE9XFmjhwAayAHG4U108yag7V8xQVd4zJLdW0g7g= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document the compatible strings for the BeagleV Ahead board which uses the T-Head TH1520 SoC. Link: https://beagleboard.org/beaglev-ahead Acked-by: Krzysztof Kozlowski Reviewed-by: Guo Ren Reviewed-by: Conor Dooley Signed-off-by: Drew Fustini --- Documentation/devicetree/bindings/riscv/thead.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/riscv/thead.yaml b/Documenta= tion/devicetree/bindings/riscv/thead.yaml index e62f6821372e..301912dcd290 100644 --- a/Documentation/devicetree/bindings/riscv/thead.yaml +++ b/Documentation/devicetree/bindings/riscv/thead.yaml @@ -17,6 +17,10 @@ properties: const: '/' compatible: oneOf: + - description: BeagleV Ahead single board computer + items: + - const: beagle,beaglev-ahead + - const: thead,th1520 - description: Sipeed Lichee Pi 4A board for the Sipeed Lichee Modul= e 4A items: - enum: --=20 2.34.1 From nobody Fri Dec 19 05:01:41 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4882DC0015E for ; Sat, 12 Aug 2023 00:47:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236954AbjHLArq (ORCPT ); Fri, 11 Aug 2023 20:47:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236027AbjHLArk (ORCPT ); Fri, 11 Aug 2023 20:47:40 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A695B10DF for ; Fri, 11 Aug 2023 17:47:39 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1bdbbede5d4so8440035ad.2 for ; Fri, 11 Aug 2023 17:47:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1691801259; x=1692406059; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=05BikiCLpUIHGHjBbtQXpjem9/6VYbL8VEjebyzDVSo=; b=Nfo84er8B87Ux9oCI5j+m3UNMamRr/ciYPhN73kyWkhw7OIsCMQvJv7TXg37w3Ybh8 4ZKe/7qjsdKUiUsNd/wAe/YQQtDHl1SatFHBhDQ0l2wahIB0rAGDPhRQhH2Ye3h0fRjp R0+afrfQ76Oiab8sNaY976b0rpV8yLs6KcP0d8vvTS7I43DBb2i/0w6OeoLitpveyjJ6 J40f1AAjoRw0r2+mv9mOMOYapXGipSTC3pVf1B/QPMCtmuqdtg/lnZnnLH4kxI0xj09F PzO1zINiaC+dG3XJZ94sPNMsiW6nLKmW4xCuQnAXhWkp9iU5fWFxlrawJNE2BScbW6HL YwJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691801259; x=1692406059; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=05BikiCLpUIHGHjBbtQXpjem9/6VYbL8VEjebyzDVSo=; b=R7tKe9OS+XR8TV1AN5PBza+fD8QsHHG2Wd1Qtrz9V6tjPFQ2vLtMYEjVpv+v02EryH Ky8C96cgQ8lrJ2iHOGaBa5tV0evSIlV+tAWZ3CLCarsj6boZApr2+0/jJ3SGiY+ir8CK Yfi8A1sxKugQHLdGw38jqkqFlRbS42MP4a77cr+/xRnhx3CF194JajZMoQx47AIFqteq rs+YWKKSymlM4V3/q8Z4wA6UOM6K3FI9dCtjwlgTbzttJvoz5cQ8Hod1qC0qUYc9d8MS 3dASO/hjzmkDGyA7SOJgFaKXJkSEKzqpNedeXXz6016Rp1MZQkqcWpy17XmuxG8w+9qk eIew== X-Gm-Message-State: AOJu0YxhbLHOf4YHaCuTWGyz2A+oUqzi0RVAhq8QHyWPO2hfAfPnKG63 fTobQa7zPJWw9m267ynoSbSW5g== X-Google-Smtp-Source: AGHT+IFdDX562eGbJtNruygyIF2dN53hOpTDe7X+mKpz434vbf5cpu8OlnawmM1dZhBGKfVOn3zixQ== X-Received: by 2002:a17:902:b591:b0:1b9:ea60:cd82 with SMTP id a17-20020a170902b59100b001b9ea60cd82mr3320103pls.5.1691801259187; Fri, 11 Aug 2023 17:47:39 -0700 (PDT) Received: from [127.0.1.1] ([2601:1c2:1800:f680:5b85:b986:e090:9abc]) by smtp.gmail.com with ESMTPSA id c11-20020a170902724b00b001b246dcffb7sm4559247pll.300.2023.08.11.17.47.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Aug 2023 17:47:38 -0700 (PDT) From: Drew Fustini Date: Fri, 11 Aug 2023 17:47:17 -0700 Subject: [PATCH v3 2/2] riscv: dts: thead: add BeagleV Ahead board device tree MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20230811-ahead-dt-v3-v1-2-aef2294bed86@baylibre.com> References: <20230811-ahead-dt-v3-v1-0-aef2294bed86@baylibre.com> In-Reply-To: <20230811-ahead-dt-v3-v1-0-aef2294bed86@baylibre.com> To: Jisheng Zhang , Guo Ren , Fu Wei , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Robert Nelson , Jason Kridner , Drew Fustini , Conor Dooley X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1691801256; l=2256; i=dfustini@baylibre.com; s=20230430; h=from:subject:message-id; bh=Z2atrlGM8tcTPwr3A1Vti2dKZVGQj5R9fuQgJnqj1sI=; b=oyWcZ20LG4j7WS2sLMTHpSAPtOXFSF78Rdy3L88QLepL03Vrvp9oXTy0m39sCgx5A3inTSWkA cGzxPKP4sijASypHQEOtJpEM9fUMs/KYFXZEiA84pK6GCc7iOI/rzg1 X-Developer-Key: i=dfustini@baylibre.com; a=ed25519; pk=p3GKE9XFmjhwAayAHG4U108yag7V8xQVd4zJLdW0g7g= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The BeagleV Ahead single board computer uses the T-Head TH1520 SoC. Add a minimal device tree to support basic uart/gpio/dmac drivers so that a user can boot to a basic shell. Link: https://beagleboard.org/beaglev-ahead Reviewed-by: Guo Ren Reviewed-by: Conor Dooley Signed-off-by: Drew Fustini --- arch/riscv/boot/dts/thead/Makefile | 2 +- arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts | 61 ++++++++++++++++++= ++++ 2 files changed, 62 insertions(+), 1 deletion(-) diff --git a/arch/riscv/boot/dts/thead/Makefile b/arch/riscv/boot/dts/thead= /Makefile index e311fc9a5939..b55a17127c2b 100644 --- a/arch/riscv/boot/dts/thead/Makefile +++ b/arch/riscv/boot/dts/thead/Makefile @@ -1,2 +1,2 @@ # SPDX-License-Identifier: GPL-2.0 -dtb-$(CONFIG_ARCH_THEAD) +=3D th1520-lichee-pi-4a.dtb +dtb-$(CONFIG_ARCH_THEAD) +=3D th1520-lichee-pi-4a.dtb th1520-beaglev-ahead= .dtb diff --git a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts b/arch/risc= v/boot/dts/thead/th1520-beaglev-ahead.dts new file mode 100644 index 000000000000..70e8042c8304 --- /dev/null +++ b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts @@ -0,0 +1,61 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright (C) 2023 Jisheng Zhang + * Copyright (C) 2023 Drew Fustini + */ + +/dts-v1/; + +#include "th1520.dtsi" + +/ { + model =3D "BeagleV Ahead"; + compatible =3D "beagle,beaglev-ahead", "thead,th1520"; + + aliases { + gpio0 =3D &gpio0; + gpio1 =3D &gpio1; + gpio2 =3D &gpio2; + gpio3 =3D &gpio3; + serial0 =3D &uart0; + serial1 =3D &uart1; + serial2 =3D &uart2; + serial3 =3D &uart3; + serial4 =3D &uart4; + serial5 =3D &uart5; + }; + + chosen { + stdout-path =3D "serial0:115200n8"; + }; + + memory@0 { + device_type =3D "memory"; + reg =3D <0x0 0x00000000 0x1 0x00000000>; + + }; +}; + +&osc { + clock-frequency =3D <24000000>; +}; + +&osc_32k { + clock-frequency =3D <32768>; +}; + +&apb_clk { + clock-frequency =3D <62500000>; +}; + +&uart_sclk { + clock-frequency =3D <100000000>; +}; + +&dmac0 { + status =3D "okay"; +}; + +&uart0 { + status =3D "okay"; +}; --=20 2.34.1