From mboxrd@z Thu Jan 1 00:00:00 1970 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 9E9F5C4332F for ; Wed, 5 Jan 2022 00:35:23 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 631ED830F5; Wed, 5 Jan 2022 01:35:20 +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="bB179DnV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5FFEC830CE; Wed, 5 Jan 2022 01:35:18 +0100 (CET) Received: from mail-qv1-xf2d.google.com (mail-qv1-xf2d.google.com [IPv6:2607:f8b0:4864:20::f2d]) (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 BEA5683053 for ; Wed, 5 Jan 2022 01:35:14 +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-qv1-xf2d.google.com with SMTP id kk22so35999024qvb.0 for ; Tue, 04 Jan 2022 16:35:14 -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=EEJylL/Am9KOaatm1t9YUwp9upGkz6RCJxcaqgyIGsU=; b=bB179DnVtmXKkZ/vR3+b7vQSBtY4kbMmyO9ByIjQdqUHKYHpdCoDfsRto1t/ElqxYv 9q/rXBP7+AqeeCK4Vu9cc0sNeUPAA1PBD8vHknUiLcN36NU1UVbX3MbX1tLTHonoTlSs E7xnC08uHr1WbYtKXpfx58IANXF164qmScufNWQtZvPRRP5ISa95OtC1V+GZMlD/Qd1O 3mWVxcmpJ8u1+Fprml2okjOqI6oBj7kNcPa386vZZsSzW7X7CuMozH+jl+2S0tzhdybk Uo9g0VIP/VeqexQkaCgzPS+6oZ8IK6PAyzQyUEkhr5SqVf10KNMkqGTyKK25CFvXpBZI fPNA== 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=EEJylL/Am9KOaatm1t9YUwp9upGkz6RCJxcaqgyIGsU=; b=J4pwrFRtvZkA1Jgd+/tZD6HG8Jw23HaiDkf6upYdnWewI8JLXEV9Zsxq/VsGBPri7n j7j5GsTL8mSbIN3PK7wani5ew0Rmt9RZbeMtSl56kHVOkrPoa32U9Tc9WvAVlvaPsNx7 OLxIWBqZHZvaztV/rjQ0HzMOis/LMyiRUfyi8M6Wt/y7yzQWM8RigL64mtpgj70gG+Bu 94jM4/Oq3bxgbOWmEXtwHjscH94yk0qRZutKkmQSAO3mIe2EgCBJPNqQYUrSn5gi9q+g 3vyXIC9CU0JoVQsogV+FMSQfDrBnlnzw+8EHGdfKHA8anyRyT41oMC56EPlnc/RDv8pc 0ZLQ== X-Gm-Message-State: AOAM530KjixUPzuIJLqox0YW7kO+fZYsnW5S0JHV2UdzG54IkQwjzXSi Yt6BrTza89PHlb28fv1NcrZ3eU+VzYs= X-Google-Smtp-Source: ABdhPJzIhzV+udhF/WGQw64JK7tJNh5oNQEwB7pRU2Nxbu6CyNkXdJzNmA5Pd4jgN0HVcRAFh39ipQ== X-Received: by 2002:a05:6214:20ec:: with SMTP id 12mr46452952qvk.0.1641342913275; Tue, 04 Jan 2022 16:35:13 -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 x16sm33795029qkp.67.2022.01.04.16.35.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jan 2022 16:35:12 -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, lokeshvutla@ti.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 00/11] Add support for SUNIV and F1C100s. Date: Tue, 4 Jan 2022 19:34:57 -0500 Message-Id: <20220105003508.1143140-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.38 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.2 at phobos.denx.de X-Virus-Status: Clean This patch set aims to add suport for the SUNIV and F1C100s. Suport 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 I am hoping to get Icenowy's patches in as it seems she hasnt submitted in a while. The only edits I made to her code is rebasing it against ML and changing some formating. I also re-grouped her commits. I am wondering if the dram driver should be moved into device drivers rather than in mach-sunxi. I am also wondering if it is okay to submit some one elses code, and if so how should I do so. 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 support for F1C100s sunxi: Add F1C100s DRAM initial support sunxi: board: Add support for SUNIV configs: sunxi: Add common SUNIV header sunxi: Add support for SUNIV architecture ARM: dts: suniv: Add device tree files for F1C100s configs: sunxi: Add support for Lichee Pi Nano arch/arm/cpu/arm926ejs/Makefile | 1 + arch/arm/cpu/arm926ejs/start.S | 19 + arch/arm/cpu/arm926ejs/sunxi/Makefile | 15 + arch/arm/cpu/arm926ejs/sunxi/config.mk | 6 + arch/arm/cpu/arm926ejs/sunxi/fel_utils.S | 37 ++ arch/arm/cpu/arm926ejs/sunxi/lowlevel_init.S | 67 +++ arch/arm/cpu/arm926ejs/sunxi/start.c | 1 + arch/arm/cpu/arm926ejs/sunxi/timer.c | 114 +++++ arch/arm/cpu/arm926ejs/sunxi/u-boot-spl.lds | 62 +++ arch/arm/dts/Makefile | 2 + arch/arm/dts/suniv-f1c100s-licheepi-nano.dts | 64 +++ arch/arm/dts/suniv-f1c100s.dtsi | 6 + arch/arm/dts/suniv.dtsi | 224 ++++++++++ arch/arm/include/asm/arch-sunxi/clock.h | 2 +- arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 25 ++ arch/arm/include/asm/arch-sunxi/cpu_sun4i.h | 8 + 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 | 2 + arch/arm/mach-sunxi/board.c | 31 +- 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 ++++++++++++++++++ board/sunxi/board.c | 4 +- configs/licheepi_nano_defconfig | 13 + configs/licheepi_nano_spiflash_defconfig | 25 ++ include/configs/suniv.h | 14 + include/configs/sunxi-common.h | 67 ++- include/dt-bindings/clock/suniv-ccu.h | 68 +++ include/dt-bindings/reset/suniv-ccu.h | 36 ++ 34 files changed, 1424 insertions(+), 29 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/lowlevel_init.S create mode 100644 arch/arm/cpu/arm926ejs/sunxi/start.c create mode 100644 arch/arm/cpu/arm926ejs/sunxi/timer.c 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 create mode 100644 configs/licheepi_nano_defconfig create mode 100644 configs/licheepi_nano_spiflash_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