From patchwork Mon Mar 11 09:56:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 160036 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp11711250jad; Mon, 11 Mar 2019 02:56:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5fIZY8AUYRsEZl6NLLVWm++5cKuUdefuU0BRkui6PWtr8om8cyuZW7HKoNW+MZiNd8ggm X-Received: by 2002:a65:4581:: with SMTP id o1mr29487882pgq.159.1552298190082; Mon, 11 Mar 2019 02:56:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552298190; cv=none; d=google.com; s=arc-20160816; b=t6aaB2VhyUpgrtBMsM3j2BvmGhC1QI9tMaFZ/6kmr99SakjyMnZcfO4yC1Q3W9zpL4 ZdWI7J9w4qfIarp8TMhkAnfV52RW2DdeKOpKBhDp51LdSFFRcMx+x+HhiSfrX14zobvV zLjPlIYNj5vUaoFgxwn/o8oJE9/M5/P8KB/pbIhjd/NE+jt9keaWW2T4QoXNiuCXtj72 qA6/CH+MVXrANw0hEhSA73LGM2M750Wh1dEdkwjphJMQ6SCTgIAnblRMGp2G6LdmC7Cn BQakJR9fN9zXG2ggXMGcZv0jGY6f2T7W7V9Iq+O+4JNzh8yC9bG03DSp5oyUhnt9DvN2 aBMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dlQmJsnensphSeHI2BxNKgmtHpRyagMWL7c5fX6N84g=; b=Iq04PdGximkNTzcbhkF5ndI+Wz9BB1p6DdayGvnV2S0Bt5KA2k6uqwrzMYyxtLo67b a1DMXGH5kF95fPtSYGFYfsV1LoV/XAraQNXQR1PBYZMn9gqiRCnV5royNmUUdKNcpSwh 0iHhCWISYzLrq2reEg+nlBRP0qpHc7148WpN063UiVznppH1NILuAGNQQQ79QAFOMlMs 5LxitSyXjngl8OdWfn0DlAKTAjihIINbQs5ejudtFjwFjkVqooEl+fWYCbemuaRDMcVn h725KF7jW66CDf7cut2HULgSYEsX/K4QZ8dEQBJlv6IHNKfXWX6M3VqDjYJ6698Ud9a3 JYAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=YqUa5DEP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 12si5347801plb.335.2019.03.11.02.56.29; Mon, 11 Mar 2019 02:56:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=YqUa5DEP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727307AbfCKJ42 (ORCPT + 31 others); Mon, 11 Mar 2019 05:56:28 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:35724 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726770AbfCKJ4W (ORCPT ); Mon, 11 Mar 2019 05:56:22 -0400 Received: by mail-wm1-f68.google.com with SMTP id y15so3595755wma.0 for ; Mon, 11 Mar 2019 02:56:21 -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=dlQmJsnensphSeHI2BxNKgmtHpRyagMWL7c5fX6N84g=; b=YqUa5DEPEbi8cm7SdOSEYeTYKPqw2gtnHok/BuxEl/Xvxr0dSCJDrGkriKlgsQK3Qs k60gH+H+xtVB0ApI/4+XAm/xtBF42Kf1RoIVGBUsIUwQvZqABdfIddINY6IZDh7SK/V7 jChE7/FFUnHx9NyZdvAIaLZqf0ldauqTRFe7DpYysZ+wmZ10bw6ajDOeEJustqxlo83N bidUhgtICIwna7n/42eHfrI0/A7qlyh49LybeyRzpBDZ3nz6xzto9fQfAdJW/25IxlHf G2DOj6DJ5a0tOEu/IrlLI8JoCj52R2dZyZHI+R6wWcvhGjNPf4dNuzUljOvxz0ND40eo T0gg== 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=dlQmJsnensphSeHI2BxNKgmtHpRyagMWL7c5fX6N84g=; b=c1Q4+UX/d4jfXB9pZnlNgY2VOMovsu7NZnc+IAU2QWiBpuqvlemFD0eXaWXv+m6wv7 GY11ZTo4yp88TfHEWFlNulEepjrbW1JImDJJkErEWz4j8g2CyUVHpZBDg8if8HAG9ByV yNV13p9Nr0qkjqm/RtQ618oShUqCCN0u/eDWTG3JUgTFcYApklNdxbKaKQUcVDuLwzJY PpeVBQxyQHIITyMw9u8OeHE9IS7+2APFtOnEe4JbrRviiuusPiF5R4gFSUYn16F+nW8f 9zrUiWV1y4KKJBUaLz7Ja0Yb/4ASAdnUk9Q4rzcSp9TNoXHvBs/oiiZPtyi5Xin81xtx ZuZw== X-Gm-Message-State: APjAAAX1Ny2fbmbDGFLyWAa5rDu3s2RyRWY3ZeGN4uAENPPSUB8ZLt1v Ra4jco9ml9evV9VCmXvo4hdQCw== X-Received: by 2002:a1c:7906:: with SMTP id l6mr16117566wme.83.1552298180112; Mon, 11 Mar 2019 02:56:20 -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 e12sm4764737wrs.91.2019.03.11.02.56.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Mar 2019 02:56:19 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com Cc: Jerome Brunet , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Neil Armstrong Subject: [PATCH 04/11] arm64: dts: meson-g12a-u200: add regulators Date: Mon, 11 Mar 2019 10:56:06 +0100 Message-Id: <20190311095613.11371-5-narmstrong@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190311095613.11371-1-narmstrong@baylibre.com> References: <20190311095613.11371-1-narmstrong@baylibre.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jerome Brunet Add system regulators for the S905D2 U200 reference design. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- .../boot/dts/amlogic/meson-g12a-u200.dts | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) -- 2.20.1 diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts b/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts index f2afd0bf3e28..17696f356ff2 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts +++ b/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts @@ -14,13 +14,92 @@ aliases { serial0 = &uart_AO; }; + chosen { stdout-path = "serial0:115200n8"; }; + memory@0 { 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 {