Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3717544pxb; Fri, 11 Feb 2022 06:20:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxre23zMBr+yPBfeCVCUVrGxAEQQDBpq4RRsYFTVnFJ/Xje6Rs3U9bLrcPUrc3t49pC+/dh X-Received: by 2002:a05:6402:b9c:: with SMTP id cf28mr2147640edb.295.1644589214079; Fri, 11 Feb 2022 06:20:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644589214; cv=none; d=google.com; s=arc-20160816; b=u7PCLdrGleC64YK0rm24+VDrKnCFzcyRSQbL0Ai93syalcdlCrq5Ja3Wp63DJZIszK NwRSe1Sm8rsbGLbTkj+u8luxt7JJp6bYNmGZ/2WMal7nAHYGw7ZDGFV4JrF1B1Hu8jbZ NfgNRvimJUa70fDrmsHSLWqPYsFY8pVlk1d9E9zkW09gV15IvOougk2wLIJxXw7FvJwD 6c8hFXTFtn8A8Jg8RF4Ao0IhvNRbgoHQzKy39B96yz8ZUrLXnZik0qr7TE1kmswK+gWc SoVZ805S8IYXyyJMKy3vbTwM2/yq+lno5sN51bAo1Poipb9QjOGHGCJoHDHaji6wswbo YrXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=NEg/h1rqfy5tfcGwjNRH+ELJL27ypf3P9uQhCTngjpQ=; b=gH9h2/CWEwNtiV8XI25eD55p9aXmqczjwJh+zXpKZgPTuKgReYsHbQajDQxiXUyHAz S22J4AOUm5iPt6bnWYqXi/BUreC9FAsRDd+n3XkSQU0qy9BkqA3h+xXhNBrllM/i8msw 1kDsQ2L9QoXCDBmP2keWqycMUpwvb0XhngW1N0u15P3fcr7Do0vAHLNtiMpZ5YAfS/5I P6pf09YM+SANFDNDPys5YU3zVhxxq0BbERTe6tXLtvbwyNB8eVBLJN2xWTs+IoLa8JYE LvgORrQYImkywtLXjrLunS5Hjnwzl4LCKts6+0DNbEkPrXVD8Ui2wEWMV9d5t6uW+EkR cl+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EiHJjKtk; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h25si10480910edr.517.2022.02.11.06.19.48; Fri, 11 Feb 2022 06:20:14 -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=@gmail.com header.s=20210112 header.b=EiHJjKtk; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238589AbiBKKxi (ORCPT + 99 others); Fri, 11 Feb 2022 05:53:38 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:56412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349235AbiBKKx0 (ORCPT ); Fri, 11 Feb 2022 05:53:26 -0500 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CDE4DA9; Fri, 11 Feb 2022 02:53:25 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id d27so10738217wrb.5; Fri, 11 Feb 2022 02:53:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=NEg/h1rqfy5tfcGwjNRH+ELJL27ypf3P9uQhCTngjpQ=; b=EiHJjKtki0Y3p75pwSD062DGTRPcAr9d7YoJJjtcA6quBe3oHjMNyJ/v1LLxzzpGTa X0I7l8QQEjrQyHmDb0XaHXAEjmfjGDCbpgPe3+do8toNvxEpn5bMSL1Nkl+2J3/+bG/a vSrqx88iV/uQ0ynOYhO1LI39+hPMccCvhbLja4swMrNnxdIHcyZuxV0f3BPGOXxmaMer Nt4LLzoZCpIW6YAxwVDao/Lsj7hPJuJIfQqbvqjHT+6lZMS6TEOOy8zVgGfxaZymipMO QCi4s3UO6ecrQRZYIqkz6ZpsKg7Qa/MzQyNWuMTHkCU8YqZPDfy+y9pvSHwh9Oi0vIls x2jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=NEg/h1rqfy5tfcGwjNRH+ELJL27ypf3P9uQhCTngjpQ=; b=gCdNmEUkhvfeSX3qzeAgiuADDUWJGn05E19VbS+1R+CZT8+O0ghxuZNIkAiWvC+XBW Fyqze8/7RwC0WjWOmgAv82wo792uvxoS4tox82mPJmIT82NZNq8SAZenDUWQ1HUYkbbX a4VA0OZpQ+QgDyAFTE3pVgQAF4g1AMkLsTibJOH+VAsGciPF3ybV/wid4JI8V/KI2cdZ H2qAuXN2o6D2Mp8sCYJy07wD8Fx7tNYrW1x6JV1ZW3GREruZCirYSWBjunp7ou/JAcQ5 DtSadX/e6+TZp+cP/LHOYQ5gMIiAHtxTS4WSaozHjBckOCT2jVRuCzldcHOtjtUT/YYq SnAA== X-Gm-Message-State: AOAM530ajVqRfqY3EwkKq2JrORN5wPr1Nku7sh4+TIrBqYBOER/pVzG/ me2IsDI/avpyfxMoEpJ8txg= X-Received: by 2002:a05:6000:1707:: with SMTP id n7mr901310wrc.662.1644576803672; Fri, 11 Feb 2022 02:53:23 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id b4sm13382374wrw.100.2022.02.11.02.53.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Feb 2022 02:53:23 -0800 (PST) From: Christian Hewitt To: Rob Herring , Mark Rutland , Kevin Hilman , Neil Armstrong , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Christian Hewitt , Sam Nazarko , Chad Wagner Subject: [PATCH v2 3/3] arm64: dts: meson: add support for OSMC Vero 4K+ Date: Fri, 11 Feb 2022 10:53:11 +0000 Message-Id: <20220211105311.30320-4-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220211105311.30320-1-christianshewitt@gmail.com> References: <20220211105311.30320-1-christianshewitt@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 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 Reviewed-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/Makefile | 1 + .../amlogic/meson-gxl-s905d-vero4k-plus.dts | 117 ++++++++++++++++++ 2 files changed, 118 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..4b0ff707e21b --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905d-vero4k-plus.dts @@ -0,0 +1,117 @@ +// 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"; + + 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>; + + 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 { + /* Ensure the phy irq pin is properly configured as input */ + eth_phy_irq_pin: eth-phy-irq { + mux { + groups = "GPIOZ_15"; + function = "gpio_periphs"; + bias-disable; + output-disable; + }; + }; +}; + +&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>; +}; -- 2.17.1