Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1081900ybk; Sun, 10 May 2020 05:46:21 -0700 (PDT) X-Google-Smtp-Source: APiQypLdCx0Bbpxy6ERk6i1rQg/iKL+8zCX6ZZC5dCylSD/09fAoj7rK/SEV72Jo3DYv90Om70fb X-Received: by 2002:a17:906:a3da:: with SMTP id ca26mr9549279ejb.125.1589114781313; Sun, 10 May 2020 05:46:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589114781; cv=none; d=google.com; s=arc-20160816; b=KyOkKxiTjRObD2LuuDXZ3dwq/+pwW1MYoSJjFa9gtyajHupGHntNC7vT2WYot5PyFi jv6JOPJ7NYKy6hLk1K9xP57Yj+BRCGBWJNHW1pftkIyvtzenZjp9H2B+jOmd86pfGG9t cPnprEKicK535OU22blUW1AxtHAWhu7A+zPTV5TkDinUPVborxYye64W3W1+mnurKNl3 OMFMXRq6EQQx73lmqmQGQo8mxoSihVw7Z1zRwKcFUkU2KxrfuLkb5iw77w0Nr5jjA7oP b3YGRuAKXkPbPzX3dNvLxYSOGM0YnqRTICYqj2fMRG+gsESwM7I4cBsMCNMPF79ZDNqv ERKw== 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=NAU0BK+VVegmur9qw286jHjw2JuJhlP5IclMrk1t5Fc=; b=JuFAMYhHcqgQjelUeVDQs8XKH3l7jdLWM9tNWtpGCiht64rcEyrv1yVsqsSnUWOETr W8MXllryxBsVjR3M17QowZ2UUiVGG/YHERTVWfDn019CY6gA6Gu7/LDOdh9+m0D6VucD IeTUQmHtnVBneF7VwyK9BwPxn1IGFUcLM9qeAYa1oBXLvLio3YvORdrp9i4HT0OrMb8L BZTe+tULgsB+oDNACWnc6lNAbpQEEgc8WUR/WH4e6+HxVcmp5F1+GMBi2IqRXavNnF/u dhZnKui6YVCIo3VoZx64S0PeeHH6sM2OaKpzZtBVFTAlxHROQrQ3rlJW6Z/qn0EQNz0Z 88gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LSwcXsCX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id co2si4164282edb.524.2020.05.10.05.45.57; Sun, 10 May 2020 05:46:21 -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=@gmail.com header.s=20161025 header.b=LSwcXsCX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729053AbgEJMlq (ORCPT + 99 others); Sun, 10 May 2020 08:41:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728360AbgEJMlo (ORCPT ); Sun, 10 May 2020 08:41:44 -0400 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 711A7C061A0C; Sun, 10 May 2020 05:41:44 -0700 (PDT) Received: by mail-lj1-x242.google.com with SMTP id l19so6468710lje.10; Sun, 10 May 2020 05:41:44 -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=NAU0BK+VVegmur9qw286jHjw2JuJhlP5IclMrk1t5Fc=; b=LSwcXsCXLUbmLEmiAoiY7Sc91AKsxo1qaLqtbW+OyVlysutWwkoKTk9DLVx+3XhQw+ g1zrwvZ3Uv9NcD6FuZZqutd186rpIJjQzmMiMOSHAkA1jznx5tYQx4bqhtD0cidTFRlM YDxqTu7pByJje6EJLTWKVM4n5imLwczIPB38Qzfg8cJybUY6G0ySqle0WIA8pwf+RKNV gFPklHCzrtnZT24cyLtbZUxm0wYBWUjht+20HsFdllSC3afFnNHbExLuUV5mC+XyRwvF EhSYBZSBl4WF3OX4royuQqZeIzdE3aUOnDzSw8r1oFRR7+FNT5EAkaEoDnihR+PfO/q4 w7tw== 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=NAU0BK+VVegmur9qw286jHjw2JuJhlP5IclMrk1t5Fc=; b=cgTZC4BfrPJkqkpEMoUPMT+c9axGeW5tmz19Yd2aklDx2yr+EDtRukIUQH9aj6pZ5Y faxn5Uh7j/InwucAd0604Ddso+7nOUuEtsnYGFomJEnI8u7/4QtRlV9eHi5BylEbBAiU OMmIm+ECdqtOBN5WApAaRh5wwRFL99A8gxa6h2UG+IOtLp8Cu+OuxgQnUVx4TtpNNJPD cJUUEvpV+pKgnqVwukzhdJpcq52lAeUim+pJrqQSUTzIDSJWW5SSy+o+vyjorlCAEM73 VI61asCiKfLWdsPqjqFYnsbcf4gpgbnlvVBqtXpxtt0hFhqXEAE0vr/u0QF5m9qH4JhD V0Yg== X-Gm-Message-State: AOAM530BEMr/mwA82Cd2AXvkiL+WjS8av0geeLm1tzadZAvcml149E8q 9y4+dlLp56q3Zv5BzQ4XxaoIscBx X-Received: by 2002:a2e:3208:: with SMTP id y8mr7245503ljy.282.1589114502953; Sun, 10 May 2020 05:41:42 -0700 (PDT) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id m11sm7136611lfo.55.2020.05.10.05.41.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 May 2020 05:41:42 -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 Subject: [PATCH v8 3/3] arm64: dts: meson: add support for the Smartlabs SML-5442TW Date: Sun, 10 May 2020 12:41:29 +0000 Message-Id: <20200510124129.31575-4-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200510124129.31575-1-christianshewitt@gmail.com> References: <20200510124129.31575-1-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 based on the Amlogic 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 - QCA9377 instead of the usual Ampak/Broadcom module Signed-off-by: Christian Hewitt --- arch/arm64/boot/dts/amlogic/Makefile | 1 + .../dts/amlogic/meson-gxl-s905d-sml5442tw.dts | 80 +++++++++++++++++++ 2 files changed, 81 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 eef0045320f2..6cf8c4ac0390 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 000000000000..0b95e9ecbef0 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905d-sml5442tw.dts @@ -0,0 +1,80 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) Christian Hewitt + */ + +/dts-v1/; + +#include "meson-gxl-s905d.dtsi" +#include "meson-gx-p23x-q20x.dtsi" +#include + +/ { + compatible = "smartlabs,sml5442tw", "amlogic,s905d", "amlogic,meson-gxl"; + model = "SmartLabs SML-5442TW"; + + 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"; + }; + }; +}; + +ðmac { + status = "okay"; + phy-mode = "rmii"; + phy-handle = <&internal_phy>; +}; + +&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"; +}; + +/* 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; + + bluetooth { + compatible = "qcom,qca9377-bt"; + enable-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>; + max-speed = <2000000>; + clocks = <&wifi32k>; + clock-names = "lpo"; + }; +}; -- 2.17.1