Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp586078ybh; Tue, 21 Jul 2020 02:58:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqc7ZPNP5EWyFT2OP9FHrwxUbdlBHF6P6FUfab7jjYZps/2WHQSz9TtwC0l5ulu2g0wvPb X-Received: by 2002:a17:906:b217:: with SMTP id p23mr25326661ejz.98.1595325536355; Tue, 21 Jul 2020 02:58:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595325536; cv=none; d=google.com; s=arc-20160816; b=IrpqNe8vw+EPMKgbUlqIrtCKvzCB8SyqVcYIIYcBeAOW3Nm2PbtIymEvvb6CaZZjlO n1xfF2GV7GmfacqTI1AmSyKlUSPrUrbaILNSM7/am3PEn6+oPBznA97FbKgE/jXCndsw lhlF9+nDvPuOrU61qcVXtFaToN0FqysdLAv772/9gBzQwZ1x/mlf1fV9ZPTO0/IIW4bp ec9bR3Wo9nuFA2IiNHJ0c5CAaHIuvR8EuhXKekl4YaPz06P/C2NlSko2YvROXnwQIDw/ dY//axI7h5S2fLGof4ZUspGSmh87XJGyB0DoZg0P49XWnjFyjsHHxRGwo9e0DzOWNHD9 urNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=uQnhIuf4xfOnC38xqH6WdF/IwObbq5YHuPCxVqakQOQ=; b=PMpv2DXKSo25jKwiOAVVbSpIri3QBXh8SA6fZxnNUMC87QwqWns7PoFWKvZeLVsmvq RPH1o5qRhEVWuwMkvg/e4JcsVyYBXjTv6/H5jX8I6081Y/oL5vqAj/Dzu9CfWENt5S1P 3gDetYjqge50hgEGvt1bNHbZ/gpWYwP0LwTkCvs+6ng9BYUwesnSlQ7bztYekp9uk28c 6fDx9X2YCokdwPKx8UcMHBmMDNAtw44iUIgPbEhhVXtts+/4t+btU4mJ3YRgsPE1jr9z ANIKLOEIgeKwQhPUuou0YNTgeeI7ikO8RJq/l7YJs2YT5VBkb4rTf65BpZopDR0dk4ZN kabw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Is3ZO80E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pj3si3408123ejb.383.2020.07.21.02.58.32; Tue, 21 Jul 2020 02:58:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Is3ZO80E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729031AbgGUJ6X (ORCPT + 99 others); Tue, 21 Jul 2020 05:58:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726415AbgGUJ6W (ORCPT ); Tue, 21 Jul 2020 05:58:22 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50D9FC061794; Tue, 21 Jul 2020 02:58:22 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id q5so20564573wru.6; Tue, 21 Jul 2020 02:58:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=uQnhIuf4xfOnC38xqH6WdF/IwObbq5YHuPCxVqakQOQ=; b=Is3ZO80EuUuGJQl50+Q3Q28jYd7EBEJflzDKoC9uUMKwkdHBva83bhxF7Mh2bHAC04 1ELE4/iZTPMU3KzPCQsede9BSVUYwZHJsT1jGwyf7ifSL4yTvn1OrxcbtkfwhCuaj6rC K0eJNkt4S255E6kb4wzy5JpDQNv3wS4luBxrnTZjsFlBv/I3lzUbHHL5lZPt5m0PuMHv dnd7Rqf7m4JAJnP5LOYlrpcVMUEb0/0uwEQs8c4HBQxA4TyaaV7bGFLaRcvjIuRwL+tu R1vzIci92T1aVyQMToT4xAEJQmOlk9KS96dhmx0vxeXiSq8ErrtFJrfXRtbWQBn/WHIl eylg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=uQnhIuf4xfOnC38xqH6WdF/IwObbq5YHuPCxVqakQOQ=; b=KBqKlYmeKLgjyjG4JGXGnpHeqPq+vK1u2S99pATwWDczlpX1/FoQ6GMyOEQ9dkD45T eowZ1G/sjTVSxOx65kpgsbHOZ9dTltDJGVrm435IH/V0UxmisyrY7OtkgNr3Isi6bdob sbYasCLAhHj4deRcRb+wFOHQ45Kx2i65uRQx+CNwi1z6LXrx4NFiNSII56bPoY1ar58C hbnus4/SZfOT+hnI7X00nzhi25y6P/nE493ry+uf7EJ36OX7bkn6JtBmS94CK/oVBPz/ Si4OZNjs7k2iW8B4gW5uTdC8VGvSC4ctkyhr9B5cxL1UotluzodtKFYoEcO9EvCVqJqA OoPw== X-Gm-Message-State: AOAM532ug3B6pO1XHn9thRq1LB9xsHQENbzQyPH6Mu7+PDPg9GU+4bAw 36XffLJ9HHmyRMSrPrphL9s= X-Received: by 2002:a5d:4b4f:: with SMTP id w15mr25338306wrs.84.1595325501024; Tue, 21 Jul 2020 02:58:21 -0700 (PDT) Received: from [10.182.202.153] ([87.201.30.26]) by smtp.gmail.com with ESMTPSA id u20sm2612045wmc.42.2020.07.21.02.58.18 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Jul 2020 02:58:20 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.14\)) Subject: Re: [PATCH 3/3] arm64: dts: meson: add support for the ODROID-N2+ From: Christian Hewitt In-Reply-To: Date: Tue, 21 Jul 2020 13:58:17 +0400 Cc: Rob Herring , Mark Rutland , Kevin Hilman , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Dongjin Kim Content-Transfer-Encoding: quoted-printable Message-Id: <3A598AB3-635D-4110-AC1C-94379E036586@gmail.com> References: <20200719141034.8403-1-christianshewitt@gmail.com> <20200719141034.8403-4-christianshewitt@gmail.com> <90da2697-9dcc-1d75-eded-bf4bdc4b594b@baylibre.com> To: Neil Armstrong X-Mailer: Apple Mail (2.3445.104.14) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On 21 Jul 2020, at 12:19 pm, Neil Armstrong = wrote: >=20 > On 21/07/2020 10:10, Neil Armstrong wrote: >> On 19/07/2020 16:10, Christian Hewitt wrote: >>> HardKernel ODROID-N2+ uses an Amlogic S922X rev. C chip capable of = higher >>> clock speeds than the original ODROID-N2. Hardkernel supports the = big cpu >>> cluster at 2.4GHz and the little cpu cluster at 2.0GHz. Opp points = and >>> regulator changess are from the HardKernel Linux kernel sources. >>>=20 >>> Suggested-by: Dongjin Kim >>> Signed-off-by: Christian Hewitt >>> --- >>> arch/arm64/boot/dts/amlogic/Makefile | 1 + >>> .../dts/amlogic/meson-g12b-odroid-n2-plus.dts | 53 = +++++++++++++++++++ >>> 2 files changed, 54 insertions(+) >>> create mode 100644 = arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2-plus.dts >>>=20 >>> diff --git a/arch/arm64/boot/dts/amlogic/Makefile = b/arch/arm64/boot/dts/amlogic/Makefile >>> index 5cac4d1d487d..6dc508b80133 100644 >>> --- a/arch/arm64/boot/dts/amlogic/Makefile >>> +++ b/arch/arm64/boot/dts/amlogic/Makefile >>> @@ -8,6 +8,7 @@ dtb-$(CONFIG_ARCH_MESON) +=3D = meson-g12b-gtking-pro.dtb >>> dtb-$(CONFIG_ARCH_MESON) +=3D meson-g12b-a311d-khadas-vim3.dtb >>> dtb-$(CONFIG_ARCH_MESON) +=3D meson-g12b-s922x-khadas-vim3.dtb >>> dtb-$(CONFIG_ARCH_MESON) +=3D meson-g12b-odroid-n2.dtb >>> +dtb-$(CONFIG_ARCH_MESON) +=3D meson-g12b-odroid-n2-plus.dtb >>> dtb-$(CONFIG_ARCH_MESON) +=3D meson-g12b-ugoos-am6.dtb >>> dtb-$(CONFIG_ARCH_MESON) +=3D meson-gxbb-kii-pro.dtb >>> dtb-$(CONFIG_ARCH_MESON) +=3D meson-gxbb-nanopi-k2.dtb >>> diff --git = a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2-plus.dts = b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2-plus.dts >>> new file mode 100644 >>> index 000000000000..99e96be509f8 >>> --- /dev/null >>> +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2-plus.dts >>> @@ -0,0 +1,53 @@ >>> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) >>> +/* >>> + * Copyright (c) 2019 BayLibre, SAS >>> + * Author: Neil Armstrong >>> + */ >>> + >>> +/dts-v1/; >>> + >>> +#include "meson-g12b-odroid-n2.dtsi" >>> + >>> +/ { >>> + compatible =3D "hardkernel,odroid-n2-plus", "amlogic,s922x", = "amlogic,g12b"; >>> + model =3D "Hardkernel ODROID-N2+"; >>> + >>> + vddcpu_a: regulator-vddcpu-a { >>> + regulator-min-microvolt =3D <680000>; >>> + regulator-max-microvolt =3D <1040000>; >>> + >>> + pwms =3D <&pwm_ab 0 1500 0>; >>> + }; >>> + >>> + vddcpu_b: regulator-vddcpu-b { >>> + regulator-min-microvolt =3D <680000>; >>> + regulator-max-microvolt =3D <1040000>; >>> + >>> + pwms =3D <&pwm_AO_cd 1 1500 0>; >>> + }; >>> + >>> + cpu_opp_table_0: opp-table-0 { >>> + opp-1908000000 { >>> + opp-hz =3D /bits/ 64 <1908000000>; >>> + opp-microvolt =3D <1030000>; >>> + }; >>> + >>> + opp-2016000000 { >>> + opp-hz =3D /bits/ 64 <2016000000>; >>> + opp-microvolt =3D <1040000>; >>> + }; >>> + }; >>> + >>> + cpub_opp_table_1: opp-table-1 { >>> + opp-2304000000 { >>> + opp-hz =3D /bits/ 64 <2304000000>; >>> + opp-microvolt =3D <1030000>; >>> + }; >>> + >>> + opp-2400000000 { >>> + opp-hz =3D /bits/ 64 <2400000000>; >>> + opp-microvolt =3D <1040000>; >>> + }; >>> + }; >>> +}; >>> + >>>=20 >> Reviewed-by: Neil Armstrong >>=20 >=20 > Wait no, it should be: >=20 > / { > compatible =3D "hardkernel,odroid-n2-plus", "amlogic,s922x", = "amlogic,g12b"; > model =3D "Hardkernel ODROID-N2+"; > }; >=20 > &vddcpu_a { > regulator-min-microvolt =3D <680000>; > regulator-max-microvolt =3D <1040000>; >=20 > pwms =3D <&pwm_ab 0 1500 0>; > }; >=20 > &vddcpu_b { > regulator-min-microvolt =3D <680000>; > regulator-max-microvolt =3D <1040000>; >=20 > pwms =3D <&pwm_AO_cd 1 1500 0>; > }; >=20 > &cpu_opp_table_0 { > opp-1908000000 { > opp-hz =3D /bits/ 64 <1908000000>; > opp-microvolt =3D <1030000>; > }; >=20 > opp-2016000000 { > opp-hz =3D /bits/ 64 <2016000000>; > opp-microvolt =3D <1040000>; > }; > }; >=20 > &cpub_opp_table_1 { > opp-2304000000 { > opp-hz =3D /bits/ 64 <2304000000>; > opp-microvolt =3D <1030000>; > }; >=20 > opp-2400000000 { > opp-hz =3D /bits/ 64 <2400000000>; > opp-microvolt =3D <1040000>; > }; > }; >=20 > Neil Okay, I will send corrected v2 and with model name changed. Christian=