From patchwork Tue Nov 30 06:05:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 12646391 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D3990C433EF for ; Tue, 30 Nov 2021 06:05:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=BhUAXG+BG8sz9/t2dNfUFCD9HEmYV4nQmGTXEGASQ8U=; b=htEZxspnSQ7HRo FShEzOEt7zwREMrjI0nOZsT+mi/uP7TofUufmhRFLFEEhC/O2vNMB4ds7z4DZI4QzLNbbuZmT9d72 Dv85DWzDJnn9dIWKQS87c+fBUXXtNrwMjylaLClgCEEa9IgWJVsRf8s7uIRD7v2OWVXlECEEque9X jmV658TaLhpVj/DK3SBd2jxa14++NcxKYoLT1260B331GDa6ZFNttADblPgbKD6ADZbPS9GyugOJn tOg3YeJcrEiWAqQ8vHzwwyVcf0cHxmfSmVkc6nET39LQN9jiQiqdiqzGaX9nyL2TJEybWkBqSMQpL dodwFTWRPiavT6RLVJwQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrwH5-003i46-Ht; Tue, 30 Nov 2021 06:05:55 +0000 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrwGh-003hw0-7n; Tue, 30 Nov 2021 06:05:32 +0000 Received: by mail-ed1-x536.google.com with SMTP id t5so82352641edd.0; Mon, 29 Nov 2021 22:05:30 -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=vzmVBHIO5IOu5vfTULToLc/CeRBR29/MG9jdhBSdFqE=; b=E8aYZtpG/sNdZPFCohNuZG5lbiH2ZNcm+dNNd/iEBI6C9d3Vhs7X8LwaMCyKuAowep tgqvPWWG4HoVvdeohhQEVkm7+ym2sXJGEF8QQ0BMTKFw6TnZ/yZcWyM/RN9B03aSH+JF jdfxKy/FfOhwYuMwJkCOleZ0mb/MUpai7MleHo3cvnjDLhy+e7JKGdma97c5f6Enf3Fb ba6w4XtVHjb2dU1KOMnmI//cljl0Bmj4v7xkTV2RWj/n48JkYGOnE7NYdiDArPT9B9SN jSzTvNPAWFOIyDWUiPUTSIVJZAuB9E08kWLiTdEwCsJ5bQLaO/p1/FFyP5z6Z+4rntn6 FfSQ== 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=vzmVBHIO5IOu5vfTULToLc/CeRBR29/MG9jdhBSdFqE=; b=aRymR5y5OWXrtq7JPxPDTynpLqSG3lv/qv2NYHr6m0dryBcrrSDe3ZfC5fU4H4Vut4 dwYSDwSdpvlV095VadvQvNhCclX+6hEiNxLyObLDr4d0BYd1zZAPOb8i7rdBEvGOMDpt 3N8QB187F+YNsilE0bSSIElIxztuIIPCr0y1tj/xIA7k+z+awwVwrM0sPhkmlXw3suTT 20cH17uTqjLFJXSUFiyXVr8Zph9Xy0keCrHnUxdvbRwnoTSpg6tEtlFWWx0pnZccjBKq 898DiYWYfaZnZMOxAD5txQEZvN0+ApopTZPkeNxatRswfAEqM8/k5LAry9v0a8fVvH0I D3Pg== X-Gm-Message-State: AOAM531YdNaWM8Lpzn6/RNL6GUtKOBNmR8MAFiyDJgJwCXHGIV3+jsti SyiumWRQ2Y2boaWy7vHZk2c= X-Google-Smtp-Source: ABdhPJwvMnKLZ1U7NMub65ToezUGf1F9jjT4/wIfL0MZ4mzAlvHnTrxl+bzbLhfVm74SyWfczPECZQ== X-Received: by 2002:a50:fe1a:: with SMTP id f26mr79214136edt.132.1638252329433; Mon, 29 Nov 2021 22:05:29 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id e1sm10542153edc.27.2021.11.29.22.05.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Nov 2021 22:05:29 -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 , Benoit Masson Subject: [RFC PATCH 1/9] arm64: dts: meson: add common SM1 ac2xx dtsi Date: Tue, 30 Nov 2021 06:05:15 +0000 Message-Id: <20211130060523.19161-2-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211130060523.19161-1-christianshewitt@gmail.com> References: <20211130060523.19161-1-christianshewitt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211129_220531_310114_E49C02E5 X-CRM114-Status: GOOD ( 15.45 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Add a common dtsi for Android STB devices based on the Amlogic S905X3 (AC213/AC214) and S905D3 (AC201/AC202) reference designs. The dtsi is loosely based on the existing SEI610 device-tree. Signed-off-by: Christian Hewitt Tested-by: Martin Blumenstingl # --- .../boot/dts/amlogic/meson-sm1-ac2xx.dtsi | 300 ++++++++++++++++++ 1 file changed, 300 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-sm1-ac2xx.dtsi diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-ac2xx.dtsi b/arch/arm64/boot/dts/amlogic/meson-sm1-ac2xx.dtsi new file mode 100644 index 000000000000..46a34731f7e2 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-ac2xx.dtsi @@ -0,0 +1,300 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 BayLibre SAS. All rights reserved. + * Copyright (c) 2020 Christian Hewitt + * + * AC200/AC202 = S905D3 + * AC213/AC214 = S905X3 + * + */ + +#include "meson-sm1.dtsi" +#include +#include +#include + +/ { + aliases { + serial0 = &uart_AO; + ethernet0 = ðmac; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + emmc_pwrseq: emmc-pwrseq { + compatible = "mmc-pwrseq-emmc"; + reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>; + }; + + 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>; + }; + }; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x0 0x0 0x40000000>; + }; + + ao_5v: regulator-ao_5v { + compatible = "regulator-fixed"; + regulator-name = "AO_5V"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&dc_in>; + regulator-always-on; + }; + + dc_in: regulator-dc_in { + compatible = "regulator-fixed"; + regulator-name = "DC_IN"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; + + emmc_1v8: regulator-emmc_1v8 { + compatible = "regulator-fixed"; + regulator-name = "EMMC_1V8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&vddao_3v3>; + regulator-always-on; + }; + + vddao_3v3: regulator-vddao_3v3 { + compatible = "regulator-fixed"; + regulator-name = "VDDAO_3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&dc_in>; + regulator-always-on; + }; + + vddcpu: regulator-vddcpu { + compatible = "pwm-regulator"; + + regulator-name = "VDDCPU"; + regulator-min-microvolt = <690000>; + regulator-max-microvolt = <1050000>; + + vin-supply = <&dc_in>; + + pwms = <&pwm_AO_cd 1 1500 0>; + pwm-dutycycle-range = <100 0>; + + regulator-boot-on; + regulator-always-on; + }; + + vddio_ao1v8: regulator-vddio_ao1v8 { + compatible = "regulator-fixed"; + regulator-name = "VDDIO_AO1V8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&vddao_3v3>; + regulator-always-on; + }; + + sdio_pwrseq: sdio-pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>; + clocks = <&wifi32k>; + clock-names = "ext_clock"; + }; + + wifi32k: wifi32k { + compatible = "pwm-clock"; + #clock-cells = <0>; + clock-frequency = <32768>; + pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ + }; +}; + +&cec_AO { + pinctrl-0 = <&cec_ao_a_h_pins>; + pinctrl-names = "default"; + status = "disabled"; + hdmi-phandle = <&hdmi_tx>; +}; + +&cecb_AO { + pinctrl-0 = <&cec_ao_b_h_pins>; + pinctrl-names = "default"; + status = "okay"; + hdmi-phandle = <&hdmi_tx>; +}; + +&cpu0 { + cpu-supply = <&vddcpu>; + operating-points-v2 = <&cpu_opp_table>; + clocks = <&clkc CLKID_CPU_CLK>; + clock-latency = <50000>; +}; + +&cpu1 { + cpu-supply = <&vddcpu>; + operating-points-v2 = <&cpu_opp_table>; + clocks = <&clkc CLKID_CPU1_CLK>; + clock-latency = <50000>; +}; + +&cpu2 { + cpu-supply = <&vddcpu>; + operating-points-v2 = <&cpu_opp_table>; + clocks = <&clkc CLKID_CPU2_CLK>; + clock-latency = <50000>; +}; + +&cpu3 { + cpu-supply = <&vddcpu>; + operating-points-v2 = <&cpu_opp_table>; + clocks = <&clkc CLKID_CPU3_CLK>; + clock-latency = <50000>; +}; + +&cvbs_vdac_port { + cvbs_vdac_out: endpoint { + remote-endpoint = <&cvbs_connector_in>; + }; +}; + +&hdmi_tx { + status = "okay"; + pinctrl-0 = <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>; + pinctrl-names = "default"; +}; + +&hdmi_tx_tmds_port { + hdmi_tx_tmds_out: endpoint { + remote-endpoint = <&hdmi_connector_in>; + }; +}; + +&ir { + status = "okay"; + pinctrl-0 = <&remote_input_ao_pins>; + pinctrl-names = "default"; +}; + +&pwm_AO_ab { + status = "okay"; + pinctrl-0 = <&pwm_ao_a_pins>; + pinctrl-names = "default"; + clocks = <&xtal>; + clock-names = "clkin0"; +}; + +&pwm_AO_cd { + pinctrl-0 = <&pwm_ao_d_e_pins>; + pinctrl-names = "default"; + clocks = <&xtal>; + clock-names = "clkin1"; + status = "okay"; +}; + +&pwm_ef { + status = "okay"; + pinctrl-0 = <&pwm_e_pins>; + pinctrl-names = "default"; + clocks = <&xtal>; + clock-names = "clkin0"; +}; + +&saradc { + status = "okay"; + vref-supply = <&vddio_ao1v8>; +}; + +/* SDIO */ +&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; + sd-uhs-sdr104; + max-frequency = <200000000>; + + non-removable; + disable-wp; + + /* WiFi firmware requires power to be kept while in suspend */ + keep-power-in-suspend; + + mmc-pwrseq = <&sdio_pwrseq>; + + vmmc-supply = <&vddao_3v3>; + vqmmc-supply = <&vddio_ao1v8>; +}; + +/* SD Card */ +&sd_emmc_b { + status = "okay"; + pinctrl-0 = <&sdcard_c_pins>; + pinctrl-1 = <&sdcard_clk_gate_c_pins>; + pinctrl-names = "default", "clk-gate"; + + bus-width = <4>; + cap-sd-highspeed; + /* CRC errors are observed at 50MHz */ + max-frequency = <35000000>; + disable-wp; + + cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_LOW>; + vmmc-supply = <&vddao_3v3>; + vqmmc-supply = <&vddao_3v3>; +}; + +/* eMMC */ +&sd_emmc_c { + status = "okay"; + pinctrl-0 = <&emmc_ctrl_pins>, <&emmc_data_8b_pins>, <&emmc_ds_pins>; + pinctrl-1 = <&emmc_clk_gate_pins>; + pinctrl-names = "default", "clk-gate"; + + bus-width = <8>; + cap-mmc-highspeed; + mmc-ddr-1_8v; + mmc-hs200-1_8v; + max-frequency = <200000000>; + non-removable; + disable-wp; + + mmc-pwrseq = <&emmc_pwrseq>; + vmmc-supply = <&vddao_3v3>; + vqmmc-supply = <&emmc_1v8>; +}; + +&uart_AO { + status = "okay"; + pinctrl-0 = <&uart_ao_a_pins>; + pinctrl-names = "default"; +}; + +&usb { + status = "okay"; + dr_mode = "otg"; +}; From patchwork Tue Nov 30 06:05:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 12646393 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8518CC433EF for ; Tue, 30 Nov 2021 06:06:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=U1LGdVegvzo2002WX31EMGzVcn8AZsKuXmgGt4460IY=; b=kkvO0CsBVlLlzo ImhDTWsnHNCHlTgcfGGvSK3COaW9CgETcL/8bj9i5+r7oDrNPrrH+2nf44tX6mrThroc54VviS2dt BKDRsCMIYZR89PAB2z5t/b0yDS3j8C5i8A4XacEok3oxUWHUEkm7C4nd8lr58oN/0wrOdxH/M+zG6 npdYV+XkKdN6oVGheS5LQZkowNssfskfNoS7EWF+XzBHYQjqbmTUt+i2QHfZKiThDTGpD7msFLBqM wBv8BT8iwcmqQAjHBt5oIVi2HvoQro9xbWe1VQ1x1tf6UE6m3jqepGXNDhMh86AdZxww61Zfnghnx FAB4+0nrH+wXLUcI+S+g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrwHJ-003i9h-MR; Tue, 30 Nov 2021 06:06:09 +0000 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrwGj-003hws-D4; Tue, 30 Nov 2021 06:05:34 +0000 Received: by mail-ed1-x52d.google.com with SMTP id w1so82243004edc.6; Mon, 29 Nov 2021 22:05:32 -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=SaBbQQ+iVbFLZv+bV3xyo+jBT6xEtsPziI/bR6Dx7EU=; b=LdMmUWzQUwpgiYB3Jsqofrz70Mg2+hjUZwX1PkeP+snslr299u4zFJKsCmwy3BlKPH XmOFMDr13mdTffrafupY7dFnZ9xzBNoj1q1mBcQ6lgkbfN0uyMbIn4x6iWtDAss7p/JE 283xiEB+XC7v/rYMC7TdnQH83Zv/G7lg69Oa8b2SsajOMqfvRgFktQA5ZbZ6DtT8Yks9 kD8LX9GAVIEDAJKN/R/Qwtn8H5Ysr+fnVICL4hP/Lf0uodPggoPfUn6yxSAHYY+CQuOc SMriiQmZ2txIKEyHpLHvjrX3kKzuPo1ybDkX6mSOaQIXpBs4C2qvoyy4oG4oDA0tIZ5U +mgw== 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=SaBbQQ+iVbFLZv+bV3xyo+jBT6xEtsPziI/bR6Dx7EU=; b=MkuqfRnCOB7KNH8+A/Z2MnNtNuFlJ/T/azvxSZjRj7oh6fYjm4vVL06zG2PN1Hscnr KOuqK4v1bbYL+fK8jXt7f3hKCvS9iiTvuupwH3NxyhbtROyQUoWOVKg08kfkM/ElgRHG ErfyNWrdblZI/smLHn/GZ1xEZDTN3HVXNuTczN3xL0pU0glMwe3ADmC1IAX/a/urOXd6 uY7VAbdLFN1aSHGqD21IzdPXE6S1QSG5+pz5l/M9PkwVnt6/IPEDGlPlfsMy759s0EaG Ut+VjVWYGnLL9Bm7f4/Yt7KgNB4UhH/BubgkfylOkKr7RZIm14m5+Qzx3lhISLZLK01j wHUQ== X-Gm-Message-State: AOAM5329G/GRUjH1ed0CKR2wxa4eSmeJZvSdDnybm/SE00Q7xoy42ONO UT0ANUpzO4D2CX6gq6ULG4A= X-Google-Smtp-Source: ABdhPJxxj43H0vVQPhE//sppbw84qhdveSuHVVjiq63kNbh0ybqpHotcemBsLl8Fv+rp5NpQwqL64A== X-Received: by 2002:aa7:c04a:: with SMTP id k10mr79507513edo.308.1638252331653; Mon, 29 Nov 2021 22:05:31 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id e1sm10542153edc.27.2021.11.29.22.05.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Nov 2021 22:05:31 -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 , Benoit Masson Subject: [RFC PATCH 2/9] dt-bindings: arm: amlogic: add X96-AIR bindings Date: Tue, 30 Nov 2021 06:05:16 +0000 Message-Id: <20211130060523.19161-3-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211130060523.19161-1-christianshewitt@gmail.com> References: <20211130060523.19161-1-christianshewitt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211129_220533_479757_7A28183F X-CRM114-Status: GOOD ( 11.00 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Add board bindings for the Amediatech X96-AIR STB which ships with model variants distiguished by Ethernet configuration: models using internal 10/100 PHY have a -100 suffix, while models using external Gigabit PHY have a -1000 suffix. Signed-off-by: Christian Hewitt --- Documentation/devicetree/bindings/arm/amlogic.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/amlogic.yaml b/Documentation/devicetree/bindings/arm/amlogic.yaml index 36081734f720..e9ab0ffe8be7 100644 --- a/Documentation/devicetree/bindings/arm/amlogic.yaml +++ b/Documentation/devicetree/bindings/arm/amlogic.yaml @@ -170,6 +170,8 @@ properties: - description: Boards with the Amlogic Meson SM1 S905X3/D3/Y3 SoC items: - enum: + - amediatech,x96-air-100 + - amediatech,x96-air-1000 - bananapi,bpi-m5 - hardkernel,odroid-c4 - hardkernel,odroid-hc4 From patchwork Tue Nov 30 06:05:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 12646395 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 714AFC433FE for ; Tue, 30 Nov 2021 06:06:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=FhjnUGO+5Cbd7wghgdOVxWIqP0HO2VPOAawIS/+/7jg=; b=StWEoaDxpuMolN +h/7mHMM82il24eitgy4KbGMjk9ApXDwhWdljrDoGN7V9HLWVeSD8PihYY1jxbNinjDjEUyy+ZubO jdZHYiGqEuS3stSpbVE/iSdIJmpMB88bzVmQmhWFZRp4RUJaZrgwWidRhw4N2D13vCgG0n+AajSl1 2ScziOf+uYRAbBQzNqi0e1+ibfabh4UmQqYl3m5TmLP3GUuS0qj1Bx5wMWxglyTSEC59WPWVc5dMb HgjTNkfKOsgKNpuT5DcihnbD3WbmMhiUztHnSkzyCmoaXcFP6ohE0VcmLdcZI2J2wgeAl2sZbFFWa /3SmXcL9Jn7yOqwEBj7g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrwHl-003iO9-3H; Tue, 30 Nov 2021 06:06:37 +0000 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrwGl-003hxM-Iz; Tue, 30 Nov 2021 06:05:37 +0000 Received: by mail-ed1-x52b.google.com with SMTP id l25so81793215eda.11; Mon, 29 Nov 2021 22:05:34 -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 :mime-version:content-transfer-encoding; bh=aTIpHt4abFxiwEWu16rsOsGtzLsE5A+z1Ris+tROnSk=; b=FvROx5aIIMa8cktQfVQXAf/onwmI+1uEipiNStcFWnKSD416lwNL07vVabk651Zkpk vc/X8Eg53LVvl2zMR8sMnn8wugAx1+dcZIZEhty/P9Ws43cg++XDbu6KUEeroWC3VJrp uLeECNOk1XjQwJx/sv9jcARvy7YNU4oz7vwKNT8F/KFVk7f+9iDRJb1CzkKkmbze5377 28S6yPbYnvA+LBP+jMSrFG5iD9x44xQxCCxVSOoGb4xouMe8OzspLSR6mHIdwX1NT6DR AW6tJP4PDgCy05o4sFM7LwCGUP05EqA6VaXO0VKvgX3pFEvTIuX0fkqFXmxp3jDOeiku QHFw== 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:mime-version:content-transfer-encoding; bh=aTIpHt4abFxiwEWu16rsOsGtzLsE5A+z1Ris+tROnSk=; b=51ZgE7CLhMYb+72wnQF3BxDRzy+PH/0nMyScVVnwhDI/ADfFaF9qlM0QFxH43pGHwq N1ZTOs/6lYJpvlUjSUvtRT1Fdia0vGxemi0hHwUki4wvTfr8Jprgv5D2TfVmWJZW/F7z eFG6hJS55IcMKpYTgMK8M9xaN63xt8KkiB5k7ow3ugmSzQ367+BOUh5d5iB+j4pmO4Co si6dMCtpTDj+E6vKlZdNxjH5YXL7kxgqsXxcb0PRMWQriG7eoItpK7UCQhHfsqZvOAcP 706JqCn69QiHFUeaVWb1+8+lzo/YmiRXmy5Mnp4D5HcPRDuD1ak9FtqXUzYYQKlbFGEi KhAw== X-Gm-Message-State: AOAM531Sc+fcRdMkXh7dcexFvTvSdZ7GX7TydOOlnfEIXMqcgPWlz8+K k6j5oZhPkufCDshUP5kmauQ= X-Google-Smtp-Source: ABdhPJx/7zdmGJGv4UlZCKtRPafPbYKVivXJWnQQ14/91uu6R1sQJhFsogni4mQbHRCVECQuPD+nfQ== X-Received: by 2002:a05:6402:90c:: with SMTP id g12mr80777174edz.217.1638252333807; Mon, 29 Nov 2021 22:05:33 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id e1sm10542153edc.27.2021.11.29.22.05.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Nov 2021 22:05:33 -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 , Benoit Masson Subject: [RFC PATCH 3/9] arm64: dts: meson: add initial device-trees for X96-AIR Date: Tue, 30 Nov 2021 06:05:17 +0000 Message-Id: <20211130060523.19161-4-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211130060523.19161-1-christianshewitt@gmail.com> References: <20211130060523.19161-1-christianshewitt@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211129_220535_661413_0D8F4C30 X-CRM114-Status: GOOD ( 16.30 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org The Amediatek X96-AIR is based on Amlogic S905X3 reference board designs and ships in multiple configurations: – 4GB DDR3 + 64GB eMMC + WiFi a/b/g/n/ac + BT + Gb Ethernet – 4GB DDR3 + 32GB eMMC + WiFi a/b/g/n/ac + BT + Gb Ethernet – 4GB DDR3 + 32GB eMMC + WiFi b/g/n (no BT) + 10/100 Ethernet – 2GB DDR3 + 16GB eMMC + WiFi b/g/n (no BT) + 10/100 Ethernet ... - HDMI 2.1 video - S/PDIF optical output - AV output - 2x USB 2.0 inc. OTG port - 1x USB 3.0 port - IR receiver - 1x micro SD card slot (internal) - 1x Reset/Update button (in AV jack) - 7-segment VFD The device-tree with -100 suffix supports models with 10/100 Ethernet and with -1000 suffix supports models with Gigabit Ethernet. Signed-off-by: Christian Hewitt Tested-by: Martin Blumenstingl # Tested-by: Piotr Oniszczuk # --- arch/arm64/boot/dts/amlogic/Makefile | 2 + .../dts/amlogic/meson-sm1-x96-air-100.dts | 112 +++++++++++++++ .../dts/amlogic/meson-sm1-x96-air-1000.dts | 133 ++++++++++++++++++ 3 files changed, 247 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-sm1-x96-air-100.dts create mode 100644 arch/arm64/boot/dts/amlogic/meson-sm1-x96-air-1000.dts diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile index 5148cd9e5146..a0c1a7fbae57 100644 --- a/arch/arm64/boot/dts/amlogic/Makefile +++ b/arch/arm64/boot/dts/amlogic/Makefile @@ -56,4 +56,6 @@ dtb-$(CONFIG_ARCH_MESON) += meson-sm1-khadas-vim3l.dtb dtb-$(CONFIG_ARCH_MESON) += meson-sm1-odroid-c4.dtb dtb-$(CONFIG_ARCH_MESON) += meson-sm1-odroid-hc4.dtb dtb-$(CONFIG_ARCH_MESON) += meson-sm1-sei610.dtb +dtb-$(CONFIG_ARCH_MESON) += meson-sm1-x96-air-100.dtb +dtb-$(CONFIG_ARCH_MESON) += meson-sm1-x96-air-1000.dtb dtb-$(CONFIG_ARCH_MESON) += meson-a1-ad401.dtb diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-x96-air-100.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-x96-air-100.dts new file mode 100644 index 000000000000..d9e5bc98a46a --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-x96-air-100.dts @@ -0,0 +1,112 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 BayLibre SAS. All rights reserved. + * Copyright (c) 2020 Christian Hewitt + */ + +/dts-v1/; + +#include "meson-sm1-ac2xx.dtsi" +#include + +/ { + compatible = "amediatech,x96-air-100", "amlogic,sm1"; + model = "Shenzhen Amediatech Technology Co., Ltd X96 Air"; + + sound { + compatible = "amlogic,axg-sound-card"; + model = "X96-AIR"; + audio-aux-devs = <&tdmout_b>; + audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1", + "TDMOUT_B IN 1", "FRDDR_B OUT 1", + "TDMOUT_B IN 2", "FRDDR_C OUT 1", + "TDM_B Playback", "TDMOUT_B OUT"; + + 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 = <&frddr_a>; + }; + + dai-link-1 { + sound-dai = <&frddr_b>; + }; + + dai-link-2 { + sound-dai = <&frddr_c>; + }; + + /* 8ch hdmi interface */ + dai-link-3 { + sound-dai = <&tdmif_b>; + dai-format = "i2s"; + dai-tdm-slot-tx-mask-0 = <1 1>; + dai-tdm-slot-tx-mask-1 = <1 1>; + dai-tdm-slot-tx-mask-2 = <1 1>; + dai-tdm-slot-tx-mask-3 = <1 1>; + mclk-fs = <256>; + + codec { + sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>; + }; + }; + + /* hdmi glue */ + dai-link-4 { + sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>; + + codec { + sound-dai = <&hdmi_tx>; + }; + }; + }; +}; + +&arb { + status = "okay"; +}; + +&clkc_audio { + status = "okay"; +}; + +ðmac { + status = "okay"; + phy-handle = <&internal_ephy>; + phy-mode = "rmii"; +}; + +&frddr_a { + status = "okay"; +}; + +&frddr_b { + status = "okay"; +}; + +&frddr_c { + status = "okay"; +}; + +&ir { + linux,rc-map-name = "rc-beelink-gs1"; +}; + +&tdmif_b { + status = "okay"; +}; + +&tdmout_b { + status = "okay"; +}; + +&tohdmitx { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-x96-air-1000.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-x96-air-1000.dts new file mode 100644 index 000000000000..8047c6b116fe --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-x96-air-1000.dts @@ -0,0 +1,133 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 BayLibre SAS. All rights reserved. + * Copyright (c) 2020 Christian Hewitt + */ + +/dts-v1/; + +#include "meson-sm1-ac2xx.dtsi" +#include + +/ { + compatible = "amediatech,x96-air-1000", "amlogic,sm1"; + model = "Shenzhen Amediatech Technology Co., Ltd X96 Air"; + + sound { + compatible = "amlogic,axg-sound-card"; + model = "X96-AIR"; + audio-aux-devs = <&tdmout_b>; + audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1", + "TDMOUT_B IN 1", "FRDDR_B OUT 1", + "TDMOUT_B IN 2", "FRDDR_C OUT 1", + "TDM_B Playback", "TDMOUT_B OUT"; + + 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 = <&frddr_a>; + }; + + dai-link-1 { + sound-dai = <&frddr_b>; + }; + + dai-link-2 { + sound-dai = <&frddr_c>; + }; + + /* 8ch hdmi interface */ + dai-link-3 { + sound-dai = <&tdmif_b>; + dai-format = "i2s"; + dai-tdm-slot-tx-mask-0 = <1 1>; + dai-tdm-slot-tx-mask-1 = <1 1>; + dai-tdm-slot-tx-mask-2 = <1 1>; + dai-tdm-slot-tx-mask-3 = <1 1>; + mclk-fs = <256>; + + codec { + sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>; + }; + }; + + /* hdmi glue */ + dai-link-4 { + sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>; + + codec { + sound-dai = <&hdmi_tx>; + }; + }; + }; +}; + +&arb { + status = "okay"; +}; + +&clkc_audio { + status = "okay"; +}; + +ðmac { + status = "okay"; + + pinctrl-0 = <ð_pins>, <ð_rgmii_pins>; + pinctrl-names = "default"; + phy-mode = "rgmii-txid"; + phy-handle = <&external_phy>; + + rx-internal-delay-ps = <800>; +}; + +&ext_mdio { + external_phy: ethernet-phy@0 { + /* Realtek RTL8211F (0x001cc916) */ + reg = <0>; + max-speed = <1000>; + + reset-assert-us = <10000>; + reset-deassert-us = <80000>; + reset-gpios = <&gpio GPIOZ_15 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>; + + interrupt-parent = <&gpio_intc>; + /* MAC_INTR on GPIOZ_14 */ + interrupts = <26 IRQ_TYPE_LEVEL_LOW>; + }; +}; + +&frddr_a { + status = "okay"; +}; + +&frddr_b { + status = "okay"; +}; + +&frddr_c { + status = "okay"; +}; + +&ir { + linux,rc-map-name = "rc-x96max"; +}; + +&tdmif_b { + status = "okay"; +}; + +&tdmout_b { + status = "okay"; +}; + +&tohdmitx { + status = "okay"; +}; From patchwork Tue Nov 30 06:05:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 12646397 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ED307C433F5 for ; Tue, 30 Nov 2021 06:07:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=882AmeWvWNryr76hnyJrcQM9C7q2dNCI8hIkAqqs6rs=; b=MrCPtCRP5QwsXp 0xh/e6s+EZgQlBYF5jJ/ZA0CulBDw10Rl7Oio60tMbXvLD8XiWqedaTGqQOiW1sUyCIEDMX05eCZg j7Ry0Rqk3hCAD0lcjl2wcwtCYvwcvfiynYWCLacoiWCqKei14JAicuLwKxwnvaA+CD161+I0fyidm Ba34niDfERRSIGhtOY04CAvDc69DC1RCPgWcydDZW94aJOoXwaFzSy/UfwD8vdlrdRYsTDXmrA5Gx JrxZh1rVCSry9eXVWkSfHYzWWpknmqSmxMagPpZXgcA2gfEJYWwBXnOmHb/Vshfdxhbzi8UrNt3BF vs4QE/bQ4G7hGnpGc1YA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrwIA-003iYy-3T; Tue, 30 Nov 2021 06:07:02 +0000 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrwGn-003hxv-3n; Tue, 30 Nov 2021 06:05:38 +0000 Received: by mail-ed1-x52d.google.com with SMTP id o20so81648276eds.10; Mon, 29 Nov 2021 22:05:37 -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=eEwebxlJ0ADP5GA0lC7mVYWXiv0EHw+yI/77FMgWc6o=; b=DQtVRqc/ciupvjrdrtwv2VkmMt4gpL1o49wuYj6x3kDoY85VKnr1rC/wkutQRC8ztB bNaO5G+a5/WfUcD18pxU5W7KFU17u5+XcRdCpJFhVgO80mMaOkAjp5CrrpnEckqSHsY7 H62ZlpSv1XHltib6xcD3ec1eiHETJOrXqerUHuH4/w2skdJO6PbSK0Dty/RUni92StSI dq10OaHsLzeRwuvrl8nsB6mQVaVEAJm/Fqz74x/HOX6N12HUOgdjnAE5u4FUQi6y9Su2 5WwHox8AS+Jm20egbYtBN+TcWs3HEVEonKzNVDqY/kY6qbWE0mLQ+xzTHjhN63YHGmNH iJEg== 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=eEwebxlJ0ADP5GA0lC7mVYWXiv0EHw+yI/77FMgWc6o=; b=g/VnB8CYlwAflbFPnai1SzY7o7PiTlSZ2nX0LsG5HQa4KzMX4aQyFT++PfXlSU/UKV ST0CNdUFE3z1RqAC7TVO/2quWPrw9L5rghsoopFojt2dyUKOvsOfqJnEcP1WD4YmoD+s 6lqEKeY63aqJ8gsmdL+U01wRAvyT2qG5arl2Y2P+HtJI23/HPKQxcEqCn4qHxWTjBkFD IdLL+533IZR635zyIz8noVEbM1z3GJyf3w5QQySGx6bTxJf3BK7dx+PJN5V6GR/TFdo4 4oFGLd5r76aT9ZyLbc5WK4ujbfqI1uvHEqaF4Z1c0AZQ2aLy7J8oyQzUMyMSk5DOKLrS 0rbA== X-Gm-Message-State: AOAM531JrVJaWsDjUBrEbRTejlfYbgeqvWQLT0WP+rb5r/ohPgeA+GK6 eAqseIB4bFvvarfZm7Dl998= X-Google-Smtp-Source: ABdhPJz88fFv3/83546ZibuOpgkJDwZvx5tig36vWP5368FIDqjwQEexZW7ExPmvt89+ve3xpK9xyg== X-Received: by 2002:a50:ff10:: with SMTP id a16mr79076109edu.275.1638252335940; Mon, 29 Nov 2021 22:05:35 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id e1sm10542153edc.27.2021.11.29.22.05.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Nov 2021 22:05:35 -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 , Benoit Masson Subject: [RFC PATCH 4/9] dt-bindings: vendor-prefixes: add cyx prefix Date: Tue, 30 Nov 2021 06:05:18 +0000 Message-Id: <20211130060523.19161-5-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211130060523.19161-1-christianshewitt@gmail.com> References: <20211130060523.19161-1-christianshewitt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211129_220537_184666_4DA8C644 X-CRM114-Status: GOOD ( 10.10 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Shenzhen CYX Industrial Co., Ltd are a manufacturer of Android Set-Top Box devices. Signed-off-by: Christian Hewitt Acked-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index 66d6432fd781..f1b4afb2876a 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -279,6 +279,8 @@ patternProperties: description: CUI Devices "^cypress,.*": description: Cypress Semiconductor Corporation + "^cyx,.*": + description: Shenzhen CYX Industrial Co., Ltd "^cznic,.*": description: CZ.NIC, z.s.p.o. "^dallas,.*": From patchwork Tue Nov 30 06:05:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 12646399 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9C14FC433F5 for ; Tue, 30 Nov 2021 06:07:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PbNQ1JI95/WGl3992Co4s3a+JIdEqoNNG2xbSyeoGeY=; b=KSCtQkDCyNKRfA 6+68nlXPM0ciS6aTHNMkltkKCgJEcxcvNtkkXmuu6LfmZavru5n5glqpdscWJpZ2sbRQyX74agWEV ecxFiNKWr0AdVxIJeW+vwfmhtdscXkgnvg6xTP4yH52pb7fF6B+dwj2tnQmiOfNiKy7CxrJrFY8r6 75U+V7tDGBB5Pzur0wdpg/rjtpXsgZBFLWpPiVJoV+R5A1ptmfMbawGQ0bzUCa3SI7CVYVj+JI8SR ko2HMRdFKnQyk5o19S8z8ILapRSwwC8mL6LO5kBM9S53/5wjRxfrS9cA4Hev5rs7Cu7fqhoOxwF9D Jj72Dt7LvniIdB8MT2JQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrwIg-003isG-0I; Tue, 30 Nov 2021 06:07:34 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrwGp-003hyZ-Rd; Tue, 30 Nov 2021 06:05:41 +0000 Received: by mail-ed1-x533.google.com with SMTP id w1so82244179edc.6; Mon, 29 Nov 2021 22:05:39 -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=GhTDv3wvRjYkhYbESwOqZReRkMnLEhVyw3DHRR6Xuck=; b=KpbqwAn5Z0lawhOucXoKDZ/XCtv/rYicMvFaUJ2fXEXzwg0PfiBgJ0hLbVqZwFVbBI nAh7bOkSmpmNWo/L9f8RSYGHQV5aDEdhEcPBB43718yJM7wqsO0b2Ln2ec7fhgt0Zg8X nWD4oOCZFbPnL8+fl5zdVrzChUY4vpUVC/vqB88NLQwwKJgkZSmYPoBnIU1fsoPYLEjv MVPoX9ygkne013satmqo6CUSQx0yCm5N2hsFojQVszkKE3Sl7etixS8JW3BIIxuLfPnM FB7p8tyQRBjECA+eKs2a6MtmHTQd3A1fT3WqyvbqyZ4Icw4MIFZLjj8A+jp1LuWnM8KF tUoA== 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=GhTDv3wvRjYkhYbESwOqZReRkMnLEhVyw3DHRR6Xuck=; b=u5/j2Qf1op97uSQVR+h4wVGWqFAHgfs+xGgT6Mpri3483enS4XkX90fsW26X2rIddm h+Wp99Jq84nqtOIb27vpsManqIhP09/ung/k6VUuWr6bYQLqo66G8m0nJt5P+laE/41v yOPXcSseOqDRXm59jaY3cmfg3yN3Dh4yfhH7I63egbPCjoiagVvDFjQwAryP/HFGqd63 MlFyxZQ1PyNwzWrekh+7XkKwjvofjjslJ4ByuWMyR97wr/enJpNzjbJdy/72MyYcGidY bEv7sWpBbfN51zz80e1qLFOjxO/LETs1yYJqn5SGiBnY04fpracIU02OYOtV3b3FVRrD qH2g== X-Gm-Message-State: AOAM530+yVm4WA8V/x8zOWyRXuyDJuwkhf7BWOi37XYAnVbLshVy3UW2 5ZHLhe86W5fqss5ZO7KsFYM= X-Google-Smtp-Source: ABdhPJxOrRZu4k6fgFsml/oxxHiCjdC3djHe9nVzQD7uvyQTXlZw45wlEA/8GwV5iUYnF2yQXsKxIg== X-Received: by 2002:a17:906:3408:: with SMTP id c8mr65133295ejb.41.1638252338107; Mon, 29 Nov 2021 22:05:38 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id e1sm10542153edc.27.2021.11.29.22.05.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Nov 2021 22:05:37 -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 , Benoit Masson Subject: [RFC PATCH 5/9] dt-bindings: arm: amlogic: add A95XF3-AIR bindings Date: Tue, 30 Nov 2021 06:05:19 +0000 Message-Id: <20211130060523.19161-6-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211130060523.19161-1-christianshewitt@gmail.com> References: <20211130060523.19161-1-christianshewitt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211129_220539_913666_1659A79F X-CRM114-Status: GOOD ( 11.05 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Add board bindings for the CYX A95XF3-AIR set-top box which ships with model variants distiguished by Ethernet configuration: models using internal 10/100 PHY have a -100 suffix, while models using external Gigabit PHY have a -1000 suffix. Signed-off-by: Christian Hewitt --- Documentation/devicetree/bindings/arm/amlogic.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/amlogic.yaml b/Documentation/devicetree/bindings/arm/amlogic.yaml index e9ab0ffe8be7..1dc793eb35f4 100644 --- a/Documentation/devicetree/bindings/arm/amlogic.yaml +++ b/Documentation/devicetree/bindings/arm/amlogic.yaml @@ -173,6 +173,8 @@ properties: - amediatech,x96-air-100 - amediatech,x96-air-1000 - bananapi,bpi-m5 + - cyx,a95xf3-air-100 + - cyx,a95xf3-air-1000 - hardkernel,odroid-c4 - hardkernel,odroid-hc4 - khadas,vim3l From patchwork Tue Nov 30 06:05:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 12646401 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 630E6C433F5 for ; Tue, 30 Nov 2021 06:08:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XrW0lqJPMLW9P/jP9onRCxxuDb8OpnH29L8JJaNKdmE=; b=LpfVCjJeYn1eTj KaTFKFJzYsKmPZTbm/wNz4A82cg7/D/tHMzhfLJ+OMjz4oa6myyRtMASeP6rHQblvZS2U0mK34D3x bbq7NupHagDUrYOQcer5HWWJQpDbKEMmh7aoWtgXJqQr23zHb8hPoAJHS7worIwggOU5pPBr0qVw/ Be1HMrjV9BQwVGQQxaqKNpon3WOk6PzTlEDNGYC1GxIk1v3H00J7GcAjBayVdi0LddezZCYj2pQWC GBE3HZrleD5MIm4EaVFb4eHjJ4fJ/zy/YhYGXVPUIn2Iuqb8dCG4MvLoaii2errIBlT4YJ6kSaw8S 62Q1kvOrGizTmKKcW4Yw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrwJB-003jAJ-7Y; Tue, 30 Nov 2021 06:08:05 +0000 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrwGr-003hz3-EV; Tue, 30 Nov 2021 06:05:43 +0000 Received: by mail-ed1-x534.google.com with SMTP id l25so81794264eda.11; Mon, 29 Nov 2021 22:05:41 -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 :mime-version:content-transfer-encoding; bh=ZctZoHtAuKq0kdYZixz0iZCy6MW3Z8DZJ7soyWlgX+k=; b=Jeylckff/+pzVssY1Bpa1PIemKzvZVKfQJcTRJuNOHT3/iTohxK8A2vbirZnMk65N+ g2JfIdjCqhbP15/BTXZn3e2jWDKxSw4jSQ7Jsbo7msd4CyvTtj3hkUiUmMXV1+Xsq698 TBcjHJURvu9qvr5mhRIC//xdqj1wFaRFImjZuc/GeaCnpDv0/Ax+tORVd6o4BEsMVax7 Vh1A1FOfTgJZPeVKqeraqt6Kd7VsvKSh3BHjYXAdof5zzHIGrd1iaWdb5qrQelOKc7Xl StZVP+OUMhSPPhE+Kr7zB5n/NXY7BaRXkGxEUwxIi/3aptapSe8hhgE5EtsyqtYmera4 NNGw== 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:mime-version:content-transfer-encoding; bh=ZctZoHtAuKq0kdYZixz0iZCy6MW3Z8DZJ7soyWlgX+k=; b=CaOuMkvTRo43Xfp6gPcAV0H/8mgAwBpPqrwQLJ0zY6c194wpmW6EJ975iSOePdZBvj vRDXOkJV5786v+4qIrulen73szKOFkrkumX+XzZyqYZ8iM6zyneQQe323nR+pcGlGkOy jbldhsk3klMcU2PvidcVPkV5HpU3c3ivxp4d7j9A/1e80GmRkTHrmn243RtrmIH5dBkN 7M8XImoRrxjg4OmODlxcXFGXrUo5SEi/xF2r8lu8NlT7juQt6TBgY3YNkW6rR1qCbO48 yP6XF5x8a6dbOAo+0zEkh0/ua+1SkJo4Q5eXhJYjhGG3tyQJ4aTBlYeOexDnyAEi4aSp mj0w== X-Gm-Message-State: AOAM531+gDoy6UYW6UCJADExDQJ5Nv8JUgtvIOgcLxpLFsTTK19u0mnN NPtnrQxWrhyEJ0bwbaPX0jc= X-Google-Smtp-Source: ABdhPJxLGHxdXsEhuXrKwidCyipNyBVFa84NPyPMtx2YM1m+PIlwmcaRYNvFROMusknP3hmXlxcr4g== X-Received: by 2002:a05:6402:51d2:: with SMTP id r18mr80858872edd.13.1638252340261; Mon, 29 Nov 2021 22:05:40 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id e1sm10542153edc.27.2021.11.29.22.05.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Nov 2021 22:05:39 -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 , Benoit Masson Subject: [RFC PATCH 6/9] arm64: dts: meson: add initial device-trees for A95XF3-AIR Date: Tue, 30 Nov 2021 06:05:20 +0000 Message-Id: <20211130060523.19161-7-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211130060523.19161-1-christianshewitt@gmail.com> References: <20211130060523.19161-1-christianshewitt@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211129_220541_520966_4AD27CC2 X-CRM114-Status: GOOD ( 16.24 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org The CYX A95XF3-AIR is based on Amlogic S905X3 reference board designs and ships in multiple configurations: – 4GB DDR3 + 64GB eMMC + WiFi a/b/g/n/ac + BT + Gb Ethernet – 4GB DDR3 + 32GB eMMC + WiFi a/b/g/n/ac + BT + Gb Ethernet – 2GB DDR3 + 16GB eMMC + WiFi b/g/n (no BT) + 10/100 Ethernet ... - HDMI 2.1 video - S/PDIF optical output - AV output - 1x USB 2.0 OTG port - 1x USB 3.0 port - IR receiver - 1x micro SD card slot (internal) - 1x Reset/Update button (in AV jack) - 7-segment VFD - Multicolour case LED 'arc' The device-tree with -100 suffix supports models with 10/100 Ethernet and with -1000 suffix supports models with Gigabit Ethernet. Signed-off-by: Christian Hewitt --- arch/arm64/boot/dts/amlogic/Makefile | 2 + .../dts/amlogic/meson-sm1-a95xf3-air-100.dts | 108 +++++++++++++++ .../dts/amlogic/meson-sm1-a95xf3-air-1000.dts | 129 ++++++++++++++++++ 3 files changed, 239 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-sm1-a95xf3-air-100.dts create mode 100644 arch/arm64/boot/dts/amlogic/meson-sm1-a95xf3-air-1000.dts diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile index a0c1a7fbae57..e198d17f2ea8 100644 --- a/arch/arm64/boot/dts/amlogic/Makefile +++ b/arch/arm64/boot/dts/amlogic/Makefile @@ -51,6 +51,8 @@ dtb-$(CONFIG_ARCH_MESON) += meson-gxm-rbox-pro.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxm-s912-libretech-pc.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxm-vega-s96.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxm-wetek-core2.dtb +dtb-$(CONFIG_ARCH_MESON) += meson-sm1-a95xf3-air-100.dtb +dtb-$(CONFIG_ARCH_MESON) += meson-sm1-a95xf3-air-1000.dtb dtb-$(CONFIG_ARCH_MESON) += meson-sm1-bananapi-m5.dtb dtb-$(CONFIG_ARCH_MESON) += meson-sm1-khadas-vim3l.dtb dtb-$(CONFIG_ARCH_MESON) += meson-sm1-odroid-c4.dtb diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-a95xf3-air-100.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-a95xf3-air-100.dts new file mode 100644 index 000000000000..5158cc40485e --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-a95xf3-air-100.dts @@ -0,0 +1,108 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 BayLibre SAS. All rights reserved. + * Copyright (c) 2020 Christian Hewitt + */ + +/dts-v1/; + +#include "meson-sm1-ac2xx.dtsi" +#include + +/ { + compatible = "cyx,a95xf3-air-100", "amlogic,sm1"; + model = "Shenzhen CYX Industrial Co., Ltd A95XF3-AIR"; + + sound { + compatible = "amlogic,axg-sound-card"; + model = "A95XF3-AIR"; + audio-aux-devs = <&tdmout_b>; + audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1", + "TDMOUT_B IN 1", "FRDDR_B OUT 1", + "TDMOUT_B IN 2", "FRDDR_C OUT 1", + "TDM_B Playback", "TDMOUT_B OUT"; + + 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 = <&frddr_a>; + }; + + dai-link-1 { + sound-dai = <&frddr_b>; + }; + + dai-link-2 { + sound-dai = <&frddr_c>; + }; + + /* 8ch hdmi interface */ + dai-link-3 { + sound-dai = <&tdmif_b>; + dai-format = "i2s"; + dai-tdm-slot-tx-mask-0 = <1 1>; + dai-tdm-slot-tx-mask-1 = <1 1>; + dai-tdm-slot-tx-mask-2 = <1 1>; + dai-tdm-slot-tx-mask-3 = <1 1>; + mclk-fs = <256>; + + codec { + sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>; + }; + }; + + /* hdmi glue */ + dai-link-4 { + sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>; + + codec { + sound-dai = <&hdmi_tx>; + }; + }; + }; +}; + +&arb { + status = "okay"; +}; + +&clkc_audio { + status = "okay"; +}; + +ðmac { + status = "okay"; + phy-handle = <&internal_ephy>; + phy-mode = "rmii"; +}; + +&frddr_a { + status = "okay"; +}; + +&frddr_b { + status = "okay"; +}; + +&frddr_c { + status = "okay"; +}; + +&tdmif_b { + status = "okay"; +}; + +&tdmout_b { + status = "okay"; +}; + +&tohdmitx { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-a95xf3-air-1000.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-a95xf3-air-1000.dts new file mode 100644 index 000000000000..c87d948fa3e6 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-a95xf3-air-1000.dts @@ -0,0 +1,129 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 BayLibre SAS. All rights reserved. + * Copyright (c) 2020 Christian Hewitt + */ + +/dts-v1/; + +#include "meson-sm1-ac2xx.dtsi" +#include + +/ { + compatible = "cyx,a95xf3-air-1000", "amlogic,sm1"; + model = "Shenzhen CYX Industrial Co., Ltd A95XF3-AIR"; + + sound { + compatible = "amlogic,axg-sound-card"; + model = "A95XF3-AIR"; + audio-aux-devs = <&tdmout_b>; + audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1", + "TDMOUT_B IN 1", "FRDDR_B OUT 1", + "TDMOUT_B IN 2", "FRDDR_C OUT 1", + "TDM_B Playback", "TDMOUT_B OUT"; + + 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 = <&frddr_a>; + }; + + dai-link-1 { + sound-dai = <&frddr_b>; + }; + + dai-link-2 { + sound-dai = <&frddr_c>; + }; + + /* 8ch hdmi interface */ + dai-link-3 { + sound-dai = <&tdmif_b>; + dai-format = "i2s"; + dai-tdm-slot-tx-mask-0 = <1 1>; + dai-tdm-slot-tx-mask-1 = <1 1>; + dai-tdm-slot-tx-mask-2 = <1 1>; + dai-tdm-slot-tx-mask-3 = <1 1>; + mclk-fs = <256>; + + codec { + sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>; + }; + }; + + /* hdmi glue */ + dai-link-4 { + sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>; + + codec { + sound-dai = <&hdmi_tx>; + }; + }; + }; +}; + +&arb { + status = "okay"; +}; + +&clkc_audio { + status = "okay"; +}; + +ðmac { + status = "okay"; + + pinctrl-0 = <ð_pins>, <ð_rgmii_pins>; + pinctrl-names = "default"; + phy-mode = "rgmii-txid"; + phy-handle = <&external_phy>; + + rx-internal-delay-ps = <800>; +}; + +&ext_mdio { + external_phy: ethernet-phy@0 { + /* Realtek RTL8211F (0x001cc916) */ + reg = <0>; + max-speed = <1000>; + + reset-assert-us = <10000>; + reset-deassert-us = <80000>; + reset-gpios = <&gpio GPIOZ_15 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>; + + interrupt-parent = <&gpio_intc>; + /* MAC_INTR on GPIOZ_14 */ + interrupts = <26 IRQ_TYPE_LEVEL_LOW>; + }; +}; + +&frddr_a { + status = "okay"; +}; + +&frddr_b { + status = "okay"; +}; + +&frddr_c { + status = "okay"; +}; + +&tdmif_b { + status = "okay"; +}; + +&tdmout_b { + status = "okay"; +}; + +&tohdmitx { + status = "okay"; +}; From patchwork Tue Nov 30 06:05:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 12646403 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E5A16C433F5 for ; Tue, 30 Nov 2021 06:08:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sunKwSa2I4z7KPbNDwvDobp7E28unBZnuKTwYJdIhDw=; b=vpcu5Tvkon1jMI 09sJJDO9AcKwOmM7EffDAK0R097CDWa7EHhDjSd40EGLpPBLvBG/JridCEJxHtzoNwpCag3uIyB85 gYp4NTin49ohoAACz5NluJ6sAXQW1bxyldrZwGQw5gcA90c2BuL0yW0qCRj5FIvybLTfelkZXae3D 9y5Yjo0ZVK1Cz3EnMx6C5pM2wvezHLueYtUZ2hioDK9sHg/ql4zQWmrdXgTuBu/T1HDZTEk/1HHPH ri8O8ivIIxXP9hVeEKnEU3xwpG04Z1fdQZTm3L+UESZfIkgnizFN0LsbLx7na11DRQW3s4NshZynE 2XTJqN7ToKKxdXUZF+xw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrwJo-003jVs-43; Tue, 30 Nov 2021 06:08:44 +0000 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrwGu-003hzW-7D; Tue, 30 Nov 2021 06:05:45 +0000 Received: by mail-ed1-x52e.google.com with SMTP id l25so81794520eda.11; Mon, 29 Nov 2021 22:05:43 -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=R+RpsJmrcu4k38lhTMdsmpexqsCYuM9wUkKjY5gg6Jo=; b=qiD1IpHxP7Mf33mI31MjOUEvk7ABc1x+tL8Sm0VQsNxWlCoJbMZxwgmcDPEFG93gS9 ejLO482jkZJ2QLWYeVa5ZrMRxs91jOVjJSucipuGI4zG8Z/4O1TfQjZJ9sqHClvQL8Wt Rjl9AYGmhl+ZBr9/7fjU4tR0ukoPHczFajmwGp9Re3hHdUse4H3h8vzUCN7qKPFxHU61 yg5Eg07G/rSWk8P9pPIH7pE56R1BSHUWAa6Y4fKg08zI6tJBmJAbIUBzTLM5sg0Hqq/i OfflVcMdW0TGiyG1hyyY/aOzHBoOOmAEPx84a/EB/X2Z8MsGwRDnjNA7Ja20dW/difmy /i4A== 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=R+RpsJmrcu4k38lhTMdsmpexqsCYuM9wUkKjY5gg6Jo=; b=idAqaj2ioUkAyuGVdyglrdvf4F9UWzXKAWDcUbvBanXDIcfX8qnkPjj2W+uOnPRd4J o3XDgypS8Dt1S2KM+jyWuHPGU+VmehTki6fGSsyYhmzVQFMWiGW51NxKwFn7cf8m/79M E5eZfL97OKoQwpjiThS2E3ggLEb7LQVMZNM6xbSxWs3wUMCGxmnofVIiGHTytIMZRrK0 WyqFXlaa8LJ3Vs86RAPFgAWnKRwbVbRKB8zC+PIgkPi+JX90eUN+d+B7lZKYOuIXGEPk gQsDAi0Hi5kNT28DNx3/MpYpHQH9K0BI7AWVFjGWwILCEqVVzU4T9T5X5pMVaRZyzkFo eHSA== X-Gm-Message-State: AOAM530OOrwRHH7Yh3dYjcd3tbmRSvBEyWh0Sudtv6ttiIgMQFTWKJHe GletouFZ/XdmWGCL/6NXrw8= X-Google-Smtp-Source: ABdhPJzLCr2WLssFjy8Or/nBn8XHkX05bq96dIJOPfy2DQ45lLge6tR0YnY/NPdpu81rX3BIyHYsww== X-Received: by 2002:a17:907:7664:: with SMTP id kk4mr63889993ejc.319.1638252342490; Mon, 29 Nov 2021 22:05:42 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id e1sm10542153edc.27.2021.11.29.22.05.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Nov 2021 22:05:42 -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 , Benoit Masson Subject: [RFC PATCH 7/9] dt-bindings: vendor-prefixes: add haochuangyi prefix Date: Tue, 30 Nov 2021 06:05:21 +0000 Message-Id: <20211130060523.19161-8-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211130060523.19161-1-christianshewitt@gmail.com> References: <20211130060523.19161-1-christianshewitt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211129_220544_296267_AFDA600D X-CRM114-Status: GOOD ( 10.22 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Shenzhen Haochuangyi Technology Co.,Ltd are a manufcaturer of Android Set-Top Box devices. Signed-off-by: Christian Hewitt Acked-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index f1b4afb2876a..52ff63248892 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -483,6 +483,8 @@ patternProperties: deprecated: true "^hannstar,.*": description: HannStar Display Corporation + "^haochuangyi,.*": + description: Shenzhen Haochuangyi Technology Co.,Ltd "^haoyu,.*": description: Haoyu Microelectronic Co. Ltd. "^hardkernel,.*": From patchwork Tue Nov 30 06:05:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 12646405 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1D80AC433F5 for ; Tue, 30 Nov 2021 06:09:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=iU2gVEW6FST6ZfMum2AZnbm9wVGW/zr5ekzDHI5LZIE=; b=Q3/0GVCBHFBuN9 p1wx1A5oYaEtrC+WVDpG5u/2NLJCl20Rrm2bEowG9kB04ldtv2M7vguAHSvB6RKR0AbhSYTV+NVi9 t5PiUvOKYmO/Vs0+IwN9ui+PKkV6rFHtnzCeVy9X/IOH8j2hYIdO3KIkEDbNCvOkOe9ydWE3n9BlI tWvURWPt/wU7f0kAODpJhl9dZJZbZW85ts4UTWMp46vE4GOonKATk2rJdBTYb+3gO42FJZmy9SVfB YezVknlltjAL+R1CrS8iuAwi5/mbxzr+pEMYaTO59RGi5OEApvfLOediEljHuT2UzxxW3OtH2OhRw gcWKHZdj6525/XzQ86KQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrwKM-003jo3-8E; Tue, 30 Nov 2021 06:09:18 +0000 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrwGw-003i0N-Fu; Tue, 30 Nov 2021 06:05:47 +0000 Received: by mail-ed1-x52c.google.com with SMTP id z5so16826131edd.3; Mon, 29 Nov 2021 22:05:45 -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=mSfwdTuowBoVvuvpRcPGqlDXwM2nxJRRXCyIh9InCYY=; b=AwRntRmqbHGcyAGSEwqYxzYsQkgRGQ4aCUr3PAhSxnxArRGceB8+aa2dJDN4FqS8BH MxR7Nyip14QhNvQRz78w2RD9BZEtkGPENYll6q9/TSJuDonHZ5reNn0V2SlGwM2W8qZJ oIVephMDsxdh+8u7PCG06YDxCZZlSYnnETcK5OsuVdLjB50HFkhw4YkcQPkTZoZdmI9R zAZAllYUystEU2gHLxqaDOxpoght1XYSjR6Yqiwl9II7BOdQRHQToLDs7MyH89cQ9zCq Ou3Oeztnlx4dHMqQg0OQwDYlZ8p71A1/6o70+TRW6ImeKS3CygZuWAOhV8RS5RNqAVc+ ABdQ== 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=mSfwdTuowBoVvuvpRcPGqlDXwM2nxJRRXCyIh9InCYY=; b=7jLUYuK1MoCsq9dUm9mIW4yvLvBnFtJsdz+/xXP0caMgqYLrlm791/bcvmaPZJjnU2 SN9zErLTB5PD7/A/4YS/3ghTyVsP0emK9aryq/Lr4NybshPi6/gyxfcPt3bDNZxk1jkv OkphrRNPHWpLnkSUP+72ZgcFuC6qWP+iSHNEEwnwQbVkwAT9RNBP3ZCzA5roMOpLq9XV iaaeIj7caKRcm9Y4NkwUWm6qZfaWNO4GuaUQ6bYJVXFKLRq/IDy9uPqkhrKPGI/ZmJ3y n6paqf42O+Pbvrb74M63fEayXby7ltTyPYYs4XmgxFE/n20MDFtPBc7hRUgjPyXJB1qP 3RwA== X-Gm-Message-State: AOAM530SA/FfsWbYsatOpR6iFTpkT8YG7Y2wRlChjr4OVFKESVbekWYi EN/metpAeh3i/Em02DVriiI= X-Google-Smtp-Source: ABdhPJya5IYgjH/dB/ngpX/Q8OqWzRA0PfqqnZW3uKZVnfaIikNkbhxKkxoDZ/X1QyHMEN3iF3QtLw== X-Received: by 2002:a17:906:2f09:: with SMTP id v9mr66363303eji.163.1638252344669; Mon, 29 Nov 2021 22:05:44 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id e1sm10542153edc.27.2021.11.29.22.05.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Nov 2021 22:05:44 -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 , Benoit Masson Subject: [RFC PATCH 8/9] dt-bindings: arm: amlogic: add H96-Max bindings Date: Tue, 30 Nov 2021 06:05:22 +0000 Message-Id: <20211130060523.19161-9-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211130060523.19161-1-christianshewitt@gmail.com> References: <20211130060523.19161-1-christianshewitt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211129_220546_565868_FA6BA0D4 X-CRM114-Status: GOOD ( 10.33 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Add the board binding for the Haochuangyi H96-Max STB device. Signed-off-by: Christian Hewitt Acked-by: Rob Herring --- Documentation/devicetree/bindings/arm/amlogic.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/amlogic.yaml b/Documentation/devicetree/bindings/arm/amlogic.yaml index 1dc793eb35f4..1e792feecc69 100644 --- a/Documentation/devicetree/bindings/arm/amlogic.yaml +++ b/Documentation/devicetree/bindings/arm/amlogic.yaml @@ -177,6 +177,7 @@ properties: - cyx,a95xf3-air-1000 - hardkernel,odroid-c4 - hardkernel,odroid-hc4 + - haochuangyi,h96-max - khadas,vim3l - seirobotics,sei610 - const: amlogic,sm1 From patchwork Tue Nov 30 06:05:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 12646407 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B7014C433EF for ; Tue, 30 Nov 2021 06:10:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+dLEek8nIgrMU/HK0GaIZym/bodyYrOONdj4sqClq5Q=; b=DD4QtRoRZZpj+Q wHzeHTdRJ+0iFNw8CUECBhu6Q2EU68cfXO2SEEo4rQ2Kqz8Satc0eyUCRW4xN6+I4JK6AUvgFu+XZ AAyDXbf7yjdSq/2mgr+6OK00+8VCI/v3TcuLpic4fW4phhZYqm8C23iq/C8Vcv1soLMMCW7cKGly5 Gfo++FO4vMFpPNyuRHOEKNtZW8AQIjXUxwrLuakOF+s6oGuSyd7cwrH83SWWE69TdjA0A8hxuReta DhH0J2d3bUt92tQVaf10DegoAXQ/1PvrB7jqAlVDig2D2Sfg3+TyV7gUiYOLV0TEXw2zwJVGYy8hy ioaGTsm+v95g1bAyEU7g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrwKz-003k7e-LM; Tue, 30 Nov 2021 06:09:57 +0000 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrwGy-003i1D-K9; Tue, 30 Nov 2021 06:05:50 +0000 Received: by mail-ed1-x531.google.com with SMTP id x6so81707466edr.5; Mon, 29 Nov 2021 22:05:47 -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=hHqlNqcsI/sQ6IgHYznNT+ShCnFdd1yxQlc3clHLM4w=; b=f/N97AfGKOvLGpAX5yuvH/oU6Gu7VKo5l708DuqwRNtIfRTGBhkB/V7Uib6wamZiff pL+Kud+/br9FLTm9DGSosPs2tiR3rfF9cNFD1PXOnQffoaapwEkj4Phu3HQpJnA7hUqn endrq/iCnYgT+AF1QwAtGNYMOFpe+sbssRC75ldXKhEk2mQTi0/rO7Mwir07bNPOJhgs u0mQmiRXbKvbBswTexbIqqgY6k67FQT675w7KARc0fwef8FQ/3gLrs7LjTafKz8VBbJN varMpHhLD1BYOn08WBE/s6recD3f4/aykf5KoUUKjVrrNepL4cdAsyx7nvbM1lL60XjF ck1w== 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=hHqlNqcsI/sQ6IgHYznNT+ShCnFdd1yxQlc3clHLM4w=; b=8Jo01kn1JrblVvpoqA0ZqNdsDzy2c6xLXdrU8ZwE2RaMLoIICoZkpH1NgrJukYgI8E kDhLV3fYFCc1WpwB7zGb2OVuvsKVK7svmf6bCmoc/SUvykgvIB8kNT89Acu5vGdic6tb YvL6vSwbCG7ZXeJYhXXcze7HD7IDY2G0hvr4UvNo6Yvchn2ja9h6PHX27BcFXkN6p8jA /CYd+ddno9ZeOdojuMYiwxm+FuMWADIJOVPo+6g+JiiKHyPTLl6UTFsQIWeRJ4EKjPpv 3Ja8te5OnYopHOCjUyaEPKtw3v9RD3Lj8IPrUJqS4jeXmqts1pnOrjBceQHw2jYrROkf blmw== X-Gm-Message-State: AOAM5321DG+UtlXvMiuryhlrCewRqDYpnQMucQE8wK/8y8ahMKSLWVNS SpGp8pw1+Myipc7StFNVST0= X-Google-Smtp-Source: ABdhPJz/hrIi043Jbs90GM90HTJPiDP0J/qdIkOj+5BO1sltEaYq4Tt+hMFlVMfsWKezu51wMgBJ6Q== X-Received: by 2002:a05:6402:4312:: with SMTP id m18mr78901232edc.273.1638252346849; Mon, 29 Nov 2021 22:05:46 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id e1sm10542153edc.27.2021.11.29.22.05.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Nov 2021 22:05:46 -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 , Benoit Masson Subject: [RFC PATCH 9/9] arm64: dts: meson: add initial device-tree for H96-Max Date: Tue, 30 Nov 2021 06:05:23 +0000 Message-Id: <20211130060523.19161-10-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211130060523.19161-1-christianshewitt@gmail.com> References: <20211130060523.19161-1-christianshewitt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211129_220548_707236_8A38447B X-CRM114-Status: GOOD ( 16.31 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org The Haochuangyi H96-Max is based on the Amlogic S905X3 reference design with the following specs: - 4GB DDR4 RAM - 32/64/128GB eMMC - HDMI 2.1 video - S/PDIF optical output - AV output - 10/100/1000 Base-T Ethernet - AP6356S Wireless (802.11 a/b/g/n/ac, BT 4.1) - 1x USB 2.0 OTG port - 1x USB 3.0 port - IR receiver - 1x micro SD card slot (internal) - 1x Reset/Update button (in AV jack) - 7-segment VFD Tested-by: Benoit Masson Signed-off-by: Christian Hewitt --- arch/arm64/boot/dts/amlogic/Makefile | 1 + .../boot/dts/amlogic/meson-sm1-h96-max.dts | 145 ++++++++++++++++++ 2 files changed, 146 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-sm1-h96-max.dts diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile index e198d17f2ea8..2d7cbebba35a 100644 --- a/arch/arm64/boot/dts/amlogic/Makefile +++ b/arch/arm64/boot/dts/amlogic/Makefile @@ -54,6 +54,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-gxm-wetek-core2.dtb dtb-$(CONFIG_ARCH_MESON) += meson-sm1-a95xf3-air-100.dtb dtb-$(CONFIG_ARCH_MESON) += meson-sm1-a95xf3-air-1000.dtb dtb-$(CONFIG_ARCH_MESON) += meson-sm1-bananapi-m5.dtb +dtb-$(CONFIG_ARCH_MESON) += meson-sm1-h96-max.dtb dtb-$(CONFIG_ARCH_MESON) += meson-sm1-khadas-vim3l.dtb dtb-$(CONFIG_ARCH_MESON) += meson-sm1-odroid-c4.dtb dtb-$(CONFIG_ARCH_MESON) += meson-sm1-odroid-hc4.dtb diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-h96-max.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-h96-max.dts new file mode 100644 index 000000000000..0f6660e68e72 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-h96-max.dts @@ -0,0 +1,145 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 BayLibre SAS. All rights reserved. + * Copyright (c) 2020 Christian Hewitt + */ + +/dts-v1/; + +#include "meson-sm1-ac2xx.dtsi" +#include + +/ { + compatible = "haochuangyi,h96-max", "amlogic,sm1"; + model = "Shenzhen Haochuangyi Technology Co., Ltd H96 Max"; + + sound { + compatible = "amlogic,axg-sound-card"; + model = "H96-MAX"; + audio-aux-devs = <&tdmout_b>; + audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1", + "TDMOUT_B IN 1", "FRDDR_B OUT 1", + "TDMOUT_B IN 2", "FRDDR_C OUT 1", + "TDM_B Playback", "TDMOUT_B OUT"; + + 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 = <&frddr_a>; + }; + + dai-link-1 { + sound-dai = <&frddr_b>; + }; + + dai-link-2 { + sound-dai = <&frddr_c>; + }; + + /* 8ch hdmi interface */ + dai-link-3 { + sound-dai = <&tdmif_b>; + dai-format = "i2s"; + dai-tdm-slot-tx-mask-0 = <1 1>; + dai-tdm-slot-tx-mask-1 = <1 1>; + dai-tdm-slot-tx-mask-2 = <1 1>; + dai-tdm-slot-tx-mask-3 = <1 1>; + mclk-fs = <256>; + + codec { + sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>; + }; + }; + + /* hdmi glue */ + dai-link-4 { + sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>; + + codec { + sound-dai = <&hdmi_tx>; + }; + }; + }; +}; + +&arb { + status = "okay"; +}; + +&clkc_audio { + status = "okay"; +}; + +ðmac { + status = "okay"; + + pinctrl-0 = <ð_pins>, <ð_rgmii_pins>; + pinctrl-names = "default"; + phy-mode = "rgmii-txid"; + phy-handle = <&external_phy>; + + rx-internal-delay-ps = <800>; +}; + +&ext_mdio { + external_phy: ethernet-phy@0 { + /* Realtek RTL8211F (0x001cc916) */ + reg = <0>; + max-speed = <1000>; + + reset-assert-us = <10000>; + reset-deassert-us = <80000>; + reset-gpios = <&gpio GPIOZ_15 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>; + + interrupt-parent = <&gpio_intc>; + /* MAC_INTR on GPIOZ_14 */ + interrupts = <26 IRQ_TYPE_LEVEL_LOW>; + }; +}; + +&frddr_a { + status = "okay"; +}; + +&frddr_b { + status = "okay"; +}; + +&frddr_c { + status = "okay"; +}; + +&tdmif_b { + status = "okay"; +}; + +&tdmout_b { + status = "okay"; +}; + +&tohdmitx { + status = "okay"; +}; + +&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"; + }; +};