From nobody Sun Sep 14 07:42:43 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 13C8BC27C76 for ; Wed, 25 Jan 2023 08:19:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229571AbjAYITJ (ORCPT ); Wed, 25 Jan 2023 03:19:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234059AbjAYISs (ORCPT ); Wed, 25 Jan 2023 03:18:48 -0500 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4190A3F2B0 for ; Wed, 25 Jan 2023 00:18:45 -0800 (PST) Received: by mail-wr1-x42b.google.com with SMTP id r2so16181389wrv.7 for ; Wed, 25 Jan 2023 00:18:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=l6VVFU09DGdJDicHdzWRUuahuR5if5nGv94bTkwuVxM=; b=P0VzQ57fyl0c8tLyOhp4Tras38f23cWMvWTATg+oiau6eTMWWEPGCA+Ip6qziFE/Ue dRa4xa80kyYbNHsk2Gzi9wNYU32cuxSRitUlLE47/ESbRtFmShSKXMi5PFMsfUh/7ZXB usprM3J9Aej8UCtAO0eMN60Rc+P9ON3mPgXmNtmWKmOsLDiYvbGfGqePmZgw8ypqe9rZ m7rQ1OxXNjBG1bLmw76elyl3LMb759AtoWlvwZ6THjSljdYHAPegqIRCOcrX3NpsRwvh GiBB8nv1iRCk37Matw+sKX2p2nepxNixvQ+1ussSC0/XZkuMcw3R2KJAUqI2bQmFStF+ eonQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=l6VVFU09DGdJDicHdzWRUuahuR5if5nGv94bTkwuVxM=; b=oIu22qnSQg2b+/TaT7PXVAsFp9gR2KWlfDH0Fp69bRV+L8pXl1cpUtAOAgv0AUx4Zo zJo3IsG2X6o5Xcd8HCF6BvkSQk/nXx9OBjJ7DOFV2Bk61D9n/EhcgHqOTXYMKggOZ1e2 kKRbgt2mpBvVbowqzZM4Bp/BwX4gkWNYG73bcnRjwuvq2G6Q0ZBfBHvlzjPRB9qOdqO+ EbbgjhrKVKnWL5/ZfGIUtU/zOnAtQaG2LWaBNHe7Mhz2vkJi6+zn22mF//+aKjU2GZIM awYDiEMJXXvOWIJu7W3zAD6fw64RnzbGQh3KnoNkIuoSUmji3wx/QDYEEaAf+sWDFFJ9 ugdw== X-Gm-Message-State: AFqh2koqho5nO+rBaIgaO990sxzlXU52T4W7u/optjKOq2Zr/QCqxB5C 2+f16cYaObNzdrGzZPjB///TKA== X-Google-Smtp-Source: AMrXdXuoe0lryGNmnQF8GyRl/+DOCT9Q6ttaCZBC8O3SpAo41mjOEQ2F0Bxc4YCb4VIuL6PdhXo1NQ== X-Received: by 2002:a05:6000:1708:b0:2bd:daf1:9e4c with SMTP id n8-20020a056000170800b002bddaf19e4cmr29965267wrc.43.1674634723477; Wed, 25 Jan 2023 00:18:43 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id p7-20020adff207000000b002bdff778d87sm3770343wro.34.2023.01.25.00.18.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Jan 2023 00:18:43 -0800 (PST) From: Neil Armstrong Date: Wed, 25 Jan 2023 09:18:37 +0100 Subject: [PATCH v2 1/3] dt-bindings: arm: amlogic: document Odroid-N2L MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20230122-topic-odroid-n2l-upstream-initial-v2-1-8d3fea6d403d@linaro.org> References: <20230122-topic-odroid-n2l-upstream-initial-v2-0-8d3fea6d403d@linaro.org> In-Reply-To: <20230122-topic-odroid-n2l-upstream-initial-v2-0-8d3fea6d403d@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, Dongjin Kim , Neil Armstrong , Krzysztof Kozlowski X-Mailer: b4 0.12.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ODROID-N2L is a variant SBC in small form factor and some peripherals are removed from ODROID-N2PLUS based on S922X SoC. - On-board ethernet is removed - On-board RTC is removed - USB 3.0 hub is removed, so one USB 2.0 and one USB 3.0 host ports are available - Huge heatsink is replaced with 40x40mm heatsink, 5V active heatsink is recommended or a tall passive sink is optional - 3.5mm earjack is removed - IR remote receiver is removed - MIPI DSI port is added Acked-by: Krzysztof Kozlowski Signed-off-by: Neil Armstrong --- Documentation/devicetree/bindings/arm/amlogic.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/amlogic.yaml b/Documenta= tion/devicetree/bindings/arm/amlogic.yaml index e16b5fa55847..8aa6b6a92c29 100644 --- a/Documentation/devicetree/bindings/arm/amlogic.yaml +++ b/Documentation/devicetree/bindings/arm/amlogic.yaml @@ -165,6 +165,7 @@ properties: - azw,gtking-pro - hardkernel,odroid-go-ultra - hardkernel,odroid-n2 + - hardkernel,odroid-n2l - hardkernel,odroid-n2-plus - khadas,vim3 - ugoos,am6 --=20 2.34.1 From nobody Sun Sep 14 07:42:43 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C50A8C54E94 for ; Wed, 25 Jan 2023 08:19:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234678AbjAYITH (ORCPT ); Wed, 25 Jan 2023 03:19:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235057AbjAYISt (ORCPT ); Wed, 25 Jan 2023 03:18:49 -0500 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4214F46092 for ; Wed, 25 Jan 2023 00:18:46 -0800 (PST) Received: by mail-wr1-x42f.google.com with SMTP id h12so12201814wrv.10 for ; Wed, 25 Jan 2023 00:18:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=gGUAR1En37XugGMNccVNI7KblImun0/osCgGe3nLWnE=; b=S2/yFvH3TJO1EcSNxpY212TYLMQhiEtuvgfJSNqKkkz5hKf6cRPy2rWpNer/fiN+D1 XVyqkb6GdVQwAtKc5GVYQDlcBTgtQ0RwhvH4UpWQePEr1HAgDZ0NPK7A4OQPTA7TocZ1 AxPAp5vG1e8mjUYRiuwEWouZ4yaoHkRDdZTal69tbRQCSYA+4dP7gPzUZATrYM6+y037 76GyEjty5S93uKoLTa1/UnY5ZJHwX1PNzZpUP9CJaX/HmA0XPj9+1Cb7+m+M2WuDBDWB MioPfSXTOkdlXShdqu6SrtDuuDilrqIhSEvQ9L5Bri60Zwd2eUWsWDOndwFjkKYBxH2u AQUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gGUAR1En37XugGMNccVNI7KblImun0/osCgGe3nLWnE=; b=Qq2AR2JsFamrm7MNsnzrw4QpqXPokLucKo8YLhtcvhSyYeFOEvsoYgn39CZ6I6DvOk cj4jItyNDDTPxAHL/Bi0lgYyXgumpoeoUkgxodYju0gumsiKI2AS+DIZdGXM5rexaLOG iA8SRyO8CszL7fs1mmXlyCARCCQwAnjxesGB8O3EStRZid/jC4XN5vbeu2ESwIe+2rug cSOuk/t+L09LvFoDXyXpqK7YZ48ooZSPCdk2mPmgFs4vmM0Gi5EyzqZ2rqTOqUFgT9YH RMPikuhk7aNQCrrdlkCf0l3P3ScIwCziXbTNybAJR8gDE5r8T6/RL913WcVDrEVjXPUn 3nOA== X-Gm-Message-State: AFqh2kocxDSLxvGaRmMFCU5u+fuPvwNk3NEHJaQScjt7VJQC5QKj1Dvk CZ5lGXhkoAy6xAYuWUG0VXa54Q== X-Google-Smtp-Source: AMrXdXvpugKE18DNJXjU8V5qi6ZomBpygBcsmDNmgiCFr9MuFF12azpnUlu9LShyu95cPYZ5yJAHMA== X-Received: by 2002:adf:cf0f:0:b0:242:5d8e:6c35 with SMTP id o15-20020adfcf0f000000b002425d8e6c35mr28034944wrj.28.1674634724429; Wed, 25 Jan 2023 00:18:44 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id p7-20020adff207000000b002bdff778d87sm3770343wro.34.2023.01.25.00.18.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Jan 2023 00:18:44 -0800 (PST) From: Neil Armstrong Date: Wed, 25 Jan 2023 09:18:38 +0100 Subject: [PATCH v2 2/3] arm64: dts: meson-g12b: move common node into new odroid.dtsi MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20230122-topic-odroid-n2l-upstream-initial-v2-2-8d3fea6d403d@linaro.org> References: <20230122-topic-odroid-n2l-upstream-initial-v2-0-8d3fea6d403d@linaro.org> In-Reply-To: <20230122-topic-odroid-n2l-upstream-initial-v2-0-8d3fea6d403d@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, Dongjin Kim , Neil Armstrong X-Mailer: b4 0.12.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In order to introduce Odroid-N2L which is basically an Odroid-N2+ without some on-board peripherals (Ethernet, RTC, Hub, Jack), move the common nodes into a new meson-g12b-odroid.dtsi which will will be the common dtsi for all the Odroid-N2 derived boards. Signed-off-by: Neil Armstrong --- .../boot/dts/amlogic/meson-g12b-odroid-n2.dtsi | 448 +----------------= ---- arch/arm64/boot/dts/amlogic/meson-g12b-odroid.dtsi | 445 +++++++++++++++++= +++ 2 files changed, 454 insertions(+), 439 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi b/arch/a= rm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi index 667d2b774924..24d0442dffb2 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi @@ -4,17 +4,11 @@ * Author: Neil Armstrong */ =20 -#include -#include -#include -#include +#include "meson-g12b-odroid.dtsi" =20 / { aliases { - serial0 =3D &uart_AO; - ethernet0 =3D ðmac; rtc0 =3D &rtc; - rtc1 =3D &vrtc; }; =20 dio2133: audio-amplifier-0 { @@ -25,149 +19,6 @@ dio2133: audio-amplifier-0 { status =3D "okay"; }; =20 - chosen { - stdout-path =3D "serial0:115200n8"; - }; - - memory@0 { - device_type =3D "memory"; - reg =3D <0x0 0x0 0x0 0x40000000>; - }; - - emmc_pwrseq: emmc-pwrseq { - compatible =3D "mmc-pwrseq-emmc"; - reset-gpios =3D <&gpio BOOT_12 GPIO_ACTIVE_LOW>; - }; - - fan: gpio-fan { - compatible =3D "gpio-fan"; - gpios =3D <&gpio_ao GPIOAO_10 GPIO_ACTIVE_HIGH>; - /* Using Dummy Speed */ - gpio-fan,speed-map =3D <0 0>, <1 1>; - #cooling-cells =3D <2>; - }; - - leds { - compatible =3D "gpio-leds"; - - led-blue { - label =3D "n2:blue"; - gpios =3D <&gpio_ao GPIOAO_11 GPIO_ACTIVE_HIGH>; - linux,default-trigger =3D "heartbeat"; - }; - }; - - tflash_vdd: regulator-tflash_vdd { - compatible =3D "regulator-fixed"; - - regulator-name =3D "TFLASH_VDD"; - regulator-min-microvolt =3D <3300000>; - regulator-max-microvolt =3D <3300000>; - - gpio =3D <&gpio_ao GPIOAO_8 GPIO_ACTIVE_HIGH>; - enable-active-high; - regulator-always-on; - }; - - tf_io: gpio-regulator-tf_io { - compatible =3D "regulator-gpio"; - - regulator-name =3D "TF_IO"; - regulator-min-microvolt =3D <1800000>; - regulator-max-microvolt =3D <3300000>; - - gpios =3D <&gpio_ao GPIOAO_9 GPIO_ACTIVE_HIGH>; - gpios-states =3D <0>; - - states =3D <3300000 0>, - <1800000 1>; - }; - - flash_1v8: regulator-flash_1v8 { - compatible =3D "regulator-fixed"; - regulator-name =3D "FLASH_1V8"; - regulator-min-microvolt =3D <1800000>; - regulator-max-microvolt =3D <1800000>; - vin-supply =3D <&vcc_3v3>; - regulator-always-on; - }; - - main_12v: regulator-main_12v { - compatible =3D "regulator-fixed"; - regulator-name =3D "12V"; - regulator-min-microvolt =3D <12000000>; - regulator-max-microvolt =3D <12000000>; - regulator-always-on; - }; - - vcc_5v: regulator-vcc_5v { - compatible =3D "regulator-fixed"; - regulator-name =3D "5V"; - regulator-min-microvolt =3D <5000000>; - regulator-max-microvolt =3D <5000000>; - regulator-always-on; - vin-supply =3D <&main_12v>; - gpio =3D <&gpio GPIOH_8 GPIO_OPEN_DRAIN>; - enable-active-high; - }; - - vcc_1v8: regulator-vcc_1v8 { - compatible =3D "regulator-fixed"; - regulator-name =3D "VCC_1V8"; - regulator-min-microvolt =3D <1800000>; - regulator-max-microvolt =3D <1800000>; - vin-supply =3D <&vcc_3v3>; - regulator-always-on; - }; - - vcc_3v3: regulator-vcc_3v3 { - compatible =3D "regulator-fixed"; - regulator-name =3D "VCC_3V3"; - regulator-min-microvolt =3D <3300000>; - regulator-max-microvolt =3D <3300000>; - vin-supply =3D <&vddao_3v3>; - regulator-always-on; - /* FIXME: actually controlled by VDDCPU_B_EN */ - }; - - vddcpu_a: regulator-vddcpu-a { - /* - * MP8756GD Regulator. - */ - compatible =3D "pwm-regulator"; - - regulator-name =3D "VDDCPU_A"; - regulator-min-microvolt =3D <721000>; - regulator-max-microvolt =3D <1022000>; - - pwm-supply =3D <&main_12v>; - - pwms =3D <&pwm_ab 0 1250 0>; - pwm-dutycycle-range =3D <100 0>; - - regulator-boot-on; - regulator-always-on; - }; - - vddcpu_b: regulator-vddcpu-b { - /* - * Silergy SY8120B1ABC Regulator. - */ - compatible =3D "pwm-regulator"; - - regulator-name =3D "VDDCPU_B"; - regulator-min-microvolt =3D <721000>; - regulator-max-microvolt =3D <1022000>; - - pwm-supply =3D <&main_12v>; - - pwms =3D <&pwm_AO_cd 1 1250 0>; - pwm-dutycycle-range =3D <100 0>; - - regulator-boot-on; - regulator-always-on; - }; - hub_5v: regulator-hub_5v { compatible =3D "regulator-fixed"; regulator-name =3D "HUB_5V"; @@ -180,47 +31,6 @@ hub_5v: regulator-hub_5v { enable-active-high; }; =20 - usb_pwr_en: regulator-usb_pwr_en { - compatible =3D "regulator-fixed"; - regulator-name =3D "USB_PWR_EN"; - regulator-min-microvolt =3D <5000000>; - regulator-max-microvolt =3D <5000000>; - vin-supply =3D <&vcc_5v>; - - /* Connected to the microUSB port power enable */ - gpio =3D <&gpio GPIOH_6 GPIO_ACTIVE_HIGH>; - enable-active-high; - }; - - vddao_1v8: regulator-vddao_1v8 { - compatible =3D "regulator-fixed"; - regulator-name =3D "VDDAO_1V8"; - regulator-min-microvolt =3D <1800000>; - regulator-max-microvolt =3D <1800000>; - vin-supply =3D <&vddao_3v3>; - regulator-always-on; - }; - - vddao_3v3: regulator-vddao_3v3 { - compatible =3D "regulator-fixed"; - regulator-name =3D "VDDAO_3V3"; - regulator-min-microvolt =3D <3300000>; - regulator-max-microvolt =3D <3300000>; - vin-supply =3D <&main_12v>; - regulator-always-on; - }; - - hdmi-connector { - compatible =3D "hdmi-connector"; - type =3D "a"; - - port { - hdmi_connector_in: endpoint { - remote-endpoint =3D <&hdmi_tx_tmds_out>; - }; - }; - }; - sound { compatible =3D "amlogic,axg-sound-card"; model =3D "ODROID-N2"; @@ -354,102 +164,13 @@ &acodec { status =3D "okay"; }; =20 -&arb { - status =3D "okay"; -}; - -&cec_AO { - pinctrl-0 =3D <&cec_ao_a_h_pins>; - pinctrl-names =3D "default"; - status =3D "disabled"; - hdmi-phandle =3D <&hdmi_tx>; -}; - -&cecb_AO { - pinctrl-0 =3D <&cec_ao_b_h_pins>; +ðmac { + pinctrl-0 =3D <ð_pins>, <ð_rgmii_pins>; pinctrl-names =3D "default"; status =3D "okay"; - hdmi-phandle =3D <&hdmi_tx>; -}; - -&clkc_audio { - status =3D "okay"; -}; - -&cpu0 { - cpu-supply =3D <&vddcpu_b>; - operating-points-v2 =3D <&cpu_opp_table_0>; - clocks =3D <&clkc CLKID_CPU_CLK>; - clock-latency =3D <50000>; -}; - -&cpu1 { - cpu-supply =3D <&vddcpu_b>; - operating-points-v2 =3D <&cpu_opp_table_0>; - clocks =3D <&clkc CLKID_CPU_CLK>; - clock-latency =3D <50000>; -}; - -&cpu100 { - cpu-supply =3D <&vddcpu_a>; - operating-points-v2 =3D <&cpub_opp_table_1>; - clocks =3D <&clkc CLKID_CPUB_CLK>; - clock-latency =3D <50000>; -}; - -&cpu101 { - cpu-supply =3D <&vddcpu_a>; - operating-points-v2 =3D <&cpub_opp_table_1>; - clocks =3D <&clkc CLKID_CPUB_CLK>; - clock-latency =3D <50000>; -}; - -&cpu102 { - cpu-supply =3D <&vddcpu_a>; - operating-points-v2 =3D <&cpub_opp_table_1>; - clocks =3D <&clkc CLKID_CPUB_CLK>; - clock-latency =3D <50000>; -}; - -&cpu103 { - cpu-supply =3D <&vddcpu_a>; - operating-points-v2 =3D <&cpub_opp_table_1>; - clocks =3D <&clkc CLKID_CPUB_CLK>; - clock-latency =3D <50000>; -}; - -&cpu_thermal { - trips { - cpu_active: cpu-active { - temperature =3D <60000>; /* millicelsius */ - hysteresis =3D <2000>; /* millicelsius */ - type =3D "active"; - }; - }; - - cooling-maps { - map { - trip =3D <&cpu_active>; - cooling-device =3D <&fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; - }; - }; -}; - -&ddr_thermal { - trips { - ddr_active: ddr-active { - temperature =3D <60000>; /* millicelsius */ - hysteresis =3D <2000>; /* millicelsius */ - type =3D "active"; - }; - }; - - cooling-maps { - map { - trip =3D <&ddr_active>; - cooling-device =3D <&fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; - }; - }; + phy-mode =3D "rgmii"; + phy-handle =3D <&external_phy>; + amlogic,tx-delay-ns =3D <2>; }; =20 &ext_mdio { @@ -468,27 +189,6 @@ external_phy: ethernet-phy@0 { }; }; =20 -ðmac { - pinctrl-0 =3D <ð_pins>, <ð_rgmii_pins>; - pinctrl-names =3D "default"; - status =3D "okay"; - phy-mode =3D "rgmii"; - phy-handle =3D <&external_phy>; - amlogic,tx-delay-ns =3D <2>; -}; - -&frddr_a { - status =3D "okay"; -}; - -&frddr_b { - status =3D "okay"; -}; - -&frddr_c { - status =3D "okay"; -}; - &gpio { gpio-line-names =3D /* GPIOZ */ @@ -549,26 +249,6 @@ hog-0 { }; }; =20 -&hdmi_tx { - status =3D "okay"; - pinctrl-0 =3D <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>; - pinctrl-names =3D "default"; - hdmi-supply =3D <&vcc_5v>; -}; - -&hdmi_tx_tmds_port { - hdmi_tx_tmds_out: endpoint { - remote-endpoint =3D <&hdmi_connector_in>; - }; -}; - -&ir { - status =3D "okay"; - pinctrl-0 =3D <&remote_input_ao_pins>; - pinctrl-names =3D "default"; - linux,rc-map-name =3D "rc-odroid"; -}; - &i2c3 { status =3D "okay"; pinctrl-0 =3D <&i2c3_sda_a_pins>, <&i2c3_sck_a_pins>; @@ -581,62 +261,11 @@ rtc: rtc@51 { }; }; =20 -&pwm_ab { - pinctrl-0 =3D <&pwm_a_e_pins>; - pinctrl-names =3D "default"; - clocks =3D <&xtal>; - clock-names =3D "clkin0"; +&ir { status =3D "okay"; -}; - -&pwm_AO_cd { - pinctrl-0 =3D <&pwm_ao_d_e_pins>; + pinctrl-0 =3D <&remote_input_ao_pins>; pinctrl-names =3D "default"; - clocks =3D <&xtal>; - clock-names =3D "clkin1"; - status =3D "okay"; -}; - -&saradc { - status =3D "okay"; - vref-supply =3D <&vddao_1v8>; -}; - -/* SD card */ -&sd_emmc_b { - status =3D "okay"; - pinctrl-0 =3D <&sdcard_c_pins>; - pinctrl-1 =3D <&sdcard_clk_gate_c_pins>; - pinctrl-names =3D "default", "clk-gate"; - - bus-width =3D <4>; - cap-sd-highspeed; - max-frequency =3D <50000000>; - disable-wp; - - cd-gpios =3D <&gpio GPIOC_6 GPIO_ACTIVE_LOW>; - vmmc-supply =3D <&tflash_vdd>; - vqmmc-supply =3D <&tf_io>; - -}; - -/* eMMC */ -&sd_emmc_c { - status =3D "okay"; - pinctrl-0 =3D <&emmc_ctrl_pins>, <&emmc_data_8b_pins>, <&emmc_ds_pins>; - pinctrl-1 =3D <&emmc_clk_gate_pins>; - pinctrl-names =3D "default", "clk-gate"; - - bus-width =3D <8>; - cap-mmc-highspeed; - mmc-ddr-1_8v; - mmc-hs200-1_8v; - max-frequency =3D <200000000>; - disable-wp; - - mmc-pwrseq =3D <&emmc_pwrseq>; - vmmc-supply =3D <&vcc_3v3>; - vqmmc-supply =3D <&flash_1v8>; + linux,rc-map-name =3D "rc-odroid"; }; =20 /* @@ -660,73 +289,14 @@ mx25u64: flash@0 { }; }; =20 -&tdmif_b { - status =3D "okay"; -}; - -&tdmif_c { - status =3D "okay"; -}; - -&tdmin_a { - status =3D "okay"; -}; - -&tdmin_b { - status =3D "okay"; -}; - -&tdmin_c { - status =3D "okay"; -}; - -&tdmin_lb { - status =3D "okay"; -}; - -&tdmout_b { - status =3D "okay"; -}; - -&tdmout_c { - status =3D "okay"; -}; - &toacodec { status =3D "okay"; }; =20 -&tohdmitx { - status =3D "okay"; -}; - -&toddr_a { - status =3D "okay"; -}; - -&toddr_b { - status =3D "okay"; -}; - -&toddr_c { - status =3D "okay"; -}; - -&uart_AO { - status =3D "okay"; - pinctrl-0 =3D <&uart_ao_a_pins>; - pinctrl-names =3D "default"; -}; - &usb { - status =3D "okay"; vbus-supply =3D <&usb_pwr_en>; }; =20 -&usb2_phy0 { - phy-supply =3D <&vcc_5v>; -}; - &usb2_phy1 { /* Enable the hub which is connected to this port */ phy-supply =3D <&hub_5v>; diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid.dtsi b/arch/arm6= 4/boot/dts/amlogic/meson-g12b-odroid.dtsi new file mode 100644 index 000000000000..9e12a34b2840 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid.dtsi @@ -0,0 +1,445 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 BayLibre, SAS + * Author: Neil Armstrong + */ + +#include +#include +#include +#include + +/ { + aliases { + serial0 =3D &uart_AO; + ethernet0 =3D ðmac; + rtc1 =3D &vrtc; + }; + + chosen { + stdout-path =3D "serial0:115200n8"; + }; + + memory@0 { + device_type =3D "memory"; + reg =3D <0x0 0x0 0x0 0x40000000>; + }; + + emmc_pwrseq: emmc-pwrseq { + compatible =3D "mmc-pwrseq-emmc"; + reset-gpios =3D <&gpio BOOT_12 GPIO_ACTIVE_LOW>; + }; + + fan: gpio-fan { + compatible =3D "gpio-fan"; + gpios =3D <&gpio_ao GPIOAO_10 GPIO_ACTIVE_HIGH>; + /* Using Dummy Speed */ + gpio-fan,speed-map =3D <0 0>, <1 1>; + #cooling-cells =3D <2>; + }; + + leds { + compatible =3D "gpio-leds"; + + led-blue { + label =3D "n2:blue"; + gpios =3D <&gpio_ao GPIOAO_11 GPIO_ACTIVE_HIGH>; + linux,default-trigger =3D "heartbeat"; + }; + }; + + tflash_vdd: regulator-tflash_vdd { + compatible =3D "regulator-fixed"; + + regulator-name =3D "TFLASH_VDD"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + + gpio =3D <&gpio_ao GPIOAO_8 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-always-on; + }; + + tf_io: gpio-regulator-tf_io { + compatible =3D "regulator-gpio"; + + regulator-name =3D "TF_IO"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <3300000>; + + gpios =3D <&gpio_ao GPIOAO_9 GPIO_ACTIVE_HIGH>; + gpios-states =3D <0>; + + states =3D <3300000 0>, + <1800000 1>; + }; + + flash_1v8: regulator-flash_1v8 { + compatible =3D "regulator-fixed"; + regulator-name =3D "FLASH_1V8"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + vin-supply =3D <&vcc_3v3>; + regulator-always-on; + }; + + main_12v: regulator-main_12v { + compatible =3D "regulator-fixed"; + regulator-name =3D "12V"; + regulator-min-microvolt =3D <12000000>; + regulator-max-microvolt =3D <12000000>; + regulator-always-on; + }; + + usb_pwr_en: regulator-usb_pwr_en { + compatible =3D "regulator-fixed"; + regulator-name =3D "USB_PWR_EN"; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + vin-supply =3D <&vcc_5v>; + + /* Connected to the microUSB port power enable */ + gpio =3D <&gpio GPIOH_6 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + vcc_5v: regulator-vcc_5v { + compatible =3D "regulator-fixed"; + regulator-name =3D "5V"; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + regulator-always-on; + vin-supply =3D <&main_12v>; + gpio =3D <&gpio GPIOH_8 GPIO_OPEN_DRAIN>; + enable-active-high; + }; + + vcc_1v8: regulator-vcc_1v8 { + compatible =3D "regulator-fixed"; + regulator-name =3D "VCC_1V8"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + vin-supply =3D <&vcc_3v3>; + regulator-always-on; + }; + + vcc_3v3: regulator-vcc_3v3 { + compatible =3D "regulator-fixed"; + regulator-name =3D "VCC_3V3"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + vin-supply =3D <&vddao_3v3>; + regulator-always-on; + /* FIXME: actually controlled by VDDCPU_B_EN */ + }; + + vddcpu_a: regulator-vddcpu-a { + /* + * MP8756GD Regulator. + */ + compatible =3D "pwm-regulator"; + + regulator-name =3D "VDDCPU_A"; + regulator-min-microvolt =3D <721000>; + regulator-max-microvolt =3D <1022000>; + + pwm-supply =3D <&main_12v>; + + pwms =3D <&pwm_ab 0 1250 0>; + pwm-dutycycle-range =3D <100 0>; + + regulator-boot-on; + regulator-always-on; + }; + + vddcpu_b: regulator-vddcpu-b { + /* + * Silergy SY8120B1ABC Regulator. + */ + compatible =3D "pwm-regulator"; + + regulator-name =3D "VDDCPU_B"; + regulator-min-microvolt =3D <721000>; + regulator-max-microvolt =3D <1022000>; + + pwm-supply =3D <&main_12v>; + + pwms =3D <&pwm_AO_cd 1 1250 0>; + pwm-dutycycle-range =3D <100 0>; + + regulator-boot-on; + regulator-always-on; + }; + + vddao_1v8: regulator-vddao_1v8 { + compatible =3D "regulator-fixed"; + regulator-name =3D "VDDAO_1V8"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + vin-supply =3D <&vddao_3v3>; + regulator-always-on; + }; + + vddao_3v3: regulator-vddao_3v3 { + compatible =3D "regulator-fixed"; + regulator-name =3D "VDDAO_3V3"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + vin-supply =3D <&main_12v>; + regulator-always-on; + }; + + hdmi-connector { + compatible =3D "hdmi-connector"; + type =3D "a"; + + port { + hdmi_connector_in: endpoint { + remote-endpoint =3D <&hdmi_tx_tmds_out>; + }; + }; + }; +}; + +&arb { + status =3D "okay"; +}; + +&cec_AO { + pinctrl-0 =3D <&cec_ao_a_h_pins>; + pinctrl-names =3D "default"; + status =3D "disabled"; + hdmi-phandle =3D <&hdmi_tx>; +}; + +&cecb_AO { + pinctrl-0 =3D <&cec_ao_b_h_pins>; + pinctrl-names =3D "default"; + status =3D "okay"; + hdmi-phandle =3D <&hdmi_tx>; +}; + +&clkc_audio { + status =3D "okay"; +}; + +&cpu0 { + cpu-supply =3D <&vddcpu_b>; + operating-points-v2 =3D <&cpu_opp_table_0>; + clocks =3D <&clkc CLKID_CPU_CLK>; + clock-latency =3D <50000>; +}; + +&cpu1 { + cpu-supply =3D <&vddcpu_b>; + operating-points-v2 =3D <&cpu_opp_table_0>; + clocks =3D <&clkc CLKID_CPU_CLK>; + clock-latency =3D <50000>; +}; + +&cpu100 { + cpu-supply =3D <&vddcpu_a>; + operating-points-v2 =3D <&cpub_opp_table_1>; + clocks =3D <&clkc CLKID_CPUB_CLK>; + clock-latency =3D <50000>; +}; + +&cpu101 { + cpu-supply =3D <&vddcpu_a>; + operating-points-v2 =3D <&cpub_opp_table_1>; + clocks =3D <&clkc CLKID_CPUB_CLK>; + clock-latency =3D <50000>; +}; + +&cpu102 { + cpu-supply =3D <&vddcpu_a>; + operating-points-v2 =3D <&cpub_opp_table_1>; + clocks =3D <&clkc CLKID_CPUB_CLK>; + clock-latency =3D <50000>; +}; + +&cpu103 { + cpu-supply =3D <&vddcpu_a>; + operating-points-v2 =3D <&cpub_opp_table_1>; + clocks =3D <&clkc CLKID_CPUB_CLK>; + clock-latency =3D <50000>; +}; + +&cpu_thermal { + trips { + cpu_active: cpu-active { + temperature =3D <60000>; /* millicelsius */ + hysteresis =3D <2000>; /* millicelsius */ + type =3D "active"; + }; + }; + + cooling-maps { + map { + trip =3D <&cpu_active>; + cooling-device =3D <&fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; +}; + +&ddr_thermal { + trips { + ddr_active: ddr-active { + temperature =3D <60000>; /* millicelsius */ + hysteresis =3D <2000>; /* millicelsius */ + type =3D "active"; + }; + }; + + cooling-maps { + map { + trip =3D <&ddr_active>; + cooling-device =3D <&fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; +}; + +&frddr_a { + status =3D "okay"; +}; + +&frddr_b { + status =3D "okay"; +}; + +&frddr_c { + status =3D "okay"; +}; + +&hdmi_tx { + status =3D "okay"; + pinctrl-0 =3D <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>; + pinctrl-names =3D "default"; + hdmi-supply =3D <&vcc_5v>; +}; + +&hdmi_tx_tmds_port { + hdmi_tx_tmds_out: endpoint { + remote-endpoint =3D <&hdmi_connector_in>; + }; +}; + +&pwm_ab { + pinctrl-0 =3D <&pwm_a_e_pins>; + pinctrl-names =3D "default"; + clocks =3D <&xtal>; + clock-names =3D "clkin0"; + status =3D "okay"; +}; + +&pwm_AO_cd { + pinctrl-0 =3D <&pwm_ao_d_e_pins>; + pinctrl-names =3D "default"; + clocks =3D <&xtal>; + clock-names =3D "clkin1"; + status =3D "okay"; +}; + +&saradc { + status =3D "okay"; + vref-supply =3D <&vddao_1v8>; +}; + +/* SD card */ +&sd_emmc_b { + status =3D "okay"; + pinctrl-0 =3D <&sdcard_c_pins>; + pinctrl-1 =3D <&sdcard_clk_gate_c_pins>; + pinctrl-names =3D "default", "clk-gate"; + + bus-width =3D <4>; + cap-sd-highspeed; + max-frequency =3D <50000000>; + disable-wp; + + cd-gpios =3D <&gpio GPIOC_6 GPIO_ACTIVE_LOW>; + vmmc-supply =3D <&tflash_vdd>; + vqmmc-supply =3D <&tf_io>; + +}; + +/* eMMC */ +&sd_emmc_c { + status =3D "okay"; + pinctrl-0 =3D <&emmc_ctrl_pins>, <&emmc_data_8b_pins>, <&emmc_ds_pins>; + pinctrl-1 =3D <&emmc_clk_gate_pins>; + pinctrl-names =3D "default", "clk-gate"; + + bus-width =3D <8>; + cap-mmc-highspeed; + mmc-ddr-1_8v; + mmc-hs200-1_8v; + max-frequency =3D <200000000>; + disable-wp; + + mmc-pwrseq =3D <&emmc_pwrseq>; + vmmc-supply =3D <&vcc_3v3>; + vqmmc-supply =3D <&flash_1v8>; +}; + +&tdmif_b { + status =3D "okay"; +}; + +&tdmif_c { + status =3D "okay"; +}; + +&tdmin_a { + status =3D "okay"; +}; + +&tdmin_b { + status =3D "okay"; +}; + +&tdmin_c { + status =3D "okay"; +}; + +&tdmin_lb { + status =3D "okay"; +}; + +&tdmout_b { + status =3D "okay"; +}; + +&tdmout_c { + status =3D "okay"; +}; + +&tohdmitx { + status =3D "okay"; +}; + +&toddr_a { + status =3D "okay"; +}; + +&toddr_b { + status =3D "okay"; +}; + +&toddr_c { + status =3D "okay"; +}; + +&uart_AO { + status =3D "okay"; + pinctrl-0 =3D <&uart_ao_a_pins>; + pinctrl-names =3D "default"; +}; + +&usb { + status =3D "okay"; +}; + +&usb2_phy0 { + phy-supply =3D <&vcc_5v>; +}; --=20 2.34.1 From nobody Sun Sep 14 07:42:43 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6A20C54E94 for ; Wed, 25 Jan 2023 08:19:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235141AbjAYITD (ORCPT ); Wed, 25 Jan 2023 03:19:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235001AbjAYISt (ORCPT ); Wed, 25 Jan 2023 03:18:49 -0500 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC794470BB for ; Wed, 25 Jan 2023 00:18:46 -0800 (PST) Received: by mail-wr1-x432.google.com with SMTP id h12so12201835wrv.10 for ; Wed, 25 Jan 2023 00:18:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=42S+VqN9LTbh+aZs3DUPyk7eOYyO/WSy+YOH5CCdRvI=; b=VBXlWo7Ifpvo9JGRHEWseLgXSjcbd2zUjutSZIUi6oDlIXUxeie+fG4ndxcVLIbIku EGMoKMLRAetrDWiwayZ7a+tYVgytrfzYqhT+8OsYA7/aly7t0S3LhtiXVvO6BY2L4LcZ g/OhoAraGklYtGWV+LYq9EC5k9J5AEO3vtiplqwCMYNHTt5jCa8Boke5bGqIe2SCjm5p pSi4+vbh7zPno77KHuPirfLacIxGsvhQT0NCk//7Af4ZgdJbE1vcw958oAdia42wGzRU 1RFffO429hgs2MfdIvLBsN9fijC4PkYlVxJVEsM4tNe2oHS82NUSweqQikwqjheQmLWd GN9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=42S+VqN9LTbh+aZs3DUPyk7eOYyO/WSy+YOH5CCdRvI=; b=UFLtbYt2ZK7nM1lo8Fx39yeFYO6o4XmSIxCaJf+wVMvznC5vNQ2xOl9mLsdIx3TQ4S gA83bmwFYG3eb0gGlXLqF8J1tGX3qEXqeBCAj4GpVD7wcMQkevxoBe5y2mGW+X90d6PU C/oEeKM/jh/NEwBWblK2doP/ov+0ZpYAjgqZ7J4wn+hZQleqQVO1JBlyyx3+XaRjR/7O 12bP8ZBgIUC2lfw7HscppSxjOwcPssLwrw3lJKNG1V9Y9Tu/Yfn073cQdSOgexlE1MJ5 2rhtnOlDA99WTbEfy6FUR7VZ2V56CGtArsukx0IM/jaA3gHMMvqGoRPyFi5Vg8CxFl+q sceQ== X-Gm-Message-State: AO0yUKUo15ynnk+hKZ9tmtjLhXn8vnKj8kYT/6swcQlenPBzUtBJcqR/ KrjsG1o/wmdTb7zGonFA78/2rA== X-Google-Smtp-Source: AK7set+nHS1ERfeA5HSjZOAP4XMGZ78LShDv+DbrqPS3vDyLLz1iDEMiepScfodZRBJld8itp5pHGQ== X-Received: by 2002:adf:e745:0:b0:2bf:bae4:a369 with SMTP id c5-20020adfe745000000b002bfbae4a369mr1183513wrn.10.1674634725326; Wed, 25 Jan 2023 00:18:45 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id p7-20020adff207000000b002bdff778d87sm3770343wro.34.2023.01.25.00.18.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Jan 2023 00:18:44 -0800 (PST) From: Neil Armstrong Date: Wed, 25 Jan 2023 09:18:39 +0100 Subject: [PATCH v2 3/3] arm64: dts: meson-g12b-odroid: Add initial support for Hardkernel ODROID-N2L MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20230122-topic-odroid-n2l-upstream-initial-v2-3-8d3fea6d403d@linaro.org> References: <20230122-topic-odroid-n2l-upstream-initial-v2-0-8d3fea6d403d@linaro.org> In-Reply-To: <20230122-topic-odroid-n2l-upstream-initial-v2-0-8d3fea6d403d@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, Dongjin Kim , Neil Armstrong X-Mailer: b4 0.12.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ODROID-N2L is a variant SBC in small form factor and some peripherals are removed from ODROID-N2PLUS based on S922X SoC. - On-board ethernet is removed - On-board RTC is removed - USB 3.0 hub is removed, so one USB 2.0 and one USB 3.0 host ports are available - Huge heatsink is replaced with 40x40mm heatsink, 5V active heatsink is recommended or a tall passive sink is optional - 3.5mm earjack is removed - IR remote receiver is removed - MIPI DSI port is added new but not yet supported Signed-off-by: Dongjin Kim Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/Makefile | 1 + .../boot/dts/amlogic/meson-g12b-odroid-n2l.dts | 125 +++++++++++++++++= ++++ 2 files changed, 126 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/aml= ogic/Makefile index 97b42e2100e0..04114e8c9992 100644 --- a/arch/arm64/boot/dts/amlogic/Makefile +++ b/arch/arm64/boot/dts/amlogic/Makefile @@ -15,6 +15,7 @@ dtb-$(CONFIG_ARCH_MESON) +=3D meson-g12b-gtking.dtb dtb-$(CONFIG_ARCH_MESON) +=3D meson-g12b-odroid-go-ultra.dtb dtb-$(CONFIG_ARCH_MESON) +=3D meson-g12b-odroid-n2-plus.dtb dtb-$(CONFIG_ARCH_MESON) +=3D meson-g12b-odroid-n2.dtb +dtb-$(CONFIG_ARCH_MESON) +=3D meson-g12b-odroid-n2l.dtb dtb-$(CONFIG_ARCH_MESON) +=3D meson-g12b-s922x-khadas-vim3.dtb dtb-$(CONFIG_ARCH_MESON) +=3D meson-g12b-ugoos-am6.dtb dtb-$(CONFIG_ARCH_MESON) +=3D meson-gxbb-kii-pro.dtb diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2l.dts b/arch/a= rm64/boot/dts/amlogic/meson-g12b-odroid-n2l.dts new file mode 100644 index 000000000000..70919f40d597 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2l.dts @@ -0,0 +1,125 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2022 Dongjin Kim + */ + +/dts-v1/; + +/* The Amlogic S922X Rev. C supports the same OPPs as the A311D variant */ +#include "meson-g12b-a311d.dtsi" +#include "meson-g12b-odroid.dtsi" + +/ { + compatible =3D "hardkernel,odroid-n2l", "amlogic,s922x", "amlogic,g12b"; + model =3D "Hardkernel ODROID-N2L"; + + sound { + compatible =3D "amlogic,axg-sound-card"; + model =3D "ODROID-N2L"; + audio-aux-devs =3D <&tdmout_b>, <&tdmin_a>, <&tdmin_b>, + <&tdmin_c>, <&tdmin_lb>; + audio-routing =3D "TDMOUT_B IN 0", "FRDDR_A OUT 1", + "TDMOUT_B IN 1", "FRDDR_B OUT 1", + "TDMOUT_B IN 2", "FRDDR_C OUT 1", + "TDM_B Playback", "TDMOUT_B OUT", + "TDMIN_A IN 4", "TDM_B Loopback", + "TDMIN_B IN 4", "TDM_B Loopback", + "TDMIN_C IN 4", "TDM_B Loopback", + "TDMIN_LB IN 1", "TDM_B Loopback", + "TODDR_A IN 0", "TDMIN_A OUT", + "TODDR_B IN 0", "TDMIN_A OUT", + "TODDR_C IN 0", "TDMIN_A OUT", + "TODDR_A IN 1", "TDMIN_B OUT", + "TODDR_B IN 1", "TDMIN_B OUT", + "TODDR_C IN 1", "TDMIN_B OUT", + "TODDR_A IN 2", "TDMIN_C OUT", + "TODDR_B IN 2", "TDMIN_C OUT", + "TODDR_C IN 2", "TDMIN_C OUT", + "TODDR_A IN 6", "TDMIN_LB OUT", + "TODDR_B IN 6", "TDMIN_LB OUT", + "TODDR_C IN 6", "TDMIN_LB OUT"; + + assigned-clocks =3D <&clkc CLKID_MPLL2>, + <&clkc CLKID_MPLL0>, + <&clkc CLKID_MPLL1>; + assigned-clock-parents =3D <0>, <0>, <0>; + assigned-clock-rates =3D <294912000>, + <270950400>, + <393216000>; + status =3D "okay"; + + dai-link-0 { + sound-dai =3D <&frddr_a>; + }; + + dai-link-1 { + sound-dai =3D <&frddr_b>; + }; + + dai-link-2 { + sound-dai =3D <&frddr_c>; + }; + + dai-link-3 { + sound-dai =3D <&toddr_a>; + }; + + dai-link-4 { + sound-dai =3D <&toddr_b>; + }; + + dai-link-5 { + sound-dai =3D <&toddr_c>; + }; + + /* 8ch hdmi interface */ + dai-link-6 { + sound-dai =3D <&tdmif_b>; + dai-format =3D "i2s"; + dai-tdm-slot-tx-mask-0 =3D <1 1>; + dai-tdm-slot-tx-mask-1 =3D <1 1>; + dai-tdm-slot-tx-mask-2 =3D <1 1>; + dai-tdm-slot-tx-mask-3 =3D <1 1>; + mclk-fs =3D <256>; + + codec { + sound-dai =3D <&tohdmitx TOHDMITX_I2S_IN_B>; + }; + }; + + /* hdmi glue */ + dai-link-7 { + sound-dai =3D <&tohdmitx TOHDMITX_I2S_OUT>; + + codec { + sound-dai =3D <&hdmi_tx>; + }; + }; + }; +}; + +ð_phy { + status =3D "disabled"; +}; + +&vddcpu_a { + regulator-min-microvolt =3D <680000>; + regulator-max-microvolt =3D <1040000>; + + pwms =3D <&pwm_ab 0 1500 0>; +}; + +&vddcpu_b { + regulator-min-microvolt =3D <680000>; + regulator-max-microvolt =3D <1040000>; + + pwms =3D <&pwm_AO_cd 1 1500 0>; +}; + +&usb2_phy0 { + phy-supply =3D <&usb_pwr_en>; +}; + +&usb2_phy1 { + phy-supply =3D <&usb_pwr_en>; +}; --=20 2.34.1