From patchwork Tue Apr 23 09:14:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10912471 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 881541575 for ; Tue, 23 Apr 2019 09:15:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 782F520748 for ; Tue, 23 Apr 2019 09:15:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6B8392864B; Tue, 23 Apr 2019 09:15:20 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 D6F1720748 for ; Tue, 23 Apr 2019 09:15:19 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=m9OD4BleprdUa58PuJNgRyeGrBJHeBfQT+ShUY6mPag=; b=krPVNCXdoYOVQ3 Q52YL76D+5G4wejWyGv3v2U/Vu1c4QY+bqCQVSporcgklEfrMd2/iadYPfK3naEAYxrXK2ylr/TIN NcHIEopMRCNXQj3wL72+ZHtEzHm4FF9uT8eF+QNaUTLtR3dUGp+dJGVvGk7j0yXOR/8n0zjHFutv8 qNpkfZqtMa2k7eY8hLp6WgxI0JRfDeahVoRTL79mcjJwsjzkgyM8m8HEpMedoVy0HNAvXr5aL/9h3 BnXPxt954xGRBr4n4GFTN/Tlyk8U2QVpKVBYeRLhG9ePFoNQAF9P04jPmmgrhFnHrv9lHX6vlPdL4 xDJciQ6Mxn3mKWSDQqJg==; 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 1hIrWD-0002lt-Pu; Tue, 23 Apr 2019 09:15:13 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hIrW9-0002jJ-A5 for linux-arm-kernel@lists.infradead.org; Tue, 23 Apr 2019 09:15:11 +0000 Received: by mail-wm1-x343.google.com with SMTP id j13so2086208wmh.2 for ; Tue, 23 Apr 2019 02:15:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=aEpgBoCDht4RP4PwgNxCA0pxhZltSrLODlaosGYp0d8=; b=F9HZc8MVHjpTa9CRrAQafrQVIrBphyy7Lb0h2edvMuDsCMf0gYRMn1Tohm/Mhjvinw 1bwktUtXC1keeIQuGnhcP1/WSj6C3I21plZB+V9YSgilJHqbWYefnNsb7ehTpE4TOrjm c9cntMdXWsFNuZ9wmfya+JtUz/prIGzLSwk5/ARl3UqgL9HPvIIoVzt/5uLb81m2k7Ww hhlAZ53aQAw2Nr5T2EUiil3kx0WsjAxFhQZCAIuRc97qEo8pC92NDX7oCjwsOmycibq1 hnteGomN54Z5k9AKKoi8AI6HkQj9tYW6QFnWKj+ZHZuabvizTw/gQTdHXZSifEDUN/n1 QS3g== 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:mime-version :content-transfer-encoding; bh=aEpgBoCDht4RP4PwgNxCA0pxhZltSrLODlaosGYp0d8=; b=SlRrRztI8KF1t7xTsjWzdmocQyUX0jgcxqmauKPUCHirUQdLmalhACanF5BHGtrYj6 fxRXYgzyJ3NwC8ynFYjq5yCh7EjNSfexZca2jKCis0Ih1IMQ1dn1sj/7zLnOjAZFRvz+ 2BRWHw4uPE7T+4k3UlIzOqjCkLM4wf3LZ9u/OmseN7MaDXXAjw5U7qmGjYNoj3wugsJG opE++mUVhLqMa6I4F46vuYkcpd5k8zsqPn+Wd25nWFdE16U6JBmzjsnAXAnsHysMM1tC N1Mxf2Q8URI5p4pP8D1VKZx8dI/Zpgq3GyyuTum/pUsA4AFAPQ7Vp4m+YZY5Pb4I8I0A sxnA== X-Gm-Message-State: APjAAAWhsRCXf5Vj0oSlgs0bRGL8WkYztQYF/pOqaKSqwC2uWyaq1s1V uN8CMROpX1izBS7HnIxRE7qu0A== X-Google-Smtp-Source: APXvYqzLM5So+4KWpmNl1mDMA2rbtz4sa3W1/fPFvpctQtpkvQqBfU0YMiTAxzFUAPYVRa9YQsnyvg== X-Received: by 2002:a7b:c086:: with SMTP id r6mr1388086wmh.123.1556010907660; Tue, 23 Apr 2019 02:15:07 -0700 (PDT) Received: from bender.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id t17sm12241272wrr.26.2019.04.23.02.15.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 23 Apr 2019 02:15:06 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com, jbrunet@baylibre.com Subject: [PATCH v2 0/6] arm64: Add initial support for Odroid-N2 Date: Tue, 23 Apr 2019 11:14:57 +0200 Message-Id: <20190423091503.10847-1-narmstrong@baylibre.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190423_021509_362476_5D6AFE54 X-CRM114-Status: GOOD ( 14.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patchset adds basic support for : - Amlogic G12B, which is very similar to G12A - The HardKernel Odroid-N2 based on the S922X SoC The Amlogic G12B SoC is very similar with the G12A SoC, sharing most of the features and architecture, but with these differences : - The first CPU cluster only has 2xCortex-A53 instead of 4 - G12B has a second cluster of 4xCortex-A73 - Both cluster can achieve 2GHz instead of 1,8GHz for G12A - CPU Clock architecture is difference, thus needing a different compatible to handle this slight difference - Supports a MIPI CSI input - Embeds a Mali-G52 instead of a Mali-G31, but integration is the same Actual support is done in the same way as for the GXM support, including the G12A dtsi and redefining the CPU clusters. Unlike GXM, the first cluster is different, thus needing to remove the last 2 cpu nodes of the first cluster. G12B clock driver is very close, the main differences are : - the clock tree is duplicated for the both clusters, and the SYS_PLL are swapped between the clusters - G12A has additional clocks like for CSI an other components Dependencies : - Patch 1, 3, 4, 5, 6 : None - Patch 2 : Depends on Guillaume's Temperature sensor Clock patches at [4] Changes since v1 at [3]: - Renamed the g12b cpu clocks like g12a counterparts - Rebased clock patches on top of Guillaume's Temperature sensor Clock patches at [4] - Added AO-CEC-B support to N2 DTS Changes since RFC at [1]: - Added bindings review tags - Moved the fclk_div3 CRITICAL flags to the gate - Removed invalid CRITICAL flags on the cpu clocks [1] https://lkml.kernel.org/r/20190327103308.25058-1-narmstrong@baylibre.com [2] https://lkml.kernel.org/r/20190325145914.32391-1-narmstrong@baylibre.com [3] https://lkml.kernel.org/r/20190404150518.30337-1-narmstrong@baylibre.com [4] https://lkml.kernel.org/r/20190412100221.26740-1-glaroque@baylibre.com Neil Armstrong (6): dt-bindings: clk: meson: add g12b periph clock controller bindings clk: meson: g12a: Add support for G12B CPUB clocks clk: meson: g12a: mark fclk_div3 as critical dt-bindings: arm: amlogic: add G12B bindings dt-bindings: arm: amlogic: add Odroid-N2 binding arm64: dts: meson: Add minimal support for Odroid-N2 .../devicetree/bindings/arm/amlogic.txt | 6 + .../bindings/clock/amlogic,gxbb-clkc.txt | 1 + arch/arm64/boot/dts/amlogic/Makefile | 1 + .../boot/dts/amlogic/meson-g12b-odroid-n2.dts | 185 +++++++ arch/arm64/boot/dts/amlogic/meson-g12b.dtsi | 82 ++++ drivers/clk/meson/g12a.c | 453 ++++++++++++++++++ drivers/clk/meson/g12a.h | 20 +- 7 files changed, 747 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12b.dtsi