From patchwork Wed Mar 27 10:33:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10873199 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 2066B139A for ; Wed, 27 Mar 2019 10:33:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 06F3D28CA8 for ; Wed, 27 Mar 2019 10:33:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EEC5428CBB; Wed, 27 Mar 2019 10:33:23 +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 73D3E28CA8 for ; Wed, 27 Mar 2019 10:33:23 +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=+rQZ2WL1HdSNFygW4vICHWpSA2MkG2NKBYn3XADFwCA=; b=Jtj6dWF4TQ8e+K yrMEC6xRQMF2l08lPC09bbF7r35SFUOWRv/2rK19tOXNcV0l35YKVciPTjZ55/WihB7M7DulgFy2B Ji6WvJ/yDyW5mXm/OJmxF+/XcpcYPbKlZk0TlmZfYrIOdiKJc1GqcC4vE0b4f+Zp8xQy4FeSdmIPp tUOvkrxioC0vJTzEgn1yt91NHiyuQrp7wUUiW0woYrmwyp4eKb0v+Pjp1g5/2bzMCobW0gdVew1PY cA4T4AxXHEB+E+R27iQj9ddtXow1Gul3oJPuGfAN2nyg9PFqX+z4i7yWR2ES9b2DUKFEFfqbvpFgM DIMiEY9SbLphzHAavJGQ==; 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 1h95ry-0007iA-Li; Wed, 27 Mar 2019 10:33:18 +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 1h95rt-0007el-8e for linux-arm-kernel@lists.infradead.org; Wed, 27 Mar 2019 10:33:16 +0000 Received: by mail-wm1-x343.google.com with SMTP id h18so16163757wml.1 for ; Wed, 27 Mar 2019 03:33:11 -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=o137uva63juW93zS7C+0X9Xktfg/ljv44fOwKD1OTCM=; b=zlONF8A3Nt8bDK5P9VU0SFMt96DS+Y3By+98O1lbKJN0YDlsMnXavpm++5/mMToNKa JTQGB4RvIMzqYSX4qdHDuKRTlmbj9AeAoH6R1vn5bqkLyxDhuh/Ifgx5OfUl0KUPOUj7 l7ytOEH9wcuzgNDJqfFOZmMs+b8HJ1ZhSlcdNQBPQrRe7L0PDWGkR5lzhRU2yMuAD5NK 0eP1Zrc85PIUYRyFJDhcVY92+J7dFhU32sz56xVT82E/BN5toIp1PhUVRXsLb+pjJPdo V3xB6vg1m4xTmDSkZV4qrDvuOn2pgL+gtX0F1WpxIfT1A2waUnKjvk42UQFMvnbLoU/a 08tA== 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=o137uva63juW93zS7C+0X9Xktfg/ljv44fOwKD1OTCM=; b=C9B7e7tbanHe+qZGh9kTzHMOu5G+XjLNmBYf6pIcF4OpP/+m/01nfqQjZXBizbsQKI 1RiSFBU4VtIJskl5NtFASu/CtlH17IVXlmdDwXdYLxMsNzIKkR/fiEzOkE1fEmZWRYMJ ARY+w5zVkcw15j2Soi98kl2mpVeIDm5y8GnBH2J5aCqsWkwWHLD7uzIWZ45GoOnYzM0o 0fH2NeqCVywmt9yR7xjgYgkmDqq/DGU5/K2CUNF+mtx7DbFf1PYSs58rBTcYX4gHdV4S TPTssclu2UgTQpjUVZqsLbxDNdd8wL4d/glQHAOe5OgV+vOnqcQJErgMl4p1jfBqhE3o eQYg== X-Gm-Message-State: APjAAAVOdSUf3twkX3dHjDbxw9QoiHKO3lFJB/TNWawAGHUf0pvkFLme tzPi0hzeNiwXd5Mropuxg+8u5A== X-Google-Smtp-Source: APXvYqxBjvjVbbq2HrJnePVNzZsvZDvrKjzkQS4V25pQD2mdZxL4dsYp9YbkWpTCjPon63XiuOUFcQ== X-Received: by 2002:a1c:9c0e:: with SMTP id f14mr18752585wme.78.1553682790182; Wed, 27 Mar 2019 03:33:10 -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 a20sm27017513wmb.17.2019.03.27.03.33.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Mar 2019 03:33:09 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com Subject: [PATCH RFC 0/6] arm64: Add initial support for Odroid-N2 Date: Wed, 27 Mar 2019 11:33:02 +0100 Message-Id: <20190327103308.25058-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-20190327_033313_390367_A82D3A72 X-CRM114-Status: GOOD ( 13.16 ) 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 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 | 178 +++++++ arch/arm64/boot/dts/amlogic/meson-g12b.dtsi | 82 +++ drivers/clk/meson/g12a.c | 466 ++++++++++++++++++ drivers/clk/meson/g12a.h | 20 +- 7 files changed, 753 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