From patchwork Mon Mar 18 10:04:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10857225 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 48E9717E9 for ; Mon, 18 Mar 2019 10:06:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2616A2931F for ; Mon, 18 Mar 2019 10:06:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1A1A329322; Mon, 18 Mar 2019 10:06:31 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable 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 B9A6C2931F for ; Mon, 18 Mar 2019 10:06:30 +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=asvVIyea6T40c6tWFVJxVMC6Qz/Moz+KeS2+uUtGQb0=; b=pZwbA+2Yy/HoqM rK8xFFH6nPHSAcHeHnRwhKKxOb27AE1eqfEIxgw0veYyYmuPYeUNEnFkycZNhXQREldVCcGGIELDQ Oi0XAgfl2YZ9wRU7w7Bh+/VRSAX1wZlIbEK/IWqvOKRyuYS865n2Yth85xcc6yD4IUdgnpU4a9GQ6 /jknOlGov7P85H2w2lPs9tlonXhnYlQV76ztWVVLHAD0o5VXn3ixDMMjB2iHxM+V9HSpMTuBx57OW 9wXMeazcfDVc3k86lnP26sz/ZYL6iizsGNfTQD60oj3ICzKjz243GwYMHD01DkQURi0xz/qeVM7Ld orA381bR/ie+kkhlOnnA==; 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 1h5pA5-0002Oi-8X; Mon, 18 Mar 2019 10:06:29 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h5p8k-0008KB-9B for linux-amlogic@lists.infradead.org; Mon, 18 Mar 2019 10:05:11 +0000 Received: by mail-wm1-x344.google.com with SMTP id 81so4784746wme.0 for ; Mon, 18 Mar 2019 03:05:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ka0M5kZ6v8ySNByodqf/V1Upid5BsB19/rCuYJ69Io0=; b=Q6IPGYW5JnzybV9eCeTUZGpZ1t+QYBOReq0nmki/vqAM6f2toL/vrjpXSqtdC6EdSF V6fjdzkqiS2uvJrNUUQ0+07LUcjVsxVryt2prNRQOCFNI487A+sUZNIobOq2WGvbnYvM WGrLRHx/AyYg6H6sbX34SDMQ9WuZvHLvOuPYgBaj8dBj0X0lkNcSuNAC1HTkGRZQGYc8 51zwHFpnmae1ea6bpf6ZMRy1Oqj52erjsGJSxbxKO31+qO59w8B1h7d/+NByJu2/LdS7 nG20pLv2QUQR3TW8Bb9eSNg4cr6/oErqroHmxvqP4I0K4Y0jiPgravFcQGekEt5/A5Is 4I8g== 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=ka0M5kZ6v8ySNByodqf/V1Upid5BsB19/rCuYJ69Io0=; b=m8yZ4iHWNp/apX59KB4aonpd+0/c9lFnFov+aqmH6QtwMMmWFUYBaZsQtdEBn3SEPk 8wEXyD4ZpzsNiu1Ffe7XNONp/YJfYncXVlvYg/ZQfrF33MaL19GPpSWZ9uYMBQE2AqGF VUga1/eVPmW/DNZV6ZQdUsC8n++B+NZ2PIeABQ/7q/PS3l5/+e1lI+KyYMf+A0uWsJGr cdD5s7zBLh/KjdfWaf4LGqd0U63Xl5sYdlcwR0de2CEGoZvXUwwR8evHoC1eeAtPrEn3 XhQVj8BNQH2KD8PFEvxYB3tT7nv1aKVO+fpLd/DHQFMMALFB3cQ/UARND4bGCmj4/lOk l57Q== X-Gm-Message-State: APjAAAXe9CADPszR6arFK+rzmLIN9QnQrek04ZNEpkj1HvRjPGSi4XX/ ig+jsaD+7K8/nwNpH7AGdYlJzQ== X-Google-Smtp-Source: APXvYqzauSS7+U5mbKeWJsPQvpH05dphmAXYiE8cM/k4iZwv2zyyZWyaecnUIJJttDGlsL1iTuLYEw== X-Received: by 2002:a1c:d189:: with SMTP id i131mr3139666wmg.151.1552903504114; Mon, 18 Mar 2019 03:05:04 -0700 (PDT) Received: from bender.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id i11sm5216800wrp.40.2019.03.18.03.05.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Mar 2019 03:05:03 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com Subject: [PATCH v2 04/11] arm64: dts: meson-g12a-u200: add regulators Date: Mon, 18 Mar 2019 11:04:51 +0100 Message-Id: <20190318100458.5619-5-narmstrong@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190318100458.5619-1-narmstrong@baylibre.com> References: <20190318100458.5619-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190318_030506_651903_7312A247 X-CRM114-Status: UNSURE ( 9.35 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, Neil Armstrong , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jerome Brunet Add system regulators for the S905D U200 reference design. Add some regulators. Still missing * VDD_EE (0.8V - PWM controlled) * VDD_CPU (PWM controlled) Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong Acked-by: Martin Blumenstingl --- .../boot/dts/amlogic/meson-g12a-u200.dts | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts b/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts index f2afd0bf3e28..c69328d16333 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts +++ b/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts @@ -6,6 +6,8 @@ /dts-v1/; #include "meson-g12a.dtsi" +#include +#include / { compatible = "amlogic,u200", "amlogic,g12a"; @@ -21,6 +23,83 @@ device_type = "memory"; reg = <0x0 0x0 0x0 0x40000000>; }; + + flash_1v8: regulator-flash_1v8 { + compatible = "regulator-fixed"; + regulator-name = "FLASH_1V8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&vcc_3v3>; + regulator-always-on; + }; + + main_12v: regulator-main_12v { + compatible = "regulator-fixed"; + regulator-name = "12V"; + regulator-min-microvolt = <12000000>; + regulator-max-microvolt = <12000000>; + regulator-always-on; + }; + + vcc_1v8: regulator-vcc_1v8 { + compatible = "regulator-fixed"; + regulator-name = "VCC_1V8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&vcc_3v3>; + regulator-always-on; + }; + + vcc_3v3: regulator-vcc_3v3 { + compatible = "regulator-fixed"; + regulator-name = "VCC_3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vddao_3v3>; + regulator-always-on; + /* FIXME: actually controlled by VDDCPU_B_EN */ + }; + + vcc_5v: regulator-vcc_5v { + compatible = "regulator-fixed"; + regulator-name = "VCC_5V"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&main_12v>; + + gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>; + enable-active-high; + }; + + usb_pwr_en: regulator-usb_pwr_en { + compatible = "regulator-fixed"; + regulator-name = "USB_PWR_EN"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&vcc_5v>; + + gpio = <&gpio GPIOH_6 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + vddao_1v8: regulator-vddao_1v8 { + compatible = "regulator-fixed"; + regulator-name = "VDDAO_1V8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&vddao_3v3>; + regulator-always-on; + }; + + vddao_3v3: regulator-vddao_3v3 { + compatible = "regulator-fixed"; + regulator-name = "VDDAO_3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&main_12v>; + regulator-always-on; + }; + }; &uart_AO {