From patchwork Sun May 6 09:21:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10382677 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9D52160353 for ; Sun, 6 May 2018 09:21:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 912FE28969 for ; Sun, 6 May 2018 09:21:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 854BC28C63; Sun, 6 May 2018 09:21:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2FBA528969 for ; Sun, 6 May 2018 09:21:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=wTHAb7TsziGO55lvAxeJPNiPmFuGyxffNGOUBkvWCsk=; b=baKBo6idhDjxNA9e8iGwWYhbPu 7wJZKIEJpwY7hUjXfqRSOOrtt+dP4ojCSOJAZVVcmzS4MehRPIBYUCVEEp3KF5tqWFi9hf5ViwuwG OF0WtZZPrss13BhbnUATARPbW2gUoe88u2ebBs8pEzhMK2MxN48LZBpJmM7ouG96QVScyV0A5tx+p nolv59+accNgT1jrOKCgNR5JbOUqT5ONMmcI82UI1UEyHOqerT8ktkNmySFtXRWG/v5RDdad4T3Qd EPbL/4r4Oe98jhNmDw8GsDTGt9ML8hVUgXBzI8sEsZNdLKtkwCP4wI1d1SUga0xt+h2rRsHpFdsqG JthJAsMg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fFFrX-0002v5-VY; Sun, 06 May 2018 09:21:48 +0000 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fFFrR-0002p7-DY for linux-amlogic@lists.infradead.org; Sun, 06 May 2018 09:21:43 +0000 Received: by mail-wr0-x244.google.com with SMTP id g21-v6so24966140wrb.8 for ; Sun, 06 May 2018 02:21:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=A321VkPg9B52MqdU+8sfKxZ2RXfS/mf9v1pLZwLWkD4=; b=EfCK0UK0G2p/i1XP68FDXq2ztumOPla+KedFM/ZZ6r7rUMGSfAI0fhCzB8jNUPT+N9 QQQPyenCz8XNhC46EVjI4FMuRfb+GfZZaKL9CdOrUzN+OkYhkiS04Yl/QKzZAs+MC/Dm c0ftmaRrGj5Eszvmp7qX0hDHqo75EFqBHn7njoAoJzZPnCM7au0aFE/wTLUMzldD2f1b suybhNGZooKNRAJeDUVcYRcA3MUKE2OgLMchv2GWqmhGGeUKAN9AeN178ZKyh/1zxc+e HO/HRni05MNMNOqrz1wrgHxZWR2tlBeo6kEl76Vbi1Qvp+7UPdIYdgpZlK9O55qfO7Ud gE1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=A321VkPg9B52MqdU+8sfKxZ2RXfS/mf9v1pLZwLWkD4=; b=qmJ6m1f5RSBWyWOLQXuEkWBTJzLQ378a0IMQAPkSOz1OdA7810rGDxJTK5QTsoiZLg xmD9TzZap6yb5WqjOsZPNyOR3qW1DrDIZb5waCYiHdW+4OIh1YvCeqqNBrZGSHeDwyBJ 5OTQMU4wkUapsrE0SMXEifAXMIefH2GGiSCpuch6iHoerQae7VENOeoUnnSaqe+ocS8l Cm9zp5lGuQax9+cr4y9nzOVm2wDN1dyuI363xVchBM/z0tcjsrDUpzkL5nMP1KXogzg8 AigPWFIlCt2lmodHCEFaH/0lZTSdqv3DJvUwkedqBOxEzHOsDlWc7NuzjOR/Vu6i799B 6/dg== X-Gm-Message-State: ALQs6tCRcWW2cSKxDWI5kZ4iNCZ/yL7VqfKE9CVCHnsRYHfjE82je+uU eV0GdPPzAi4GzyuF7kT1hkPkqRRM X-Google-Smtp-Source: AB8JxZqNN1xYIgBvhjdDEIykFkIHomimo7OxvoJoGqu9lk2XXAAGCZwqSu6X5KQih/xi10Js7PvOPA== X-Received: by 2002:adf:a558:: with SMTP id j24-v6mr26713959wrb.261.1525598490972; Sun, 06 May 2018 02:21:30 -0700 (PDT) Received: from blackbox.darklights.net (p5B0567E9.dip0.t-ipconnect.de. [91.5.103.233]) by smtp.googlemail.com with ESMTPSA id u20-v6sm30347288wru.33.2018.05.06.02.21.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 May 2018 02:21:30 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, khilman@baylibre.com, carlo@caione.org, robh+dt@kernel.org, mark.rutland@arm.com Subject: [PATCH 3/6] ARM: meson: add support for the Meson8m2 SoCs Date: Sun, 6 May 2018 11:21:16 +0200 Message-Id: <20180506092119.467-4-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180506092119.467-1-martin.blumenstingl@googlemail.com> References: <20180506092119.467-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180506_022141_482078_747C3B9C X-CRM114-Status: GOOD ( 11.92 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: balbes-150@yandex.ru, Martin Blumenstingl MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add a new Kconfig entry as well as the newly introduced compatible string for the Meson8m2 SoC. The Kconfig entry selects the same drivers as Meson8b because Meson8m2 SoC is mostly compatible with Meson8 (both share the same pinctrl driver, so they also share the same GPIO IRQ settings. also the same Meson6 timer is used on Meson8m2). Signed-off-by: Martin Blumenstingl --- arch/arm/mach-meson/Kconfig | 7 +++++++ arch/arm/mach-meson/meson.c | 1 + 2 files changed, 8 insertions(+) diff --git a/arch/arm/mach-meson/Kconfig b/arch/arm/mach-meson/Kconfig index d90f61e6254f..44a489889bc1 100644 --- a/arch/arm/mach-meson/Kconfig +++ b/arch/arm/mach-meson/Kconfig @@ -32,4 +32,11 @@ config MACH_MESON8B select COMMON_CLK_MESON8B select MESON_IRQ_GPIO +config MACH_MESON8M2 + bool "Amlogic Meson8m2 SoCs support" + default ARCH_MESON + select MESON6_TIMER + select COMMON_CLK_MESON8B + select MESON_IRQ_GPIO + endif diff --git a/arch/arm/mach-meson/meson.c b/arch/arm/mach-meson/meson.c index 4e2357178625..c8d99df32f9b 100644 --- a/arch/arm/mach-meson/meson.c +++ b/arch/arm/mach-meson/meson.c @@ -20,6 +20,7 @@ static const char * const meson_common_board_compat[] = { "amlogic,meson6", "amlogic,meson8", "amlogic,meson8b", + "amlogic,meson8m2", NULL, };