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: 484030 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 9467BC63798 for ; Thu, 22 Jul 2021 16:12:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 76D1761380 for ; Thu, 22 Jul 2021 16:12:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229569AbhGVPb4 (ORCPT ); Thu, 22 Jul 2021 11:31:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbhGVPbz (ORCPT ); Thu, 22 Jul 2021 11:31:55 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 111DFC061575; Thu, 22 Jul 2021 09:12:30 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id r11so6506166wro.9; 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=b45eBcmVLKM2wg78dIiYzMmhV9WRWejChTMT5naFNV79yQaKu5U7XPOx4s/jBT8Imj CBa+eXpVi0uZSHCGewodhnQFowlnLN9qPL9KbroVQKCe7NGb/JoTUFkHjCuH4tCozye5 MYGz3nhIVANnrMS0D0BEEeWpdU+6qo4ernzG9qU7Cp7cCRwwBaEi+mEhtggMrgdoMD89 vbsmBuZe3b4gulVmE3on3Hj+9H4/BbKgyOBqx3heh0/0YKxixyjQ5OI80WVG/N7Ksjgf elHDC4+ZV1oDPehf1jJAutmsdAwlErOHY/ZER/mRjhbgm92G/yBlqwrUsm4lOPvPuBtH TSew== X-Gm-Message-State: AOAM533H0DL1RHIoPnUObXoJNiGeghczXYNbUNRJWp9A7IUMv6FyVqSN JdoE0tOLqIMi6cgMbl84QRY= 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 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 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";