From patchwork Fri Jul 30 13:45:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bert Vermeulen X-Patchwork-Id: 489471 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E6129C4320A for ; Fri, 30 Jul 2021 13:54:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D19F560F5E for ; Fri, 30 Jul 2021 13:54:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239210AbhG3NyO (ORCPT ); Fri, 30 Jul 2021 09:54:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239206AbhG3NyJ (ORCPT ); Fri, 30 Jul 2021 09:54:09 -0400 Received: from yawp.biot.com (yawp.biot.com [IPv6:2a01:4f8:10a:8e::fce2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2875C0617A0 for ; Fri, 30 Jul 2021 06:54:03 -0700 (PDT) Received: from debian-spamd by yawp.biot.com with sa-checked (Exim 4.93) (envelope-from ) id 1m9Spr-006bT4-3A for devicetree@vger.kernel.org; Fri, 30 Jul 2021 15:45:59 +0200 Received: from [2a02:578:460c:1:ae1f:6bff:fed1:9ca8] (helo=sumner.biot.com) by yawp.biot.com with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1m9Spq-006bT0-TU; Fri, 30 Jul 2021 15:45:59 +0200 Received: from bert by sumner.biot.com with local (Exim 4.93) (envelope-from ) id 1m9Spq-003a0x-Ce; Fri, 30 Jul 2021 15:45:58 +0200 From: Bert Vermeulen To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sam Ravnborg , Oleksij Rempel , Daniel Palmer , Max Merchel , Geert Uytterhoeven , Hao Fang Cc: Bert Vermeulen , John Crispin , Felix Fietkau Subject: [PATCH 1/5] dt-bindings: Add vendor prefix for EcoNet Date: Fri, 30 Jul 2021 15:45:48 +0200 Message-Id: <20210730134552.853350-2-bert@biot.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210730134552.853350-1-bert@biot.com> References: <20210730134552.853350-1-bert@biot.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: John Crispin Add vendor prefix "econet" for EcoNet. Signed-off-by: John Crispin Signed-off-by: Bert Vermeulen Acked-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index 07fb0d25fc15..9a47725f3948 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -333,6 +333,8 @@ patternProperties: description: EBV Elektronik "^eckelmann,.*": description: Eckelmann AG + "^econet,.*": + description: EcoNet "^edt,.*": description: Emerging Display Technologies "^eeti,.*": From patchwork Fri Jul 30 13:45:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bert Vermeulen X-Patchwork-Id: 489924 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1996AC432BE for ; Fri, 30 Jul 2021 13:54:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 04B2F60EFF for ; Fri, 30 Jul 2021 13:54:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239102AbhG3NyK (ORCPT ); Fri, 30 Jul 2021 09:54:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239156AbhG3NyF (ORCPT ); Fri, 30 Jul 2021 09:54:05 -0400 Received: from yawp.biot.com (yawp.biot.com [IPv6:2a01:4f8:10a:8e::fce2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83671C06175F for ; Fri, 30 Jul 2021 06:53:59 -0700 (PDT) Received: from debian-spamd by yawp.biot.com with sa-checked (Exim 4.93) (envelope-from ) id 1m9Spu-006bTR-Bd for devicetree@vger.kernel.org; Fri, 30 Jul 2021 15:46:02 +0200 Received: from [2a02:578:460c:1:ae1f:6bff:fed1:9ca8] (helo=sumner.biot.com) by yawp.biot.com with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1m9Spu-006bTN-4Z; Fri, 30 Jul 2021 15:46:02 +0200 Received: from bert by sumner.biot.com with local (Exim 4.93) (envelope-from ) id 1m9Spt-003a1Q-MT; Fri, 30 Jul 2021 15:46:01 +0200 From: Bert Vermeulen To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Rob Herring , John Crispin , Bert Vermeulen , Felix Fietkau Subject: [PATCH 2/5] dt-bindings: arm: econet: Add binding for EN7523 SoC and EVB Date: Fri, 30 Jul 2021 15:45:49 +0200 Message-Id: <20210730134552.853350-3-bert@biot.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210730134552.853350-1-bert@biot.com> References: <20210730134552.853350-1-bert@biot.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: John Crispin Add devicetree binding for Econet EN7523 SoC and evaluation board. Signed-off-by: John Crispin Signed-off-by: Bert Vermeulen --- .../devicetree/bindings/arm/econet.yaml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/econet.yaml diff --git a/Documentation/devicetree/bindings/arm/econet.yaml b/Documentation/devicetree/bindings/arm/econet.yaml new file mode 100644 index 000000000000..39128f959fef --- /dev/null +++ b/Documentation/devicetree/bindings/arm/econet.yaml @@ -0,0 +1,27 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/econet.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: EcoNet SoC based Platforms Device Tree Bindings + +maintainers: + - Felix Fietkau + - John Crispin +description: | + Boards with an EcoNet SoC shall have the following properties. + +properties: + $nodename: + const: '/' + compatible: + oneOf: + - items: + - enum: + - econet,en7523-evb + - const: econet,en7523 + +additionalProperties: true + +... From patchwork Fri Jul 30 13:45:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bert Vermeulen X-Patchwork-Id: 489472 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 53051C432BE for ; Fri, 30 Jul 2021 13:53:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3E5A860FE7 for ; Fri, 30 Jul 2021 13:53:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231137AbhG3Nxu (ORCPT ); Fri, 30 Jul 2021 09:53:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238993AbhG3Nxt (ORCPT ); Fri, 30 Jul 2021 09:53:49 -0400 Received: from yawp.biot.com (yawp.biot.com [IPv6:2a01:4f8:10a:8e::fce2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAC3AC0613CF for ; Fri, 30 Jul 2021 06:53:44 -0700 (PDT) Received: from debian-spamd by yawp.biot.com with sa-checked (Exim 4.93) (envelope-from ) id 1m9Spz-006bUN-9E for devicetree@vger.kernel.org; Fri, 30 Jul 2021 15:46:07 +0200 Received: from [2a02:578:460c:1:ae1f:6bff:fed1:9ca8] (helo=sumner.biot.com) by yawp.biot.com with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1m9Spz-006bUJ-5u; Fri, 30 Jul 2021 15:46:07 +0200 Received: from bert by sumner.biot.com with local (Exim 4.93) (envelope-from ) id 1m9Spy-003a2R-MC; Fri, 30 Jul 2021 15:46:06 +0200 From: Bert Vermeulen To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Russell King , Arnd Bergmann , Linus Walleij , Andrew Morton , Geert Uytterhoeven , Anshuman Khandual , Krzysztof Kozlowski , John Crispin , Ard Biesheuvel , YiFei Zhu , Mike Rapoport , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Nick Desaulniers , Kees Cook , Masahiro Yamada , Nathan Chancellor , Viresh Kumar Cc: Bert Vermeulen , Felix Fietkau Subject: [PATCH 4/5] ARM: Add basic support for EcoNet EN7523 SoC Date: Fri, 30 Jul 2021 15:45:51 +0200 Message-Id: <20210730134552.853350-5-bert@biot.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210730134552.853350-1-bert@biot.com> References: <20210730134552.853350-1-bert@biot.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: John Crispin EN7523 is an armv7 based silicon used inside broadband access type devices such as xPON and xDSL. It shares various silicon blocks with MediaTek silicon such as the MT7622. Signed-off-by: John Crispin Signed-off-by: Bert Vermeulen --- arch/arm/Kconfig | 14 ++++++++++++++ arch/arm/Makefile | 1 + 2 files changed, 15 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 82f908fa5676..e4a9401f8513 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -580,6 +580,20 @@ config ARCH_VIRT select HAVE_ARM_ARCH_TIMER select ARCH_SUPPORTS_BIG_ENDIAN +config ARCH_ECONET + bool "Econet SoC Support" + depends on ARCH_MULTI_V7 + select ARM_AMBA + select ARM_GIC + select ARM_GIC_V3 + select ARM_DMA_USE_IOMMU + select ARM_PSCI + select HAVE_ARM_ARCH_TIMER + select IOMMU_DMA + select COMMON_CLK + help + Support for Econet EN7523 SoCs + # # This is sorted alphabetically by mach-* pathname. However, plat-* # Kconfigs may be included either alphabetically (according to the diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 173da685a52e..1bff0aa29c07 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -152,6 +152,7 @@ textofs-$(CONFIG_ARCH_MSM8X60) := 0x00208000 textofs-$(CONFIG_ARCH_MSM8960) := 0x00208000 textofs-$(CONFIG_ARCH_MESON) := 0x00208000 textofs-$(CONFIG_ARCH_AXXIA) := 0x00308000 +textofs-$(CONFIG_ARCH_ECONET) := 0x00088000 # Machine directory name. This list is sorted alphanumerically # by CONFIG_* macro name. From patchwork Fri Jul 30 13:45:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bert Vermeulen X-Patchwork-Id: 489925 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2EFFAC4338F for ; Fri, 30 Jul 2021 13:53:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 176B260F5E for ; Fri, 30 Jul 2021 13:53:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238993AbhG3Nxw (ORCPT ); Fri, 30 Jul 2021 09:53:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239073AbhG3Nxv (ORCPT ); Fri, 30 Jul 2021 09:53:51 -0400 Received: from yawp.biot.com (yawp.biot.com [IPv6:2a01:4f8:10a:8e::fce2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0CE8C06175F for ; Fri, 30 Jul 2021 06:53:46 -0700 (PDT) Received: from debian-spamd by yawp.biot.com with sa-checked (Exim 4.93) (envelope-from ) id 1m9Sq3-006bVw-0W for devicetree@vger.kernel.org; Fri, 30 Jul 2021 15:46:11 +0200 Received: from [2a02:578:460c:1:ae1f:6bff:fed1:9ca8] (helo=sumner.biot.com) by yawp.biot.com with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1m9Sq2-006bVb-Sc; Fri, 30 Jul 2021 15:46:10 +0200 Received: from bert by sumner.biot.com with local (Exim 4.93) (envelope-from ) id 1m9Sq2-003a3O-CA; Fri, 30 Jul 2021 15:46:10 +0200 From: Bert Vermeulen To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Russell King , Alexandre Torgue , Krzysztof Kozlowski , Arnd Bergmann , Shawn Guo , Marek Szyprowski , Dong Aisheng , Olivier Moysan , Manivannan Sadhasivam , Grygorii Strashko , Florian Fainelli , Lionel Debieve , Fabrice Gasnier , Dmitry Osipenko , Alexandre Belloni , Stefan Wahren Cc: Bert Vermeulen , John Crispin , Felix Fietkau Subject: [PATCH 5/5] ARM: multi_v7_defconfig: Add support for EcoNet EN7523 SoC Date: Fri, 30 Jul 2021 15:45:52 +0200 Message-Id: <20210730134552.853350-6-bert@biot.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210730134552.853350-1-bert@biot.com> References: <20210730134552.853350-1-bert@biot.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: John Crispin This enables basic bootup support for the EcoNet EN7523 SoC. Signed-off-by: Bert Vermeulen --- arch/arm/configs/multi_v7_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index d9abaae118dd..18a10ef6df5d 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/configs/multi_v7_defconfig @@ -31,6 +31,7 @@ CONFIG_MACH_BERLIN_BG2=y CONFIG_MACH_BERLIN_BG2CD=y CONFIG_MACH_BERLIN_BG2Q=y CONFIG_ARCH_DIGICOLOR=y +CONFIG_ARCH_ECONET=y CONFIG_ARCH_EXYNOS=y CONFIG_ARCH_HIGHBANK=y CONFIG_ARCH_HISI=y @@ -983,6 +984,7 @@ CONFIG_STAGING_BOARD=y CONFIG_MFD_CROS_EC_DEV=m CONFIG_CROS_EC_I2C=m CONFIG_CROS_EC_SPI=m +CONFIG_COMMON_CLK_EN7523=y CONFIG_COMMON_CLK_MAX77686=y CONFIG_COMMON_CLK_RK808=m CONFIG_COMMON_CLK_SCMI=y