Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp181916pxb; Thu, 2 Sep 2021 23:04:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDDvD1J4R6RcMNVoi5hDzZeORh6ixRSdPFjagl6LQT3tlmn1/ZqakNBPWmLp6unvFLXOss X-Received: by 2002:a05:6402:d7:: with SMTP id i23mr2155650edu.291.1630649055156; Thu, 02 Sep 2021 23:04:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630649055; cv=none; d=google.com; s=arc-20160816; b=mmx1drK5wynDVt3XPzNpESWf4e7OdXfLoiSBvRI/0ZvV+5J2noIhzkpxqGfV4/GBhz DZO6D5usllGrLQd82mj8GPIxZjmGrxgsNmSOXN0bS4+TRiVlvKwRD9ZHZGSCtNGs0n4C E18fqN0NdQeOQm0aD142F8QNQAkakJLKnBhG/fyxVeaRi7hFyhtGMrP+JNDUjCAhb8GR ciQGa1C5LLiOemq83M+HSwem9+jYZ69G8zQWevPA9GA9i0wsdRCUKHiqwgzrw3kFF+75 hX1vTA5RUR7ZgtkaLyGy1K3aRy6yEzYXC6wjdgVjSzyEyyd4oKrqkaZO3fgz50m4P8Ye aAVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KT44jDnlYu8DQfzoikU/YKIJhEb1Xh3PBj+SmEFZqxg=; b=pbXwCEpcmyknu4VK8s62U+SwB10wMiZEE7UOSn2vttozLYu5o2Bq4H37gDAI6Ax1nu 1gSktck6PUtMPTNnBP7vD2ulIvsHVzi9xzOxnLe85S1nMx5rprQ9if9UpypKQYh7rBYT OftCVDmUamFSUo151ezs65lfBkLaoJInnZE+jmoURKiLp6i8OeXQujXQALkGAJ20O1C5 5R5+yIBI81J0LVFVmGGqnM8BXbXhVTIpx7XPinDK8NQxRiSa5d4RMBRuCS+UybSYf9oM cAoqSZlkwNjNlLJvegcc9NIz6SWp3UQRculj24WcO6ULU9/ty2u1AL9idCTCYqG5SkUn j2ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lexina.in header.s=dkim header.b=ZIwh2eyH; 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 p13si4076995ejn.372.2021.09.02.23.03.44; Thu, 02 Sep 2021 23:04:15 -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=@lexina.in header.s=dkim header.b=ZIwh2eyH; 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 S243653AbhICGCL (ORCPT + 99 others); Fri, 3 Sep 2021 02:02:11 -0400 Received: from mx.msync.work ([95.217.65.204]:54046 "EHLO mx.msync.work" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238594AbhICGCF (ORCPT ); Fri, 3 Sep 2021 02:02:05 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 46BBED50BC; Fri, 3 Sep 2021 06:01:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lexina.in; s=dkim; t=1630648863; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=KT44jDnlYu8DQfzoikU/YKIJhEb1Xh3PBj+SmEFZqxg=; b=ZIwh2eyHr4Cad1OVZrWvldtAsdZshSGcFR3GjDMuH97InNVkycQpNmCu6A1GM0UL3I2Y8v RMVLeU97RJ6Z9RSOq3CYWe7ueilKPADdKqeEsMol4H88hK98DpSqNwGsU5HefEqvMSMeYA YC3MQfXZGX4Kh8FqjB/EBJ9qhxecnahEFX/yjBhi4odDnC2UbijmCvuC9vkiNfmpJefTwe B0nQygoWi+LkmKBrQsLn87lHQKgodIsRPUdgb9gzFXWlcIcwda8wFQ7R2Www/2uialduLX 3frM/LpmNkY9qbIxbwoRf4vGpL0cSNBIIZEK/ygU+7Ji2DrxRjclbKutr9Ilkg== From: Vyacheslav Bocharov To: Neil Armstrong , Kevin Hilman Cc: linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/3] arm64: dts: meson-gxl: add support for JetHub H1 Date: Fri, 3 Sep 2021 09:00:34 +0300 Message-Id: <20210903060035.844758-3-adeep@lexina.in> In-Reply-To: <20210903060035.844758-1-adeep@lexina.in> References: <20210903060035.844758-1-adeep@lexina.in> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org JetHome Jethub H1 (http://jethome.ru/jethub-h1) is a home automation controller with the following features: - square plastic case - Amlogic S905W (ARM Cortex-A53) quad-core up to 1.5GHz - no video out - 1GB LPDDR4 - 8/16GB eMMC flash - 2 x USB 2.0 - 1 x 10/100Mbps ethernet - WiFi / Bluetooth RTL8822CS IEEE 802.11a/b/g/n/ac, Bluetooth 5.0. - TI CC2538 + CC2592 Zigbee Wireless Module with up to 20dBm output power and Zigbee 3.0 support. - MicroSD 2.x/3.x/4.x DS/HS cards. - 1 x gpio LED - ADC user Button - DC source 5V microUSB Signed-off-by: Vyacheslav Bocharov --- arch/arm64/boot/dts/amlogic/Makefile | 1 + .../meson-gxl-s905w-jethome-jethub-j80.dts | 241 ++++++++++++++++++ 2 files changed, 242 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-gxl-s905w-jethome-jethub-j80.dts diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile index faa0a79a34f5..2c3ce7c401a5 100644 --- a/arch/arm64/boot/dts/amlogic/Makefile +++ b/arch/arm64/boot/dts/amlogic/Makefile @@ -38,6 +38,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s805x-p241.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905w-p281.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905w-tx3-mini.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905d-libretech-pc.dtb +dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905w-jethome-jethub-j80.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxm-khadas-vim2.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxm-mecool-kiii-pro.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxm-minix-neo-u9h.dtb diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905w-jethome-jethub-j80.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905w-jethome-jethub-j80.dts new file mode 100644 index 000000000000..d67a1bc50f7b --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905w-jethome-jethub-j80.dts @@ -0,0 +1,241 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2021 Vyacheslav Bocharov + * Copyright (c) 2020 JetHome + * Author: Aleksandr Kazantsev + * Author: Alexey Shevelkin + * Author: Vyacheslav Bocharov +*/ + +/dts-v1/; + +#include "meson-gxl.dtsi" + +/ { + memory@0 { + device_type = "memory"; + reg = <0x0 0x0 0x0 0x40000000>; + }; + + reserved-memory { + linux,cma { + size = <0x0 0x1000000>; + }; + }; + + aliases { + serial0 = &uart_AO; /* Console */ + serial1 = &uart_A; /* Bluetooth */ + serial2 = &uart_AO_B; /* Wireless module 1 */ + serial3 = &uart_C; /* Wireless module 2 */ + ethernet0 = ðmac; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + vddio_ao18: regulator-vddio_ao18 { + compatible = "regulator-fixed"; + regulator-name = "VDDIO_AO18"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + vddio_boot: regulator-vddio_boot { + compatible = "regulator-fixed"; + regulator-name = "VDDIO_BOOT"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + vddao_3v3: regulator-vddao_3v3 { + compatible = "regulator-fixed"; + regulator-name = "VDDAO_3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + + vcc_3v3: regulator-vcc_3v3 { + compatible = "regulator-fixed"; + regulator-name = "VCC_3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + + emmc_pwrseq: emmc-pwrseq { + compatible = "mmc-pwrseq-emmc"; + reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>; + }; + + wifi32k: wifi32k { + compatible = "pwm-clock"; + #clock-cells = <0>; + clock-frequency = <32768>; + pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ + }; + + sdio_pwrseq: sdio-pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>; + clocks = <&wifi32k>; + clock-names = "ext_clock"; + }; +}; + +&efuse { + sn: sn@14 { + reg = <0x14 0x10>; + }; + bt_mac: bt_mac@6 { + reg = <0x6 0x6>; + }; + wifi_mac: wifi_mac@C { + reg = <0xc 0x6>; + }; + serial: serial@32 { + reg = <0x32 0x20>; + }; +}; + +ð_mac { + reg = <0x0 0x6>; +}; + +&bid { + reg = <0x12 0x20>; +}; + + +&usb { + status = "okay"; + dr_mode = "host"; +}; + +&pwm_ef { + status = "okay"; + pinctrl-0 = <&pwm_e_pins>; + pinctrl-names = "default"; + clocks = <&clkc CLKID_FCLK_DIV4>; + clock-names = "clkin0"; +}; + +&saradc { + status = "okay"; + vref-supply = <&vddio_ao18>; +}; + +/* Wireless SDIO Module */ +&sd_emmc_a { + status = "okay"; + pinctrl-0 = <&sdio_pins>; + pinctrl-1 = <&sdio_clk_gate_pins>; + pinctrl-names = "default", "clk-gate"; + #address-cells = <1>; + #size-cells = <0>; + + bus-width = <4>; + cap-sd-highspeed; + max-frequency = <50000000>; + + non-removable; + disable-wp; + + /* WiFi firmware requires power to be kept while in suspend */ + keep-power-in-suspend; + + mmc-pwrseq = <&sdio_pwrseq>; + + vmmc-supply = <&vddao_3v3>; + vqmmc-supply = <&vddio_boot>; +}; + +/* SD card */ +&sd_emmc_b { + status = "okay"; + pinctrl-0 = <&sdcard_pins>; + pinctrl-1 = <&sdcard_clk_gate_pins>; + pinctrl-names = "default", "clk-gate"; + + bus-width = <4>; + cap-sd-highspeed; + max-frequency = <50000000>; + disable-wp; + + cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>; + + vmmc-supply = <&vddao_3v3>; + vqmmc-supply = <&vddio_boot>; +}; + +/* eMMC */ +&sd_emmc_c { + status = "okay"; + pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>; + pinctrl-1 = <&emmc_clk_gate_pins>; + pinctrl-names = "default", "clk-gate"; + + bus-width = <8>; + cap-mmc-highspeed; + max-frequency = <200000000>; + non-removable; + disable-wp; + mmc-ddr-1_8v; + mmc-hs200-1_8v; + + mmc-pwrseq = <&emmc_pwrseq>; + vmmc-supply = <&vcc_3v3>; + vqmmc-supply = <&vddio_boot>; +}; + +/* Console UART */ +&uart_AO { + status = "okay"; + pinctrl-0 = <&uart_ao_a_pins>; + pinctrl-names = "default"; +}; + +/* S905W only has access to its internal PHY */ +ðmac { + status = "okay"; + phy-mode = "rmii"; + phy-handle = <&internal_phy>; +}; + +&internal_phy { + status = "okay"; + pinctrl-0 = <ð_link_led_pins>, <ð_act_led_pins>; + pinctrl-names = "default"; +}; + +&uart_A { + status = "okay"; + pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>; + pinctrl-names = "default"; + uart-has-rtscts; +}; + +&uart_C { + status = "okay"; + pinctrl-0 = <&uart_c_pins>; + pinctrl-names = "default"; +}; + +&uart_AO_B { + status = "okay"; + pinctrl-0 = <&uart_ao_b_pins>, <&uart_ao_b_cts_rts_pins>; + pinctrl-names = "default"; + uart-has-rtscts; +}; + +&i2c_B { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&i2c_b_pins>; + + pcf8563: pcf8563@51 { + compatible = "nxp,pcf8563"; + reg = <0x51>; + status = "okay"; + }; +}; -- 2.30.2