From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F99FC2B9F2 for ; Sat, 22 May 2021 07:34:44 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E9AA961164 for ; Sat, 22 May 2021 07:34:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E9AA961164 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=i47dpeYX1WDAa43lfC9DthQgOnB0Fap7kZHyMi8t0/8=; b=ljqXHoFmfq0ubz1av6he0bssqX UI0ugOKqSdtkP7LHo4ksQmPlHl919kidFj1ocjgcm8bTXytP1xPbApjByr2rmirR5F5z1tMH6IWL0 y+pf3c6MF3bOAKhBqDIz/B/OVQHfFDzGmNDDARSgQOp+JhkFaT6ye+IE7xgYteNUzYuUDd+UCy5WR tM2Ij164NNYQOF0+mTx93k+f1RCn62ogxTLUCMKw4Pexcp7h7QgiH07JKiNu0EDPE3cTTjsL9Qt+t IWRG+Cr20twvsz5tJ0b2rZrXT/uHXvwfJcgMOYT5Vpw8eo4ElMiy7+5olebLjdac4dV1rUgt/fsKD ApbRseTA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lkM7r-00231H-A5; Sat, 22 May 2021 07:32:47 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lkM7i-00230q-KW for linux-arm-kernel@desiato.infradead.org; Sat, 22 May 2021 07:32:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:Cc:To:From:Sender:Reply-To:Content-ID:Content-Description; bh=WSZ2Q/Y0q3YRoddUYp+sP5TJC5PcpIK6WETfZxBFk8g=; b=Ad//MT1cCYIzzfTbys+CdqofaQ cxklUhQqz0WCXLSw5KwzROUL4Vg+TMLjaKNpPhUzq4MY5J7wY5FBUq6cOqEIAXNs5RCteBg83PpIT +iWdwyKzN1VZ+wgPrxuNqVXfVdUzI7X8wdJpKguyboYMeMKNkImH/LfixkJrjOxGepbHQocc+pC/m yVretOUbjUq85/YriFTarAayrZrEv9YggSsU5sWiDQSFdM7wGTkzIheH8SJdGAkCIe3ywpR72Ae1v KVz7mBL/TGulZPQzslH+JTKE7QlLgVNaZuim/XAE8+V7g1Ni2WkG32irm8Bl6cBuNQrdQTLvhY29/ VTcVhkbA==; Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lkM7f-0002Hv-I9 for linux-arm-kernel@lists.infradead.org; Sat, 22 May 2021 07:32:37 +0000 Received: by mail-wm1-x332.google.com with SMTP id f75-20020a1c1f4e0000b0290171001e7329so8289733wmf.1 for ; Sat, 22 May 2021 00:32:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WSZ2Q/Y0q3YRoddUYp+sP5TJC5PcpIK6WETfZxBFk8g=; b=S36AzcFneWYjgWZT59ihXTAK+LkYSOW5PWkjWRW5kvQX/up+Zw2MMnKfZCsqjKiWfU 5b5+NJZC3Mk17kisI1gjNIJKRIkx8N+GLPTWvxX8BHgpRxnNgwkaeSNYkxgAhbCcDBFK oEXEUnfUq15COqKjGEHx1QV/3Y8P4MUiO4mD6NyAhhjy1P55IgReSZCnN4V9xCi7FD7C rQWCZQUIbwbJ5AbM1FfqeVONHmRrScOYoXCHrEibgK9E9634kLf1bewF8Rz0FPI7pRzb gTr4Wv4HppqwZK27PMCD5kgkdgKgaaGzwwEmsDtUEHlO2NQ3mOQcU2L90JlyEenwzEX2 Bq8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WSZ2Q/Y0q3YRoddUYp+sP5TJC5PcpIK6WETfZxBFk8g=; b=PfSMXOpsfwYSf32kQb6R3l2bAt0gy4RYVgC1QTN+tp3KMaf9xkx5GxmLbozZv0sI6h JyTBJEyTN09NNNhw42ZyvDxrczZMWLLa9kXKSp8KbAx3XO9D8/tBrAJSagUVaqkiJBaY AH8sR8Db+AdqLx+m5Axv8mvbC+3WfQc6JXoLiKu1yL9gBPnHZvGUO4CyUvOCmdSO/iix pnAyBj2ubN1v+R3iBjWNm4s4OkrlO/clQDWR1lS7k30HOeqLx8QtAJbND5iutKXp6sk0 Jd7JRP2wZynRMrvg5MdKvlaYNu0LYZ5zzBcYVKAaDx95P5QVvnnpb9mL6W323ZIL2ql2 yBsA== X-Gm-Message-State: AOAM532OQkcLCuywZs0I8VTPQcfbWtRJH569K6SsGH9qDq0Qq6+Q7hym NoFpJagqS7jtYbNY6ZBBjKA= X-Google-Smtp-Source: ABdhPJzmdmK4dbOlCeYSEwnLB+uxVeYDgFALbpxtajo9rW3Iq3FbBNNEZOoOQJ8hYYL+VY6+KXa9CQ== X-Received: by 2002:a1c:cc05:: with SMTP id h5mr12243907wmb.92.1621668753769; Sat, 22 May 2021 00:32:33 -0700 (PDT) Received: from kista.localnet (cpe-86-58-17-133.cable.triera.net. [86.58.17.133]) by smtp.gmail.com with ESMTPSA id n6sm1669727wmq.34.2021.05.22.00.32.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 May 2021 00:32:33 -0700 (PDT) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Maxime Ripard , Chen-Yu Tsai , Andre Przywara Cc: Rob Herring , Icenowy Zheng , Samuel Holland , Ondrej Jirman , linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v6 17/17] arm64: dts: allwinner: h616: Add X96 Mate TV box support Date: Sat, 22 May 2021 09:32:32 +0200 Message-ID: <2338288.Zx76mVtT47@kista> In-Reply-To: <20210519104152.21119-18-andre.przywara@arm.com> References: <20210519104152.21119-1-andre.przywara@arm.com> <20210519104152.21119-18-andre.przywara@arm.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210522_003235_654978_5F4BEAFB X-CRM114-Status: GOOD ( 20.68 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Andre! Dne sreda, 19. maj 2021 ob 12:41:52 CEST je Andre Przywara napisal(a): > The X96 Mate is an Allwinner H616 based TV box, featuring: > - Four ARM Cortex-A53 cores, Mali-G31 MP2 GPU > - 2GiB/4GiB RAM (fully usable!) > - 16/32/64GiB eMMC > - 100Mbps Ethernet (via embedded AC200 EPHY, not yet supported) > - Unsupported Allwinner WiFi chip > - 2 x USB 2.0 host ports > - HDMI port > - IR receiver > - 5V/2A DC power supply via barrel plug > > For more information see: https://linux-sunxi.org/X96_Mate > > Add a basic devicetree for it, with SD card, eMMC and USB working, as > well as serial and the essential peripherals, like the AXP PMIC. > > This DT is somewhat minimal, and should work on many other similar TV > boxes with the Allwinner H616 chip. > > Signed-off-by: Andre Przywara > --- > arch/arm64/boot/dts/allwinner/Makefile | 1 + > .../dts/allwinner/sun50i-h616-x96-mate.dts | 201 ++++++++++++++++++ > 2 files changed, 202 insertions(+) > create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h616-x96-mate.dts > > diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/ allwinner/Makefile > index 9ba4b5d92657..370d24ebaacf 100644 > --- a/arch/arm64/boot/dts/allwinner/Makefile > +++ b/arch/arm64/boot/dts/allwinner/Makefile > @@ -37,3 +37,4 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-pine-h64.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-pine-h64-model-b.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-tanix-tx6.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-orangepi-zero2.dtb > +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-x96-mate.dtb > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616-x96-mate.dts b/arch/ arm64/boot/dts/allwinner/sun50i-h616-x96-mate.dts > new file mode 100644 > index 000000000000..b960bb310289 > --- /dev/null > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h616-x96-mate.dts > @@ -0,0 +1,201 @@ > +// SPDX-License-Identifier: (GPL-2.0+ or MIT) > +/* > + * Copyright (C) 2021 Arm Ltd. > + */ > + > +/dts-v1/; > + > +#include "sun50i-h616.dtsi" > + > +#include > +#include > + > +/ { > + model = "X96 Mate"; > + compatible = "hechuang,x96-mate", "allwinner,sun50i-h616"; Please document compatible. Best regards, Jernej > + > + aliases { > + serial0 = &uart0; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + reg_vcc5v: vcc5v { > + /* board wide 5V supply directly from the DC input */ > + compatible = "regulator-fixed"; > + regulator-name = "vcc-5v"; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + regulator-always-on; > + }; > +}; > + > +&ehci0 { > + status = "okay"; > +}; > + > +&ehci2 { > + status = "okay"; > +}; > + > +&ir { > + status = "okay"; > +}; > + > +&mmc0 { > + vmmc-supply = <®_dcdce>; > + cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */ > + bus-width = <4>; > + status = "okay"; > +}; > + > +&mmc2 { > + vmmc-supply = <®_dcdce>; > + vqmmc-supply = <®_bldo1>; > + bus-width = <8>; > + non-removable; > + cap-mmc-hw-reset; > + mmc-hs200-1_8v; > + status = "okay"; > +}; > + > +&ohci0 { > + status = "okay"; > +}; > + > +&ohci2 { > + status = "okay"; > +}; > + > +&r_rsb { > + status = "okay"; > + > + axp305: pmic@745 { > + compatible = "x-powers,axp305", "x-powers,axp805", > + "x-powers,axp806"; > + interrupt-controller; > + #interrupt-cells = <1>; > + reg = <0x745>; > + > + x-powers,self-working-mode; > + vina-supply = <®_vcc5v>; > + vinb-supply = <®_vcc5v>; > + vinc-supply = <®_vcc5v>; > + vind-supply = <®_vcc5v>; > + vine-supply = <®_vcc5v>; > + aldoin-supply = <®_vcc5v>; > + bldoin-supply = <®_vcc5v>; > + cldoin-supply = <®_vcc5v>; > + > + regulators { > + reg_aldo1: aldo1 { > + regulator-always-on; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc-sys"; > + }; > + > + /* Enabled by the Android BSP */ > + reg_aldo2: aldo2 { > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc3v3-ext"; > + status = "disabled"; > + }; > + > + /* Enabled by the Android BSP */ > + reg_aldo3: aldo3 { > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc3v3-ext2"; > + status = "disabled"; > + }; > + > + reg_bldo1: bldo1 { > + regulator-always-on; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-name = "vcc1v8"; > + }; > + > + /* Enabled by the Android BSP */ > + reg_bldo2: bldo2 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-name = "vcc1v8-2"; > + status = "disabled"; > + }; > + > + bldo3 { > + /* unused */ > + }; > + > + bldo4 { > + /* unused */ > + }; > + > + cldo1 { > + regulator-min-microvolt = <2500000>; > + regulator-max-microvolt = <2500000>; > + regulator-name = "vcc2v5"; > + }; > + > + cldo2 { > + /* unused */ > + }; > + > + cldo3 { > + /* unused */ > + }; > + > + reg_dcdca: dcdca { > + regulator-always-on; > + regulator-min-microvolt = <810000>; > + regulator-max-microvolt = <1080000>; > + regulator-name = "vdd-cpu"; > + }; > + > + reg_dcdcc: dcdcc { > + regulator-always-on; > + regulator-min-microvolt = <810000>; > + regulator-max-microvolt = <1080000>; > + regulator-name = "vdd-gpu-sys"; > + }; > + > + reg_dcdcd: dcdcd { > + regulator-always-on; > + regulator-min-microvolt = <1360000>; > + regulator-max-microvolt = <1360000>; > + regulator-name = "vdd-dram"; > + }; > + > + reg_dcdce: dcdce { > + regulator-boot-on; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc-eth-mmc"; > + }; > + > + sw { > + /* unused */ > + }; > + }; > + }; > +}; > + > +&uart0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&uart0_ph_pins>; > + status = "okay"; > +}; > + > +&usbotg { > + dr_mode = "host"; /* USB A type receptable */ > + status = "okay"; > +}; > + > +&usbphy { > + status = "okay"; > +}; > -- > 2.17.5 > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel