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: 483453 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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 8C08EC6377B for ; Wed, 21 Jul 2021 20:09:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 64DDE61249 for ; Wed, 21 Jul 2021 20:08:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229463AbhGUT2V (ORCPT ); Wed, 21 Jul 2021 15:28:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231168AbhGUT2U (ORCPT ); Wed, 21 Jul 2021 15:28:20 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70079C061757; Wed, 21 Jul 2021 13:08:55 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id f17so3448601wrt.6; 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=X6JgwHcf66CRIGZ+k9itSb69gAedeXfFhdLv6wrrSJJovySTq8bHnDgt3H9GpcTNX7 MMiclOLE3WoOlU0ZtXOIHf0+HAeqc69Lphc33mi0WRM8AKRIX7BfjcippRgvqVCMS/3W PNvkTFdG5KnKI0z85rOCfKMdHhGyu3PzGHUrjH6yeBbd9Z+oAbk02pgQH9SjL7gBUX2T sVJmN/Vkbxp3vFeHczq4kD/EHYomLk4FR0Q4Ir6bURcAZ2XJ3Jg67m7SlWfOHipQCyUT xpF9fGfPqeFv0WyMBBOR4VSTbFrcHXNT7Ejc+CQ4u0vNMwNiQdzRgBHVsmcmBfgdZSdB vgQQ== X-Gm-Message-State: AOAM533zhdWpWuDAA6+PxmTSye/laRFyEIk8BNSEwwWvem//zqf1T9rI FrchHRJIOIsu3urXrHs0uOo= 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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: 484070 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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 AA4A2C63798 for ; Wed, 21 Jul 2021 20:09:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6DEF661287 for ; Wed, 21 Jul 2021 20:09:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239655AbhGUT2V (ORCPT ); Wed, 21 Jul 2021 15:28:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232837AbhGUT2U (ORCPT ); Wed, 21 Jul 2021 15:28:20 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D53ABC061575; Wed, 21 Jul 2021 13:08:56 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id f10-20020a05600c4e8ab029023e8d74d693so1654766wmq.3; 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=n/zBQUsdjjmeSmPxZZwb34PXWTmgDICebmNRdM0YoVqxvJWlRfOH3uP6R3hk/SBEpi vgMaYbSnV9h/AuYB0cims6TbrK/MKtQvfhbfrsl9v4hKCwmCbncGScKqAMe9MtpE9RSq GTYSvofAcI+esg+vZKlCkuu0s/v16vjpsf4L2LlQWVyS8xIhRHxBQs7L6jL6hTCMgd1U Cy+fPFhCidUZB7733SnG5WuSaVFg0nQEMvLFHlhfKmCqZOC3A5H+rN207qv6GpY4cEnc ZYeIuwObecdn9dvkz5TPY4EJDMO+PKqyVgjtL2oioIaqvHEOOj/myuk76FU7L1kvkB34 YDig== X-Gm-Message-State: AOAM531uRn1rZD35ILqEP+w5Emb7vkTt87v6ecZbv3ORgKVXjuDTUL3y kW2X2R6QtITb8oUqwhF9XUM= 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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"; };