From patchwork Wed Jan 12 02:27:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 12710886 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 A5AE3C433F5 for ; Wed, 12 Jan 2022 02:28:03 +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=vqU/18gdFIGPeCFuho3UL828fooC2LDJbRGXCb335Ys=; b=BHeDmsVBrOQ8xG xG74o4WJIn6DBtp2B22RBguXIkaOiTn5wgBaRhFG0EAqnBEi7bfmlNjK1hQmtTqG8GjzD9iWcNMoa 3PgvbiFCDSlg56DuIw9hEoKtZyKQ4BoI7ZtymM33xqkAJPdQG4FWxdlprCwvnLCAFg5vUhPyO4uUw YsPoP9GpwN80PesnzWp60zNOK7Bs14/qxtYTRQs0/CFUjV5AZGq/TOzFsVKkgfhN1I/zrrnG4WOxR 0ufmZwX5j/9YVgDPIqz67rIWw7/J+KZUR5nHvFO/+H3DlPcwHq1BkwyWoQeXm1IaK0+t5l8OYaOk0 zifiQDy08w/x+RaFfBaw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7TMl-000qmH-An; Wed, 12 Jan 2022 02:27:59 +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 1n7TMA-000qQ6-HI; Wed, 12 Jan 2022 02:27:24 +0000 Received: by mail-ed1-x531.google.com with SMTP id 30so3993307edv.3; Tue, 11 Jan 2022 18:27:21 -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=0cYfG++brVRBSY9g4lM7V5XDfrvhSdDX/ZNtL5caAOU=; b=V1Hqx40vTljjHoXSIomaOA4hF211Ca/2jsjmMhK9A/nf4+PkkLq/WrFJPokz4EgzCn TqRSzsMDrgngrSCVIQY4mC65XdrBdGOUwza3NaSjWY3zIBi0TPxsuEDxHKZRbOPTklQF t/w72ZECncRrdoM6256nSCGgar2uAvsKrU0wwk3D8KynXroBacckCCKm/nRdIo4zTVD4 Hnegf/L5WyZkll6F2Ochh3/hflsdfk0ziwm9qtWdqFho5VjfIW2NVSFEZA7/wKyuGUXE oyVh+pvv+7niMmrBIdQXreD6TN6aDoPRFtk+WciOpnzfYyBpye+fCbY0BBZmXtl6L81T l32A== 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=0cYfG++brVRBSY9g4lM7V5XDfrvhSdDX/ZNtL5caAOU=; b=rP1isBYxne3GdjzmKUgg7TlmF6bvjC/N2+GEbIVRTrSqWCMtpV2c0slquUy2KASEUa DapoNcBsm1VmrNRwshnbU8UxH6AXrf1r2WAVW/a+Oi7FnTjc2GgqHNgZb84oVGAtSpxd ysXkqCFP2VG9vdGT5rjJ0BYH7eI+7ZcomAwjWNnJCHMNBEUZ59mZWgSwdhf1ZT2Y/1dX 59NVtLyY3/9NjUh1J+fZK1RufJZuIZWg39EGKwK4HI1yQb5Uk8jJF/etdpSNFVNxKuQ5 21N4Cw+ZFbY7fjHdFTSemclEKO9d0a467VLybUnVbjyxAuBLGE7J9QPrsBAmWtODaUnM fsPQ== X-Gm-Message-State: AOAM533J/y7hM8IHWDoX9/YrLYOcSxCn861YOCNaT9h0r//WgBqIiMuj 99Goq+U0v49R3YZ5azSKnfc= X-Google-Smtp-Source: ABdhPJx6lfAA8EfsqwBkxJfEH484cvQisz0ERe8kbnc/0Jn9OnBbWQHV4tw2OwjDL9rkCKAXi7OstQ== X-Received: by 2002:a17:907:3d8e:: with SMTP id he14mr5728104ejc.167.1641954440679; Tue, 11 Jan 2022 18:27:20 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id ky10sm4041772ejc.151.2022.01.11.18.27.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jan 2022 18:27:20 -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: [PATCH v3 1/9] arm64: dts: meson: add common SM1 ac2xx dtsi Date: Wed, 12 Jan 2022 02:27:05 +0000 Message-Id: <20220112022713.25962-2-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220112022713.25962-1-christianshewitt@gmail.com> References: <20220112022713.25962-1-christianshewitt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220111_182722_612758_BDE8727D X-CRM114-Status: GOOD ( 15.29 ) 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 # X96-Air with Gbit PHY --- .../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 Wed Jan 12 02:27:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 12710896 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 2AD53C433EF for ; Wed, 12 Jan 2022 02:28: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=X2PIPFIhh2tolzQTAnCw7PAG9z1a11DmAyOi+nbRWN8=; b=viTuYEYH1kn/l7 nXZKqquC+m3G5nMpPXi9TQvrEO/dHqvrwUc8052ypnZjqhxdfLDXQqwdGxRTOQUqfmh2jI8ssy5zQ K9A+IvW7sVR/IykMugO7pQCryChKB2KwK7l9IvTxXlh596G8vBKqYfg+iDFLe3HafmBa/Kbt+Gjyh L8BJGFAo7cG7HVQeFoFO6TAr1xUXVHOdn9BHY5+UeIsktW/KppcpWZK1fyhIFSbpgGS1tFmKDQ1Ax /Cw+PRgige82asCY6PPq88NsEhhgC5jJ1mRHhH+YgbFLGNekeS/8/LWF4BptRoUbZuPS9ud99qn+7 obzEjzTSFftU+d0cTpiA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7TN5-000qzA-4S; Wed, 12 Jan 2022 02:28:19 +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 1n7TMD-000qRP-Ij; Wed, 12 Jan 2022 02:27:26 +0000 Received: by mail-ed1-x536.google.com with SMTP id b13so4162095edn.0; Tue, 11 Jan 2022 18:27:24 -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=PlEFAgayS9wvBGnQ35xlD13lbXEhQawx9H/2jDhZVwA=; b=F0Idtq4w4h43y6NnTkDYnTEIMGQHuSUhcX3rwRiRz9x7nmBJdDvz5GnCF/nsLlxQrz 6aYk7Fsm+q4lqOEVcmlhqW8z6k+ouMmj1qM8y0D4WMO25tGOzHBOl5+ZwgKhvc1nuuLG efML83vyRad8peiDHiAKR/vkYEqF7DfrI3LHAmeq6HQZWlTZBCnrkbFUo5r8cWDdKJn+ dFJMTUkggngKSzlmCCr9mol7pJPgLr2oeLIJ6yFmC0Q1LRry5FP6kEIRMm6NmePgRqth yE8nqAo9EWGI05dVWSpT38aEOT9OF1JTwsEEeeZaI6EH7jXZLTkay/hf+dl1RvweyOTf DNXw== 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=PlEFAgayS9wvBGnQ35xlD13lbXEhQawx9H/2jDhZVwA=; b=t+0B7ovtiR9a2O31Twc+lhRh6g9kJljNgf9ngUghz7hf4gxw4ElAWGdoU10G1x5X6b hDSEqP7SGZmSur9MQ5hyh5XDXpn+AIkmx6yumctI3jo5XT0T8fXPYlfm/QSOt82Hmifi qZvndCelSzdGyrF5AGxuPsHAAvt7GeoKHSJS4n0UM1mGSyA6oln6q3vE/XYsmvSC9BKE o6JC8Pz4no2bpsi/u/HwPQhkHrtJDN0jxvRjcO420HKpv9BV/M/Uchy0s1XXReLqi7J1 ieq6Ygy7I3yIr+h3lp2MwTApExXzpba3uIhQC4hUqHuIJaoBN6olNJ9+wcp99iTHBfkb pHnQ== X-Gm-Message-State: AOAM531ooqtoZH/NnObe5c91kxeWNoi3u3OMURD6WS5eMeXdyoLnUr9G 9YbMVshHQzFSsWDWcmyTgck= X-Google-Smtp-Source: ABdhPJzTiHwbHLI71BjtGxzLm805TbVAX7FBwbUpBy5XGiKkY749qvqTq2C7hLMdYFfc2YtkBI3ghg== X-Received: by 2002:aa7:db8b:: with SMTP id u11mr7165583edt.180.1641954442963; Tue, 11 Jan 2022 18:27:22 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id ky10sm4041772ejc.151.2022.01.11.18.27.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jan 2022 18:27:22 -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: [PATCH v3 2/9] dt-bindings: arm: amlogic: add X96-AIR bindings Date: Wed, 12 Jan 2022 02:27:06 +0000 Message-Id: <20220112022713.25962-3-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220112022713.25962-1-christianshewitt@gmail.com> References: <20220112022713.25962-1-christianshewitt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220111_182725_651964_D0F44A8F X-CRM114-Status: GOOD ( 11.09 ) 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 an external Gigabit PHY have a -gbit suffix, while models using an internal 10/100 PHY have no suffix. Signed-off-by: Christian Hewitt Acked-by: Rob Herring --- 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 31df120d73b0..b5b995941d3b 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 + - amediatech,x96-air-gbit - bananapi,bpi-m5 - hardkernel,odroid-c4 - hardkernel,odroid-hc4 From patchwork Wed Jan 12 02:27:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 12710897 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 EB4D2C433F5 for ; Wed, 12 Jan 2022 02:28:43 +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=R2+Qb/x9gqCVsv4xljzcN4BhJErbni1CWQhreXeI7tM=; b=BkTxZKBjt3UC4h bpYOakPwSeq/BKm4nG5ZYg9D3GtZpMedqsUXSgpufQ20k/WNVVfa14vbWWExJL0zixNfwa9j/FfzE 11c/wyKuSZNo12hXdnY7iH0uiRBpqbEK9GcBLcuxi9qyjim8UTxdk3hOMn5/9Uu/ak8RUWU7oq3Aq 9cfTh8CuVd4TGmHYAv2eL7cNPAgC4zdpV7xc8i6ZN99yLmcvt6bKeMeLR5J3Jb32eNbv733Al9z6M Eg5lbz48yfPajIl+700VjgPfnkdIe8MYQXFzcgadRo8y434blTOvtQ//K5KHqA08+nGYO60IlmJK2 rCKBIikLdDr2ZOwz14OQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7TNP-000rCP-0z; Wed, 12 Jan 2022 02:28:39 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7TMF-000qSq-3B; Wed, 12 Jan 2022 02:27:28 +0000 Received: by mail-ed1-x532.google.com with SMTP id q25so4013309edb.2; Tue, 11 Jan 2022 18:27:26 -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=1tO7gLLSSRIA6YdT6ONG7gPtYf9ZGEU1QKx6OFESgT8=; b=B21e7D0p/9ZTHSXmve5A7l5ASiQ1T0vdgsCBID0eIWmJ8/MG7pn0igFBMFDj08swYN NHUEKLk325bGnHwJNOhEwatezmjk/elpqcOMAVl8ondMrChdxmXG5NOBmaJzqaPLat0R l3wGiq+D5hkeOZFJTH8zqELNTBnND9C4wT5ZsEKq4oqa+OAPNkrPgURFS8tM/pa6LIb7 DxFlWBS9//TPOLPnyl16FMsXRg6EkAXiJm2ywNNrPHNl55irRlFiQMqjZ6/2tSIiLbA3 tJ4L1Hz/FW5pKe7Zc2aXk0ux2m+F1NE7aVmQXUKP6t7oujmio/eHZHrIiqa2N6am488A oKXA== 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=1tO7gLLSSRIA6YdT6ONG7gPtYf9ZGEU1QKx6OFESgT8=; b=O/Jl14/fLwjkf0AdPDlvxERd7uO8mNS5l1bZKGPrz5TzclK1jZFB7wMeKy0NEizMct sT0D6MrvuBbxBg4wPBkNR3ZhHtKLKYNunXq1JrMZx2jeerJYnZRcmkMbPJveLZinmUMV V8XOuNGOK6AgIh/dn+VShTQBp6y2B7QIdHJ96BjTE6/4uqucA+m34LTdrI+6aFvZANUg 5R0pgxPPhHhQ3YxxVXRXGig/BSlQNx0o/O+C8rqcdaUOwOrP+9F/h4kzx6HpZVQbHZsh r2till2hvsKe9CjBwNKyI023cb45yHoF76D1BzAPEaCqhCWkOxNJntHC81UexoQXYpWS wCsQ== X-Gm-Message-State: AOAM531XqvFv0g5unogjzWphC8i5bnfdr9uGEMbEOSGHblh8BLOLpcG6 nK+DfdTyjPUILK6HbTvMlLk= X-Google-Smtp-Source: ABdhPJz0ELn2BbvargaSfhYnZz0tX0cv/I3d18xfHRD2my/ORgmwadugy6PBgFaBYcSiKyrteWAC6w== X-Received: by 2002:a05:6402:1e94:: with SMTP id f20mr6861905edf.212.1641954445240; Tue, 11 Jan 2022 18:27:25 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id ky10sm4041772ejc.151.2022.01.11.18.27.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jan 2022 18:27:25 -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: [PATCH v3 3/9] arm64: dts: meson: add initial device-trees for X96-AIR Date: Wed, 12 Jan 2022 02:27:07 +0000 Message-Id: <20220112022713.25962-4-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220112022713.25962-1-christianshewitt@gmail.com> References: <20220112022713.25962-1-christianshewitt@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220111_182727_187763_8C7173E6 X-CRM114-Status: GOOD ( 15.85 ) 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 -gbit suffix supports models with Gigabit Ethernet, and the device-tree with no suffix supports models with 10/100 Ethernet. Signed-off-by: Christian Hewitt Tested-by: Martin Blumenstingl # X96-Air with Gbit PHY Tested-by: Piotr Oniszczuk # X96-Air with 10/100 Eth --- arch/arm64/boot/dts/amlogic/Makefile | 2 + .../dts/amlogic/meson-sm1-x96-air-gbit.dts | 133 ++++++++++++++++++ .../boot/dts/amlogic/meson-sm1-x96-air.dts | 112 +++++++++++++++ 3 files changed, 247 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-sm1-x96-air-gbit.dts create mode 100644 arch/arm64/boot/dts/amlogic/meson-sm1-x96-air.dts diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile index 5148cd9e5146..1c0e554f54fc 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.dtb +dtb-$(CONFIG_ARCH_MESON) += meson-sm1-x96-air-gbit.dtb dtb-$(CONFIG_ARCH_MESON) += meson-a1-ad401.dtb diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-x96-air-gbit.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-x96-air-gbit.dts new file mode 100644 index 000000000000..7e1a74046ba5 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-x96-air-gbit.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-gbit", "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"; +}; diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-x96-air.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-x96-air.dts new file mode 100644 index 000000000000..cd93d798f2a3 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-x96-air.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", "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"; +}; From patchwork Wed Jan 12 02:27:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 12710898 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 9CB6CC433EF for ; Wed, 12 Jan 2022 02:29:15 +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=D/sMYyD3oRpB0eRbAIOwr1+uP6/5gBPSjQJw84otMQ4=; b=ynb+HOkaEPKmbC 1TtQvFNuklarJhT4EoAeubrKv0rPAfaSG4YnIG53VfMmyfHAYXaXUP8JUUYX8WTuE2KadSKcA2DDF R74/x2fCt2G17QbtM2lahKm2+zT99inJ/Tdfec/ClhDUrIlccd5i7qDL8FmcbkLxdmNI431oL1ymq VE/YzjKCfqDHELFFfrli6cb1tmT5CGjMrxP/d272++/LWtO80Y8nwyoBekrYWK4oh8fYXr2tid7Z0 h6pXIvapFdaHMzBVxffrwMp9JM7oL2CiM2Mrtvhxee2iyc1lDNiJi91y7CbKC3WMY6H/Rq6/e44Hd qh6HTntrl+1QvUcf+uAw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7TNv-000rYt-JQ; Wed, 12 Jan 2022 02:29:11 +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 1n7TMH-000qU9-B2; Wed, 12 Jan 2022 02:27:30 +0000 Received: by mail-ed1-x52e.google.com with SMTP id m4so3851540edb.10; Tue, 11 Jan 2022 18:27:28 -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=p4Yz6c1pIbz2ITxrOQWOyCbFEZFiExtqlrCSzsvDykI=; b=jFGkkGvU3vMoX2ia3rMRTS4doL0Qt0ToHGmDo2JwlRE76ziKyo39vJOg7EuagAZCoe tj/UQaBfnS6nmKeCqDExxEeCyppUihNZIZhp0tyo9NEBE74RAgqxe0zWdGZvUsFUM4ij RZ8phFAmbGKMo+Fl9S5ofe6QdZ5RHBv3HwDLz6Dfk8nho2ysFdeP1d+9RNo9aOZRbp0I oMBF9aM6yOIcofychgEerXj1xpojuYovo2mwyhe1CxVNGQ3VMkbGqdkmW3U5JkzxD4Db ogvr42XUOeBeOjVO4Bi4WRkz3nPzqOyxI8bAjTlKSp1O+3Y72zjH6CW/L3ybucgH4R7T HNFg== 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=p4Yz6c1pIbz2ITxrOQWOyCbFEZFiExtqlrCSzsvDykI=; b=eJ7hq+nacUtXEMB5b75K4rxtq8x8fnEnBLxnfGuzQqx0enn2J0ScT8gcvD6UR+nlzU B1hPTke0vb3YTUI18DpaudxQBHegZfVTWgdFCN0L0DjbkT9nq3c1JNFRQGTZOvu6/Gpo JSAnMMRp7IHXmp5m5bBdQHydZJu54R05nI+JSgazBm7iUwAuRuJA5iFitb6GIEJRq3zx kgMw35h0/TxgDpMWCmrhgLMAJTo4n4G+vkp17pJzaS4X7GGWQI1lkPUbvTjLhari6GsF 7lgJKSE1BopgddqJiBoXmgl8qiOIZo7D912iQx89mIKfFhqpGxVW3kZGy5KPqtYnOxoA V0Tg== X-Gm-Message-State: AOAM5338mON2Rnn3kWxpxpOysDcV9EVFx8Gmgdwg9CojkGIsqIJkNsrx kF4DSjy+XTcwvHvept9Q634= X-Google-Smtp-Source: ABdhPJxdAUzgdsO6UE239RlE2EgbxKkod+kdCZ38wpzRWkng0GrWEM2NOlvoYT8/keZAJQPqU5Cl4Q== X-Received: by 2002:a05:6402:14f:: with SMTP id s15mr6940230edu.118.1641954447532; Tue, 11 Jan 2022 18:27:27 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id ky10sm4041772ejc.151.2022.01.11.18.27.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jan 2022 18:27:27 -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: [PATCH v3 4/9] dt-bindings: vendor-prefixes: add cyx prefix Date: Wed, 12 Jan 2022 02:27:08 +0000 Message-Id: <20220112022713.25962-5-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220112022713.25962-1-christianshewitt@gmail.com> References: <20220112022713.25962-1-christianshewitt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220111_182729_418270_A09EB025 X-CRM114-Status: GOOD ( 10.04 ) 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 eb8ab0d82198..c9202a101d71 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -281,6 +281,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 Wed Jan 12 02:27:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 12710899 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 2A77AC433F5 for ; Wed, 12 Jan 2022 02:29:48 +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=pHTdmRusQDCvYckIYRjBzs8BLxIBPWvhhfwZVSX+DX8=; b=SdElG6O1qEYXuO Zloq94Igv1bN5Cz8/Z3ohSjt/LN+Wur6bOoRxiy0pTGygA6ZZPlV1z8tMgyEfpYU/Dtf/7f6NVgAk nY9wYBSaOWElfChfRETGbHpFDdcbpsFEi5IhsMyl1Fd5k1L02WyXMc4Bp0HJINUeg959fK5Z5oW1z ZM8k+/ONeaGANGD24HZmIcxJ769BDKcdQwsyh4tJjDIhdhOOeK88KKywWdGDS3LeVt9TyEGg9ks0q bIdl5F3TY0hr2tWd8lsi/NsurCRD5N1ofqHrF8GrGR9qnu2onmiT7kX5H2zUfzxIz9aqs7iBmq5kE hJCoTUAzPtClqg7Yxzxg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7TOR-000rsq-18; Wed, 12 Jan 2022 02:29:43 +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 1n7TMJ-000qVh-LR; Wed, 12 Jan 2022 02:27:32 +0000 Received: by mail-ed1-x52b.google.com with SMTP id o6so3972440edc.4; Tue, 11 Jan 2022 18:27: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=TdcRcebw4SvOthXu2rFCYk88sYFR3tnI4UNhHT/FyYo=; b=SlIlVzuYDKFVsnBzR+BtVz21bXoXn33JJFVd46+S5Cem2t7Zw7+Esg2e60lLF87V4o 7G8XXMVqJmhmCWZ6rA9Lc9gu7TdeYuNprtFTLCL+rYmhPkKxZDYPW7AFktYFAC5tzAi2 8GE0YzgQ6k5pO7MxeV9qQzckyFuZQ3g9f5PA1UcWHG0SxJqO8HXJrKbHh8D90AMC2PBF GGZgI0r6/8u2jknBi0/2okvLygcOzQgdBDuu6/auy/oViGtF+sTVHf/lJKQGB0/1fjnn 3G3jQr8hlpj4QZBfAf2YtxnVm3+DMQa4/aXAWtvGZDrAGilYkxmFtvL9PxralCvjl9P4 tHkA== 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=TdcRcebw4SvOthXu2rFCYk88sYFR3tnI4UNhHT/FyYo=; b=jc+mz0Gph8ho9/Ye9TRfj+RrR7Z4j/L+xfwin1bC523Hlw/G8tRKCh6eWS7taxM3fZ mcVcoUZDldkAROipvBedckA65JSn9CJ+zj+wtU/h3SmKAZOYVA3RPY29K0YE06Efa3mn rKRaQmYlcBVeQYR+IS3klsyti/keI/t4KDLdWcqhKOPu8DLJTeiVQ3KoRgIT0x2YGjsB b4wkjzfoqFtm0NVrVY+l4rAhrqQdkEqCR92n76VhZxnBX6jlJ9Juvc79VTfwhPn8+nSD nqDQcc9RWtJsvanx8XJ/xkAhmjHcqnDF8aiwFcqBxy3ar3GfCRFkW/iiutpumj8gdXAG lWDA== X-Gm-Message-State: AOAM5336jWnuHeFkJdJKd16WOic9X1PerHhIInnyEl3tzOUykcwbb8mf 0AJ2x1Yzk8laWxlYyKezJoc= X-Google-Smtp-Source: ABdhPJwHd2wCly/wHSIXwpSJqlTKVldumK4kGG3oxJA3rDOrnwI7Ax7usG1lWfxPT4cWwHu9z5HgUQ== X-Received: by 2002:a17:906:81c8:: with SMTP id e8mr5764659ejx.600.1641954449829; Tue, 11 Jan 2022 18:27:29 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id ky10sm4041772ejc.151.2022.01.11.18.27.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jan 2022 18:27: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: [PATCH v3 5/9] dt-bindings: arm: amlogic: add A95XF3-AIR bindings Date: Wed, 12 Jan 2022 02:27:09 +0000 Message-Id: <20220112022713.25962-6-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220112022713.25962-1-christianshewitt@gmail.com> References: <20220112022713.25962-1-christianshewitt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220111_182731_746178_4D3BBAA8 X-CRM114-Status: GOOD ( 11.15 ) 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 distinguished by Ethernet configuration: models using external Gigabit PHY have a -gbit suffix, while models using an internal 10/100 PHY have no suffix. Signed-off-by: Christian Hewitt Acked-by: Rob Herring --- 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 b5b995941d3b..2027ce81a834 100644 --- a/Documentation/devicetree/bindings/arm/amlogic.yaml +++ b/Documentation/devicetree/bindings/arm/amlogic.yaml @@ -173,6 +173,8 @@ properties: - amediatech,x96-air - amediatech,x96-air-gbit - bananapi,bpi-m5 + - cyx,a95xf3-air + - cyx,a95xf3-air-gbit - hardkernel,odroid-c4 - hardkernel,odroid-hc4 - khadas,vim3l From patchwork Wed Jan 12 02:27:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 12710900 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 E7EBFC433F5 for ; Wed, 12 Jan 2022 02:30: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: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=deO+WumUKkAQReMeW+1kX75fr0LRPk0AtFp3a+STokU=; b=MaAPHTYUQICbnH eg+wqRZcg9M2DgsdTAHMkBhtL2qXs5o7lhKqqPGWI5dZ72x97gPL/bsfJlbdSewIQfn1+K7DEggGp 3RwQG3WGdBJTCkmr0fwOIq8nOnPTiKoiCuZF0XLWp01Q7I/6+t8uDPrT7+f7wtH0B/3BwE39QFzBc e0TXatz+cYudxOfC11nXvHs22F9hjrafPPfS4hUw18alCkA9L0Oz2rqoUo1YUC1yjSIZ4E/0ptlxE DmJuoZTbvWfjCtqw0mzt3IHCMPgm/KIHxkPF443kgrTn5RZaWn8CgfwP3BAeyA8HyH/86NJRHprli e05waFeoUNxA0lL1UfBg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7TP1-000sG1-Vu; Wed, 12 Jan 2022 02:30:20 +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 1n7TML-000qXE-B3; Wed, 12 Jan 2022 02:27:35 +0000 Received: by mail-ed1-x52b.google.com with SMTP id m4so3852123edb.10; Tue, 11 Jan 2022 18:27:33 -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=IAYj4tVtOLXiUEfFKnt5dlgUskCUMgrJ+lT7uZQg+Aw=; b=TjPbcVAxIxCH7slkXqO1EGwdODhOr4HBYDTaDjIF+98n5yv63mWgD14KEEp0LRAI4P AuoQpa/S9yqdKSBj8YGUZTwZflH9sWkCSxpUIkexmktK7sOnx3p5MBB/irZURowg2wlC BoDC/llWBYgjK3vKAnUjBALvx8j33L/f6DoEC5/0zkC8xbOzP6l5St/1iKM8ILJbFq1y OO3ClSPRvQTfZk30qxPiEUBUD9ZZal91BQhu1iENKHSTtOnHng0+Ja2/cf4B7eKWTEcz 7+HBhHpvgjp2U5A08+orcdr1cz7u4r6FQ3euqdo9jdd63k2/lXEKa9Tw0ErIonaqdK14 /g4w== 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=IAYj4tVtOLXiUEfFKnt5dlgUskCUMgrJ+lT7uZQg+Aw=; b=62sQy5wsgw9UCInaFX3ZFBthDtvFfjkI46Esa6jDKkWcM6sq6E0ukw47LF1Emk0QOJ vxUcm4hlYk3DKmALwbE2au0NK5h5rQGGreIcJZVr+rQIHuzjh1KtaPCbutxl50amBlUk l/3p0qmvXxOIsR/dAJC83hzqWWJV+oXBiMtgZx2FLeaFo6smGYmm0Qbb8/vzr6f9we/Y Lj4vVkKCGGic5cEwgyaBQGG2JUfXQp6xjlLZI6OcPLiceeG1YH7cJudawqO+cQrIR3u0 nY3AOewh7r8DTIoThNIFOdMmge/k2qM8+pmsVkf9TIrqG5s1oaXpBItsK2mWLFksh0Lb cVzw== X-Gm-Message-State: AOAM5317x51iRWCW/uVRzGg9sbl48m7UDoRUR0zErcfDKDxiffYs4dql nBuuS+vgLYYNbUeMPPe0m1w= X-Google-Smtp-Source: ABdhPJw/zILkYmRbbPa1CZUV6bHg/1X7/cUayzsycuGJuHKT+ezSSLwDhw+xAGZSkuqq8WfmwYIy1Q== X-Received: by 2002:aa7:c941:: with SMTP id h1mr7037716edt.319.1641954452142; Tue, 11 Jan 2022 18:27:32 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id ky10sm4041772ejc.151.2022.01.11.18.27.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jan 2022 18:27: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: [PATCH v3 6/9] arm64: dts: meson: add initial device-trees for A95XF3-AIR Date: Wed, 12 Jan 2022 02:27:10 +0000 Message-Id: <20220112022713.25962-7-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220112022713.25962-1-christianshewitt@gmail.com> References: <20220112022713.25962-1-christianshewitt@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220111_182733_452605_62BE5984 X-CRM114-Status: GOOD ( 16.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: , 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 -gbit suffix supports models with Gigabit Ethernet, and the device-tree with no suffix supports models with 10/100 Ethernet. Signed-off-by: Christian Hewitt --- arch/arm64/boot/dts/amlogic/Makefile | 2 + .../dts/amlogic/meson-sm1-a95xf3-air-gbit.dts | 129 ++++++++++++++++++ .../boot/dts/amlogic/meson-sm1-a95xf3-air.dts | 108 +++++++++++++++ 3 files changed, 239 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-sm1-a95xf3-air-gbit.dts create mode 100644 arch/arm64/boot/dts/amlogic/meson-sm1-a95xf3-air.dts diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile index 1c0e554f54fc..e87adc6593df 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.dtb +dtb-$(CONFIG_ARCH_MESON) += meson-sm1-a95xf3-air-gbit.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-gbit.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-a95xf3-air-gbit.dts new file mode 100644 index 000000000000..d1debccdc1c2 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-a95xf3-air-gbit.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-gbit", "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"; +}; diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-a95xf3-air.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-a95xf3-air.dts new file mode 100644 index 000000000000..c94f2870b78b --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-a95xf3-air.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", "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"; +}; From patchwork Wed Jan 12 02:27:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 12710901 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 EB426C433F5 for ; Wed, 12 Jan 2022 02:31:08 +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=bsKhDwfZ+PQNs6mN0So9Thq9bEWuoVBlJeN4M6szkdI=; b=kpsRNfzP7nPlpD saKditmtS0yzMXPNH7wlndAZ1f0LSgC6KwjeA6cSnbT1A2wPvQL8Ro3TCZ1+57ASUVF59xdH+Dl8A Edv9rncXpW3gvX3jiG//+6+wh/2IaIsds0SYZrNkDzv+mcGCDwaw26fzqgjUkPYVk3OzkYnHQWbcf RpQeV0Y8w6D5NW7CKlRtPxE1kIiIHN6ufmZ1p3FSMYWKU7A+rLhXBEMZq9kyAD0lUEQsi3Ha7DWHy HdIjFxcvuqAdjYRtoQ8VD2UKpxQCkzkJ974Ee97n/pWqgBIIXlJm+gmI97JommzaZn8N46t9YBgWy RmSE6QrkVXQR/keye30w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7TPj-000sdh-Fu; Wed, 12 Jan 2022 02:31:03 +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 1n7TMO-000qYQ-5k; Wed, 12 Jan 2022 02:27:37 +0000 Received: by mail-ed1-x52d.google.com with SMTP id z22so3837417edd.12; Tue, 11 Jan 2022 18:27:35 -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=q2pienCXnr3sbjoYsVwKnMqiOo690+Zk3T49WvUYDPc=; b=c9ItgbbMGthyaKniMKKLCIerAHmSHpaPkxUYIjlFznkg0pePK3WISUTlr4acJuGVJo kJ5EAUoLcVbHSOtRr+AIGtxBN+MlW1JNGYbzzsPPGqwtZTcQ2AbcRFOom4vG5Ekis3Cx +4KT2B52RQtu7KxPNSQhONEl1xBbYmamIrxQcI7R7p9CllENDH7YlcsDoB2jSnIO2Qah AqmsoUwvDTJ9tk2rOF+TumQ/PJP8PHXZRDJFip0ybw74sWkj9cfMqLMjBhkBj0SjlE3O e+AcGA+OLwFERa0ZQajJIg5+hLNpIFTQ8iVB/my4h9UQr0rLwuNqN8Ns3AmDGebwYvZU Subw== 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=q2pienCXnr3sbjoYsVwKnMqiOo690+Zk3T49WvUYDPc=; b=J70+fLBy0qsK5Orzj8ECYgG92waF+iGkdnMtn/wZIH3Qe+hULgMCRwWzntkNkiviYz sioIc5qcP7IsKIrUPOCDA7OL/TysFRLpyrZfNeLgZI1sbjtx/senqpdaNxIYNfAdhMIC UoDwjYJnEZrjCl1rEylS3f6k4GFqo7Jaz+a3+O/z1/J4vCEAlIaAMu03d3BsU6/gqqjo +1gxkKf6qauxVVG91Tlxmqdod4wHuujXAwT7CprqaiTxWRzXRt76fuv2m2/0sDKyyDt0 rBgSNvxNwS73STHbpkMq1OP1fuyVRGB1dhkXtJtNFArkqg8kuAxUVb0draQvVuwAhwD9 KdmQ== X-Gm-Message-State: AOAM533yiIxy4NCJZ47qsLKRHXyNGChm5AfP2gQHhGlK7BPK7KEeQssw JdPmlDsSgs9k1Vv8LQ6A/f/7zW70D1y7vE27 X-Google-Smtp-Source: ABdhPJzbFTWscIOESqfZXRaEpAeEf2ahlpDikx8qBQLZ7bVaB/3GEAD7t4rj+aY32J8yohsDr9vpxA== X-Received: by 2002:a17:907:a412:: with SMTP id sg18mr5790174ejc.2.1641954454395; Tue, 11 Jan 2022 18:27:34 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id ky10sm4041772ejc.151.2022.01.11.18.27.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jan 2022 18:27:34 -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: [PATCH v3 7/9] dt-bindings: vendor-prefixes: add haochuangyi prefix Date: Wed, 12 Jan 2022 02:27:11 +0000 Message-Id: <20220112022713.25962-8-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220112022713.25962-1-christianshewitt@gmail.com> References: <20220112022713.25962-1-christianshewitt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220111_182736_259906_AC13B19E X-CRM114-Status: UNSURE ( 9.95 ) X-CRM114-Notice: Please train this message. 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 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 c9202a101d71..f4160ee3b5df 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -485,6 +485,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 Wed Jan 12 02:27:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 12710902 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 E080AC433EF for ; Wed, 12 Jan 2022 02:31: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=KWelpFORinmQWjGXP8Py8YrbRIhhJISdUE8R356Crj0=; b=4dvw08o9z63Mha +KKVy3oe5p8kFMnaGRG61oe4ZVgcwT2mCg6KLFPkzRLqJU9idVeLZ0pSAAVI7zludldXSjujuDOVb glh6S1kyNXRaShFayRmI1xEj0wRPMBwFrbZVFrMfLtjUbOmnqzUwsqxoEeBLRwwQZVXSKPgTDaoZM yrXTkIszGbgQuYfSjyDYwqAcaK0gcnOQ+TsDuFiKaOalNHE+rUWQvzkz4ALS5cd1bRrUR7y7hUhb6 R0kAy1piXtKogU2V+Zl20l8asS3+Y1Oo/IYHNLmHArCXRwxhERAmKs8KtJqZWGPJUtWWy7U+2YuXy OyNLbUEBHwn/GSTET38A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7TQN-000swX-G2; Wed, 12 Jan 2022 02:31:43 +0000 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7TMQ-000qa0-EG; Wed, 12 Jan 2022 02:27:39 +0000 Received: by mail-ed1-x52f.google.com with SMTP id b13so4163603edn.0; Tue, 11 Jan 2022 18:27: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=Lwtwmf96/gMAlqBztuZshLJxZNPu7f/tp/LMHnINIs8=; b=b6KUy9WWAbDnyR9E/4suA0mWm75LgVPGhTPMj6f/wEsE4Ly9TnvhiOA5at1u+TM5aZ GEIu8XcMhyR2bX/9eGcN9OAC/9HKtvh4CSAkVqaTDCUm6s/uQYAhL/VjOgQ+5cuNxeQ2 rzbAx+lEik+Fg1kD0cIZqDsfe9knuqTX6WxM/3vi7ciAb5fPZEJuR7ge411o09/Bt+/9 ATjHjwd+tLLa5QZJ8UkLVAVMiWLM4M6ju8m7VNKQsNozBVoGk4A8o2gby8i+znpKMx2A r6HTe3RWkaCxDTOIlwI0Vt4hB/ffkdYL7+Uq9isWn3suIjx0OOd7WY/D6YMEx3Dgb41Q Hdrg== 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=Lwtwmf96/gMAlqBztuZshLJxZNPu7f/tp/LMHnINIs8=; b=JGmfqBFMcCa3STt7B5+TFyLYzb7pNX15qECnMfyEwN1OXcom/1xJYDYzUNVJd2M2e5 BslT86AMGlgQTPmwCNSRwSU6ZDQiXBjO/qYkaFZ3yMbgGLgNg3Wm+gTkosv7hgR13vkX tEXPnub9DDjZrfIq9/MmbQfDPNZTi7A1bRuZrPZz7drgR7dI0IuGju+n+ZIJrVyEKKKW +2+LCFnQiovDFCU+DbDDOQw0y3AK9FmhLmRkDzDvxi6Snv+geXNOS02KUFnKIgU6y+pX 99GXzzdOhTBkHKaB9wG24H0n9ReBzW4S3T8rLipkuP6bonb1pI1n0rPTVIeuJOYmM7vo /woA== X-Gm-Message-State: AOAM533UHmlDfhx4YOHzSnShknjpBSJlgeUf+G/4962X3lIOqnHzy2Tk 0gGKL5r1WVrAsaXOlKd77FA= X-Google-Smtp-Source: ABdhPJyiV1tkqBjNFkt+xyLax4kDjHBpIVMJbLQUyWPB3EuYuimo8MrTjOdV6Q3l03T5D5nwzgOEGw== X-Received: by 2002:a05:6402:291f:: with SMTP id ee31mr7176827edb.194.1641954456664; Tue, 11 Jan 2022 18:27:36 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id ky10sm4041772ejc.151.2022.01.11.18.27.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jan 2022 18:27:36 -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: [PATCH v3 8/9] dt-bindings: arm: amlogic: add H96-Max bindings Date: Wed, 12 Jan 2022 02:27:12 +0000 Message-Id: <20220112022713.25962-9-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220112022713.25962-1-christianshewitt@gmail.com> References: <20220112022713.25962-1-christianshewitt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220111_182738_511132_33A78E04 X-CRM114-Status: GOOD ( 10.27 ) 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 2027ce81a834..a073a959232c 100644 --- a/Documentation/devicetree/bindings/arm/amlogic.yaml +++ b/Documentation/devicetree/bindings/arm/amlogic.yaml @@ -177,6 +177,7 @@ properties: - cyx,a95xf3-air-gbit - hardkernel,odroid-c4 - hardkernel,odroid-hc4 + - haochuangyi,h96-max - khadas,vim3l - seirobotics,sei610 - const: amlogic,sm1 From patchwork Wed Jan 12 02:27:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 12710903 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 79C8CC433F5 for ; Wed, 12 Jan 2022 02:32:39 +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=sTVTakAeOS13nDCv1wODCLuOcaIoGltAVmxVaRStNRs=; b=HyXnm7QTLKvYdX RlA7exAzdDPoYnHPqPIwdKqOEHXupFPkhn0BscRKThu5WTUfCdyD+SQDcE21GaPt/Nw1MNcYD5cd1 oryEgBwCYgoL8fUra6sEIpYi8tDFMskpYfZWRvYS6NsgMcDcna9IqhkCagsoOspQ3z4/UjkLSniCI 8EVFv/0+4rF0tiyizXaDXYDKGUNqUb3nDNHYM3unE9UwVla21ht+v1yeIIZif1aywvmgQVcoRix+R HPtk3D9wfNbsw/Ikh1g9AUPdHB7RO4wiHNQIR2GXgFB8v2SOxOlmRLaNSzDv7rp4F3EKj9uXWD6Sd w1EFxb4u67yxALwXGzCA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7TRB-000tMa-Ue; Wed, 12 Jan 2022 02:32:33 +0000 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7TMS-000qbL-P9; Wed, 12 Jan 2022 02:27:42 +0000 Received: by mail-ed1-x535.google.com with SMTP id q25so4014857edb.2; Tue, 11 Jan 2022 18:27:40 -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=SNa+j7/TwcP4VUtNhzibteAqwPTDSMTlSS3cYR6qMFQ=; b=U0+h1wXbzY5FpnpNy7X5kjXNkag3rzvNeqi27aGagm0B7YLvSqSZNd0tpK9CxamQWd i4iYlOAjfU2cpbWY+qOBJXGqlxvmeENKbgYmKSupkhR86KZ7ejQg2eAR8JtahUXNE/W7 Dbt01NtduyTMUfvhrzZ2Ph1IZy7SFMhJaPUwmeXQYjoeOn6qPIFoD3XQLsGjD1XXp9o5 OskSgk4xWEFlK6RdQ1m3qlKbwT9eMhW3cyeoxRGYwkCgebYbr667ZgJb3psNHam5zYmb V2J6kAfn4zGUbfSYV/wfAagtfM02h4IpFzd+5AdVCxUc2Mgd3I7mkXNgCu/vBauXGwLY Lcpg== 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=SNa+j7/TwcP4VUtNhzibteAqwPTDSMTlSS3cYR6qMFQ=; b=Phbe683xiMHYme4krmT0Pf/GDMafwuAgMWIS916fdzi59gSj9XB4ppdEUnMV+IdagP +h2anLWD+8zIJc4cfoo++kX80tu3fwValwV8u2NRXwq/B+cssbxcjnBl5xT1AJDVM6Rj 5mkDE7FjCwSRrxnyIPi6oiBN7MTRPmqTOomA5nHC+TqRYYEFc+4sXFK/Qd1Oq5sgprcl 4Qs0kEiw6Tm5CN3FPR77poiOCBOT+6RMrZpayWfrIoOud3k84DhUmjcgFD8wu0RnxWpV MJm/NqnpSTyaOSjz+ap/c65FYjLGLG+adK5k6XWnPQae10ua3khGmpGVUqq68cofUIwK SxNQ== X-Gm-Message-State: AOAM532JGRaKcft79O6niwu3TGpwMaYJpkBpmK6RdkjcWc0dOzeAMJDO V9IH6vlJ7BKHQkDhjQXVwcc= X-Google-Smtp-Source: ABdhPJzvFGiWoX4W2o2s4uHZQPISZivJLar95CkhPK9B7hN6BJAR4kdmwZ2mLiLbfoHCBxuPKYFokg== X-Received: by 2002:a05:6402:51cc:: with SMTP id r12mr6874849edd.92.1641954458939; Tue, 11 Jan 2022 18:27:38 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id ky10sm4041772ejc.151.2022.01.11.18.27.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jan 2022 18:27:38 -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: [PATCH v3 9/9] arm64: dts: meson: add initial device-tree for H96-Max Date: Wed, 12 Jan 2022 02:27:13 +0000 Message-Id: <20220112022713.25962-10-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220112022713.25962-1-christianshewitt@gmail.com> References: <20220112022713.25962-1-christianshewitt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220111_182740_900106_5E1159DB X-CRM114-Status: GOOD ( 15.97 ) 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 Signed-off-by: Christian Hewitt Tested-by: Benoit Masson --- 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 e87adc6593df..868d74044072 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.dtb dtb-$(CONFIG_ARCH_MESON) += meson-sm1-a95xf3-air-gbit.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"; + }; +};