From patchwork Fri Mar 12 09:49:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 12134239 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=-18.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,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT 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 949D3C433E0 for ; Fri, 12 Mar 2021 10:32:12 +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 4B1BD65006 for ; Fri, 12 Mar 2021 10:32:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4B1BD65006 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: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:In-Reply-To:References:List-Owner; bh=R+dvU1ekeeC+TMUyUnQ/7y5iaX4kTD2BuJ90+p4awkA=; b=Gp2zXEJuAJCMFR1VMsxHgGzFfn ci0LCsgNUQWpunNuXl+QGbuury0KF5KYSSgAssFLHBd5YZE5ujZTL1Xv60hVbzh4T04rGHh9eoqYN fZHExoJzdLk6egFRqhMzLYvCR6m5ueYAxIWPNmQshaUz8gyOuLf4hA2J/BpJvCEeN0mGfjViq6dJw Hax+1QhoRzs4U/HGFbHHekz6Ah7BlBJOpH9xkA/3fVWIO2yJ4gkYUsqWnOMn2Wahi6ihcIyogfJiz TMXp4/NJFwrzSVP2PPTb8LV7OclRRg6AHGGpEeluK/vfXRtzm05kTye0vUg4hp9fTGBIQYkuHP4in OWF6OaWg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lKeQR-00B4S7-8m; Fri, 12 Mar 2021 09:49:43 +0000 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lKeQE-00B4Pp-Ay; Fri, 12 Mar 2021 09:49:36 +0000 Received: by mail-ej1-x634.google.com with SMTP id p8so52132580ejb.10; Fri, 12 Mar 2021 01:49:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=X/budyxfXl4/blczsR4CErrFNRt8Mt+0vRDmJ7OsswU=; b=DTUXasxiiyPWzO5i/r6wl92RXC3cTnOTVkZkkdKXtGLftgRNtLHi0p4MPibHqv6NGM IGRvo8X2vWTsdeBfmR1+bI6KziuRPMj59VyMFBjZVlAWcp315BBK/65H7ydyLAqbr/WN INpGUl1YVoSgVwxRdS6WgorR7uS5y+g52KSiJ1dbYls0gNI0eBq4hzecFBgr6TX8nxgt YYC1ETFJCxBOp0FhhzXqpZfaS7NPIovPzlOAvrDJ18zO+2dwG2jhEexAb/v510kj97rH CppvADkeuKdmb8GqWYQnc5IveZYXN2aOByfwoIGRsqlIQdEjKZows4r++zZYYeyMBKSG UR2A== 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:mime-version :content-transfer-encoding; bh=X/budyxfXl4/blczsR4CErrFNRt8Mt+0vRDmJ7OsswU=; b=Sf1ZjH5kDtPWv7cAtw4OkCti2INHe5iGh9Y3qCDAEZI7ipSvnzO6RrBj6boMcBY3x9 s+KBBj4tWkLCU4kEBhfJthvhu/4yppffh9RIfmEzMbmLvHVb1SPX97DPjI9EYucuqa3S FGhoD0ay9qKhz+jBNLOUIve25he2NtsNiUt0tuEA2qHhDqQHyJmtWOH7RgOwNP4zlSXD 8pGMVjlQ1qjjn+KJ7zHmbE6GC4ARzXptkNkukUP7iQJN5Lt5l2RMflcdOpVxW8HxT+xh 9qgpLRXCeV4ICLuifNygezMVKZqLIlVkVi9tq4r0yksLXi/7FIXPIyo7eKl0GKYZhmdf mDfg== X-Gm-Message-State: AOAM531SlUALt1dzLhMy+6xCODh3XaRKkX7Epz5R6k5Kt3mBBTMYbv8F t44zXpFgRPDVcxeMqO6E+dE= X-Google-Smtp-Source: ABdhPJwBCHXd+irZVwU78OBq1f2fMt8lJDb1A+a9jnR0h/nRr3R5KWj+8a6U+daEedXCDbpJM98l5g== X-Received: by 2002:a17:907:76ed:: with SMTP id kg13mr7161715ejc.99.1615542569454; Fri, 12 Mar 2021 01:49:29 -0800 (PST) Received: from localhost.localdomain ([188.24.140.160]) by smtp.gmail.com with ESMTPSA id b22sm2610455edv.96.2021.03.12.01.49.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Mar 2021 01:49:28 -0800 (PST) From: Cristian Ciocaltea To: Rob Herring , =?utf-8?q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/1] arm: dts: owl-s500-roseapplepi: Add ATC2603C PMIC Date: Fri, 12 Mar 2021 11:49:27 +0200 Message-Id: <2e0a2931ae3757f016948e7c78e8e54afa325ae0.1615538629.git.cristian.ciocaltea@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210312_094930_997610_5BB2E594 X-CRM114-Status: GOOD ( 11.88 ) 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 Add device tree node for ATC2603C PMIC and remove the 'fixed-3.1V' dummy regulator used for the uSD supply. Additionally, add 'SYSPWR' fixed regulator and provide cpu0 supply. Signed-off-by: Cristian Ciocaltea Reviewed-by: Manivannan Sadhasivam --- Please note the patch depends on the ATC260x PMIC support which is queued for merging in v5.13: https://lore.kernel.org/lkml/cover.1611653995.git.cristian.ciocaltea@gmail.com/ https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git/log/?h=for-mfd-next&qt=range&q=a38fd8748464831584a19438cbb3082b5a2dab15..eac013a0b7041f5cfc8feedf429a767675350102 arch/arm/boot/dts/owl-s500-roseapplepi.dts | 132 ++++++++++++++++++++- 1 file changed, 126 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/owl-s500-roseapplepi.dts b/arch/arm/boot/dts/owl-s500-roseapplepi.dts index ff91561ca99c..b8c5db2344aa 100644 --- a/arch/arm/boot/dts/owl-s500-roseapplepi.dts +++ b/arch/arm/boot/dts/owl-s500-roseapplepi.dts @@ -2,7 +2,7 @@ /* * Roseapple Pi * - * Copyright (C) 2020 Cristian Ciocaltea + * Copyright (C) 2020-2021 Cristian Ciocaltea */ /dts-v1/; @@ -27,20 +27,140 @@ memory@0 { reg = <0x0 0x80000000>; /* 2GB */ }; - /* Fixed regulator used in the absence of PMIC */ - sd_vcc: sd-vcc { + syspwr: regulator-5v0 { compatible = "regulator-fixed"; - regulator-name = "fixed-3.1V"; - regulator-min-microvolt = <3100000>; - regulator-max-microvolt = <3100000>; + regulator-name = "SYSPWR"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; regulator-always-on; }; }; +&cpu0 { + cpu0-supply = <&vdd_cpu>; +}; + &i2c0 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&i2c0_pins>; + + atc260x: pmic@65 { + compatible = "actions,atc2603c"; + reg = <0x65>; + interrupt-parent = <&sirq>; + interrupts = <2 IRQ_TYPE_LEVEL_HIGH>; + + reset-time-sec = <6>; + + regulators { + compatible = "actions,atc2603c-regulator"; + + dcdc1-supply = <&syspwr>; + dcdc2-supply = <&syspwr>; + dcdc3-supply = <&syspwr>; + ldo1-supply = <&syspwr>; + ldo2-supply = <&syspwr>; + ldo3-supply = <&syspwr>; + ldo5-supply = <&syspwr>; + ldo6-supply = <&syspwr>; + ldo7-supply = <&syspwr>; + ldo8-supply = <&syspwr>; + ldo11-supply = <&syspwr>; + ldo12-supply = <&syspwr>; + switchldo1-supply = <&vcc>; + + vdd_cpu: dcdc1 { + regulator-name = "VDD_CPU"; + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1400000>; + regulator-always-on; + }; + + vddq: dcdc2 { + regulator-name = "VDDQ"; + regulator-min-microvolt = <1300000>; + regulator-max-microvolt = <2150000>; + regulator-always-on; + regulator-boot-on; + }; + + vcc: dcdc3 { + regulator-name = "VCC"; + regulator-min-microvolt = <2600000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + vcc_3v3: ldo1 { + regulator-name = "VCC_3V3"; + regulator-min-microvolt = <2600000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + avcc: ldo2 { + regulator-name = "AVCC"; + regulator-min-microvolt = <2600000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + vdd_1v8: ldo3 { + regulator-name = "VDD_1V8"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <2000000>; + regulator-always-on; + }; + + vcc_3v1: ldo5 { + regulator-name = "VCC_3V1"; + regulator-min-microvolt = <2600000>; + regulator-max-microvolt = <3300000>; + }; + + avdd: ldo6 { + regulator-name = "AVDD"; + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1400000>; + regulator-always-on; + }; + + sens_1v8: ldo7 { + regulator-name = "SENS_1V8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + ldo8: ldo8 { + regulator-name = "LDO8"; + regulator-min-microvolt = <2300000>; + regulator-max-microvolt = <3300000>; + }; + + svcc: ldo11 { + regulator-name = "SVCC"; + regulator-min-microvolt = <2600000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + rtc_vdd: ldo12 { + regulator-name = "RTC_VDD"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + sd_vcc: switchldo1 { + regulator-name = "SD_VCC"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + regulator-boot-on; + }; + }; + }; }; &i2c1 {