Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp505725ybf; Sat, 29 Feb 2020 08:33:39 -0800 (PST) X-Google-Smtp-Source: APXvYqwMlxa/1HcBQBj+VkXiyITzBufFdGf3wdbftBKtPKZgHO6KGOO7jmq22wPNgzqPtVF8VZ5i X-Received: by 2002:a9d:48d:: with SMTP id 13mr6926793otm.249.1582994019255; Sat, 29 Feb 2020 08:33:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582994019; cv=none; d=google.com; s=arc-20160816; b=JIpSG/dWTZPIz/nsDiXw5RXXlL/4hB9g21Ta1xYOXK4FSUqnAOPVnQ2nCd0w181ya/ 7OTRij6OSV8k4Y3nMQ2U3CC5+jwlgNGYQ9YdjjJVxrA5Sap5tOqi3akw2SbsVMiCy/qS KuwcrDR7uVDrPkrLvHWeELM2u1cV2pP4fKDddM3kUqr1gMof1zCvDRvWQW3IcEkW1GOI u2KSIscRIOI4wdJ23l/fuK4mkjG3+SkR33hjtpiLBqIw1mZQe7X/sFaxkSHXizAoqIbu X9FjYejdtuXjZK+d1C+DYB2aDfoC3TeO5BtpT99qZkMlRIRk1S+VTpVt2ROX+eHJRmj1 I6rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references:dkim-signature; bh=MmoQZpZlPWrh8tlpzt99cxvERHkrSi8XuDSfS2rijvM=; b=ltm5lAy8fhyQHEo0D2t4cdKYPC1PHlGfxJLUQme0NZvrpposhgRJk+yBOcT6bj+XzX a+yjUzr2f1SZoqjU5Gou8inFlDGDR76DMy2F+L6NQoAg7H3xGVzHxzFgTSaL8NROQqHI hX6BxMEmZJADXV8dXWn2LNuO5nPz3gvHQl/iELxkDCbeSJ+7oe/JvbJyoUqArpjeTSI8 wmOr6aP3MEPvuezq+fAmtuYrt+09LbDN/SsuYbVBMatDOcPEvfxuqHPTZiJgBvaqr6Rn F7lB8XMn1j070ZthX7cK83ftkyCl+//HgfVNA/SNkBReoLYdsLlYonSto1SbTuDc5fDP Pueg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=nzxY5UU1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h139si3534581oib.85.2020.02.29.08.33.27; Sat, 29 Feb 2020 08:33:39 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=nzxY5UU1; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727289AbgB2Qc6 (ORCPT + 99 others); Sat, 29 Feb 2020 11:32:58 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:34469 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727119AbgB2Qc6 (ORCPT ); Sat, 29 Feb 2020 11:32:58 -0500 Received: by mail-wm1-f65.google.com with SMTP id i10so10549745wmd.1 for ; Sat, 29 Feb 2020 08:32:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=MmoQZpZlPWrh8tlpzt99cxvERHkrSi8XuDSfS2rijvM=; b=nzxY5UU1fHi8dnx4F+cDmxeGdY+lHs2MIoFwJEHbTo1VepgHSSUgQXJQYy74e813Ih N1v0hAytC0y3lMguHm5Eoh5bhMJHxy5e+8D5buaIRyrKsyAYrFbygyQ7VoMl7AvvHvMS RrqGYKgOGPI7J/Wvbf6+fIZ6NUkoUmY0uUKjEAsTf1xYcVaNKwjtBMOgwTki/PVveLKl ALedzhs//KEhgXGwtvyBgCgc4844Ak8kzZDqynE40Y4WUAbIQhu0psEVa3suGSQlHRmH tAe7N0e9KrpeU07x8+lb+jeAaLYCDVIOJCPUK1EyjFW2qUAeyguOsfSpmxDK4VxkR6WZ iptA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=MmoQZpZlPWrh8tlpzt99cxvERHkrSi8XuDSfS2rijvM=; b=WFPKIeyBQpkSqe0dsZXri+kk8Cg/tBo2c/sGAdvgVqBvFWCNvxr9oEM8H7Ex87Q6eM iiMaQWIOvkeHIlZQr/tFK9q4BAe34ljzJNPHA0/acUbpK3nuK9ZVMpYQdmhhd1anmhm/ 2pd4pkk4stfv4BI6E7aNtjr+K2zllIZKRRSv2J7X67PCrIXkFHAmTjXVonuz7Zv6hoT3 5fb4EPG9W8zGVNzfGWV6briK37joseS8HMtNZjjtqjTZF90aI/cvnYv6VKVKAcZCXdpF tRCoT3SdOpXuX6KEEHtSig/MQGKOVzkHmDfQ7RluAJfma6ecCQCzj8t3akCUGqVANkc5 5GsQ== X-Gm-Message-State: APjAAAVhxv6r4FRD2i3CKPTg3QKIsBJ4FeRxeWlgfW9riHR1NQz8Gh0S oHFop7IMEqViSEQXjLb3EkVngw== X-Received: by 2002:a7b:c939:: with SMTP id h25mr10510856wml.106.1582993975257; Sat, 29 Feb 2020 08:32:55 -0800 (PST) Received: from localhost (cag06-3-82-243-161-21.fbx.proxad.net. [82.243.161.21]) by smtp.gmail.com with ESMTPSA id a70sm6761381wme.28.2020.02.29.08.32.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Feb 2020 08:32:54 -0800 (PST) References: <1582979124-82363-1-git-send-email-christianshewitt@gmail.com> <1582979124-82363-4-git-send-email-christianshewitt@gmail.com> User-agent: mu4e 1.3.3; emacs 26.3 From: Jerome Brunet To: Christian Hewitt , 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: Andreas =?utf-8?Q?F=C3=A4rber?= Subject: Re: [PATCH v5 3/3] arm64: dts: meson: add support for the SmartLabs SML-5442TW In-reply-to: <1582979124-82363-4-git-send-email-christianshewitt@gmail.com> Date: Sat, 29 Feb 2020 17:32:53 +0100 Message-ID: <1jpndxgxqi.fsf@starbuckisacylon.baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat 29 Feb 2020 at 13:25, Christian Hewitt wrote: > 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 | 386 +++++++++++++++++++++ > 2 files changed, 387 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..3ad53f7 > --- /dev/null > +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905d-sml5442tw.dts > @@ -0,0 +1,386 @@ > +// 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" > +#include > + [...] > + > + sound { > + compatible = "amlogic,gx-sound-card"; > + model = "GXL-S905D-SML5442TW"; > + audio-aux-devs = <&dio2133>; > + audio-widgets = "Line", "Lineout"; > + audio-routing = "AU2 INL", "ACODEC LOLP", > + "AU2 INR", "ACODEC LORP", > + "AU2 INL", "ACODEC LOLN", > + "AU2 INR", "ACODEC LORN", > + "Lineout", "AU2 OUTL", > + "Lineout", "AU2 OUTR"; > + assigned-clocks = <&clkc CLKID_MPLL2>, > + <&clkc CLKID_MPLL0>, > + <&clkc CLKID_MPLL1>; > + assigned-clock-parents = <0>, <0>, <0>; > + assigned-clock-rates = <294912000>, > + <270950400>, > + <393216000>; > + status = "okay"; > + > + dai-link-0 { > + sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>; > + }; > + > + dai-link-1 { > + sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>; > + }; > + > + dai-link-2 { > + sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>; > + dai-format = "i2s"; > + mclk-fs = <256>; > + > + codec-0 { > + sound-dai = <&aiu AIU_HDMI CTRL_I2S>; > + }; > + > + codec-1 { > + sound-dai = <&aiu AIU_ACODEC CTRL_I2S>; > + }; > + }; > + > + dai-link-3 { > + sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>; > + > + codec-0 { > + sound-dai = <&spdif_dit>; > + }; > + }; > + > + dai-link-4 { > + sound-dai = <&aiu AIU_HDMI CTRL_OUT>; > + > + codec-0 { > + sound-dai = <&hdmi_tx>; > + }; > + }; > + > + dai-link-5 { > + sound-dai = <&aiu AIU_ACODEC CTRL_OUT>; > + > + codec-0 { > + sound-dai = <&acodec>; > + }; > + }; > + }; > +}; > + > +&acodec { > + AVDD-supply = <&vddio_ao18>; > + status = "okay"; > +}; > + > +&aiu { > + status = "okay"; > + pinctrl-0 = <&spdif_out_h_pins>; > + pinctrl-names = "default"; > + > +}; The above does not compile against kevin's tree: 1# the audio dt device have not been added yet 2# the bindings deps of 3 different subsystem will be available in this tree with the next rc1 I warned about this on IRC. > + > +&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"; > +};