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: 12710888 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 6EB0AC433F5 for ; Wed, 12 Jan 2022 02:28:58 +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=rmlTJlXO6fErImcBNoLvtf4TiPYIPXSx16I04/bAU6E=; b=uVBMNU/IMT1X+R x9WDy9fs3St5GEaa84Gd3+m4o+3ZB7AH4Ry9IkK+UPqI9NQFEL8TiChzHINEnakh5SJtSLtbVDgkg gHD3CoX1WW0h9UlZSINpg/ZupEimeIxcgUxA0ZQA6ymeQNFbzGz9PGPoh2pQTOyQChfHeUshoADOb VS/AjRKGgwYtmyMYVa5WI/cs5/WF3BSMS7LGXe9UtbLNGFkS+14aJ4zFD60FcpQwmUR22IZlzmKmB Rr+DrNvDDwZG05RIzdwa9UEizpVrWxLiki/LXHfRHLbcA0mdUe75UqgYQSZ0MgyQ5dGY5JJW265qt HrEZsUWkkGrB8MmjY7aQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7TMT-000qbc-NK; Wed, 12 Jan 2022 02:27:42 +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-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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: 12710889 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 2E107C433F5 for ; Wed, 12 Jan 2022 02:29:17 +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=5Nzmo0Iq74gx4M18S5IhDh53FmNjzG0grkOJY8yL4K4=; b=JOFUxmn7ndxtjJ 5q6GlAVGjF/BBf0qnrtI0U/5xr09hXoO0sHUurU0fQiYGNLWggNbk+tGICw4NiGUFRopCo1XJTSH3 wa2WaQd7VlaBq0zrwB0ATb1PjLuMnmQItv4nttH/LGrui8uraEWEHKicpJB9JSU7PfzH+5eNXgeOJ st3ZyLjGzzPGYWirDOtuWykQ34n413U6sGWSbNnkljD4vopHcPsJ5DMnAweOo1MaWK9c25CcTHATV 2CZJwCJtKUSb6Z/Ow6BZdONOpVt68CX+suSqGxaZzjCUN1PWO+Q1rDQbbZiwKCeajcKxxzKaxJMp8 YjhTSAX/9OhIiNDicHCw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7TMn-000qmo-6f; Wed, 12 Jan 2022 02:28:01 +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-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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: 12710890 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 19A69C433EF for ; Wed, 12 Jan 2022 02:29:44 +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=Vw1QJ/MBvIlKg9nZpWaKDlOmFE6YRROWZJtiRFxXnH8=; b=X5F0cm9IIg3JNi h4nFk1YGS1xjpEuwNwse2nSPeXqB6WQk6bnCrhHxoGJRtZXMVAZKs/Arncd3YypOFWUDZsYn4MaAm CkuKbLJkKjD8Oo5dt3xd7jkMk5XsMnSxJujKyJUQFe3ZRTpdfs4uicaeBON2UNQkDrMdZZWiGawFR 7I3a2jU+Y+LPIZE+YZiecSYS3CgJnYHNMLnciEXCyeqPb4Ucud1qctJRgqN8jh9hK9EIKozYyhmH5 bCIidArOkdIjV92F6BgFQPcLSGDFgEWSzPYKZ3idUQ7d11dp/uyIpeGL5Q9yaRdeg7Mh2w6YkicmE z74Ie2GWf9lHWVw/4R3w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7TN8-000r03-3x; Wed, 12 Jan 2022 02:28:22 +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-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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: 12710891 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 95D4CC433F5 for ; Wed, 12 Jan 2022 02:30:10 +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=ygH0W2v95U+U8buzax0pIl67EthI6ukPWz28vmkBL58=; b=j3YXBN8ImK25zp 2a3Agk7cuvFn74DFbV48H7JENazksdMoVfTk1ePyVi07nbEQQiJuXTzQiXThUAI6aEPuZMszYeuDg 19gPhOfFaiMTLBsTsUXrGuC6v+2MgfTJ9mEEgO1maD2gwFdeFuo6y0xfsmr3jSfRTT8+Acn2+LyVn hBExdtWMu/nVE30C2Lq2D9hAEYLi4lhoheqZBUuq4yMPrRHn15t8lAvZFHVodPAfmwLohLJDSnOR9 Crf6onv96Ee5iUjqyhkAiYZxvQNB/B4pjPA+d94DIqRnyEOWsQbgWL98+LMfkW4BHzYxb4NSPUE4r W4ZD2HbAjvDJNQ2N/7OQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7TNX-000rGx-Ta; Wed, 12 Jan 2022 02:28:48 +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-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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: 12710892 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 B2A23C433F5 for ; Wed, 12 Jan 2022 02:30:30 +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=2yPBK7MTQqUjVgwXpf052Cuq66YrWOX50u9pANacZ/M=; b=KESg8HAlSAka4h CYhOaaZwaX6Cq+w480GSTjPaBELNA+uJe3hPfVlHBLSdhOUolB04sZ0MNj8jUlbk661UYoKyOiLaz 6heIGPnqvV7LwXrnNT9tWugFFSF61ibhVsgN6OiqPyIYFjhcO3+gwUU5G3ywt5Yu5XekKi/Ho/YNF xlhTR+XsKHdbM4VZCrWeg2cXQRHU8qPw16Cuh4DCd9l5QSoOWrnV4sfLj/dYaYY4Zn8dbeIx7aQk4 39s0scOVDQqKgtXYZytusTl6Z7Bt2VG/3pQ9MWkI90eK40WPfscANhYnUYibZM0lWYoUJsa7jalRf oSFh2AuE9TtBvg8mSJdQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7TNz-000rZo-Mu; Wed, 12 Jan 2022 02:29:16 +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-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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: 12710893 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 706FFC433EF for ; Wed, 12 Jan 2022 02:31:18 +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=wB8/EaId3k9f+m0vAePCt1O7DItYyz/lYiHDr3oe3EA=; b=1wVcKouZkQj5U9 dyNb2b9oUMQwGWDvGkydud6+Ofxzy2QuTlh2zNDt1bALXbO0DxvxqbU0q3UcDnrgGgHxeDJLkcymU Ovgub9yFOEjqrD6M+kG9k9IX1OWNAUKqLP35YA+tjOPnF+tgW8jkLNtScRe+0Ih8cSO97vMWiAzaf rNWh9S/DAs1LWQNcEBQL7whGIN3mYTZlZNrL0zzwOhfn8OdVNZfP67GNKRWMudbhwMmeAhiPQu3Vv JJ/UlntpPrSR143wC/xdfD9R5lcWx9M/FCKjrjg+unaHP7lzHuuEa7WMkqTkJ1e+AZOhIpp2xsOer NEpdXS6Ju204Q7MDr+KA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7TOV-000ru6-2S; Wed, 12 Jan 2022 02:29:47 +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-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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: 12710894 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 DF8B6C433EF for ; Wed, 12 Jan 2022 02:31:54 +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=6yCEbPTd5fJ3jsEvPFTNYCoCXa/JZBCvQjLbA9PLPY0=; b=Gc/s7juHECIi41 SMFH3PJ6vPH6lIPENDybFZXKmtAI+I4KmZIzzkA1cdPpfKbbv1pAWcnBWZFeQA5hMKF8jqae9YQVu GMa4MNileRXIDJ137dX5zeB68mRBMfmWqe3KtjU0aLOv3azhFmzts2Gya6iYZ4NisZi4ZoE+Y8ogM 3nKF4O2aFgM8rDc4KWRdoUesRrTFzxOe1A6AUnCVtQvu50UgO9wXxH4TZkJnE58Wzgs9+3Yyl7fRM vaCui4z+VNSa9fntr+yRrlNC5lWypZc2Y1HjlE6eLskKch+2lnw+ZTRksPp9Q5hS+affqguEJbI9N HBTpqqxrBB2cOMFDERKg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7TP6-000sHb-Kc; Wed, 12 Jan 2022 02:30:25 +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-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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: 12710895 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 A4356C433F5 for ; Wed, 12 Jan 2022 02:32: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: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=r1RriHqN5Kx8Xh6f3hUq1221wHIgrX3EXzkXmlra9vE=; b=D24PxTXlDHCMmK SccYzlPzo0XZ3GVvB42o09d2/wzzxG3ar8QPgLtFj68d8p2aVX/XkRxYEAGcxSyk2sUlEUwWtUAdu MBQYDuOsRndKy/nkLcGClpotVsNWhanwEkOMWEULkdwkHBJTtJbHt5sr4o1KhC4kZI9oNeppl0pzC GLgEPky9uDYaz8CfdtbVatsDDHNRAX7S8y5xDmpWMBAf5djXjtnpm2mlPe933llAhBCEcgvAKrf5f Ae69hR2rmRzPiS25NI0gj+ZR0LXKSdQdxDCZIPHquBIAWwuDyutPfM3v8hErZyk3TuJ+YxueFbbI4 ahquZEveJPnTiTHuOySw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7TPs-000sgA-SS; Wed, 12 Jan 2022 02:31:13 +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-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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: 12710904 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 2FC70C433F5 for ; Wed, 12 Jan 2022 02:33:27 +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=9hS8sm6PYzkGJ/HGIFjXlR+xl1m3m6Dbqa0Q4FcRP88=; b=2dboOkhFTU/goz 5zo4ssd9Ay8CrN09UAkr5sT9E60wDv++qEyt15drEdXT5KG0lAk8cSBQ+y741WYEv0nTwYMVsQb1f Fy2jO7AU+V/l4dYh8dJ4TbtvqpDQ0w80kSKxa5lJj3Chs2xzddae60/mAL40O38cG4kkXsYaHF1/s j1GQvEgh3bYL1vFTqeq8B4NxUktQ0z3buv+kVv+GaAgD7e4PTACkCyy+f8YcGAyWGqRD3VGEZgxKe XIZfWdK/XysEnCa9qmwOVehl0c+CIy5JLf1Y5zzoegvZGXaH9UY/W6x6dfclpDkpLyF9UlU/5pIq8 eaNY00rcmT7l1SEIZ/8w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7TQY-000syr-9u; Wed, 12 Jan 2022 02:31:55 +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-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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"; + }; +};