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: 10264 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1826829vqr; Sat, 3 Jun 2023 13:09:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6s28ZdUQSGYFeyqkptr2tu/nWTkzS6TVqtWOsElRRJ6KWO35WqqyDaTfaCakQ2H6p7rqe0 X-Received: by 2002:a17:90b:3e8e:b0:259:c73:65e6 with SMTP id rj14-20020a17090b3e8e00b002590c7365e6mr1076421pjb.23.1685822942449; Sat, 03 Jun 2023 13:09:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685822942; cv=none; d=google.com; s=arc-20160816; b=eYG2/F6R+B2Z3vOKXWBlEfhuZcxHmnnYnoj/FwsfpBePOWBjLYFUpNKu1MBU+nqpB0 h9bgNRYXKR61BEbMhQvUE+davjpa4dkjYKf8jDk+JCiEFaPdRQeAN5TkXd7P3JL+TfMB L9R3GXKsSeMHQ1pMYspltV0YCy/Iuc19yszaXExXG6Jd9ttU8T/Urt3BM51uWgLczRIo ixqqDUPOziAcd+ZIW8ldonxw1ZHSuPLZGdwNxb4JPMTyiiCHMxdi4ZT+vpf9LX8uue97 4kQznW/f2XAI3p5WOi71hplrZGg04son/VYYZOcWKo1CVqOBRO4BIaY9QONRW0eiE9Q9 qQHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=G3Yo+8KRv94TSzU4o1iNeuyME4AEDKs2Z3PeSzh7+jo=; b=A36na8+ohmCA46ECtbmUa0cYuWjFeYBzOvtkqlvJLFiVkfBCZEC+RkYz5HCQXkkTgE PGKon6+oNZKXVJTAKFPeOZXnyV7Adhjp11a1DCFMyJSmVtTBhjwdo6qk5GroiROzgvKA Wivws2TFpW5ynknYPO1gNuecY4Q6idc9+JNTpqrg4xg9WiLI4PvmGzmsAJ0AXMjlTaSv s18LOS3yM9lzLCDiLyUEGKPEu1aBooqOaF1dasyhCcH04kvmh3BvF9ZzcnED/KzKqSH4 UXClDdDC7TVIX7a8/6qH+iTXf5SbIfNKEESfFMrX+GgZ2o0m163Oys5InXD9eh4DK7cQ SIRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=m2LwGDPl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l8-20020a655608000000b005307169868bsi3020629pgs.488.2023.06.03.13.08.48; Sat, 03 Jun 2023 13:09:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=m2LwGDPl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229683AbjFCUDN (ORCPT + 99 others); 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 X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767713477856599085?= X-GMAIL-MSGID: =?utf-8?q?1767713477856599085?= 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