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: 160480 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp2462343jad; Mon, 18 Mar 2019 03:05:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqztyYRhL5kIh3S0ZS0bJT82Ku2ZXiL7smkxRUGsQgCHj4RlL0AtKPJ0gVpevleOQJuO1qZl X-Received: by 2002:a63:5460:: with SMTP id e32mr16944259pgm.401.1552903556736; Mon, 18 Mar 2019 03:05:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552903556; cv=none; d=google.com; s=arc-20160816; b=mFDA8m7KHwjTS4HA5Nq1ymf0213HxT3yGTqw7BCFWJRp6SCnewxN9rRt/WZicvNpCl c9XqjgswYG7ObU4yPWDtFWU37mqVoR2GOTrblWM0YFqW8xuE3SOF1fPNTVgKTP7JdCP+ y87cCw8W41Kd9+4tNSlgdw6GwfMA8KHmc+sG8fRfcUDR315M1vQ5APHhWInAKV0hB2YC LRGmaxU0PbL2F8RHHRezAVFr+mgXCKkcB2DUQ3belLCYeTrl9FOoSD0yuSce/9YKA+g4 1XnNCC2RYf5nQLfuft6bPrkEcm2nLwxlFN/kZNTF8ies4ja3AJEDAdniJldPmOhzT0/C Accg== 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=ka0M5kZ6v8ySNByodqf/V1Upid5BsB19/rCuYJ69Io0=; b=e40WWRHL15FJLzJYYjrj+genxPfUWdZ4afMYFPp1WvpOLlrUsmFoaoqH0kG4fiKuVh T0smX8kKNNRMH2oWl6cgOiOB3d8YohRWeSWU95ckYtccL+JVTgmfbdOJESggB/FOP7ea 6lvPhG3BEz3drgcvxiylLqAsajkvVlpz0iPZVYF/cQD43kDWvMHRU4fgtUwpnmjx7Gfs Gut/iF2WFLfkGnB3g8ZpzknBR6mexW0Tyu6mdKvgrmnQt6gkUuJGAR7fXqlQ4BHsPBkW VtQY2KYxXbsm0c9vh+7Au8Hrxd8eu6Q1z3gE7xkQPn0iAcSBOPYBoRN1fx8SXnOBV3Q9 mbFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=Q6IPGYW5; 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 k19si8992464pfi.31.2019.03.18.03.05.56; Mon, 18 Mar 2019 03:05:56 -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=Q6IPGYW5; 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 S1727996AbfCRKFz (ORCPT + 31 others); Mon, 18 Mar 2019 06:05:55 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:37224 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727612AbfCRKFG (ORCPT ); Mon, 18 Mar 2019 06:05:06 -0400 Received: by mail-wm1-f65.google.com with SMTP id v14so3538187wmf.2 for ; Mon, 18 Mar 2019 03:05:05 -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=WA4CgEjwGHak+G6sTGdLCeUUDqbTY7C6OZOAzFfInSM/hJV6QOjXYIWAzT+cwUkijF UjpsQjzl5jshvzPEGxjv9wwkYMiKGnKskg3QWsqVcmLWa2hdB74zvoyooX9LpdbxlxUT 1TjID6bbWC9XHAM6GkdZomsLwhsu6DVzdyWXdrh9IfufzQGJsVm1D6rzQIFBhGR7g2HW 7TyDi3ix/ct8WHCiVxdoVS/L7F0d9cle7BKFCfIKylE/cGXLkrrBxPd6wp024ZqsatTa BH7Ua9MMrCTUTTwAwRgtKD7fxFo/s9ItYg+8jaVIxplYHcbUGYffrDCDZE3EK0MmwT5V /7DQ== X-Gm-Message-State: APjAAAV8PsF0uHqrfM9VMu5Y7jTrDVIuZ3UIr77p54ZORT1x5HeXl2GR c+fdzJvljcZSYi7cX53NxOr1sQ== 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 Cc: Jerome Brunet , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Neil Armstrong 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 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 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 --- .../boot/dts/amlogic/meson-g12a-u200.dts | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) -- 2.20.1 Acked-by: Martin Blumenstingl 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 { From patchwork Mon Mar 18 10:04:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 160479 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp2461498jad; Mon, 18 Mar 2019 03:05:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxprhXjLsqDYPGxkLZJZpSg5D+8Vw3xNXOfCFyDjOQwtmamg8R4+RtGBLEJmIWgKparx4fR X-Received: by 2002:a17:902:3a5:: with SMTP id d34mr18499853pld.174.1552903511664; Mon, 18 Mar 2019 03:05:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552903511; cv=none; d=google.com; s=arc-20160816; b=pcBhsmTEGh+JDYbMy8dVbAXNoUKblDaTCb2Hb+13NcclvUKn3ukWBJ2jZaS6eCh7vJ RHjjHcQ527LbhVMw12C+jfB4dRWbl7Qg8mNLbfoMDZY/8o4xa3NJbInq9Hvezzf6Plet H+f8rHTQsWlYv6I0zm8MPs9STnGsW2TexwTKowm0Of3EedXgJrzawOfHYn3D0qnR/gLX pzRwYBM8oCqdaMgecbjKXoVbl8rhSma0Hvj773GcFXJMWcFwDrokSL8kt/HjsGeTOtdo 5EZ/k7V6wb7/8IwzaP9fW1SFRwnfIWv1uuWqZc7an7P4ZssjEHydQJgg9o/Qd6oZNvTg QJdA== 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=CrU7oOZF/XD8UT4BF226LZ7D8K1QM3Y0TXhUURbvrB0=; b=KCy9pDwNESlrFHnMktG9vMWXXwH3oC2Ls1CVMdTSyVIxQ4CdUCpyDHYw9B3xuZMMsi C4QDrEcVHOEazT/jY2VeaPlGAhOO/WniDG8IQaZoJuZQJ8/hSiHUoloKE4EV3bnbNlXI pQi9R7ifHnYAPeQffgNB6D+a4keSA+egaGJVv5Ko3RMR/E68nVVlJq0Y6CcN4rdWIX4z AjndtBnOFp6jAqe0Y/rUFh5EY6i5P9DiDkP3YE5X7GRj0iXc3klXbCJ9EZXUHYJLb6Ch BghAhBS7N4OrLya+pvRN4ydEw+DJO4kN0+3axAILdl9M743WmFPH0gsFS0N9yvLJy3Zs RZXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=TsN+9sj+; 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 a5si1965403pln.225.2019.03.18.03.05.11; Mon, 18 Mar 2019 03:05:11 -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=TsN+9sj+; 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 S1727755AbfCRKFK (ORCPT + 31 others); Mon, 18 Mar 2019 06:05:10 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:38438 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727066AbfCRKFH (ORCPT ); Mon, 18 Mar 2019 06:05:07 -0400 Received: by mail-wm1-f65.google.com with SMTP id a188so12026783wmf.3 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=CrU7oOZF/XD8UT4BF226LZ7D8K1QM3Y0TXhUURbvrB0=; b=TsN+9sj+Hz+Sa6E4DPKcieTcPZJrb2JZbT2uLEeOV/z9stXQgJB33zafHM7LXV7zG8 oXrWCACLEQTI9pJk+PuceITOTywgor9UfADMbgkz1sKS3CbR9POjfTmmmKrAskc5WLUM tDQG146IqhUg5AqdyyqU2jWrK4bXVyYA0unqv510MckRExi8M3khA826CpmEpj48ksCs t9sAtScQluR0BSCZ+flK+FWF8L0rB1mWR9h2HwaBVtq3rvMaGQVKsgQxtvMMgjOr+DQz /0cNK7eK2p/lOFZNJQpG+y4sWnXOG45nEDYj9BBWv22ddiQyZqpb/bPQOvWg/a2W2Yvn p+UA== 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=CrU7oOZF/XD8UT4BF226LZ7D8K1QM3Y0TXhUURbvrB0=; b=g2i5Ml1RpaLH6+BTVYfK/kPtifhmAx1sFUkEoPl5g7aZe+q64Wl+KFKiyPgnuMqFaH 4IrFY9wXUfhE9AFvui/k5N1tGuGnZd6Y3s597xdNvEHrk0CN3EKPtfHWXbE4nZ0WkcWT W3xNEYQG6NxJgqzxa/aW3S9qzYVho2GxI2nZPtHQNQ8+8JqePLXuVyQoFv6dVVd8FEYt q5bX9CV1KPXTzI1ixHUtzq/qUCxEEC2/7eF+6yW+9QqI9fevFBrn+hwjx76g1uoesj32 dDCgXousIeuc6CcPIbwWZfl5wiv+nFq9luRXgd8l10U4Zn854oyQo5NYxfg7mztX0U+o A6TA== X-Gm-Message-State: APjAAAVOVi8hqbPAnTWoq8FhV+Tn1eu14kGCc5bpDZGMHh12N3wuw6Ue KrIxvYz/gj+M/oMvyf1eTRYozA== X-Received: by 2002:a1c:480a:: with SMTP id v10mr9876623wma.57.1552903505087; Mon, 18 Mar 2019 03:05:05 -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.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Mar 2019 03:05:04 -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 v2 05/11] arm64: dts: meson-g12a-sei510: add regulators Date: Mon, 18 Mar 2019 11:04:52 +0100 Message-Id: <20190318100458.5619-6-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 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 | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) -- 2.20.1 Acked-by: Martin Blumenstingl diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts b/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts index 63c515fe4996..43d57e20294a 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts +++ b/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts @@ -6,6 +6,8 @@ /dts-v1/; #include "meson-g12a.dtsi" +#include +#include / { compatible = "seirobotics,sei510", "amlogic,g12a"; @@ -15,10 +17,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 +59,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 {