From patchwork Mon Jan 3 16:39:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 12702649 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 28597C433F5 for ; Mon, 3 Jan 2022 16:41:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=N6DC6dc01M9cdCQhaqo1YfQ3ENK/QO5vTcVvkzKN6F8=; b=ntMHXBlvbfIuqz hDAyu9meVidojFqesp7Un6xO4SpzUml+X+4rRLfkwL6x6Y0tL9yzp2HA01GdiJYtnhPoYAaFYuyhT RZ2xRU9JrzhApeK+qctWJvtm/MD93CeV4ZUivkLV1ApHWF34oHyLG3qDgayWMuF22FAEEyqh6n7zu Sr6L29SLW55aIFzHjv6sfIYq6hcQqsbaF5X/GNMR2v2Nii6nWPIVvodEYqB3P65fqmSoP7EyfK10a PCX0GGnDZcVeiHN57IdVvDu75khbToayt6wbMx61qS8Tr3i+KkerVP3nkZp4HILoYz7Bzv7qE6At1 bRp2kvNhjeQjFWTAqTbA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4QNc-009Tt2-IL; Mon, 03 Jan 2022 16:40:16 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4QNQ-009Tnt-4b; Mon, 03 Jan 2022 16:40:05 +0000 Received: by mail-ed1-x533.google.com with SMTP id m21so139219945edc.0; Mon, 03 Jan 2022 08:40:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vzmVBHIO5IOu5vfTULToLc/CeRBR29/MG9jdhBSdFqE=; b=LEpQDkH2fiLxUy6TyHzUrRfjpVn7ZoMLeloda+2YF2p9rO7lA0TRIuPg35F4WMiBGu hhiU158R8xHGRU7bqrctilQhzKQRuT6IoIispNwrppzDM9nEYZF1vk8zfDgk5LdVcRBn 53pFX6ABeslxYnFAykoK0PzKKmSkWCl/TeXqz51HRgmeb9ecxFW67q2C4B4XlXLbVex7 SWJ1kyZZwJjWXESwfJmMzdJJVhVsv2+B16W60WR7vhJI+QKf529XPhjzizkSBlRrCnD2 pGrBQ85ZS6DOY+1uNg/XptD76tmrCUniJf1aHoHVQgXGgDYV88k6M74lSOhVEjyIG18W Qang== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vzmVBHIO5IOu5vfTULToLc/CeRBR29/MG9jdhBSdFqE=; b=FZ/RUOmSPuWU2UsLc2oMRIRhcPCEZXOF0+DiQnzZQblPCSQqxNrGsqQZhtggIxtV9Q qC9XVhh+BU9b4MB5wA2m8Nzgvxk1meZpjejPSptKk54qf0IwHzmyIpF/4OQ1VyGkK3Nr StiL/sk3a13JzIb2UPOZUkvMvS9rA5AEDpYvtDBlXTL3P5JhjnxM+zs+JLfLNsG0s+iM QLq2RdRDM01EKgSfzBRe+7NNUj2PPia30iAsOSyt3m5IuQxJ43pC0hW/xw2ZkCLs6/b3 gh/+SzYp2hYC10l6Mg3pOBmAbmPIY1eY0tcYfJmGBFGf3COqn/fBL0A7EJAkYiGV+4nR DOrw== X-Gm-Message-State: AOAM530Gs9umBeN63V9b+1WH85hSjekrdsXAduVLA956vcPWNddl7Taa 64sKKKBoRloyJLlFx9nP1VA= X-Google-Smtp-Source: ABdhPJxqqx/XRCDGwVuousVaZvamzxLQmwO7oT5H8Bz6AuVyORlYp7TqTdXAfATS8BMzuCPLJPaH+A== X-Received: by 2002:a05:6402:26c1:: with SMTP id x1mr44745380edd.188.1641228002991; Mon, 03 Jan 2022 08:40:02 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id oz20sm10724068ejc.60.2022.01.03.08.40.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jan 2022 08:40:02 -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 v2 1/9] arm64: dts: meson: add common SM1 ac2xx dtsi Date: Mon, 3 Jan 2022 16:39:48 +0000 Message-Id: <20220103163956.6581-2-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220103163956.6581-1-christianshewitt@gmail.com> References: <20220103163956.6581-1-christianshewitt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220103_084004_209615_7AD3A972 X-CRM114-Status: GOOD ( 14.61 ) 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/s 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 Mon Jan 3 16:39:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 12702650 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 3DC6BC433FE for ; Mon, 3 Jan 2022 16:41:38 +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=SJrf+qGY3r6xnpif4wzWov34Yuu9ZZyTIiX1EsNIlJY=; b=qHSwgsR+5Nlinc tgT0r6gZECRJCsrCQ/ibibSQrHvW3mTxpH8mEXuHA5dSSrzfIZpajAuvxPnoBa9PidbIygsPVBs7q PIn9Zu7MleLZ8uVrzAiL4oeI5a7bjnXI2EK0Y4XNjVPYapACuhLpLDBpE3ogJMF80VzBfdcAtmuIn 5Y/77EvjXi83VRMTxfB3XTpSzxfMIgHe809cPrayFHZBol9yzray+navdtcsajODD/esfFEi+POcH s546K48XQAPDtGNbT7Wh2bU6j0Bier28QPyojb56KTVrJMtbJQtkE7wa9Wu9QrgRQ+gh5A73S3LB/ 8TiCJckTjy66NZKVajNQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4QNn-009Tyd-Lb; Mon, 03 Jan 2022 16:40:27 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4QNS-009Toh-AB; Mon, 03 Jan 2022 16:40:07 +0000 Received: by mail-ed1-x533.google.com with SMTP id j21so137900770edt.9; Mon, 03 Jan 2022 08:40:06 -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=Ojj3JoMdycerIw0d/UxApbq5HUpT7xWvP5YgT79gkVY=; b=TFzj0ZSMTa3hnEDtT/XXW8Row18g8J2GgE4ihZIeiLLgwinpikb1bjmFtsye3RjBSa 8A7EqKH6i7s1mTRgeltxYPFqqfSvhYEEkyDeSZu9NwHtlJ39rzqKu8s/qnz6FHMZTFdB 9qz2SEhw4pq6EDMwA8pRXbI6gQrXZGJI0NPl6fhAClFSScuNTTZj+V4O4ae9JbYRzrYI yO4k2Wytx2z84hdtJVM4NrEhQejcRow1FaiUzLPNA6hvqnnVONIGzxrSSJHjsEQOCBlU 6i6Svho3FcEgU7CIQz2nntEcEBlbBmU7IEINQ+cWwS4nn2O3xzKjAVFcNOGhpElBDeQw jvJg== 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=Ojj3JoMdycerIw0d/UxApbq5HUpT7xWvP5YgT79gkVY=; b=GtA4jNm44rpZKVHNPNe3jdxcwT/GXjp7WvFcfXBtlP6pn2xffE19bJNdNb7aaLqWao ehbKeTLrM4tqpAuR4IbiPoMhKWf9wokmpJs92H1HOp5z2cGt7PaQ41ely9rcDth6gp1J 8QJoXyuSBLG7FMfjllzSSWSZlrRnNd5iv6dRd/eFc0seOPYbICYIXrt6CpItelaYKxVr JVlUdMWyDrR9xOFZxGIz9Rpu3gi3uDI7EieGVBbe9sJ9ASJZHFuZL3srGF0HqeOy7vF8 RC3wj10dEv/K8UoUjqFgvu9NmTOril5Yk1fOP9NJSiwx5YB75vbxRI9fZzGFwbXt294x pjqQ== X-Gm-Message-State: AOAM5313XboocxhmOJZKrJe2qTOWOfKkF/zQvwHim5Sz9xDOgwM3Y1jb DGLF91CVcAEqC6++WptrJb0= X-Google-Smtp-Source: ABdhPJx3UBgodYsd+FuF9pGaQocd2DWemM2LohjQS8m8f0suxzXluEs0Of1L3OVVTxIuH/3VluM7/A== X-Received: by 2002:a17:906:58c8:: with SMTP id e8mr35892370ejs.444.1641228005142; Mon, 03 Jan 2022 08:40:05 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id oz20sm10724068ejc.60.2022.01.03.08.40.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jan 2022 08:40:04 -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 v2 2/9] dt-bindings: arm: amlogic: add X96-AIR bindings Date: Mon, 3 Jan 2022 16:39:49 +0000 Message-Id: <20220103163956.6581-3-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220103163956.6581-1-christianshewitt@gmail.com> References: <20220103163956.6581-1-christianshewitt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220103_084006_376719_FDCD993B X-CRM114-Status: GOOD ( 10.31 ) 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 Mon Jan 3 16:39:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 12702651 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 EB9BBC433F5 for ; Mon, 3 Jan 2022 16:42:00 +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=lvc4Q+GF1J6aUtB9hrHuav6CnSlDTY0SIagVDzcLiBE=; b=cEN31+93o3RetU pyVBzeXM24B6yp22LaxE8rIra4w2WMOEJvvr4JafLc/kN3sotR4kUNX9r3U3XWOZ12YJZkw6hKlDE a4pYo7AElPgggPOESYChklkAKESiUneOC1lC0jOlHA01BylMnO8MXcs/mOSkbaa8POP+lFrikrhu9 5eB+07dZjbXt7URuKxVRU4MThfKZakLwRSgop3UK4Xtvxb/rVInpgveShtfeY39NfwmK+91U7fFwG JzxJD6KqUVofW0mUq3QIOUpgxjXl3XStHs7xq7fu2KANhgWyDfqAPWCyBuFFPv4amcYeg5YCDn7Vp 4vOSo9cUa8bAsXrr6r4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4QO0-009U5Y-VN; Mon, 03 Jan 2022 16:40:41 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4QNV-009Tq8-Dr; Mon, 03 Jan 2022 16:40:11 +0000 Received: by mail-ed1-x533.google.com with SMTP id o6so138068596edc.4; Mon, 03 Jan 2022 08:40:09 -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=vStsrYZVlp3JaiviApPbcuDrEz2SiF0uoKmHROeaDn4=; b=qIuhW22wiz6dK8EMqrWIqN3hj0A1JINBExPi5I9Ci6I4wyyg9IjamjeczFiCnEXxzH Fc5nHtTrHsPw3Po+9ECfLHEmz2rEG5lVdXDA0zyChFE9/fxzUTnbHWBs7eGsA9k6zuWX DDz8s3S+XPsa1GpCbMyFgaFUDKlHf5b6b/KXO1yL1Y4yHgbDiVT9+JNEGQvruHzETTVv E2SuwGo9MP6J4m/xphQ4iuCEVKfVK7DK1TM3qNSo7uuG53QrHoxQor4kWKSCoYIjWkDA pHWyyxqNEIomXPBGFjlMnszKqqqBTGSAJI3rMhxPejRYMQ1y/gykKeaMb4gJL2mkcyP6 lqeg== 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=vStsrYZVlp3JaiviApPbcuDrEz2SiF0uoKmHROeaDn4=; b=ubgB8/S/yRWkt+PvCCGSHNqaa5qzGP/oY4AuhghDn+nhFp5KKUIVB9WIz5eSbcOUQK 8ofNfRfj3hEHrkq5eJnYVK6waUFc1QV0u1HVMJ5FBinAzpJPlDE0zUMgqWLAnNt2PZVs 8HGYj8hdiAsx7+ihXLBVxz1tMiQH1Yf6f2Y31DDzXRlPw3z+kmLV49Z+U6oZhZ16csyF p+ocvfFEQhXwEP/HLTcADkuv9yUHPPo4vkgaX3VplPaqFvDNtbMLMUge7w40BBOMaNcW ECdvFGW/hoZdPt9LRM1VeBL5jXP9vf9Va8iT3a+baTaKDTZbkxV2xC9kmPU3BwfDcArt CHUQ== X-Gm-Message-State: AOAM531QwHVouM5r5ttJ/smo5Dd0si6CJTqW3fTB4CZQ+flVqZE8CQ2E fdaVFYB1odBVeqa6DsAboog= X-Google-Smtp-Source: ABdhPJyePyhpIfSxSNR8MJh3Ch6yiGxxSu5IAoaSJbk4pTVgFi1/kiAmf/hMLdJMFGdIiR8e56dJdg== X-Received: by 2002:a17:906:828a:: with SMTP id h10mr37074462ejx.164.1641228007310; Mon, 03 Jan 2022 08:40:07 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id oz20sm10724068ejc.60.2022.01.03.08.40.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jan 2022 08:40:07 -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 v2 3/9] arm64: dts: meson: add initial device-trees for X96-AIR Date: Mon, 3 Jan 2022 16:39:50 +0000 Message-Id: <20220103163956.6581-4-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220103163956.6581-1-christianshewitt@gmail.com> References: <20220103163956.6581-1-christianshewitt@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220103_084009_502015_8DDCB536 X-CRM114-Status: GOOD ( 15.45 ) 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/s 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 Mon Jan 3 16:39:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 12702652 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 0F54AC433EF for ; Mon, 3 Jan 2022 16:42: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=NvMRreK1dlHWqK rBmTiXmdVy8RJoDNu8vpjIV/0Bt2rBSA4CGyRG7WK1EJuQ0OtIETIRyIN8VCYUzNMKiRCwVXD5s/y rPX2WGjnwQaZnPmwtB3GNeLCgSQtazEOvbLBaqBI8rnlIi9UrF4UEOc5xGxQL8VdPlvMHOq40WJTR nauS4vi2ZYKKRuvDVuapDaS4OJlIGPWO7DN9WHGatpBPxODg24D1lWXHH9k+GEcUdoMXKL1eEagD4 NQkUhhoudi4mknt3hh6nD0ODcmVP2KqKqxchol76IIGABTvlpLc89RNL40gKXzvDuwEhOCAXu3U68 N+GiJPvRYwT5vXCS1zOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4QOG-009UEX-On; Mon, 03 Jan 2022 16:40:57 +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 1n4QNW-009TqW-Td; Mon, 03 Jan 2022 16:40:12 +0000 Received: by mail-ed1-x52d.google.com with SMTP id y22so138079791edq.2; Mon, 03 Jan 2022 08:40:10 -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=J+ZdGNr8AkYghMKpIa3F7mCPljZx6ryO68WZ/pbDDoJKaq+8z75X1JhzdzfDrCkrPJ Na/ttxLv3itVV+pn2WmtFRFE3oIpf/YJv9j+yqs5S372C9ENGcWVTtn9OfP2Ong10qSh pWoQumzkRURyZ4n/P+sOlQih7n4BQkdVlORGRdihGvCiMFbXiBDUE9LFEM6yr+KIV89l BfPGRDTqh5Y0GDvInLBoMEXkLie3G7TxkCe1IE5wSRa6J7iZc2kiWI9PUv+FxYepMHu7 NhMFtpD6Y+EuoCt7T4k6Xi2NlVpfytm8IKLWAFMl6H4KNIE6jZTA+WrBRHFCEpOhY8gP oHRQ== 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=EcU8jCGpw2A1DKraE+kZmaUnuVq8AZM5jx0MBm/sxoobBdPNsfXtkh73A9sCca/wqm WA6tdKbutsYNI3sj2iWxGMnRBXOJiPTSsA+7BDSZ2uj3kRmE5gJKTwZMsD+9REGceqZl kcoW6wo47Rh4WMGh5M/b1FQxDIRKQGW62xoN63AQ//ihfPs9IcgQeRzAwckt+kn2dkEG 6F1xpfUw+tFZWhnSF+/Mh+Ejwl1p2jyFk5augn5C0S+Ifdqx3eRjseIgoH8quBjX6hoL 6Yj/hGzhftvFVCzP69XiYBkn4N5QM/w3xl16VbrQqPHQPK7jFOOqlxtCIxg3ijyKRywF BKPQ== X-Gm-Message-State: AOAM530vJVzlY7zns6RuFmDulA5p4jBylV8V7vsJMDHN3gvAcmKq4dhU vORxBRZ7z64bCmsEBXBqFhY= X-Google-Smtp-Source: ABdhPJw/HvxGgBV0K7DCOi4nqHrbVeEoolbUJBcxbFkyLN8rxGHcFEo1XNTiTLe3POPYhr7uCOey9Q== X-Received: by 2002:a50:fc91:: with SMTP id f17mr45465632edq.252.1641228009502; Mon, 03 Jan 2022 08:40:09 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id oz20sm10724068ejc.60.2022.01.03.08.40.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jan 2022 08:40:09 -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 v2 4/9] dt-bindings: vendor-prefixes: add cyx prefix Date: Mon, 3 Jan 2022 16:39:51 +0000 Message-Id: <20220103163956.6581-5-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220103163956.6581-1-christianshewitt@gmail.com> References: <20220103163956.6581-1-christianshewitt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220103_084010_976610_852A0C69 X-CRM114-Status: UNSURE ( 9.25 ) 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 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 Mon Jan 3 16:39:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 12702653 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 EF7D3C433EF for ; Mon, 3 Jan 2022 16:42:38 +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=vJMyBpwUytLEhlGoU7fo2gjz+pnRcU/ILGo7KTfx76A=; b=yOGGTwj+hiMtnX vROwYRQP4UG58UxhBzjR9aZJPKnyRPN7rf61KbYx/+OIItMk2hXXz8k+UYMsjFp+JktA3zdCM8rzz 5EwkZSN49e+CQ8gajsKNYLKnSEujbd4vhsJQmikyjrGQYnyGu0WxQ3vzr0XRW/hqE1ane11EVr2YC yMpM/GM6t4k63zpJ5eZ+4M/jkr9Ci2VpMqMpRQJe8bvzaMVZIPmCAhGtjA8mtOptZO/pIH4nlVlm6 vJjuXxUtNtOrq/i/Fl2uQlTGOSYbGqEN5M59dgnm5dlhk/EnK1SDuv/v5+10Ef0SUXXEIbWpcBuKr pcpXYVrSVLvzOG2P9HsQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4QOZ-009UPO-MY; Mon, 03 Jan 2022 16:41:15 +0000 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4QNZ-009TrV-4v; Mon, 03 Jan 2022 16:40:14 +0000 Received: by mail-ed1-x529.google.com with SMTP id j21so137901747edt.9; Mon, 03 Jan 2022 08:40:12 -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=bQqNEXrT2MXdan5ZsVv1uva0kQxDujM7b0rj46hBiVY=; b=je6BG00Wk05INgxTy7W/4qdN+a5pAT7i4QbDSsWue7Ekla331t4f8vv9qR7CpPuut8 gNR7yt4/wX5FD4sFzAw4jIwt/32+ENNQ5Puaq+kAstuSGF6Y/RgRuNC19fGZ4GrcUUyg h6mNmkseFQPkzVBEUOry9XOdejzFNx2OuOL6ul7rCvnX86BVhjG8aiy5iweceNmY5Y05 HDHiOdvrQ2BKfWKdxDN8TpSoDJxZMfkaZzEYgfDUAfSVjxf3KQ/LGHwOpeIq1dz+ttCq doQYNfBE7FBiqIbZW2FxAdq5b6OnyXeucv+jSxfBDCfZMT8BaY9U/n8ExbIIPIDeLjZb q27w== 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=bQqNEXrT2MXdan5ZsVv1uva0kQxDujM7b0rj46hBiVY=; b=htAZ0ktjrUU8QebeYsoxVLhsTjsHmhMRETw9gOAAN3AV2s8Zohe/CZ7fY9qvC06zP3 cXmVW9JVlf1spS2nCJJvC1OUo0VxTR7L2kIsRPmLanFI+E5KN21TEU0KMdyqgx2wiXI0 8QfMjMIauDgnwUcjX7L5uGw/3r9OpLybHuvHYWe2SUd78OaHiPaSwF5UkM8NIhlKu+mK PAWy0N/sTrtFBXWuuPvmsNgCp9Gs7GRqAH4LtCkmNgCZ7e0ycep0aKtwLLjhUd0yeHMW rHXPMfzbWYZNh0VpsH9/gGG6ICXYHHjYQtKTgD9qjI7omic8IcSJtstRNl99SAK4eAOR esoA== X-Gm-Message-State: AOAM530/myp2pf+U8/mS8hJ4b2085hT0ZXSWLt06QBK5/kLwZBx2EDXi MnkpbEXzWZAIV8UMOpLWwoQ= X-Google-Smtp-Source: ABdhPJzIKdTJJ02JiOO14GTgXAyke/OephTqfGHR44RLsFJAP2jLBTPjv7NSJT5mzyfnEmScVKnFZQ== X-Received: by 2002:a17:906:d96a:: with SMTP id rp10mr35270813ejb.614.1641228011693; Mon, 03 Jan 2022 08:40:11 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id oz20sm10724068ejc.60.2022.01.03.08.40.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jan 2022 08:40:11 -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 v2 5/9] dt-bindings: arm: amlogic: add A95XF3-AIR bindings Date: Mon, 3 Jan 2022 16:39:52 +0000 Message-Id: <20220103163956.6581-6-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220103163956.6581-1-christianshewitt@gmail.com> References: <20220103163956.6581-1-christianshewitt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220103_084013_211438_EDA69CCF X-CRM114-Status: GOOD ( 10.37 ) 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 distiguished 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 Mon Jan 3 16:39:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 12702667 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 2A172C433EF for ; Mon, 3 Jan 2022 16:43: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: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=ReQeD0/5WYZVeo +j3fKtQPWCuQ10sDeyXiIg7kpvjON8XSHyrrqA3jvwz0bP+dOS5RIPIoICi1KbDCloARGQwvkNSmR ODCIfj5nZA0ICupYTXM4Ap1icSPZdEzWBt3SrxekmptBeK2nYxN3LDM5gizIx5ueNlAkmMTXTY/V8 kKTdiiONG/iFfxinQErlQF5M545RrCXaDfGv/e2eiaKOJ1QF8im1Y2ExPQMFwu5JgKIMg1BoeaYA1 gSRddryxPY6MDH96PZZvPGvV11XSVrFFj9d59poI5g8HNbPc8JhnicHogGqhMQnTXiwNs3PWm6kC9 ocE4by0JZyWvqCF2im1w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4QP7-009Uil-5Q; Mon, 03 Jan 2022 16:41:50 +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 1n4QNb-009TsT-Fa; Mon, 03 Jan 2022 16:40:17 +0000 Received: by mail-ed1-x52b.google.com with SMTP id bm14so138044712edb.5; Mon, 03 Jan 2022 08:40:15 -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=le4RW/ceQCRzW4OQzZRtWu3yMn4tTkyKS7dcAE5E8pcDvmpA4cnka3+VJCBzv9Ar6h RDhwFLvJQATr70QcXBN1MT7v/urUUBQ3j1ZaZa9C3gc/iuaT2Of+Dl8l3Tiu+6fkL6qr XeSKb4BEFmd+10BgKh+OlFH5+rOheLhRdWNMCeEQfIdl+s7hMFC73V3tt3kiQD8G4EFR Fwd2MaJ4evlrWebZiwKp4p1MZIQA2aUPKebWpHYmto28u3YZcmY2QWgc5G6Wbwmqelsa mXwi+foCxTFI5KchYgNe7xI6J5yrmgKSxEvDblYknEoes2s7LrjouAPuVpPE5W08L0uD 6pBA== 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=fRE5hF0j+LTUufohyoH3z9G3ju9KML1vdLjfTHJ+9CaA0HJ8gc/KhIgvgNTQ13ATtf ZFQ1rbUyQ50Mtz/UnIVg4Vkcb2wfo9QpHGv97/hRx5cTiFE6oNeH0lDzpmpKU1NHqh9J ZZ88KWsl6KgCCG4Hw7e4Y71eqiTbnzIVkvaoeWXg8vaitHbHuzO1jisYVyn+ihjdYDzE 1kTN4qW5fMv+fDYBZLM//hOt2w4T9/wk1Ts/ESjNobGQH2BAndfONxMcWWWgatkcIYTK FXYWD3sDcWHMH5OfL056G/jy/qJErxxFXEfhht9MilzWiQ3IXZ5am3AIApqbUDvmDSsM U5NA== X-Gm-Message-State: AOAM532aCxUvN/KrrjVI74xrovAFPSu6TpuGIR2OMDac0hbS94rurrT/ LmT//UMPqmcUv4mCPmfoAC0= X-Google-Smtp-Source: ABdhPJxNvb3oz+F3cMgT3oanm4nHXyV3eZZN0dV5aaaZstdgF5sYYgIJ0cWYSUiPS63BkhH7CbM5yQ== X-Received: by 2002:a17:906:4453:: with SMTP id i19mr2328721ejp.305.1641228014009; Mon, 03 Jan 2022 08:40:14 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id oz20sm10724068ejc.60.2022.01.03.08.40.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jan 2022 08:40:13 -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 v2 6/9] arm64: dts: meson: add initial device-trees for A95XF3-AIR Date: Mon, 3 Jan 2022 16:39:53 +0000 Message-Id: <20220103163956.6581-7-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220103163956.6581-1-christianshewitt@gmail.com> References: <20220103163956.6581-1-christianshewitt@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220103_084015_557322_305ADBBE X-CRM114-Status: GOOD ( 15.39 ) 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 Mon Jan 3 16:39:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 12702668 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 7D9FFC433EF for ; Mon, 3 Jan 2022 16:43:41 +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=aJCXtHLEBT+dr6 skFZ84aoU56aV148677j26atdWLZyv0KSw5FcUI/UTaCua8XweNY241aAtd1DaKTNaP0qnWGTNzSu +TIy7n/GqQmmhh0a4LB2xaR7FqNUVyhV+Ywxars5U8bLyFk1V4rsGjjlPz/S9tQLIy1hrnV2UbBJz xfP2PibXUwEOm/5XDXQbwLjwlOPFo6hoITSQE5gHTdI2QqF4b6AhEQztlDBo8BI0ljxxmMIfqKay9 rPTrYQnE48+8deuynr752rdxjK6yKCGEj3uwsadNgYIg633e60JfOesBiiIt7qmzIlgssKhpNHIWC Z3195N7sxn3qeSXQaxLA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4QPe-009V6L-Vu; Mon, 03 Jan 2022 16:42:23 +0000 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4QNd-009TtK-CH; Mon, 03 Jan 2022 16:40:18 +0000 Received: by mail-ed1-x529.google.com with SMTP id j6so137890653edw.12; Mon, 03 Jan 2022 08:40:17 -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=eJRD0DBisN7t3pAGm1lnNod3s+twq+23fhijVgFLtr6cJmBvEvdXpFInwQa3pzvhsW /vmeCfG1Hkep+8msZUrkh2Yv1HKE8fr2Tm1KeTMuf8hpK1pWJEAX5vK6ZNJXCwsUWIBc D2aCBak6QXFCzsINjwmpw5SMB0HPWJhfMFab28PTxV1xFl6kj7bvO2GNsQgqqmcOiv6L h/X3hVbCsY0rk/JYxyXXc+7Hbakxa/72tyL4bdmGIw+I7tWAxeYXXe5KGT0CM6r5td+B MMQtag/JQ1Un6JzTOF/K/PnZ3wBYD+MPQFytT1QhzwBwud2oRzNET8Sp/gDfB26LUF0a soew== 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=LAz36gQuKA/ou9HrtrwCHwhHDyhqLXFhq1qh0uI9M2saRFue6f47HvEj2O70vFVCs6 HnXLcVMu+mirLWkugzkWWbzOnitDYA3taBvSFv7jP/tjds0f0yN73TLwVg3oAnue8qf0 t3GAUf7QGVo/y4hcFYy6H48YA+h3WFYed8VQxCNPXKIjtywiN3Sqx4teJDp99kT4qDQd CuXF9HI1pUNAjjLg/EZujVq7BaygNt112zYMVz4QtqAMUVY77OsqqLwrO/M0AY2E26xc s2XCezgQ12W4KO19zeInRB9mrbFs0+mNMs0OQsjDESEkwU18aiPhZYe8CeTMgvRBlwWf jqvw== X-Gm-Message-State: AOAM530b67+3CJIuon1InsceQCJMdVQG+8+S8Uuz5MEj1w0+o8XdU8BU 82A45Y73WqqCklcEoH6iNHjaT80kaHpT3I0d X-Google-Smtp-Source: ABdhPJzVOoXMXBvkqwiDrDSWsZKsxFjSa4a7Xmk9FjrF1EiMgHNhCKVMsNGs0VY4v3wi2hnM6ulxYQ== X-Received: by 2002:a17:907:1614:: with SMTP id hb20mr39448769ejc.606.1641228016213; Mon, 03 Jan 2022 08:40:16 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id oz20sm10724068ejc.60.2022.01.03.08.40.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jan 2022 08:40:16 -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 v2 7/9] dt-bindings: vendor-prefixes: add haochuangyi prefix Date: Mon, 3 Jan 2022 16:39:54 +0000 Message-Id: <20220103163956.6581-8-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220103163956.6581-1-christianshewitt@gmail.com> References: <20220103163956.6581-1-christianshewitt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220103_084017_457107_2A6351F8 X-CRM114-Status: UNSURE ( 9.16 ) 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 Mon Jan 3 16:39:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 12702669 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 5489EC433F5 for ; Mon, 3 Jan 2022 16:44: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=r1RriHqN5Kx8Xh6f3hUq1221wHIgrX3EXzkXmlra9vE=; b=smwGM2CJKMu575 kgHPhz1LS71rJagnfM/FJz/352nLkZaU8oVVEd00fO/APY7Vl+nrcgOyQjMAjcujno6MQHAnT6/Xk NA4PnazgJdtwJ+8dZjo230Sz20NBqxlIAB8h6T+de5CELMlRktNMHJeOMdJU2gCjOJ8m7OaFtpzzm LS0qtTnQNTedsDsZKc2eHPSinkb7Kt7Jmt0LEzs9dPP138uDCCxDUf3VFgHn9QXk27DEj55uNnxcU fpQaiUE2Vwwm3d2Eo9ETPl6ztNIFymsSfKckaSJJArfxH0UkMueRf3lrl8XrvkYl+RowFIHNfnupP tsrJFGOUlAJOc9QLBz2g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4QQ7-009VMB-MS; Mon, 03 Jan 2022 16:42:52 +0000 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4QNf-009Tus-R9; Mon, 03 Jan 2022 16:40:21 +0000 Received: by mail-ed1-x52c.google.com with SMTP id j21so137902733edt.9; Mon, 03 Jan 2022 08:40:19 -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=XbtcbTk+0d63MTgRvVyftAW36gvzcgjXx8885TYnDKLlok8FoWRzRMEOthwRgZJYP3 qtiBdxbGzc/VAS54GMCABUfv4mkgK83VOnA/pO3tJb4C6Zb3prz66UYrihUA0m5RwiHO azfnxhZSu0ozVmrn6WKl/RIehFJof/xk7M1KR9j/JZYOUiljpjcKSf2qE9VIv8S24Z6c gY9RNVWOofahQ+UcQbI1jkZ/VxIK0mEBgPzgHKH6ExVft4d5EYrSVgTNYqddJM3K1J/i G+haxZ/N7Y9TDhiRLkFNbNEh22wxLDG6toEz58XPh2C6SgRDTQgNr9TKIv7OaNSehwV8 7/9A== 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=IxeAtCJilKwy2YAaCNzarSb++Fniu7q30dFCU+K++SPF2VL4kjYg/MiWBX6kHsP1eQ BD1bnVDLq3edfBR7oWDhFmNbVKAh36+jRHCRSiqaMikMWZY1ir2sTOAn60pgf8IuzPce q+joBi67pSlSFOLGVSb8NNBeQS+YIUc2sybrT/JN/4ddJeoUhbj9e24DQ+19bmzVP2Mi DUmzrUaiibJGsrNltx2SLOIwB0TNLk/S6VKyAtPjRLQBhQh5hw6NoetOqyPLObxK+CAZ 8cJvpTe53wnskKYnfC7gM3RTefNvG0tYOScmqKQ5OeVUjJfdiZlM+4cAk0ANMgxGYX40 dyrg== X-Gm-Message-State: AOAM532AY3Fn5Pr8ILPeFyc8+l4SLvrrETts0H2to8LwiPNBnBsVlajL 5D2TBHsUqDa1+k0cdLuclwI= X-Google-Smtp-Source: ABdhPJzb/Uq+kRSb6JYITiI0nFa6uoJLnm2TtaLrnM2Z1tMdcL8KyLIwHS4BmP5sx3vWQBAZ1c1lTw== X-Received: by 2002:aa7:d5c5:: with SMTP id d5mr45597097eds.251.1641228018404; Mon, 03 Jan 2022 08:40:18 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id oz20sm10724068ejc.60.2022.01.03.08.40.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jan 2022 08:40:18 -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 v2 8/9] dt-bindings: arm: amlogic: add H96-Max bindings Date: Mon, 3 Jan 2022 16:39:55 +0000 Message-Id: <20220103163956.6581-9-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220103163956.6581-1-christianshewitt@gmail.com> References: <20220103163956.6581-1-christianshewitt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220103_084019_913050_2E12F4F5 X-CRM114-Status: UNSURE ( 9.48 ) 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 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 Mon Jan 3 16:39:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hewitt X-Patchwork-Id: 12702670 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 493EEC433F5 for ; Mon, 3 Jan 2022 16:44: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=CDON+h562FDQwdlP8Zf3hyDy8pvQsA95SUfuCwnGJ+4=; b=akIO2+NQtYsm5n 9l4KnWqjWLyYFQy+CbIswkPD8g5LZ+h/Y51jZmPq72REydXnPKuYy2tjRBQoDhOYNn1vbNE58q6Fm mlv6xaltdNKurcieToD9g9R2HIMdr5MYv3/tOSEMU8VC3Za1lx5JO3Lqa0LiQFz00FRFMQUnhm0YV 8amh8KFpLmTwotaK/hWTjI9bsRGjFrJXTuCYG4YryHQwSgZwPgyZOsBeipct5Z9iLlTQJKpkjI4Rp CFpKmobKRiNUMYHs9aebWfLvNeKNbEqukscs4e1YVBZHpkeyuHMPs3gqR8ENg7YAxJ7oMdC103RH2 1Qjlijxqjq7+VI8p+obw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4QQi-009ViV-UI; Mon, 03 Jan 2022 16:43:29 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4QNh-009Tw5-Pb; Mon, 03 Jan 2022 16:40:23 +0000 Received: by mail-ed1-x533.google.com with SMTP id j6so137891370edw.12; Mon, 03 Jan 2022 08:40: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=Rfi9L2bbBr1rfKD9x2UDn3lo8VnQftJYAPISZCrx7BU=; b=UvVEU5fVWPTExKb1Lc6znD3JzGoOSSPsfgPE8XAfEvxwTxBb+X/6upIh0WuzZ1beU0 HtS0U7clrMbmK7cnwq4pDRbMCnxcoIgV2fzYHnDN6KaN14Ag1H81CAB8mJtiH4QoTibi wDH/LbzIgXWsnnbvxC583iFa4o1oDxlec8j583zJxEcGSFyf+RGuATW2wQTxtHHQVuJE kvs12wPxj/NWqvakJI2l9Q2TfoT2H9C6ho+SSwThL8JSQHYXvIPCQIWkt6DHxW+/ZYwh Wz5DEs5PIeDkTTytRM23KdxZVJrLyX0ZqFF8lXZppP6vLY4XfW6Q7lygr8kOLZR01rCA HTcg== 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=Rfi9L2bbBr1rfKD9x2UDn3lo8VnQftJYAPISZCrx7BU=; b=qwuh08Y0iFbFxHguf7qOsOrXKuw3OFSrcHYSW499Vic+KY5m7VNRMG4KwmzsZ/7MfF ThLoyrxEwULzHiSOoh/9rYYGLaK46GXW9LMgmFdyt4eSCPs5OOioVy6/LsfLzohVE+bD gDxQOOkRMlUvd7PEUghOIxgG4BnLA10NYGpEKzJl59GsKD8YzlOP+R6q3jn7e4a1VJ6K GOoOOwd0Uf4EokMNsJ2i/cEni8tvoMM8Dv1Y8+UUy25q2+VuzYndlQI1HxVHkSQc4H+H q2DTjxIJ4Hyb2I2QZHSK//lBW+MQNK66w7pel545z2abKfZVJ9RkoaLQM8f+gocnj4Bt z/7g== X-Gm-Message-State: AOAM531b/vBEsuy7igL8WoxBdaQkI6uIE/B4AlXZCvsx8VW2m2rQitPf +2JugOkPWr5BVZ1QjMEwaTM= X-Google-Smtp-Source: ABdhPJxyYY1khdP1fSLHsZeR9Cgr5nyNXwaA5aEoyOEbO8bzADP7u14un7Xa06quzD6PKE2WYpiTVg== X-Received: by 2002:a17:907:6095:: with SMTP id ht21mr35447671ejc.67.1641228020586; Mon, 03 Jan 2022 08:40:20 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id oz20sm10724068ejc.60.2022.01.03.08.40.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jan 2022 08:40: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 v2 9/9] arm64: dts: meson: add initial device-tree for H96-Max Date: Mon, 3 Jan 2022 16:39:56 +0000 Message-Id: <20220103163956.6581-10-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220103163956.6581-1-christianshewitt@gmail.com> References: <20220103163956.6581-1-christianshewitt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220103_084021_878539_A66CDF55 X-CRM114-Status: GOOD ( 15.47 ) 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 Tested-by: Benoit Masson Signed-off-by: Christian Hewitt --- arch/arm64/boot/dts/amlogic/Makefile | 1 + .../boot/dts/amlogic/meson-sm1-h96-max.dts | 145 ++++++++++++++++++ 2 files changed, 146 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-sm1-h96-max.dts diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile index 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"; + }; +};