From patchwork Mon Jun 3 09:10:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10972575 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 7620614C0 for ; Mon, 3 Jun 2019 09:10:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 600312818E for ; Mon, 3 Jun 2019 09:10:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4E34228396; Mon, 3 Jun 2019 09:10:26 +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 B1B532818E for ; Mon, 3 Jun 2019 09:10:25 +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=mzukdab8ZCm/3URtlyOP+PyrlUdCnxuewNT4EbKvZW4=; b=Xm+Fj9uhD8oQWo eHmU4NAbGlF9g5iZ1m6qKcqAsGpbmfQNnk24i04JRlSRMvRhPZd3PewQJn/xem3FwulR0c37TgeZ/ v3NHveSxaxp6XzUfI+AxhCfzP5kenmnmGLUL/As0OFT6sXAsjZ5DvAXGfa8U40zuaaj7CjwpSyFQN yGkTf5uQTkkRAXnfkqxEARUcBFK9SjsnpcKv2Vw3+1HA5YO0fMW96c9XAaT87wqxi3Ruk2YJf0zku TY+mX+enTFaaM6doD8W/8mlsg0V4qtfGr7/uNNjZo6JZ64m2LD3V2xmBg1zSowpdtScLVR0sFwUyo 7YoBtNpe9tzcau0SPxqg==; 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 1hXiz3-0008MO-5P; Mon, 03 Jun 2019 09:10:25 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hXiz0-0008Ka-Jp for linux-amlogic@lists.infradead.org; Mon, 03 Jun 2019 09:10:24 +0000 Received: by mail-wm1-x341.google.com with SMTP id c6so7249165wml.0 for ; Mon, 03 Jun 2019 02:10:22 -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=nQvczT9rgRgEoiOd9jOJm49nuBwwy90Cz49p7tEEfqk=; b=iz3NBvtvi6AeY1DsmYRuQyHSYP3gCHFihFbV9pM4ae0V95Lbk4fl4UbaaV6F5aqenS ba9PLk99CAS7dhepZLUIybSceHSPz7WW0POoDTjqg4beEA4ge0z60kqIWsrNlVLO4W22 gNKdvwAH+r7KuWWA6rWHAgHBPx/7UytDtmg4b+DCyIw1PEgzOdmHU0EAGIClTc/pwVHF rbXMw9dudAx/+mjfV0dQTs9YIFdQoFw5D4bUZSrHpBIMC2AsOVGcXyaTb5x+bvL9pdkR uA9BqN8/mbV+bS47/2pcjD0qtuBL8A0wb2VEpSMbqZiv3eMqyoPA8tIVquoFLBBMTwA6 xuow== 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=nQvczT9rgRgEoiOd9jOJm49nuBwwy90Cz49p7tEEfqk=; b=RjPSB5Y4xyI545+6O3avgq7YHsDIuX7s5JS/Ir4/O6ZX+rnk7LkNEfu/5iN6kqRZ2o kV8QjXjAvvr2Apt8p6Fl7iOaP3n4Ps8tiOIWlevuyfbf1f5x0V3zCmDijFCgFgui/gAp Vgua0eMKTOkNYnqAdnDpSngKnwApqGRI0xobhTD6hwyTyR67op1bJbAH3u/SvQ7A/BcY XFSbJlX6DUcqljxTOztFsQjONmCSKsq0tGkz10/xnizfh6qGNjbamfBVLJ5kVOOMLfkK yjeigfcnK7WfcxesC9WTBTE2Z/zicsFxU1yqu0lK/5YJqiiP7xQTHP8D0pjci2zIqTV4 jYHQ== X-Gm-Message-State: APjAAAW3yttt/NFAYrQvg/OFqf1iFC/cowiVc4CovzJArhplCAcP+FZR hADCTG34aQoZsxV6DurXwKP7dA== X-Google-Smtp-Source: APXvYqzY8Tog/IwFDWz+dNeTw9ZVgosoUZm310PR6zlHI7aI6TLrpXW6T95uCS7iMfYlOHWJd6RD7w== X-Received: by 2002:a1c:9602:: with SMTP id y2mr14245367wmd.115.1559553020661; Mon, 03 Jun 2019 02:10:20 -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 e15sm10676809wme.0.2019.06.03.02.10.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Jun 2019 02:10:20 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com Subject: [PATCH v5 0/3] arm64: Add initial support for Odroid-N2 Date: Mon, 3 Jun 2019 11:10:05 +0200 Message-Id: <20190603091008.2382-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-20190603_021022_709295_957D1634 X-CRM114-Status: GOOD ( 12.03 ) 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: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=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. Dependencies : - Patch 1, 2 : YAML rewrite of amlogic.txt bindings at [7] - Patch 3 : None since clock + g12b bindings has been acked Changes since v4 at [9]: - Fix regulators for USB Host Changes since v3 at [8]: - Dropped arm,armv8 - Dropped eee disable, not needed in further tests - Add comments about where are connected the regulators pins - Moved the phy0 regulator to the usb vbus regulator Changes since v2 at [5]: - sent the clk patches in standalone at [6] - rewrote the bindings on top of the YAML rewrite at [7] - Added MMC, SDCard and Network support to Odroid-N2 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 [5] https://lkml.kernel.org/r/20190423091503.10847-1-narmstrong@baylibre.com [6] https://lkml.kernel.org/r/20190521150130.31684-1-narmstrong@baylibre.com [7] https://lkml.kernel.org/r/20190517152723.28518-2-robh@kernel.org [8] https://lkml.kernel.org/r/20190521151952.2779-1-narmstrong@baylibre.com [9] https://lkml.kernel.org/r/20190527140206.30392-1-narmstrong@baylibre.com Neil Armstrong (3): 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.yaml | 6 + arch/arm64/boot/dts/amlogic/Makefile | 1 + .../boot/dts/amlogic/meson-g12b-odroid-n2.dts | 289 ++++++++++++++++++ arch/arm64/boot/dts/amlogic/meson-g12b.dtsi | 82 +++++ 4 files changed, 378 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12b.dtsi Tested-by: Kevin Hilman