From patchwork Wed Jul 21 20:08:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Jernej_=C5=A0krabec?= X-Patchwork-Id: 12392057 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=-13.8 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,USER_AGENT_GIT autolearn=ham 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 B40D2C6377A for ; Wed, 21 Jul 2021 20:11:19 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 80CDB61263 for ; Wed, 21 Jul 2021 20:11:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 80CDB61263 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=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=ZhQebEb5DU8F0tSrQyjvlNehrzxWH1uYWhZyJSU8G3M=; b=Gck/vbAQodcCmf /dh8AsevPKMDI0q+w5LPYI5KsZsX+UIxtK8JRFu0D3g+ddbP61hFuiMKLQbFbmvPDxJ+Ql0FBCYwE i2cL5Awsr59I9zSSDdmpR3PDqoF6Ym29nFz7QVEC3mw3R7ZyXppEahe7x6EeWwZs1oEaysBCUiDyM FMpTjnyau5MQQ1UfroncGLtSOS1w3S4+UDGP3SFNP7F/bCCI5ZFABiD0VKDuelYBnooQ7hMVUvjRS vQtOg7saKIuqCm7k5U8o33W92zaA411haYDMMNAtzQwszYQVS+6G72zhtLIMb61Bn0AAJ8pn6f8AJ kM2bjbIMYaGnXYLFCLdw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6IWl-00H4BB-4B; Wed, 21 Jul 2021 20:09:11 +0000 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6IWW-00H47E-4E for linux-arm-kernel@lists.infradead.org; Wed, 21 Jul 2021 20:08:58 +0000 Received: by mail-wr1-x429.google.com with SMTP id f17so3448600wrt.6 for ; Wed, 21 Jul 2021 13:08:55 -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=Bf+dR+yHWxHSrbBWZl+fm/pQJX2x0mMUSsYE7kFkM0w=; b=Gse0jsvPUkEnxPf7xeq2Ee8yzoyUKqPquA885RHVPStTl6le6I7Qq8Awgy45xSoW/L /cwewR6GdIplxMvIyEqF3zKhPrzfr57ufHuASJnZpKTtik7AVFY+DsTy0xT9J1VTnFaq XBTI5LzhVYWSIGlp54SKqsxPQqsCbCj+kTcmjLMZkulyO45VsR3N5cTK30XernXjwbW9 TXNoWbcDCXapxy89m+1FAiALDffaVcwyxgWFoPGdYKApbxRAiTIkqJR1eTAC0sNNClAo Dk1F2G7I3QSqFYyB3fekZmUQqdFdl/Y4pZRSI8lqDVlRfMV7SWW96xWSvqvorMQYYY5s 0pSg== 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=Bf+dR+yHWxHSrbBWZl+fm/pQJX2x0mMUSsYE7kFkM0w=; b=Ad4APBhoyfwXzt11MMihIbdGjkYpt29nUCe1TMozg6WK0hdzhXS5KDxsl+chWBHCF/ H6ISMGRHLqnW6S+KyIVPSTX8fQDS3SvdytLwu4vUY23PghsIBQ242E4k57YLVOX6ntaK wIc5ByQjIhicVvsbKqGKei6izxAH9YDRRIFuSauqfOa6pJTFCI5qTYTBUZDYNEdZzrnY hn5sxAvrMHZJ6U+sYWeB6VazPm4mVUbHvRet9YXhrI7Q1grjX1ARdh+S5YIq/zouBmO5 ovbnYiBKIfJAYF6u1SK9TbHyUoJ4q2XLFf97663CxpuD7KDzNGo505RZJ7c700kCTWjP KTuA== X-Gm-Message-State: AOAM530+9w8ftng73gGn/+5Nk8EZJX6GTvZNC3lOXk584wR6U9OqCMNc Yytlxyzp9vOPJIdbtFTJqRw= X-Google-Smtp-Source: ABdhPJxunoO/hCMFfjZaGm/AjlBiUccZ4KayI9hR7iFIhKik9owg55mlVYlhHguvoOvPQAusEdaeiw== X-Received: by 2002:a5d:544f:: with SMTP id w15mr44544560wrv.151.1626898134141; Wed, 21 Jul 2021 13:08:54 -0700 (PDT) Received: from kista.localdomain (cpe-86-58-46-198.static.triera.net. [86.58.46.198]) by smtp.gmail.com with ESMTPSA id k24sm28927162wrh.30.2021.07.21.13.08.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jul 2021 13:08:53 -0700 (PDT) From: Jernej Skrabec To: mripard@kernel.org, wens@csie.org Cc: robh+dt@kernel.org, jernej.skrabec@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] arm64: dts: allwinner: h6: tanix-tx6: Add PIO power supplies Date: Wed, 21 Jul 2021 22:08:31 +0200 Message-Id: <20210721200832.916644-2-jernej.skrabec@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210721200832.916644-1-jernej.skrabec@gmail.com> References: <20210721200832.916644-1-jernej.skrabec@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210721_130856_205250_CD257BAE X-CRM114-Status: GOOD ( 14.59 ) 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 While there is no publicly available schematic of this board, it's not hard to determine voltage of GPIO port C, D and G (only ones which can be set). Port C and G are used for MMC/SDIO communication, so they use 1.8 V power supply. It's not clear if port D is even used, but if it is, it's pretty safe to assume it uses 3.3 V power supply. Value read from PIO Group Withstand Voltage Mode Select register from within pre-installed Android agrees with that assesment. Signed-off-by: Jernej Skrabec --- .../boot/dts/allwinner/sun50i-h6-tanix-tx6.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts index be81330db14f..a1dd8f472cc8 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts @@ -32,6 +32,13 @@ hdmi_con_in: endpoint { }; }; + reg_vcc1v8: vcc1v8 { + compatible = "regulator-fixed"; + regulator-name = "vcc1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + reg_vcc3v3: vcc3v3 { compatible = "regulator-fixed"; regulator-name = "vcc3v3"; @@ -99,6 +106,12 @@ &ohci3 { status = "okay"; }; +&pio { + vcc-pc-supply = <®_vcc1v8>; + vcc-pd-supply = <®_vcc3v3>; + vcc-pg-supply = <®_vcc1v8>; +}; + &r_ir { linux,rc-map-name = "rc-tanix-tx5max"; status = "okay"; From patchwork Wed Jul 21 20:08:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Jernej_=C5=A0krabec?= X-Patchwork-Id: 12392061 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=-13.8 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,USER_AGENT_GIT autolearn=ham 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 7ADFAC6377D for ; Wed, 21 Jul 2021 20:11:21 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 4563660BD3 for ; Wed, 21 Jul 2021 20:11:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4563660BD3 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=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=s4pZYOWs3m4GBQI5mGN4n0S0KKZwSUuahEE+1Qq+MFg=; b=ZmzDPtLiHocToY FXfiVxI9YrkS7UgCYvxldCtqUVMEuCAPvhKvtYWE9nZkYilRK6gYiBVD+CBZSSjPuEYvSPvWNRH3F +yxGyq3o91mg7XZd0SuM8gdjGLbNsgk8TBz0wHLjK1ZGdyXWd1qHSNNcY0DghD9YlkYaANJ5v1Tta WrExElqu+iRKhN8h5FGQ+TKhSvFw39XL+Uo9uPWZiWL9Q0r/CRqX3pvwp2WYK0bldyzSj+PNdvzmY /OmBm7JIPg1ynVFRXh84yPL0bCgmO/U7VIjFvpJmxz5LKDo7PA4kUDviY+WS82HDPnsjHpQXAOIp+ JoGknXjfHcP1wWiJ2FYQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6IWv-00H4CK-S2; Wed, 21 Jul 2021 20:09:22 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6IWW-00H47f-FL for linux-arm-kernel@lists.infradead.org; Wed, 21 Jul 2021 20:08:59 +0000 Received: by mail-wm1-x333.google.com with SMTP id o5-20020a1c4d050000b02901fc3a62af78so219426wmh.3 for ; Wed, 21 Jul 2021 13:08:56 -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=2Axto6lQ2+nrph0X1bVranPKMH1bIvsVkx0NZvngC7c=; b=FGd5xGSWm0HOZejRS1CKbRrRfp4f9OHkviymUztPGVbz8lkVywuQ7yhPIRWCEZpgMZ a7Ds/jC9ijZdOXK8sSDPMWNa3mTlb7Qm9XCuszQABm/J1XwZ1f3vjPYYUfYOSTe32Dhi 7vIRno6xrQc6v+a0RDvfAm4Qc1hdjD98etLR2K0ydNSAKFVKxUQyQTBj0D9KRWfHDbwm +UFsh+smhf8xmlElCwoQgwchFZV3mgzQ3I+lcUWPoiMsduK240RGJMRHzs8bCPHxX7Ew jVigodWydTAnkGJhcZAM96eMq6QLeonxEl46oInEw6TdJe851er/Ic8848iiDAojuQKR z9yA== 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=2Axto6lQ2+nrph0X1bVranPKMH1bIvsVkx0NZvngC7c=; b=ZZWoOVPBPGbv5wZYDPuy2gnCSQhBiTCovFLO392xVqBmeG6pKQ9QQw84z46KsXfqtU Ll0hQtdhMXnVEvRSMWpwd9xoe72bIjL+BaTEvCGRC8a6ttnO+JitgCLCLx9SM595B+Pu CbxrP6cPRBYTUSqliO2Xy9j1Nmf/hqf9uoG9XvQ+ALJj5Cl/l55rBdKYiML8SX2sCq+9 K2XeQ/9jl+aX9u7AQw/qlSs6BSLk/gnYA/endG13rccA1xyBnt/M7ZfBeObvF1BxzGi9 x1VyHGO9HBkB7txYTBjiBhPwqnsu+rPNI+ETn4KNiWRDxAgopPahU1bnZ3ULh8V9S/8A 9xOA== X-Gm-Message-State: AOAM531yvwFIdeg2LvG7XzoA5+xEqTviZ6N5J7UGGkGq6W5VkM0joOY3 faQXhesr7rc211fWl9hlcwABI5Sdbgmosqg1 X-Google-Smtp-Source: ABdhPJxRAR2ME7BbdLUxY5mKNVXe30C/6s/O5OXZ4H9yrWvG9+kuPhZAAzOgl/uqFIZxl0lirjWmtA== X-Received: by 2002:a05:600c:b47:: with SMTP id k7mr40127576wmr.155.1626898135054; Wed, 21 Jul 2021 13:08:55 -0700 (PDT) Received: from kista.localdomain (cpe-86-58-46-198.static.triera.net. [86.58.46.198]) by smtp.gmail.com with ESMTPSA id k24sm28927162wrh.30.2021.07.21.13.08.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jul 2021 13:08:54 -0700 (PDT) From: Jernej Skrabec To: mripard@kernel.org, wens@csie.org Cc: robh+dt@kernel.org, jernej.skrabec@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: allwinner: h6: tanix-tx6: enable emmc Date: Wed, 21 Jul 2021 22:08:32 +0200 Message-Id: <20210721200832.916644-3-jernej.skrabec@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210721200832.916644-1-jernej.skrabec@gmail.com> References: <20210721200832.916644-1-jernej.skrabec@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210721_130856_549790_B05E645C X-CRM114-Status: GOOD ( 11.86 ) 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 Tanix TX6 has 32 GiB eMMC. Add a node for it. Signed-off-by: Jernej Skrabec --- arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts index a1dd8f472cc8..c23b7c37406b 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts @@ -98,6 +98,16 @@ &mmc0 { status = "okay"; }; +&mmc2 { + vmmc-supply = <®_vcc3v3>; + vqmmc-supply = <®_vcc1v8>; + bus-width = <8>; + non-removable; + cap-mmc-hw-reset; + mmc-hs200-1_8v; + status = "okay"; +}; + &ohci0 { status = "okay"; };