Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src add dts for odroid-N2 plus.



details:   https://anonhg.NetBSD.org/src/rev/47461fe5194b
branches:  trunk
changeset: 958325:47461fe5194b
user:      ryo <ryo%NetBSD.org@localhost>
date:      Fri Jan 01 07:41:46 2021 +0000

description:
add dts for odroid-N2 plus.

meson-g12b-odroid-n2-plus.dts of linux is not optimized for the odroid-N2plus CPU clock.
and the dts for odroid-n2-plus in the hardkernel repository is  significantly changed,
so cannot be imported without modification. Therefore, a simple meson-g12b-odroid-n2-plus.dts
has been added based on "meson-g12b-odroid-n2.dts" with only the cpu_opp_table and
regulator table changed.

diffstat:

 distrib/sets/lists/dtb/ad.aarch64                                                    |    3 +-
 distrib/sets/lists/dtb/ad.aarch64eb                                                  |    3 +-
 sys/external/gpl2/dts/dist/arch/arm64/boot/dts/amlogic/Makefile                      |    1 +
 sys/external/gpl2/dts/dist/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2-plus.dts |  228 ++++++++++
 4 files changed, 233 insertions(+), 2 deletions(-)

diffs (277 lines):

diff -r 7e67f323e673 -r 47461fe5194b distrib/sets/lists/dtb/ad.aarch64
--- a/distrib/sets/lists/dtb/ad.aarch64 Fri Jan 01 07:21:58 2021 +0000
+++ b/distrib/sets/lists/dtb/ad.aarch64 Fri Jan 01 07:41:46 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: ad.aarch64,v 1.3 2020/06/10 18:53:31 jmcneill Exp $
+# $NetBSD: ad.aarch64,v 1.4 2021/01/01 07:41:46 ryo Exp $
 #
 # DO NOT EDIT THIS FILE MANUALLY
 # Generated by "make update-sets" in sys/dtb
@@ -40,6 +40,7 @@
 ./boot/dtb/amlogic/meson-g12a-u200.dtb                       dtb-base-boot  dtb
 ./boot/dtb/amlogic/meson-g12a-x96-max.dtb                    dtb-base-boot  dtb
 ./boot/dtb/amlogic/meson-g12b-a311d-khadas-vim3.dtb          dtb-base-boot  dtb
+./boot/dtb/amlogic/meson-g12b-odroid-n2-plus.dtb             dtb-base-boot  dtb
 ./boot/dtb/amlogic/meson-g12b-odroid-n2.dtb                  dtb-base-boot  dtb
 ./boot/dtb/amlogic/meson-g12b-s922x-khadas-vim3.dtb          dtb-base-boot  dtb
 ./boot/dtb/amlogic/meson-g12b-ugoos-am6.dtb                  dtb-base-boot  dtb
diff -r 7e67f323e673 -r 47461fe5194b distrib/sets/lists/dtb/ad.aarch64eb
--- a/distrib/sets/lists/dtb/ad.aarch64eb       Fri Jan 01 07:21:58 2021 +0000
+++ b/distrib/sets/lists/dtb/ad.aarch64eb       Fri Jan 01 07:41:46 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: ad.aarch64eb,v 1.2 2020/06/10 18:53:31 jmcneill Exp $
+# $NetBSD: ad.aarch64eb,v 1.3 2021/01/01 07:41:46 ryo Exp $
 #
 # DO NOT EDIT THIS FILE MANUALLY
 # Generated by "make update-sets" in sys/dtb
@@ -40,6 +40,7 @@
 ./boot/dtb/amlogic/meson-g12a-u200.dtb                       dtb-base-boot  dtb
 ./boot/dtb/amlogic/meson-g12a-x96-max.dtb                    dtb-base-boot  dtb
 ./boot/dtb/amlogic/meson-g12b-a311d-khadas-vim3.dtb          dtb-base-boot  dtb
+./boot/dtb/amlogic/meson-g12b-odroid-n2-plus.dtb             dtb-base-boot  dtb
 ./boot/dtb/amlogic/meson-g12b-odroid-n2.dtb                  dtb-base-boot  dtb
 ./boot/dtb/amlogic/meson-g12b-s922x-khadas-vim3.dtb          dtb-base-boot  dtb
 ./boot/dtb/amlogic/meson-g12b-ugoos-am6.dtb                  dtb-base-boot  dtb
diff -r 7e67f323e673 -r 47461fe5194b sys/external/gpl2/dts/dist/arch/arm64/boot/dts/amlogic/Makefile
--- a/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/amlogic/Makefile   Fri Jan 01 07:21:58 2021 +0000
+++ b/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/amlogic/Makefile   Fri Jan 01 07:41:46 2021 +0000
@@ -6,6 +6,7 @@
 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-nanopi-k2.dtb
 dtb-$(CONFIG_ARCH_MESON) += meson-gxbb-nexbox-a95x.dtb
diff -r 7e67f323e673 -r 47461fe5194b sys/external/gpl2/dts/dist/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2-plus.dts
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2-plus.dts      Fri Jan 01 07:41:46 2021 +0000
@@ -0,0 +1,228 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2019 BayLibre, SAS
+ * Author: Neil Armstrong <narmstrong%baylibre.com@localhost>
+ */
+
+/dts-v1/;
+
+#include "meson-g12b-odroid-n2.dts"
+
+/ {
+       compatible = "hardkernel,odroid-n2-plus", "amlogic,s922x", "amlogic,g12b";
+       model = "Hardkernel ODROID-N2Plus";
+
+       vddcpu_a: regulator-vddcpu-a {
+               regulator-min-microvolt = <680000>;
+               regulator-max-microvolt = <1040000>;
+
+               pwms = <&pwm_ab 0 1500 0>;
+
+               /delete-property/ pwm-dutycycle-range;
+
+               /* Voltage Duty-Cycle */
+               voltage-table = <1040000 0>,
+                       <1030000 3>,
+                       <1020000 6>,
+                       <1010000 8>,
+                       <1000000 11>,
+                       <990000 14>,
+                       <980000 17>,
+                       <970000 20>,
+                       <960000 23>,
+                       <950000 26>,
+                       <940000 29>,
+                       <930000 31>,
+                       <920000 34>,
+                       <910000 37>,
+                       <900000 40>,
+                       <890000 43>,
+                       <880000 45>,
+                       <870000 48>,
+                       <860000 51>,
+                       <850000 54>,
+                       <840000 56>,
+                       <830000 59>,
+                       <820000 62>,
+                       <810000 65>,
+                       <800000 68>,
+                       <790000 70>,
+                       <780000 73>,
+                       <770000 76>,
+                       <760000 79>,
+                       <750000 81>,
+                       <740000 84>,
+                       <730000 87>,
+                       <720000 89>,
+                       <710000 92>,
+                       <700000 95>,
+                       <690000 98>,
+                       <680000 100>;
+       };
+
+       vddcpu_b: regulator-vddcpu-b {
+               regulator-min-microvolt = <680000>;
+               regulator-max-microvolt = <1040000>;
+
+               pwms = <&pwm_AO_cd 1 1500 0>;
+
+               /delete-property/ pwm-dutycycle-range;
+
+               /* Voltage Duty-Cycle */
+               voltage-table = <1040000 0>,
+                       <1030000 3>,
+                       <1020000 6>,
+                       <1010000 8>,
+                       <1000000 11>,
+                       <990000 14>,
+                       <980000 17>,
+                       <970000 20>,
+                       <960000 23>,
+                       <950000 26>,
+                       <940000 29>,
+                       <930000 31>,
+                       <920000 34>,
+                       <910000 37>,
+                       <900000 40>,
+                       <890000 43>,
+                       <880000 45>,
+                       <870000 48>,
+                       <860000 51>,
+                       <850000 54>,
+                       <840000 56>,
+                       <830000 59>,
+                       <820000 62>,
+                       <810000 65>,
+                       <800000 68>,
+                       <790000 70>,
+                       <780000 73>,
+                       <770000 76>,
+                       <760000 79>,
+                       <750000 81>,
+                       <740000 84>,
+                       <730000 87>,
+                       <720000 89>,
+                       <710000 92>,
+                       <700000 95>,
+                       <690000 98>,
+                       <680000 100>;
+       };
+
+       /delete-node/ opp-table-0;
+       cpu_opp_table_0: opp-table-0 {
+               compatible = "operating-points-v2";
+               opp-shared;
+
+               opp00 {
+                       opp-hz = /bits/ 64 <500000000>;
+                       opp-microvolt = <730000>;
+               };
+               opp01 {
+                       opp-hz = /bits/ 64 <667000000>;
+                       opp-microvolt = <730000>;
+               };
+               opp02 {
+                       opp-hz = /bits/ 64 <1000000000>;
+                       opp-microvolt = <760000>;
+               };
+               opp03 {
+                       opp-hz = /bits/ 64 <1200000000>;
+                       opp-microvolt = <780000>;
+               };
+               opp04 {
+                       opp-hz = /bits/ 64 <1398000000>;
+                       opp-microvolt = <810000>;
+               };
+               opp05 {
+                       opp-hz = /bits/ 64 <1512000000>;
+                       opp-microvolt = <860000>;
+               };
+               opp06 {
+                       opp-hz = /bits/ 64 <1608000000>;
+                       opp-microvolt = <900000>;
+               };
+               opp07 {
+                       opp-hz = /bits/ 64 <1704000000>;
+                       opp-microvolt = <960000>;
+               };
+               opp08 {
+                       opp-hz = /bits/ 64 <1800000000>;
+                       opp-microvolt = <1020000>;
+               };
+               opp09 {
+                       opp-hz = /bits/ 64 <1908000000>;
+                       opp-microvolt = <1030000>;
+               };
+               opp10 {
+                       opp-hz = /bits/ 64 <2016000000>;
+                       opp-microvolt = <1040000>;
+               };
+       };
+
+       /delete-node/ opp-table-1;
+       cpub_opp_table_1: opp-table-1 {
+               compatible = "operating-points-v2";
+               opp-shared;
+
+               opp00 {
+                       opp-hz = /bits/ 64 <500000000>;
+                       opp-microvolt = <730000>;
+               };
+               opp01 {
+                       opp-hz = /bits/ 64 <667000000>;
+                       opp-microvolt = <730000>;
+               };
+               opp02 {
+                       opp-hz = /bits/ 64 <1000000000>;
+                       opp-microvolt = <730000>;
+               };
+               opp03 {
+                       opp-hz = /bits/ 64 <1200000000>;
+                       opp-microvolt = <750000>;
+               };
+               opp04 {
+                       opp-hz = /bits/ 64 <1398000000>;
+                       opp-microvolt = <770000>;
+               };
+               opp05 {
+                       opp-hz = /bits/ 64 <1512000000>;
+                       opp-microvolt = <770000>;
+               };
+               opp06 {
+                       opp-hz = /bits/ 64 <1608000000>;
+                       opp-microvolt = <780000>;
+               };
+               opp07 {
+                       opp-hz = /bits/ 64 <1704000000>;
+                       opp-microvolt = <790000>;
+               };
+               opp08 {
+                       opp-hz = /bits/ 64 <1800000000>;
+                       opp-microvolt = <830000>;
+               };
+               opp09 {
+                       opp-hz = /bits/ 64 <1908000000>;
+                       opp-microvolt = <860000>;
+               };
+               opp10 {
+                       opp-hz = /bits/ 64 <2016000000>;
+                       opp-microvolt = <910000>;
+               };
+               opp11 {
+                       opp-hz = /bits/ 64 <2100000000>;
+                       opp-microvolt = <960000>;
+               };
+               opp12 {
+                       opp-hz = /bits/ 64 <2208000000>;
+                       opp-microvolt = <1030000>;
+               };
+               opp13 {
+                       opp-hz = /bits/ 64 <2304000000>;
+                       opp-microvolt = <1030000>;
+               };
+               opp14 {
+                       opp-hz = /bits/ 64 <2400000000>;
+                       opp-microvolt = <1040000>;
+               };
+       };
+};



Home | Main Index | Thread Index | Old Index