Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp98267ybh; Wed, 11 Mar 2020 21:41:25 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtDbPpRdfd2Z5fDlmw+9+BWAb8gZtP+DrNV0wEYSsuqzCPjBr6EemVeGsSlFMUj7DZI0M2j X-Received: by 2002:a05:6830:18d4:: with SMTP id v20mr5173361ote.23.1583988085150; Wed, 11 Mar 2020 21:41:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583988085; cv=none; d=google.com; s=arc-20160816; b=KGtR0YitrZ4UeVJg1zFPTXcMLbJcTXaM32oFBrTG1kQVg69kr1R/3i/0NXTq6Od9BX J3nHpcKPgPVYDwPhGfc/cSitJFA1kwPSsonUWmDQ5Ond700ZnIiRtAs3pJKHwZ0j0WmC /qcpNp8UIoxKBASA8SFjJI/nFHeIisjUeyNORJ+WsXFVsGyq/cZ99E5+BefrILJrbOGP Z0RICPd9FkVrjSuJdfX26bMAdICQfBujl8irVKY1Mtc8zH4rRwUQvB/+jLjDM7WfJIps o11vJPj1uP+LOnH3ns+Xxr0T6d8vwHi4YaldrGXd36JZZVPGUag+ybMoys8sELHZ1Zhq 0WBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=yBuGv/QITRC/Igo7HSUN1dH5kTCAjwfuFijzguA/jYw=; b=EAowBYRrYNY9JFqKLTkbzfO61x7Q6mhSsKRk5nfzwsA/b03P+rYbHWIW+0c8JaGjQt Uyzk+zICshebrSHS4Hy4v7GX1Dlo6I7Y78/Mqns9jnAtc8D9t/gkJUA01Kj0XS2Oadiq ARgHAU5Ik6nxgwsLs9EPsHa1WTgG3GJGj1bfRhS9Yf0JbFoaM+w1XLh5XY40ZSLslfTH kYpDVtZ15BilkiO7XAip3PF2z8uq3pjUI90Np9Qt4J+YrGK+axD64aMd+fuIweGoGFqP YGKslCDn5g7PT7TRx+Xfw19S227rbQXRMzUUiFD1IKNv27HIOejfNPindqNg+IdpHQNn h+Fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="GW/HqYbg"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id d15si1945771oic.38.2020.03.11.21.41.13; Wed, 11 Mar 2020 21:41:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="GW/HqYbg"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2387677AbgCLEjK (ORCPT + 99 others); Thu, 12 Mar 2020 00:39:10 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:36866 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725978AbgCLEjJ (ORCPT ); Thu, 12 Mar 2020 00:39:09 -0400 Received: by mail-lj1-f196.google.com with SMTP id r24so4852929ljd.4; Wed, 11 Mar 2020 21:39:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yBuGv/QITRC/Igo7HSUN1dH5kTCAjwfuFijzguA/jYw=; b=GW/HqYbg9lETiK4yfwbUs4BmicgdKhjRPIqlh5ukEXfbM3X9HCDg3QNNczw+mIOLqD PUAEVyTpFnG/S5qwpz3FFD7JfVFurX8pxSKwH+HSlBOrVe6xUMnYVOvBsn7wpWD+xwcw cMaCU7mmyKcRq4xOYkiwIUs+gY3AqsG/aHMaU8juMyIiaBJ9wXn5ZS68VMiTQU4APNAw T/lKMQKvF15EXz3hq80eCCQqeO4l0xnWn00eiZfGDj+gEWoWL5LrEa2QGJ4rgkXhuDbF srN4IRpbzOsswO3RgbjZLmNdxKQrhz0KuzC0RjltrS6VIHRPQ80DGqg7PG/oaNFjgmHF KYYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yBuGv/QITRC/Igo7HSUN1dH5kTCAjwfuFijzguA/jYw=; b=OgxOHvyh9X2huZ6+4k1KElkOKrChQVXKQLJISFaWJa+5m41bnh/rogDowX5eITBsJS D0SqTxv5PJPJye/gkfM+W/UBbeYMVtIx1LdvQW2kDwmO8LQ4HZnEu3NWAUUtoWaAH39K fbjQYR8+VATz9yzvLuOghb8V7aki0rv6qKx9KmJXfhAF+zryssRu+YemrkTdXT7JWsNj rNgrSfogMNsawSW3ckqNKrgVsuzmGe8P0CiNMWx2x2LcJnJcHvG7ivAhooNY7zJfq4Fi r65Po5LfjtysrCE0jv4yvJZJUmygFDJAAUWp9VsMT2jFtk6abgWtAQF2AJsppUqyVzLs IkXw== X-Gm-Message-State: ANhLgQ0vqagXsqiRYESvulF2rNN4agpOJWNDeZMMmtwCKfw86ya2AyWh swf9WxKM6+iBCO+FW0IRD0A= X-Received: by 2002:a05:651c:50a:: with SMTP id o10mr4092570ljp.189.1583987946148; Wed, 11 Mar 2020 21:39:06 -0700 (PDT) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id u2sm8872866lfu.3.2020.03.11.21.39.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Mar 2020 21:39:05 -0700 (PDT) From: Christian Hewitt To: 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 Cc: Christian Hewitt , =?UTF-8?q?Andreas=20F=C3=A4rber?= , =?UTF-8?q?Jer=C3=B4me=20Brunet?= Subject: [PATCH v7 3/3] arm64: dts: meson: add support for the SmartLabs SML-5442TW Date: Thu, 12 Mar 2020 08:38:06 +0400 Message-Id: <1583987886-6288-4-git-send-email-christianshewitt@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1583987886-6288-1-git-send-email-christianshewitt@gmail.com> References: <1583987886-6288-1-git-send-email-christianshewitt@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The SmartLabs SML-5442TW is broadly similar to the P231 reference design but with the following differences: - The Yellow and Blue LEDs are available but disabled - The Red and Green LEDs are used to signal off/on status - uart_AO can be accessed after opening the case; soldered pins exist - GPIOX_17 is forced high to enable the QCA9377 module Signed-off-by: Christian Hewitt --- arch/arm64/boot/dts/amlogic/Makefile | 1 + .../boot/dts/amlogic/meson-gxl-s905d-sml5442tw.dts | 284 +++++++++++++++++++++ 2 files changed, 285 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-gxl-s905d-sml5442tw.dts diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile index eef0045..6cf8c4a 100644 --- a/arch/arm64/boot/dts/amlogic/Makefile +++ b/arch/arm64/boot/dts/amlogic/Makefile @@ -27,6 +27,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-p212.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905d-p230.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905d-p231.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905d-phicomm-n1.dtb +dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905d-sml5442tw.dtb 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 diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905d-sml5442tw.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905d-sml5442tw.dts new file mode 100644 index 0000000..03723b7 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905d-sml5442tw.dts @@ -0,0 +1,284 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2016 Endless Computers, Inc. + * Author: Carlo Caione + * Copyright (c) 2018 BayLibre, SAS + * Author: Neil Armstrong + */ + +/dts-v1/; + +#include "meson-gxl-s905d.dtsi" + +/ { + compatible = "smartlabs,sml5442tw", "amlogic,s905d", "amlogic,meson-gxl"; + model = "SmartLabs SML-5442TW"; + + aliases { + serial0 = &uart_AO; + ethernet0 = ðmac; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x0 0x0 0x80000000>; + }; + + leds { + compatible = "gpio-leds"; + + yellow { + color = ; + function = LED_FUNCTION_STATUS; + gpios = <&gpio_ao GPIOAO_6 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + blue { + color = ; + function = LED_FUNCTION_STATUS; + gpios = <&gpio GPIODV_28 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + green { + color = ; + function = LED_FUNCTION_STATUS; + gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; + + red { + color = ; + function = LED_FUNCTION_STATUS; + gpios = <&gpio GPIODV_27 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + }; + + hdmi_5v: regulator-hdmi-5v { + compatible = "regulator-fixed"; + + regulator-name = "HDMI_5V"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + + gpio = <&gpio GPIOH_3 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-always-on; + }; + + 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"; + }; + + cvbs-connector { + compatible = "composite-video-connector"; + + port { + cvbs_connector_in: endpoint { + remote-endpoint = <&cvbs_vdac_out>; + }; + }; + }; + + hdmi-connector { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_connector_in: endpoint { + remote-endpoint = <&hdmi_tx_tmds_out>; + }; + }; + }; +}; + +&cec_AO { + status = "okay"; + pinctrl-0 = <&ao_cec_pins>; + pinctrl-names = "default"; + hdmi-phandle = <&hdmi_tx>; +}; + +&cvbs_vdac_port { + cvbs_vdac_out: endpoint { + remote-endpoint = <&cvbs_connector_in>; + }; +}; + +ðmac { + status = "okay"; + phy-mode = "rmii"; + phy-handle = <&internal_phy>; +}; + +&hdmi_tx { + status = "okay"; + pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>; + pinctrl-names = "default"; + hdmi-supply = <&hdmi_5v>; +}; + +&hdmi_tx_tmds_port { + hdmi_tx_tmds_out: endpoint { + remote-endpoint = <&hdmi_connector_in>; + }; +}; + +&i2c_A { + status = "okay"; + pinctrl-0 = <&i2c_a_pins>; + pinctrl-names = "default"; +}; + +&internal_phy { + pinctrl-0 = <ð_link_led_pins>, <ð_act_led_pins>; + pinctrl-names = "default"; +}; + +&ir { + status = "okay"; + pinctrl-0 = <&remote_input_ao_pins>; + pinctrl-names = "default"; +}; + +&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 = <100000000>; + + non-removable; + disable-wp; + + 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 = <100000000>; + disable-wp; + + cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>; + cd-inverted; + + 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 = <100000000>; + non-removable; + disable-wp; + mmc-ddr-1_8v; + mmc-hs200-1_8v; + + mmc-pwrseq = <&emmc_pwrseq>; + vmmc-supply = <&vcc_3v3>; + vqmmc-supply = <&vddio_boot>; +}; + +/* This is connected to the Bluetooth module: */ +&uart_A { + status = "okay"; + pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>; + pinctrl-names = "default"; + uart-has-rtscts; +}; + +/* This UART is brought out to the debug header */ +&uart_AO { + status = "okay"; + pinctrl-0 = <&uart_ao_a_pins>; + pinctrl-names = "default"; +}; + +&usb0 { + status = "okay"; +}; -- 2.7.4