From patchwork Thu Jul 22 16:12:19 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: 12394341 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.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,URIBL_BLOCKED, 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 ABF1BC63793 for ; Thu, 22 Jul 2021 16:14:24 +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 7078D6128A for ; Thu, 22 Jul 2021 16:14:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7078D6128A 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=EZgaS6HmeGjd2VnYj3yfSaN/VQILQY+zFIOOt1AJY/k=; b=shw4pkeLN/pKCE M+tPFPEpRVVC0HkqFvtSlLmDKfZTH9DlnKh5hWkQxPa5D/QfhGbv+JSNl9wV1d0BP2oq9MTgojl9k voMguUiLFcdNVxLTQWqNBRJRaFeK8Q7eahe071nNgr4ckIEGe2QRzIaB+sEBisD6FQEhOALEl+X4F ievTuefxhmJ70jZqLgWdHZ1KRx8Q0cfRHFpFwoFSd7+L3dpPizqKi+kNpdK0Swpyrdfpwb+Q0/hwz b3xA6RLGHzszjg41wrp0mvL3vLZ+kw++lRH8sPweJoPAdggvYYv8dHCS99my3lo3xK2f5rKWDQCm5 8EEZhIehnes4ZYedQ3lQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6bJf-00256Q-6C; Thu, 22 Jul 2021 16:12:55 +0000 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6bJF-0024z9-TC for linux-arm-kernel@lists.infradead.org; Thu, 22 Jul 2021 16:12:31 +0000 Received: by mail-wr1-x42d.google.com with SMTP id u1so6545018wrs.1 for ; Thu, 22 Jul 2021 09:12:29 -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=EWKGcG6m6lpD17jpJUGcdHL4XL/5in5ssmRd0zz5CFE=; b=D58azlBHvUTHh5+YVEm0omEPcm5TD69+lMvlCBC6+UPA3F+6dzMJg/abiAis9uYZHl HYbmKzowOvp6vJg4N3tW5La48sg75MPqoapKojtq7vWTwU5Bssb/bIANtb6yL+G5c2h+ eAGLxGvd1jx9UgCzJJcLhOEQwWfMKvT1dqOJdlJfEg8ANLLfdG8vssDOjxrbCluWxqTp jRcJPERzE96h2MBnidTBDHkCqlEquWG9BtswC5Q5ZzOzckYK7Hr0RtJRtB96ur528/eK P5m8urcxsUNIRj7bK+4CH8Tivmv9BwUP3ToW+/zXBhXC14OFBEgXXbTDKlHVjxJs2fx9 sugg== 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=EWKGcG6m6lpD17jpJUGcdHL4XL/5in5ssmRd0zz5CFE=; b=QWIZ29JJ5W9S9qPnH5xp0ixahrfmQH8Q5RYIqTKStEbgcVE4L+RCP+4FRQEvsgMxRi zjo9MfQS2TjoOUQL3vZMfPaFtuGYmr8YXb8dwfobkSvZT3ZjWPcvBMxrYnxMQ/RFUKHk 6yiN3TxjOm7+xRnc6dZImD9R8h6id+kw5bbTXmQwjX6GdHrL4QhPm3AZlsqvuIBhuIra Qm9JOReGd4NZmb3Y4By8La1Uz6ruU01gx9Uookg2kfi+1mwZnoX3NdrP0xTjmv7l67DV zQPopWgvJrlf6PDbpDmloYzSEbBKo4zGMOautPa9jlM2Szb4C8ZHW7IKk/MWBEgUtlDQ RLXw== X-Gm-Message-State: AOAM530UetZEmKi8/ChkQ5+xAd0uOhwpC/lDgPMchaDTyZkdzh/SsXpN NcH42qkYzzzRrkW1PostFKc= X-Google-Smtp-Source: ABdhPJxUkC7snrfFoWJTIHUcEUZVF3GCGzEDjFLhbaUilEODb4AeyqfTHX+NGVUjkq/Mj3E8jGAuKg== X-Received: by 2002:a05:6000:1043:: with SMTP id c3mr740928wrx.13.1626970348708; Thu, 22 Jul 2021 09:12:28 -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 z6sm3585363wmp.1.2021.07.22.09.12.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jul 2021 09:12:28 -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 v2 2/3] arm64: dts: allwinner: h6: tanix-tx6: Add PIO power supplies Date: Thu, 22 Jul 2021 18:12:19 +0200 Message-Id: <20210722161220.51181-3-jernej.skrabec@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210722161220.51181-1-jernej.skrabec@gmail.com> References: <20210722161220.51181-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-20210722_091229_979439_76C0D2B2 X-CRM114-Status: GOOD ( 13.84 ) 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 02641191682e..cf9721ca6370 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: regulator-vcc1v8 { + compatible = "regulator-fixed"; + regulator-name = "vcc1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + reg_vcc3v3: regulator-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";