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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1D83EC2BA4C for ; Wed, 26 Jan 2022 13:53:43 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5B130834E8; Wed, 26 Jan 2022 14:53:41 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="J5cwPNjX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AFA8883373; Wed, 26 Jan 2022 14:53:39 +0100 (CET) Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 08CE3831B5 for ; Wed, 26 Jan 2022 14:53:35 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mr.bossman075@gmail.com Received: by mail-qt1-x829.google.com with SMTP id g12so4235857qto.13 for ; Wed, 26 Jan 2022 05:53:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hl2/ENG5uROPLjbTwD1cJgPq8bpBTYq87hvyD36IsB0=; b=J5cwPNjXZAGLo/paYUr6pAyuWQgmIFGtZ4ruI+D+lhLQ5gynZ2F60phRZw5RyicDyX q2p3oHkdvziSk7vSRyaMgZyDbC9LdKJOA8EofsoZgXgMkDTWQ5xF4Ct2KlrVcnJ+hFxO Rjexv9Do2NL5SXBumq3g7AhXhkkQ9LtENLAVb1YA4XoZlRaQTGNw92mLfQAL85RVYjKk UOMC2jTR6U6uT5RP2nsCNqw8DgK2/2gyFBnETboY2krW9MUkp4ZW52+NYTiVFjExn9a/ 9DSHWNX8aVMlSiV6R0ayCg2mp/g1/902HIFOx2/pHtqV5fvtbJZ+/R+kzLwaR1cjgIpl V6bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hl2/ENG5uROPLjbTwD1cJgPq8bpBTYq87hvyD36IsB0=; b=u0R6d22/c+ovsy7tmAvYQBu7QiS/OHlmHNwNN+QwI6P7qQXsoamwjFwYDlWPW58vuy B2AxA8S0iFFNm5jzwvqiLxCsYMLB3Y/kRjrueAiSSpCq3Zn5f3oYTtlwalUUefmBtTuj ZekTqGDuEN6WvM+GK7yir9ADadBiNno82ob9In43D4BxoYgJe6jXoEy5Jip6v1v0CS2D MyLEHo+3D9fvl5v6f5LlpCszKLO6CXDoqcNacTqKDU3l010GEpfFu3YAZ7AQl69l9DUv zBjsmJ2M50jKeoIBScotKL0wYNPPpAqBTTG2/BAPfjzxBVv5lk+BJoas4F8knzPN0lGI o5kA== X-Gm-Message-State: AOAM532cSSS4DOyNiLJeTAzlnwGWi/7EWZeWmRIov+SNrW5E6K+i/s7Z wBVLkfc41ug3mzsWaNw+RXcmytNzrQI= X-Google-Smtp-Source: ABdhPJyIPaKTm/LV3b5WIR8Ek/1AL3u1UCDH2DTyR9NLD2G5mtLNl+aWQx8Z1U2hfbP9Trjigzdp5w== X-Received: by 2002:a05:622a:14:: with SMTP id x20mr20992904qtw.216.1643205213422; Wed, 26 Jan 2022 05:53:33 -0800 (PST) Received: from jesse-desktop.jtp-bos.lab (146-115-144-188.s4282.c3-0.nwt-cbr1.sbo-nwt.ma.cable.rcncustomer.com. [146.115.144.188]) by smtp.gmail.com with ESMTPSA id bl1sm1969848qkb.16.2022.01.26.05.53.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jan 2022 05:53:32 -0800 (PST) From: Jesse Taube X-Google-Original-From: Jesse Taube To: u-boot@lists.denx.de Cc: jagan@amarulasolutions.com, andre.przywara@arm.com, hdegoede@redhat.com, sjg@chromium.org, icenowy@aosc.io, marek.behun@nic.cz, festevam@denx.de, narmstrong@baylibre.com, tharvey@gateworks.com, christianshewitt@gmail.com, pbrobinson@gmail.com, jernej.skrabec@gmail.com, hs@denx.de, samuel@sholland.org, arnaud.ferraris@gmail.com, giulio.benetti@benettiengineering.com, Mr.Bossman075@gmail.com, thirtythreeforty@gmail.com Subject: [PATCH v2 00/12] Add support for SUNIV and F1C100s. Date: Wed, 26 Jan 2022 08:53:17 -0500 Message-Id: <20220126135329.2997430-1-Mr.Bossman075@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean This patch set aims to add support for the SUNIV and F1C100s. Support has been in linux for a while now, but not in u-boot. This patchset contains: - CPU specific initialization code - SUNIV dram driver - SUNIV clock driver adaption - SUNIV gpio driver adaption - SUNIV uart driver adaption - F1C100s basic support The SUNIV seems to be similar to sun6i and sun4i, so we use code from both platforms. We also add suniv to the cpu dircetory as it uses arm926ejs. NOTE: To work this will need patchset "sunxi: remove lowlevel_init". Icenowy Zheng (11): arm: arm926ej-s: start.S: port save_boot_params support from armv7 code arm: arm926ej-s: Add sunxi code dt-bindings: clock: Add initial suniv headers dt-bindings: reset: Add initial suniv headers ARM: sunxi: Add clock and uart to sunxi headers sunxi: Add F1C100s DRAM initial support sunxi: board: Add support for SUNIV configs: sunxi: Add common SUNIV header mach-sunxi: Add support for SUNIV architecture ARM: dts: suniv: Add device tree files for F1C100s configs: sunxi: Add support for Lichee Pi Nano Jesse Taube (1): mach-sunxi: Move timer code to mach folder arch/arm/cpu/arm926ejs/Makefile | 1 + arch/arm/cpu/arm926ejs/start.S | 19 + arch/arm/cpu/arm926ejs/sunxi/Makefile | 5 + arch/arm/cpu/arm926ejs/sunxi/config.mk | 6 + arch/arm/cpu/arm926ejs/sunxi/fel_utils.S | 33 ++ arch/arm/cpu/arm926ejs/sunxi/u-boot-spl.lds | 48 ++ arch/arm/dts/Makefile | 2 + arch/arm/dts/suniv-f1c100s-licheepi-nano.dts | 29 ++ arch/arm/dts/suniv-f1c100s.dtsi | 6 + arch/arm/dts/suniv.dtsi | 160 +++++++ arch/arm/include/asm/arch-sunxi/clock.h | 2 +- arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 13 + arch/arm/include/asm/arch-sunxi/cpu_sun4i.h | 6 + arch/arm/include/asm/arch-sunxi/dram.h | 2 + arch/arm/include/asm/arch-sunxi/dram_suniv.h | 46 ++ arch/arm/include/asm/arch-sunxi/gpio.h | 1 + arch/arm/mach-sunxi/Kconfig | 16 +- arch/arm/mach-sunxi/Makefile | 5 + arch/arm/mach-sunxi/board.c | 28 +- arch/arm/mach-sunxi/clock.c | 3 +- arch/arm/mach-sunxi/clock_sun6i.c | 46 +- arch/arm/mach-sunxi/cpu_info.c | 2 + arch/arm/mach-sunxi/dram_helpers.c | 4 + arch/arm/mach-sunxi/dram_suniv.c | 420 ++++++++++++++++++ .../{cpu/armv7/sunxi => mach-sunxi}/timer.c | 7 +- board/sunxi/board.c | 4 +- configs/licheepi_nano_defconfig | 15 + include/configs/suniv.h | 14 + include/configs/sunxi-common.h | 59 ++- include/dt-bindings/clock/suniv-ccu.h | 69 +++ include/dt-bindings/reset/suniv-ccu.h | 37 ++ 31 files changed, 1080 insertions(+), 28 deletions(-) create mode 100644 arch/arm/cpu/arm926ejs/sunxi/Makefile create mode 100644 arch/arm/cpu/arm926ejs/sunxi/config.mk create mode 100644 arch/arm/cpu/arm926ejs/sunxi/fel_utils.S create mode 100644 arch/arm/cpu/arm926ejs/sunxi/u-boot-spl.lds create mode 100644 arch/arm/dts/suniv-f1c100s-licheepi-nano.dts create mode 100644 arch/arm/dts/suniv-f1c100s.dtsi create mode 100644 arch/arm/dts/suniv.dtsi create mode 100644 arch/arm/include/asm/arch-sunxi/dram_suniv.h create mode 100644 arch/arm/mach-sunxi/dram_suniv.c rename arch/arm/{cpu/armv7/sunxi => mach-sunxi}/timer.c (97%) create mode 100644 configs/licheepi_nano_defconfig create mode 100644 include/configs/suniv.h create mode 100644 include/dt-bindings/clock/suniv-ccu.h create mode 100644 include/dt-bindings/reset/suniv-ccu.h -- 2.34.1