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 7B0F2C433F5 for ; Tue, 8 Mar 2022 00:24:32 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CFF7A83542; Tue, 8 Mar 2022 01:24:26 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=gateworks.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 4D69683217; Tue, 8 Mar 2022 01:24:20 +0100 (CET) Received: from finn.localdomain (finn.gateworks.com [108.161.129.64]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4A5A0815D1 for ; Tue, 8 Mar 2022 01:24:12 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=gateworks.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tharvey@gateworks.com Received: from 068-189-091-139.biz.spectrum.com ([68.189.91.139] helo=tharvey.pdc.gateworks.com) by finn.localdomain with esmtp (Exim 4.93) (envelope-from ) id 1nRNe5-00BP0Q-Gt; Tue, 08 Mar 2022 00:24:09 +0000 From: Tim Harvey To: u-boot@lists.denx.de, Stefano Babic , Fabio Estevam Cc: Tim Harvey Subject: [PATCH 0/7] Add Gateworks System Controller driver Date: Mon, 7 Mar 2022 16:23:59 -0800 Message-Id: <20220308002406.22433-1-tharvey@gateworks.com> X-Mailer: git-send-email 2.17.1 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 series Adds a driver for the Gateworks System Controller (GSC) present on boards from Gateworks Corporation. Patches 1-4 are gw_ventana cleanups to prepare for using the DM_I2C based driver. Patch 5 is for the driver itself Patch 6 moves gw_ventana over to using the GSC driver Patch 7 moves venice over to using the GSC driver Tim Tim Harvey (7): board: gateworks: gw_ventana: convert to DM_I2C board: gateworks: gw_ventana: move SPL uart config out of common board: gateworks: gw_ventana: move GPIO config out of common board: gateworks: gw_ventana: move ft_early_fixups out of common drivers: misc: add Gateworks System Controller driver board: gateworks: gw_ventana: use comomn GSC driver board: gateworks: venice: use common GSC driver MAINTAINERS | 6 + arch/arm/dts/imx8mm-venice-u-boot.dtsi | 4 + arch/arm/dts/imx8mm-venice.dts | 7 + arch/arm/dts/imx8mn-venice-u-boot.dtsi | 4 + arch/arm/dts/imx8mn-venice.dts | 7 + arch/arm/mach-imx/imx8m/Kconfig | 4 + arch/arm/mach-imx/mx6/Kconfig | 2 + board/gateworks/gw_ventana/Kconfig | 8 - board/gateworks/gw_ventana/Makefile | 2 +- board/gateworks/gw_ventana/common.c | 527 +------------ board/gateworks/gw_ventana/common.h | 14 +- board/gateworks/gw_ventana/eeprom.c | 224 +++++- .../gw_ventana/{ventana_eeprom.h => eeprom.h} | 16 +- board/gateworks/gw_ventana/gsc.c | 425 ----------- board/gateworks/gw_ventana/gsc.h | 71 -- board/gateworks/gw_ventana/gw_ventana.c | 290 ++++++-- board/gateworks/gw_ventana/gw_ventana_spl.c | 311 +++++++- board/gateworks/venice/Makefile | 2 +- board/gateworks/venice/eeprom.c | 353 +++++++++ board/gateworks/venice/{gsc.h => eeprom.h} | 26 +- board/gateworks/venice/gsc.c | 700 ------------------ board/gateworks/venice/spl.c | 53 +- board/gateworks/venice/venice.c | 27 +- configs/gwventana_emmc_defconfig | 4 +- configs/gwventana_gw5904_defconfig | 4 +- configs/gwventana_nand_defconfig | 4 +- configs/imx8mm_venice_defconfig | 1 + configs/imx8mn_venice_defconfig | 3 +- drivers/misc/Kconfig | 8 + drivers/misc/Makefile | 1 + drivers/misc/gsc.c | 633 ++++++++++++++++ include/configs/gw_ventana.h | 3 - include/gsc.h | 21 + scripts/config_whitelist.txt | 1 - 34 files changed, 1866 insertions(+), 1900 deletions(-) rename board/gateworks/gw_ventana/{ventana_eeprom.h => eeprom.h} (82%) delete mode 100644 board/gateworks/gw_ventana/gsc.c delete mode 100644 board/gateworks/gw_ventana/gsc.h create mode 100644 board/gateworks/venice/eeprom.c rename board/gateworks/venice/{gsc.h => eeprom.h} (55%) delete mode 100644 board/gateworks/venice/gsc.c create mode 100644 drivers/misc/gsc.c create mode 100644 include/gsc.h -- 2.17.1