Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp938647ybf; Sat, 29 Feb 2020 20:20:24 -0800 (PST) X-Google-Smtp-Source: ADFU+vtehKR5r6/fvnHIiEAim0MFV5GYEe51B4jeLW5LdXyYXYldmGyNJk2hv7QC2WFxgDTAbolW X-Received: by 2002:aca:c3c5:: with SMTP id t188mr221469oif.53.1583036424302; Sat, 29 Feb 2020 20:20:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583036424; cv=none; d=google.com; s=arc-20160816; b=FNKmrkI2In/Dwx/oscbN9o1op96bddlzhksw5j88NPpGr2akp/VY6jya7TVZl16eTq ImpZec9/0qEEIkcmnsVqIncMBiBAWVveIsRR9/GJBBvYCit3wFgnlb7VsS1y14o4VIpm 7qo/Uo4eGWuhMIUIm386V9Q9OdMdeqyqT1I6hruL0VbME8e+v9+nikXqav6H4XpwIVBM 3FTSqmxazTMGlbifP4C85EBHG0+Ns6fK1pZxxZGcSVZ3eR+qpNoVjwHMrMa81PX/+DIV JSxwog4vc/mpnfn05Pkw5qQI+zU0Mwd7Q+Wg6bFKTLJLmsdE8V0EKkv/XYp4gIGwjAtg tHqQ== 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=Ld9u9TxxhB6GTRW+L7DSutYhV37fS80nY83j3DEGlJ8=; b=cDXLhmcjSuvC7DLsycsu9dKb8CQIpaCZhauQiiF6fAjKgCM11kzUmCQwNe/RUYUoPy 41gnMF82YzZcvsKthO8ttvmHvF9Yd8K9xZPMWvpr34up424eu7YOHDzoX/MKOqTLrd8T oXQaLfQsJljQ3KGC9X8WIjCtUKrf3ntN4k1XU2BHpupYvBPBBFCM/AlCfTGH1ikfH/5f 0RHi39e3MQiBKgf0ql184rBQYImeiUjLLgiGGbgNGOL4Sw+LcmqDCu1MWsyI67L+n6Jb dhejfJfbTSstiHGsXMqCh/RyXrpy2OZpQt/cDoTqp6Kk9CGbSEU8OxibtMtNi30lAwNY v2pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jBzUDtH7; 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 v7si1562726otp.43.2020.02.29.20.20.12; Sat, 29 Feb 2020 20:20:24 -0800 (PST) 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=jBzUDtH7; 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 S1727409AbgCAESZ (ORCPT + 99 others); Sat, 29 Feb 2020 23:18:25 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:39703 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727397AbgCAESZ (ORCPT ); Sat, 29 Feb 2020 23:18:25 -0500 Received: by mail-lj1-f195.google.com with SMTP id o15so7972455ljg.6; Sat, 29 Feb 2020 20:18:22 -0800 (PST) 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=Ld9u9TxxhB6GTRW+L7DSutYhV37fS80nY83j3DEGlJ8=; b=jBzUDtH76UDqLZrlYFXPDa+vE0yyF2sg8I5P0YTnC588gKp5vCxCL+SC5gXxmxTaJ+ ZvwP1D7JRw1ZTpljJk8lrmA5zzuWhPUPcC0Y5nlguNgzK+EqMGOPYYVDlBOVfYwPHLZm fkTH7pCqVWwOrrAqwVXPNRaP2rkdKddCBZrcEVDVbo8H8Pk9TI+sSL85xOeC+STWiC1N BaNP3timZZ8/uy1PRYR0QUHlH+JeGqWxMoG+tiIf4BqUYclif8y9qWmVoGYVG8DRfuur 6nBklPTqAIypEC3YJPNehrlWblGGWOwBYljpq1Uz2Z0MHkjH5x+t28gve/F4/SBbn6yP u4fg== 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=Ld9u9TxxhB6GTRW+L7DSutYhV37fS80nY83j3DEGlJ8=; b=I4SYUfzY+dGZXMFSnRrb+YIeFG3n6LU9XkSGWRiWNpHo6kLDqKCkHWW7L3wdMLioOo TBa7sz/A7NFnBlP0Yga+ApslT3eRRe+RfUv84fkhigP1IxMjMoebs5BL/h0fLwIbucc/ R2TXRHcuci2HeyjiLYWOPnA+nU5egYjBn8IFk/RyO7Yjbos/M8/8cqaL4QGFMlKDbhia QwmE9iu+SFRmgoWIyI0vmWABKXc6rIVuUyNHx7JQ+6p+KBbMVIECeK4afr4VxdWZvAzo Aqt5PIVR1eIVyfkQIbn/nL7aJHYFsVt+35qb92JGl/iwfVzU4bXKxkHzowW8mnFSI/CP wRng== X-Gm-Message-State: ANhLgQ1VQlfFDQLFq9c0stixA9+xDPuPwZZsqGqWyFHrBFShqGQL+mRK pBBN5r0xuJMnT4jPyHq7htY= X-Received: by 2002:a2e:585c:: with SMTP id x28mr5777076ljd.285.1583036302079; Sat, 29 Feb 2020 20:18:22 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id y24sm9568864lfg.63.2020.02.29.20.18.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 29 Feb 2020 20:18:21 -0800 (PST) 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 v6 3/3] arm64: dts: meson: add support for the SmartLabs SML-5442TW Date: Sun, 1 Mar 2020 08:17:21 +0400 Message-Id: <1583036241-88937-4-git-send-email-christianshewitt@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1583036241-88937-1-git-send-email-christianshewitt@gmail.com> References: <1583036241-88937-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 | 292 +++++++++++++++++++++ 2 files changed, 293 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..5fdf1ca --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905d-sml5442tw.dts @@ -0,0 +1,292 @@ +// 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; + serial1 = &uart_A; + ethernet0 = ðmac; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x0 0x0 0x80000000>; + }; + + leds { + compatible = "gpio-leds"; + + yellow { + label = "sml5442tw:yellow"; + gpios = <&gpio_ao GPIOAO_6 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + blue { + label = "sml5442tw:blue"; + gpios = <&gpio GPIODV_28 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + green { + label = "sml5442tw:green"; + gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; + + red { + label = "sml5442tw:red"; + 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>; +}; + +/* This will enable the bluetooth module */ +&gpio { + bt-en { + gpio-hog; + gpios = ; + output-high; + line-name = "bt-en"; + }; +}; + +&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