From patchwork Sat Jun 3 20:02:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varshini Rajendran X-Patchwork-Id: 13266273 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 1F300C7EE2D for ; Sat, 3 Jun 2023 20:03:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229671AbjFCUDN (ORCPT ); Sat, 3 Jun 2023 16:03:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjFCUDM (ORCPT ); Sat, 3 Jun 2023 16:03:12 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BD9418D; Sat, 3 Jun 2023 13:03:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1685822591; x=1717358591; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=d01tRDxvZ5T+IIbhLGGRzLix+V9DNdmXlY+ubhvrJgA=; b=m2LwGDPl1RQ4G2TgvLKCRod321ZEh9jqV6HWCZfH0ashx9gyPUqhbb2v 7hlYRGH2gtWhS0jAgvo6S2Nz/WyQCLCc0KbGYzlmAdVNgw2zZgOZmlDib GKmdlY0tnphPmaJv12XDpCvMSF8uiGUsGpi38fYrRnfgjkhFelPlR8FPj jBDYmAkafWNKw/ZYzatJgg7zrAWn8kcpXoxDYfuomJ7vjbSRDLG/343wV SBuElDQyebhhkpqEcpsPpI/FaENqc73yiyXeHWoA4qM7Ypn0ps994uWho uytp8uDFNxeLfxX+rB9ffTvu75Yc5jqso4dm/ztqAnJiG24qmCzXaZAGq Q==; X-IronPort-AV: E=Sophos;i="6.00,216,1681196400"; d="scan'208";a="155388154" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 03 Jun 2023 13:03:09 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Sat, 3 Jun 2023 13:03:07 -0700 Received: from che-lt-i67070.amer.actel.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Sat, 3 Jun 2023 13:02:55 -0700 From: Varshini Rajendran To: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , CC: , , , , , , Subject: [PATCH 00/21] Add support for sam9x7 SoC family Date: Sun, 4 Jun 2023 01:32:22 +0530 Message-ID: <20230603200243.243878-1-varshini.rajendran@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org This patch series adds support for the new SoC family - sam9x7. - The device tree, configs and drivers are added - Clock driver for sam9x7 is added - Support for basic peripherals is added Balamanikandan Gunasundar (1): ARM: configs: at91: Enable csi and isc support Hari Prasath (1): irqchip/atmel-aic5: Add support for sam9x7 aic Nicolas Ferre (1): net: macb: add support for gmac to sam9x7 Varshini Rajendran (18): dt-bindings: microchip: atmel,at91rm9200-tcb: add sam9x60 compatible dt-bindings: usb: ehci: Add atmel at91sam9g45-ehci compatible dt-bindings: usb: generic-ehci: Document clock-names property ARM: dts: at91: sam9x7: add device tree for soc ARM: configs: at91: enable config flags for sam9x7 SoC ARM: configs: at91: add mcan support ARM: at91: pm: add support for sam9x7 soc family ARM: at91: pm: add sam9x7 soc init config ARM: at91: Kconfig: add config flag for SAM9X7 SoC ARM: at91: add support in soc driver for new sam9x7 clk: at91: clk-sam9x60-pll: re-factor to support individual core freq outputs clk: at91: sam9x7: add support for HW PLL freq dividers clk: at91: sam9x7: add sam9x7 pmc driver dt-bindings: irqchip/atmel-aic5: Add support for sam9x7 aic power: reset: at91-poweroff: lookup for proper pmc dt node for sam9x7 power: reset: at91-reset: add reset support for sam9x7 soc power: reset: at91-reset: add sdhwc support for sam9x7 soc dt-bindings: net: cdns,macb: add documentation for sam9x7 ethernet interface .../interrupt-controller/atmel,aic.txt | 2 +- .../devicetree/bindings/net/cdns,macb.yaml | 1 + .../soc/microchip/atmel,at91rm9200-tcb.yaml | 1 + .../devicetree/bindings/usb/generic-ehci.yaml | 5 + arch/arm/boot/dts/sam9x7.dtsi | 1333 +++++++++++++++++ arch/arm/configs/at91_dt_defconfig | 8 + arch/arm/mach-at91/Kconfig | 21 +- arch/arm/mach-at91/Makefile | 1 + arch/arm/mach-at91/generic.h | 2 + arch/arm/mach-at91/pm.c | 35 + arch/arm/mach-at91/sam9x7.c | 34 + drivers/clk/at91/Makefile | 1 + drivers/clk/at91/clk-sam9x60-pll.c | 50 +- drivers/clk/at91/pmc.h | 2 + drivers/clk/at91/sam9x60.c | 7 + drivers/clk/at91/sam9x7.c | 947 ++++++++++++ drivers/clk/at91/sama7g5.c | 7 + drivers/irqchip/irq-atmel-aic5.c | 10 + drivers/net/ethernet/cadence/macb_main.c | 1 + drivers/power/reset/Kconfig | 4 +- drivers/power/reset/at91-sama5d2_shdwc.c | 1 + drivers/soc/atmel/soc.c | 23 + drivers/soc/atmel/soc.h | 9 + 23 files changed, 2489 insertions(+), 16 deletions(-) create mode 100644 arch/arm/boot/dts/sam9x7.dtsi create mode 100644 arch/arm/mach-at91/sam9x7.c create mode 100644 drivers/clk/at91/sam9x7.c