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 { From patchwork Mon Mar 11 09:56:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 160037 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp11711463jad; Mon, 11 Mar 2019 02:56:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxxf2we5KvUyZ/POm/A1/MKjSUyzMLUZi2W4TZRJ0gx+AEE4VM0PgdJ/X41FcHrzGRE2dBk X-Received: by 2002:a63:1925:: with SMTP id z37mr29019581pgl.67.1552298206677; Mon, 11 Mar 2019 02:56:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552298206; cv=none; d=google.com; s=arc-20160816; b=JpSbBMwSAbXXUNqKljt9KY2FurOcozq0jupdEtB5+mMkfoBR3YQF2kqC+Fqh5FfCKQ Ae0r8r2RsNd8eZsj65pvfz+IMuwVNYwd3LxBEaa5XUMOAJwxRvXfBkfTrCsdMqTZqdha F88f6F/xhbN6VHrDuIJ1IKSCSGQ5OXdmsjyOHvrJab3OFEGgzAsEb3kDxMrowB9CUkaS j5VsFaK4Mf53qKOkbDKDArsnPPO4nsCMdsis4Wr+r+4/D2fJHF9EwYFOBWCXJJbWR8O3 0m+etrDvSaWEHlhOEB8u5loz9jA0q/6dFvlGXWODyPi3U4cfaA/3RJtU4FHjL1oYt0Nd GHtA== 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=1vd80S55Frb6CGjHBLvPF+QFGjEdspA5jjiX4inId9o=; b=0+o29nvz127fYlwJzyrxApFI7zoVmS6G2q8hegHM/38cKO16/tBQUmNRK6sOYdXuqT 34/Q/S18VC/vr0dkv5HWWztpovwAsZ8EKi18uIKpPkut3n6pvj2CCKG4RuSRut282ASJ PRgy2Xd2tK/DDQpt1Rh64ztVs8yPDvx9VIvyxT/RVlTomGK33GYBpxszXwROe5ngB9i3 IJK+vML+Dy5qgM+m+s4Gaf+ICiB0yv7FxJZuMTNxj9SlNhTmSXGCbNzExHYigvyg18Km tf3W4KsvdpVEWcyenEX5pLRlV8CVKEam9s7yuemyakgL/6HMRCBlkZ4/53DsJfdeTYGL EDSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=xTNsRIDy; 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 u4si4721623pgh.278.2019.03.11.02.56.46; Mon, 11 Mar 2019 02:56:46 -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=xTNsRIDy; 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 S1727323AbfCKJ4b (ORCPT + 31 others); Mon, 11 Mar 2019 05:56:31 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:38529 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727219AbfCKJ4W (ORCPT ); Mon, 11 Mar 2019 05:56:22 -0400 Received: by mail-wm1-f68.google.com with SMTP id a188so3566813wmf.3 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=1vd80S55Frb6CGjHBLvPF+QFGjEdspA5jjiX4inId9o=; b=xTNsRIDydRcgWEh+tsTla52WubKGreooa9VLwv8JP6SkimjYefF8rx8p6emQJh26Jm wtlmKGwOyiADzlLZly43pzSH8ngPmwqPD8niYNnmVPAh2aRAZDH7xTFd5Nw5z9zikU1y NvJe8oz/CmLFVNBKd7pdKVJhtylR1YRRUS0w7W1NE/YoWua6qPJKYMPbUE3fn2D5UzcB efTdtwRW06z8WtFHAb10aVTDm6dZFfXJm49wAHnV+Cf2K6W3jOcSczG562ggX47YOQuG 9hi7hid5FCDr40p7PeoPY6xkmXt7XWa+YrXppizOUHEV0HarOuv0K3E6gIU4tyqvgYWr KJ+g== 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=1vd80S55Frb6CGjHBLvPF+QFGjEdspA5jjiX4inId9o=; b=C8TZNFLFfie6V83aXNBmLSbgvjAg9/YfCeLEV3Af4M1Ez+J5wYXzM2Ig2D5XG/k/fA RheoTtx2xAMWGkmpc0YAnOhcD+zUl0tsL6sZ2wVQHIPYKZPS3w77y9Dvz+SXPXwUmtBD hUCCuEU2Z/pZc5ajgFOJhuBy+YPWd3K4Q8PvJcVR8Why4EuXoK/EfllssM3h0yBQDzQE Ay5J8lJIMVNWGoWHho8/y/zAD7bCstRTTwRjIUHb4bEd2Ok4sOt7B3Um4+aBZKG+54p1 qpce+yTJ+dVIVvXnD51Gv7tmJZZZzs+1NUIfmGzE5q/tLS1XiCcbatyNUA3v/qbx0fXV nr9g== X-Gm-Message-State: APjAAAXgFcBDJvjwvfUfz/ojEeyPNL0rc4+k39QBuCcqoxUKdpRi49pU kuImBXvHtIN2h7OYiZiAr+d0Dg== X-Received: by 2002:a05:600c:246:: with SMTP id 6mr16982360wmj.150.1552298180816; 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.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Mar 2019 02:56:20 -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 05/11] arm64: dts: meson-g12a-sei510: add regulators Date: Mon, 11 Mar 2019 10:56:07 +0100 Message-Id: <20190311095613.11371-6-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 some regulators. Still missing * VDD_EE (0.8V - PWM controlled) * VDD_CPU(PWM controlled) * VDDQ1_5 Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- .../boot/dts/amlogic/meson-g12a-sei510.dts | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) -- 2.20.1 diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts b/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts index 63c515fe4996..2b11b5893958 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts +++ b/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts @@ -15,10 +15,36 @@ serial0 = &uart_AO; }; + ao_5v: regulator-ao_5v { + compatible = "regulator-fixed"; + regulator-name = "AO_5V"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&dc_in>; + regulator-always-on; + }; + chosen { stdout-path = "serial0:115200n8"; }; + dc_in: regulator-dc_in { + compatible = "regulator-fixed"; + regulator-name = "DC_IN"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; + + emmc_1v8: regulator-emmc_1v8 { + compatible = "regulator-fixed"; + regulator-name = "EMMC_1V8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&vddao_3v3>; + regulator-always-on; + }; + memory@0 { device_type = "memory"; reg = <0x0 0x0 0x0 0x40000000>; @@ -31,6 +57,35 @@ no-map; }; }; + + vddao_3v3: regulator-vddao_3v3 { + compatible = "regulator-fixed"; + regulator-name = "VDDAO_3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&dc_in>; + regulator-always-on; + }; + + vddao_3v3_t: regultor-vddao_3v3_t { + compatible = "regulator-fixed"; + regulator-name = "VDDAO_3V3_T"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vddao_3v3>; + gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>; + enable-active-high; + }; + + vddio_ao1v8: regulator-vddio_ao1v8 { + compatible = "regulator-fixed"; + regulator-name = "VDDIO_AO1V8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&vddao_3v3>; + regulator-always-on; + }; + }; &uart_AO {