Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp880960ybh; Wed, 22 Jul 2020 16:06:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJza6CFyJsbi8NHkbSMGXYT5/H1bz8X7njUXzqVYq1l0Fh5fRAddR5r228QJGM1tRUqTu9Kx X-Received: by 2002:a17:906:2c18:: with SMTP id e24mr1815692ejh.335.1595459216300; Wed, 22 Jul 2020 16:06:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595459216; cv=none; d=google.com; s=arc-20160816; b=LluuoTLqvwtsxciUon7yrMZ3LuHz4cv7od9tXgNV9rmJkdLBAWB66fLQJZZU5JNdQI tJu6cq+w4CM1ulT87m0qrYlC4h1h4zhpomi2MNOV2D23pwCmB9fIYYrb8KriC27nDPWW FsEpttEOF7AvcGBssahKvXDuwbKabu74DIpC6BNIxnnIpiyYhcp3oZJh33dNSfw43nrP WyOVOlk5fMQegDogMQEBWjdLTxthPbzbEhCLipTICYDGyXNy3wILHGrL5dXa+BV6pupN 1/aa8pdd+PyHdZekvS0u0w3snxOEQtOLAacItnsdIZ78sN9Cvd3zhEwMsobZfeygbPjk g51A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=bdMZJqRkVGvuWEDFrcGlBP7yBOdaxQVCDcUt6SHzHQg=; b=iTjmF+TrO3K06rFAUc+HvkvoGyUPngDiFHWPebznDsbWqTSXvhgAKN2B2oNJxIFDiP BBrbGCSCDtvIT31MJt8utxRIHAYR+HxUNEKoApB6Xts6sFD4+2EW9yGKLOitMaQH3+vx lS1OtmSukIqRAUsy6Y0sd8UZlB8oIZ7WClAEdAeFf2+U7oFO/Kgdn9Yp14bd40oy0r56 ScL4nSr+HXoLDp92KKb8WocDi2mFDWQAJMrhgSq3YccIZuVDVp7qQylc4Mk9w4OzS6mR 5dS2sJ1FCA8iyo/IzE97RCnOTfJRK2tdXor8Kj5B8ln7VtHimIk+5Rvc988PrXZlwPAr qRVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=cKt3xtSu; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bq21si826340ejb.301.2020.07.22.16.06.33; Wed, 22 Jul 2020 16:06: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=@agner.ch header.s=dkim header.b=cKt3xtSu; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733076AbgGVXDW (ORCPT + 99 others); Wed, 22 Jul 2020 19:03:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726685AbgGVXDV (ORCPT ); Wed, 22 Jul 2020 19:03:21 -0400 Received: from mail.kmu-office.ch (mail.kmu-office.ch [IPv6:2a02:418:6a02::a2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 269D6C0619DC; Wed, 22 Jul 2020 16:03:21 -0700 (PDT) Received: from webmail.kmu-office.ch (unknown [IPv6:2a02:418:6a02::a3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id D28885C3C5A; Thu, 23 Jul 2020 01:03:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1595458998; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bdMZJqRkVGvuWEDFrcGlBP7yBOdaxQVCDcUt6SHzHQg=; b=cKt3xtSu46nk8Lwaf8+GZ04qFypC6ZpJQSjGkh8auUvRnBlnXOgNRKPBh5ewMryAh+/0qy +6BxM/HIGRpokoTk/d0r4vUcn09Aw/h/YydoIkfL7XTX6k0KJDuKZ9ynSWyE1hIcBuXlzN Q/2hK0IdSNKG/WqSSB7KyHTgvS6dcUI= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Thu, 23 Jul 2020 01:03:18 +0200 From: Stefan Agner To: Christian Hewitt 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 Subject: Re: [PATCH 3/3] arm64: dts: meson: add support for the ODROID-N2+ In-Reply-To: <20200719141034.8403-4-christianshewitt@gmail.com> References: <20200719141034.8403-1-christianshewitt@gmail.com> <20200719141034.8403-4-christianshewitt@gmail.com> User-Agent: Roundcube Webmail/1.4.1 Message-ID: <9e2894b3ad0311dcd8179237305d1cd5@agner.ch> X-Sender: stefan@agner.ch Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christian, On 2020-07-19 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. According to the ODROID wiki those values are already in the overclocking range: https://wiki.odroid.com/odroid-n2/hardware/overclocking From what I can tell, for ODROID-N2 upstream Linux so far used defaults from meson-g12b-s922x.dtsi, which were 1896MHz for the A53 and 1704MHz for the A73 (so it seems currently the A73 running even 100MHz below "Stock"). I guess we should pick either Stock or Overclock for the two models. Unless there is another good reason not to? -- Stefan > > 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 > > 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) += meson-g12b-gtking-pro.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-g12b-a311d-khadas-vim3.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-g12b-s922x-khadas-vim3.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-g12b-odroid-n2.dtb > +dtb-$(CONFIG_ARCH_MESON) += meson-g12b-odroid-n2-plus.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-g12b-ugoos-am6.dtb > dtb-$(CONFIG_ARCH_MESON) += meson-gxbb-kii-pro.dtb > dtb-$(CONFIG_ARCH_MESON) += 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 = "hardkernel,odroid-n2-plus", "amlogic,s922x", "amlogic,g12b"; > + model = "Hardkernel ODROID-N2+"; > + > + vddcpu_a: regulator-vddcpu-a { > + regulator-min-microvolt = <680000>; > + regulator-max-microvolt = <1040000>; > + > + pwms = <&pwm_ab 0 1500 0>; > + }; > + > + vddcpu_b: regulator-vddcpu-b { > + regulator-min-microvolt = <680000>; > + regulator-max-microvolt = <1040000>; > + > + pwms = <&pwm_AO_cd 1 1500 0>; > + }; > + > + cpu_opp_table_0: opp-table-0 { > + opp-1908000000 { > + opp-hz = /bits/ 64 <1908000000>; > + opp-microvolt = <1030000>; > + }; > + > + opp-2016000000 { > + opp-hz = /bits/ 64 <2016000000>; > + opp-microvolt = <1040000>; > + }; > + }; > + > + cpub_opp_table_1: opp-table-1 { > + opp-2304000000 { > + opp-hz = /bits/ 64 <2304000000>; > + opp-microvolt = <1030000>; > + }; > + > + opp-2400000000 { > + opp-hz = /bits/ 64 <2400000000>; > + opp-microvolt = <1040000>; > + }; > + }; > +}; > +