Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3010880pxb; Thu, 10 Feb 2022 10:10:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLcgtqekjaagRS+VMH/a9ku/VDxUts2MdN2fQpUjEY1/+waIbtNYDsPR5irDSfGmE1AsOs X-Received: by 2002:a05:6402:520b:: with SMTP id s11mr9699902edd.365.1644516620749; Thu, 10 Feb 2022 10:10:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644516620; cv=none; d=google.com; s=arc-20160816; b=wyIjDJWrl1PgorJANHyNYPIJrpE+98W7PAOd4R7E7Xe6KMccMQhkqo1hNmGUU3344k n+mWo60HefvpWVzU/OpK2PUykHqHlj80zw8qgHC4SB4rkMlCDzHxpzj5SPPwvfdJtOCq DEadR9btOHfCJ7JQHe8hGMLqOS1HqyITvmYUpHtaLMdlQelK9Z4e3kL/1cgV4I+f/jkX kKAtfC58ck5RlRKXtNk3TQlruB4kQm4Y7h5K6KtJ96hr9xnZ0aRuIIenlkBa6CpAC7Se /UWdIUW+OrcU1IeX3ICiu5AhwcKC6Zr96Ig0KqiVwGjVcnsc8D7CAt7C1FDj15FYdWpP rYTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=sE0UL3RxSE/XJwN6exUr6SQxpMt4J1dNpCV9VXj5qB8=; b=gXEDzBMH1xKGMvM5vLC6M3f/GZS8OC5Nu96K+Kr9z1/Va53Nu4AU1p/eOyemsXwEun Z+sdWXeAz5M5F2s1m5s8MKQ2jtr1aiNJUpNQ+5xWBWUGqu3EAwD9slHCjPmtkncYOaBf P47sBJgBFb11YbSydUjfg5ulwC61JWLUOYdKwrCgsR5U1PpR6Y7vc3QbcOh4cw5labJh IuhB5isG/CsPWwhmJH3fGL718bW4Y8/IXuwCLQMqOkJTRUQEoIlXf1PI8ZodbDiOv6xa SXejeEQE07hC/vREzHq5LTf37226153m+iLxKo9M8gtD0bpL+4CUW26gHIXg6dBFahou 9k/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=6Kvxn9CF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j18si16231275edw.229.2022.02.10.10.09.55; Thu, 10 Feb 2022 10:10:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=6Kvxn9CF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238596AbiBJJco (ORCPT + 99 others); Thu, 10 Feb 2022 04:32:44 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:54022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238542AbiBJJcm (ORCPT ); Thu, 10 Feb 2022 04:32:42 -0500 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8135D192 for ; Thu, 10 Feb 2022 01:32:43 -0800 (PST) Received: by mail-wr1-x433.google.com with SMTP id i14so8361417wrc.10 for ; Thu, 10 Feb 2022 01:32:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=sE0UL3RxSE/XJwN6exUr6SQxpMt4J1dNpCV9VXj5qB8=; b=6Kvxn9CF7vvjwlRNBuSRaIYc2kaAdU1NmBJa906mzcnrZ3FTns1jEzSgTmAwcB2sIN StbgTTyjH6gacUtZ6pRLAeMyE0yJGwYZxu2ar12FNkG9KOtq833+FRvgoGnM8fz1ZQzR B25G1FKvtWeQA+mLRHzIrAIHZNopGVG1emKPOtYQffrz9NFZo4I+64xOdg+kjOWswvCc jJ/dpqKBndGKD8G9Xjh3gJBupYFiL4lRdXXgUtFVaqs+D4zdrzObABtsRpHcU4Tb7fjD RoekasqX2NLZZd2I0G0Pb1xqo1QADJEGag6iaY0iRqBRbVuuvfKOPB+vQnEvI/5KmQsL 7Hrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=sE0UL3RxSE/XJwN6exUr6SQxpMt4J1dNpCV9VXj5qB8=; b=JA748BEuO0x/8mB26wNqSBT0zdTLz0Tu4jANS4Ih3UlbVa8HEqGMINSXmdvS6C+qe8 Fu/QF00zaZAxIxPU3vtUq7pp/ExohDcrmKB3T0hcoLH93FWF54FsU8SgJCvEYk6VCVBH zns3tM6P3y0djgE1U2EoqNjGVHagVr6ZYOGs9XMoLAy43/tfUrq8JZUDLA4zbmYv++Of gEjFtpe5iv39tn4z1Pkg4vzVRV2GM9r/TF5zTRSsX1OVERkPWX8NEMBCiyhFigdhJGvO g1jtMs75gtF38QRqmszY0xqIqd0BMt4uoAmMEaOcphS5+njaneYAIRfUsxntIGrKmVGU nYlg== X-Gm-Message-State: AOAM533qR6r9q5va7NTfuBI/M9DukB7zfWqOTP53hl2woMx9hq9e8UVd /fzqYeTKdIIP/Bz/TRxg/9g5zA== X-Received: by 2002:a05:6000:184a:: with SMTP id c10mr5611390wri.212.1644485561888; Thu, 10 Feb 2022 01:32:41 -0800 (PST) Received: from ?IPV6:2001:861:44c0:66c0:76d9:bf0e:e516:58a9? ([2001:861:44c0:66c0:76d9:bf0e:e516:58a9]) by smtp.gmail.com with ESMTPSA id bk5sm6690872wrb.10.2022.02.10.01.32.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Feb 2022 01:32:41 -0800 (PST) Message-ID: Date: Thu, 10 Feb 2022 10:32:40 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH 3/3] arm64: dts: meson: add support for OSMC Vero 4K+ Content-Language: en-US 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: Sam Nazarko , Chad Wagner References: <20220210044647.14443-1-christianshewitt@gmail.com> <20220210044647.14443-4-christianshewitt@gmail.com> From: Neil Armstrong Organization: Baylibre In-Reply-To: <20220210044647.14443-4-christianshewitt@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 10/02/2022 05:46, Christian Hewitt wrote: > The OSMC Vero 4K+ device is based on the Amlogic S905D (P230) > reference design with the following specifications: > > - 2GB DDR4 RAM > - 16GB eMMC > - HDMI 2.1 video > - S/PDIF optical output > - AV output > - 10/100/1000 Ethernet > - AP6255 Wireless (802.11 a/b/g/n/ac, BT 4.2) > - 2x USB 2.0 ports (1x OTG) > - IR receiver (internal) > - IR extender port (external) > - 1x micro SD card slot > - 1x Power LED (red) > - 1x Reset button (in AV jack) > > Signed-off-by: Christian Hewitt > Tested-by: Chad Wagner > --- > arch/arm64/boot/dts/amlogic/Makefile | 1 + > .../amlogic/meson-gxl-s905d-vero4k-plus.dts | 125 ++++++++++++++++++ > 2 files changed, 126 insertions(+) > create mode 100644 arch/arm64/boot/dts/amlogic/meson-gxl-s905d-vero4k-plus.dts > > diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile > index 13f73ca700ef..0eec18678311 100644 > --- a/arch/arm64/boot/dts/amlogic/Makefile > +++ b/arch/arm64/boot/dts/amlogic/Makefile > @@ -36,6 +36,7 @@ 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-s905d-vero4k-plus.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-vero4k-plus.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905d-vero4k-plus.dts > new file mode 100644 > index 000000000000..453d51a4b77e > --- /dev/null > +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905d-vero4k-plus.dts > @@ -0,0 +1,125 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > +/* > + * Author: Christian Hewitt > + */ > + > +/dts-v1/; > + > +#include "meson-gxl-s905d.dtsi" > +#include "meson-gx-p23x-q20x.dtsi" > +#include > +#include > + > +/ { > + compatible = "osmc,vero4k-plus", "amlogic,s905d", "amlogic,meson-gxl"; > + model = "OSMC Vero 4K Plus"; > + > + reserved-memory { > + /* 32 MiB reserved for ARM Trusted Firmware (BL32) */ > + secmon_reserved_bl32: secmon@5300000 { > + reg = <0x0 0x05300000 0x0 0x2000000>; > + no-map; > + }; > + }; This can be dropped since I applied your "arm64: dts: meson-gx: add ATF BL32 reserved-memory region" > + > + gpio-keys-polled { > + compatible = "gpio-keys-polled"; > + #address-cells = <1>; > + #size-cells = <0>; > + poll-interval = <20>; > + > + button@0 { > + label = "power"; > + linux,code = ; > + gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_HIGH>; > + }; > + }; > + > + leds { > + compatible = "gpio-leds"; > + > + led-standby { > + color = ; > + function = LED_FUNCTION_POWER; > + gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_LOW>; > + default-state = "off"; > + panic-indicator; > + }; > + }; > +}; > + > +ðmac { > + pinctrl-0 = <ð_pins>; > + pinctrl-names = "default"; > + > + phy-mode = "rgmii-txid"; > + phy-handle = <&external_phy>; > + > + amlogic,tx-delay-ns = <0>; > +}; > + > +&external_mdio { > + external_phy: ethernet-phy@0 { > + /* Realtek RTL8211F (0x001cc916) */ > + pinctrl-0 = <ð_phy_irq_pin>; > + pinctrl-names = "default"; > + > + reg = <0>; > + max-speed = <1000>; > + > + /* External PHY reset is shared with internal PHY Led signal */ I don't think this comment is necessary > + reset-assert-us = <10000>; > + reset-deassert-us = <80000>; > + reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>; > + > + interrupt-parent = <&gpio_intc>; > + interrupts = <25 IRQ_TYPE_LEVEL_LOW>; > + }; > +}; > + > +&pinctrl_periphs { > + eth_phy_irq_pin: eth-phy-irq { > + mux { > + groups = "GPIOZ_15"; > + function = "gpio_periphs"; > + bias-disable; > + output-disable; > + }; > + }; > +}; Add a comment here to specify why you disable bias for the eth irq line. > + > +&sd_emmc_a { > + brcmf: wifi@1 { > + reg = <1>; > + compatible = "brcm,bcm4329-fmac"; > + }; > +}; > + > +&uart_A { > + status = "okay"; > + pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>; > + pinctrl-names = "default"; > + uart-has-rtscts; > + > + bluetooth { > + compatible = "brcm,bcm43438-bt"; > + shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>; > + max-speed = <2000000>; > + clocks = <&wifi32k>; > + clock-names = "lpo"; > + }; > +}; > + > +&usb { > + dr_mode = "host"; > +}; > + > +&usb2_phy0 { > + /* HDMI_5V also supplies the USB VBUS */ > + phy-supply = <&hdmi_5v>; > +}; > + > +&usb2_phy0 { > + /* HDMI_5V also supplies the USB VBUS */ > + phy-supply = <&hdmi_5v>; > +}; With those changes, you can add my: Reviewed-by: Neil Armstrong Thanks, Neil