From patchwork Thu Sep 13 20:29:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10600061 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9FA7F14F9 for ; Thu, 13 Sep 2018 20:32:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8CE3A2B4F5 for ; Thu, 13 Sep 2018 20:32:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 817452B512; Thu, 13 Sep 2018 20:32:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 053092B4F5 for ; Thu, 13 Sep 2018 20:32:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=a6mHRupHWW9qBtBSxC6zlmJG3RGOY3q5XsYQVE4G5/A=; b=Ofw31mGjA967Hh LY/8Eu6mjT7fv6l6/uECFZPJ2FYcWUwVelIg+he7TGRP1jvz63inEGhzsywqxq6TrxplCXJNCekSk pc65XLX/CbjdEZcXrD0pZPIxKEiEhemZ3ApxOFYLXCw3uZQ6aWHVUA8R7MTcHcyn9SUxKHjKIfDwj er5ojVor6hr++0Qef8MGD+rMPvbxyB6LKlxC3c4NqxKfDlifYnbgUGIHhvxdM96hxoHjSYDAbU486 vR+KE2F67oAlHzrr/+JUd81jjz4tEZYIO9LlZmFjHcLtpAkr4bkFUu56aFWpEYdqAuwiyMQvjYYKT 1pONFD8hg92tfD7KYY4w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g0YHn-0000qY-Cf; Thu, 13 Sep 2018 20:32:23 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g0YFF-0006nT-Ry; Thu, 13 Sep 2018 20:29:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=p6S+XLj7G5aywwSNKr0XBMllwrjvbp9GivNG+56tFI8=; b=dd+ivEsc7tpCeBJ350IREUGHJL 75NXOaG8mG2xcKDSvmk9gTSS7DwmIPjK3WyRTeREA4iF+XE4qrgaQHWYWel+iRJR6W7L31EReKrKD c2Y06aHPfg10xWSQAQFW2uuXlYFvVvJMBYbeBzpU68m6MRV4uTvCyCHaaJeHbciRnGrYauMSIM58Q FKRLfYS2nWPt1gZu3sYTOTIHyTX0COFZCHnZ9QrWOVCu45LQl9GUTDr6xWTnnMAN4p0jTKAW34IQI ryPck+DXHaF50QTzamkkwqbOs4FISXk/ZTVZ4C1AC+MNpNqG2IuyoiopmiFTQvmGHVQsp04T2JQTN EbD2qoAQ==; Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g0YFC-0006yS-Rd; Thu, 13 Sep 2018 20:29:43 +0000 Received: by mail-wr1-x443.google.com with SMTP id s14-v6so7976527wrw.6; Thu, 13 Sep 2018 13:29:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=p6S+XLj7G5aywwSNKr0XBMllwrjvbp9GivNG+56tFI8=; b=Y0jEqHWUIn6EfsJrhqQBrtkoHgt1FJIMYcz7hhRXx5f2dOUfT43VHPnX7Zj3IryRd2 XqdcasL/9DLHMCXZQbnx0WdMhznCzsm7giNy4paYkgn1dFgqduIrtq4fml9Obzrm+6J+ VIBZGk77XM4fVlC6jzQ7RUfCbBezLCeqdURB5SO7rdn34YBTgA6vVyMxdgcsvm94cByy NQgsMX2dm2wjMqLUumDc0No24p89s658qTotEX30MsAXq3Nqe7Uq0JbnwTiZiSOwSWIY +9KfB03myWYV1QNmFEPTeN9bHObcpII82an6DfAV2nXYdCGOVvLTG+jz81ZZQa+n6019 hs4w== 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=p6S+XLj7G5aywwSNKr0XBMllwrjvbp9GivNG+56tFI8=; b=Nh81uXBULZh8YYh+6/urRF3fzk1+cZjS+A43NgR1r2InuBcW/dglsx5pOlfU2ocrAm 7QhI9ZlA8O03LEl+cqi5yrmLkv3vD0c3KHs24UT2nEZiYRQVemUBmQvNuTc9X6gM8eK0 vQ9NSThVoyDRyNjfts72PNT9BbdqRw6F7koAXOQ4Tg69hFGbwJfxT0e+wuz2Ew9ZevEj TsBcuvyAgcSuaul0NmsIjrZ65Xz9A8eW93Pqk1/jkE6Gmzx8Y7wR3YjzNz1rzySSiaHV 56HmugFFzFmXRejqultn+CvBICdziX0u6HHUlxC7kzfeyxjTtvpfzSfRLSvpRxjRSh+M ZCZg== X-Gm-Message-State: APzg51ClmloaJHyfYN4E6Ka/cMdFcGk2F9A1S2G7MPzmnGMAzsHazqTk iIB2WrQFH62p0gQa4BDhGNXGHCQR X-Google-Smtp-Source: ANB0VdZn3DzfYf1TkBzNtt+ewyeP7kehdRNN7wOs5A+RwqTFjXMTsrmtWZtklKxAj5RYUYfirOvFcg== X-Received: by 2002:adf:a4d1:: with SMTP id h17-v6mr6444529wrb.167.1536870566901; Thu, 13 Sep 2018 13:29:26 -0700 (PDT) Received: from blackbox.darklights.net (p200300DCD72E2B00B426A3A246F82EA8.dip0.t-ipconnect.de. [2003:dc:d72e:2b00:b426:a3a2:46f8:2ea8]) by smtp.googlemail.com with ESMTPSA id e7-v6sm6076254wru.46.2018.09.13.13.29.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Sep 2018 13:29:26 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com, carlo@caione.org Subject: [PATCH 2/4] ARM: dts: meson8b: odroidc1: add the fixed voltage regulators Date: Thu, 13 Sep 2018 22:29:17 +0200 Message-Id: <20180913202919.20927-3-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180913202919.20927-1-martin.blumenstingl@googlemail.com> References: <20180913202919.20927-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180913_162942_999835_52665403 X-CRM114-Status: GOOD ( 14.05 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Blumenstingl , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP There are multiple fixed regulators on the Odroid-C1 board. Add them so they can be used when we add the devices that need them (SAR ADC needs the 1.8V IOREF, RTC needs VDD_RTC). These are: - P5V0 is the main 5V power input - VCC3V3 / VDDIO_AO3V3 / VDD3V3: fixed regulator with 3.3V output which is supplied by P5V0 - IOREF_1V8 / VCC1V8 / VDD1V8: fixed regulator with 1.8V output which is supplied by P5V0 - VDD_RTC: fixed voltage regulator with 0.9V output which is supplied by VDDIO_AO3V3 - DDR_VDDC / DDR3_1V5: fixed voltage regulator with 1.5V output which is supplied by P5V0 - the existing TF_IO and RFLASH_VDD_EN regulators are supplied by VDDIO_AO3V3 - the existing VCCK regulator is supplied by P5V0 This does not add the missing VDDEE regulator (controlled by PWM_D) because it's not clear yet how to configure the voltage of that regulator. Signed-off-by: Martin Blumenstingl --- arch/arm/boot/dts/meson8b-odroidc1.dts | 73 ++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/arch/arm/boot/dts/meson8b-odroidc1.dts b/arch/arm/boot/dts/meson8b-odroidc1.dts index 0557823cdd64..a08dccccdb5e 100644 --- a/arch/arm/boot/dts/meson8b-odroidc1.dts +++ b/arch/arm/boot/dts/meson8b-odroidc1.dts @@ -71,6 +71,14 @@ }; }; + p5v0: regulator-p5v0 { + compatible = "regulator-fixed"; + + regulator-name = "P5V0"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + }; + tflash_vdd: regulator-tflash_vdd { /* * signal name from schematics: TFLASH_VDD_EN @@ -81,6 +89,8 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; + vin-supply = <&vcc_3v3>; + gpio = <&gpio GPIOY_12 GPIO_ACTIVE_HIGH>; enable-active-high; }; @@ -92,6 +102,8 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>; + vin-supply = <&vcc_3v3>; + /* * signal name from schematics: TF_3V3N_1V8_EN */ @@ -102,6 +114,36 @@ 1800000 1>; }; + vcc_1v8: regulator-vcc-1v8 { + /* + * RICHTEK RT9179 configured for a fixed output voltage of + * 1.8V. This supplies not only VCC1V8 but also IOREF_1V8 and + * VDD1V8 according to the schematics. + */ + compatible = "regulator-fixed"; + + regulator-name = "VCC1V8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + vin-supply = <&p5v0>; + }; + + vcc_3v3: regulator-vcc-3v3 { + /* + * Monolithic Power Systems MP2161 configured for a fixed + * output voltage of 3.3V. This supplies not only VCC3V3 but + * also VDD3V3 and VDDIO_AO3V3 according to the schematics. + */ + compatible = "regulator-fixed"; + + regulator-name = "VCC3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + + vin-supply = <&p5v0>; + }; + vcck: regulator-vcck { /* Monolithic Power Systems MP2161 */ compatible = "pwm-regulator"; @@ -110,12 +152,43 @@ regulator-min-microvolt = <860000>; regulator-max-microvolt = <1140000>; + vin-supply = <&p5v0>; + pwms = <&pwm_cd 0 12218 0>; pwm-dutycycle-range = <91 0>; regulator-boot-on; regulator-always-on; }; + + vddc_ddr: regulator-vddc-ddr { + /* + * Monolithic Power Systems MP2161 configured for a fixed + * output voltage of 1.5V. This supplies not only DDR_VDDC but + * also DDR3_1V5 according to the schematics. + */ + compatible = "regulator-fixed"; + + regulator-name = "DDR_VDDC"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <1500000>; + + vin-supply = <&p5v0>; + }; + + vdd_rtc: regulator-vdd-rtc { + /* + * Torex Semiconductor XC6215 configured for a fixed output of + * 0.9V. + */ + compatible = "regulator-fixed"; + + regulator-name = "VDD_RTC"; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <900000>; + + vin-supply = <&vcc_3v3>; + }; }; &cpu0 {