From patchwork Sat Jul 27 12:12:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 11062359 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 941C3138D for ; Sat, 27 Jul 2019 12:13:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 85A5428A8F for ; Sat, 27 Jul 2019 12:13:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7963128B2D; Sat, 27 Jul 2019 12:13:09 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 2AB0A28A8F for ; Sat, 27 Jul 2019 12:13:09 +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=ShB6EhKfhWmTlQNdyNpdsBv1g4Q2KCXJYfVtjBZu/vo=; b=tzO3b0JI66IBO3 kYrhcffFMehaBqkxa7mRyPYpwxaQKM9tGr6eJO67qXzdhgwqD8LRCDygHC7DzncBDPZ/YVCjPSF57 bGEM5HGQDIsOA2h5Y/sgRweP2I4nafNm1R+O8P9xlt1c33xHzgE/BxCeJXcAGsjWNl3N91jUprkmW 0DBXL8Pxzgp16jIflE6Z+duRjGuJHYCXXb4n8F/tsLs6RZypOYImRNpT3Wg8GEM2SPyMw9u3Zz5Wq khX3bRJZvUsxyqUgR36+dnX/Na2kO3QUrF3tTb4qICj/ztFx1C608lucBax+oMY9eEfQbHecXkOM1 PLJmQ/kB6XlhHjVQISUw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hrLZU-0001ER-Au; Sat, 27 Jul 2019 12:13:08 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hrLZR-0001DU-Vq; Sat, 27 Jul 2019 12:13:07 +0000 Received: by mail-wr1-x444.google.com with SMTP id f9so56987525wre.12; Sat, 27 Jul 2019 05:13:05 -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=5qILRtduAUfIHbRYJc2OqUYhBvVLfrX/ZR6fVK293Dg=; b=OMghRo1khsXGsH/E3U8li8QeP9nGMpoQ9pv8NdPqjMB11WNhVxf0zBgRIA5t+7cSE/ CiL566CDiElHLOqEQkSY0JUFMUZbo+BL0oS/AAAqjq+hHV5tREnSs6Gs5rCv9g23JxQJ 3n4dNgJ5IZrjjena3mYsGgu4L1ywaQAjFhaKaubM5KIZHt+SD4h+HtCgyNJhrlA4VlxI 3hWTX3sFLoAsvdzLjlxs3CSjq71HDgET2c0K/RCjy3f2JKmzV1dYwWIIE5iPkxNzaWwy CZQiXrOyaL+p5v9lP4jPT7Cuz00G39ecfbKPyVh1O2sCsbrwelERx6vOC4WkqV1re5Ei C4SQ== 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=5qILRtduAUfIHbRYJc2OqUYhBvVLfrX/ZR6fVK293Dg=; b=WFiCkcKr3HU1Fefgt1Xz9ne6G+t8AL66SweHymCakxd3NC4QlOfikLR6uAE0mhO2rF Rv+FL+Y5W6Q5emcmcMWuE6hHY7ObcnKqElz/F9BTvW7GahSyFbFn/PMASLWz75nCEqUz kbger7hNdF0Od9bh0vRTMxVV4Ddb0aj2ySpbE4kTDNLgJwrKfn0Mh2TwLxS76ydo9Eaj xWlQ0mi97+rjyUhSvHagujO6S6uIJ6SUkpdhbX0Ca5YB1t0tm+vsLfspXjYyrU8ijqjr OOLlxJJ3rUptVceEYNP5jtygv7p68Qry3ttXaF47w95tkI+ldvxstizH3/PVRITB86OD Fb5Q== X-Gm-Message-State: APjAAAXtmbwyAyb0JmYd7R2nKVpmlZgDAzGqzukm9axU41pBVsuVTr4A 0NIwXn1Jf1A2OdFYQD5vGwillNqp X-Google-Smtp-Source: APXvYqwNsLsnl3W1cQVmOuElc6fGGraRV+A5W8UDKBaaQI954FwVDQ69i9eU6haQms0rDvfSR4mkLg== X-Received: by 2002:adf:9ece:: with SMTP id b14mr59108580wrf.192.1564229584036; Sat, 27 Jul 2019 05:13:04 -0700 (PDT) Received: from blackbox.darklights.net (p200300F133C65C00B418D0F4A25A19EC.dip0.t-ipconnect.de. [2003:f1:33c6:5c00:b418:d0f4:a25a:19ec]) by smtp.googlemail.com with ESMTPSA id o26sm111786569wro.53.2019.07.27.05.13.03 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 27 Jul 2019 05:13:03 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com Subject: [PATCH v2 1/4] ARM: dts: meson8b: add the PWM_D output pin Date: Sat, 27 Jul 2019 14:12:54 +0200 Message-Id: <20190727121257.18017-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190727121257.18017-1-martin.blumenstingl@googlemail.com> References: <20190727121257.18017-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-20190727_051306_023452_4D34B441 X-CRM114-Status: GOOD ( 10.07 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Blumenstingl , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The PWM_D output is used for the VDDEE PWM regulator which supplies for example the Mali GPU on the EC-100 and Odroid-C1 boards. Add the output pin the VDDEE regulators can be added. Signed-off-by: Martin Blumenstingl --- arch/arm/boot/dts/meson8b.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/meson8b.dtsi b/arch/arm/boot/dts/meson8b.dtsi index fba2c70c2fda..30fca9bb4bbe 100644 --- a/arch/arm/boot/dts/meson8b.dtsi +++ b/arch/arm/boot/dts/meson8b.dtsi @@ -361,6 +361,14 @@ }; }; + pwm_d_pins: pwm-d { + mux { + groups = "pwm_d"; + function = "pwm_d"; + bias-disable; + }; + }; + uart_b0_pins: uart-b0 { mux { groups = "uart_tx_b0", From patchwork Sat Jul 27 12:12:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 11062367 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 D5EAD1398 for ; Sat, 27 Jul 2019 12:13:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C6C6028A8F for ; Sat, 27 Jul 2019 12:13:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B995F28B01; Sat, 27 Jul 2019 12:13: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=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 B4AFC28A8F for ; Sat, 27 Jul 2019 12:13: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=kmLZFaaVq/C7X29bx/W8peQTUXSnazyk/FjovKMMEZ0=; b=n0jNAoWqdQ41Jz clWh2NPWwT7CvwcLNP6yFa9MOuku/8dZOZgyjcW0fnt4FN4yLhN8Ah3O2X/2fqmP4t7cWjN5MTZgr bqAaRHuoQteh+9w5kt64z1C1kxh3hMqs7PBdpdzkaYiNj96cKuOrzNxsuCqJ6r7fpH0u7orGv9ib9 O+93NX1Spb9BY70kc/UxCzqfV8BZ8aD2cCe1TuV9tytjhJyftwz0k1KkQjoEWyhcAmRAzAXysaI7M EkqRQSf1lkjJSimKeYObo0scpcaoyaL+DY12RVpYCDTxhbZARMQm0xk0yUfbe0X5IowM+3gTkc5qI xa1U/QEa0GcauTSrNn2A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hrLZv-0001nI-Vq; Sat, 27 Jul 2019 12:13:35 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hrLZS-0001Dh-T0; Sat, 27 Jul 2019 12:13:08 +0000 Received: by mail-wm1-x343.google.com with SMTP id h19so39734670wme.0; Sat, 27 Jul 2019 05:13:06 -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=zjlCoClPn+D5FtsYbuSMIRYDvq5CiGUidcCupd7dJ90=; b=EQ90Eqq29nsB2bd9Ao/E9BDvc34M6m2OUORIMOGkQInOkxt8F+vZTze3ALhPN5U//z 5qZBaZBl0IU8hJ2gVN9KoZUdQAJyXmclk/HW3+ofk3eSJ2D6fBbtiaHaSWVdCZ4Qi/Av l4RpXo7W6Sbnp0CXOPaTF5oB5lopksyqVTJRzoBhzMmyZURS2Nh2VIzThcxLAXao3rmr O3VCe4SngwbQ/Fu0F6YnPW+zpQ5iy2Pci0LOX5czlku5Bst/8Wx94aPop6LCYzYr6p2P dDVieoEWxHr+pTdw7DHK1YdGBtL2d/KywrovVKbCvqk/Xa1cuZAe4Rj1o8YXoSGjPDcf y2SQ== 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=zjlCoClPn+D5FtsYbuSMIRYDvq5CiGUidcCupd7dJ90=; b=t4CoBQ2L82cgYtnmGkeo1Y36aTKDmrXZNUFXj7PG8gBERcpvmzGcZL7r453Cp+80Vs +Mi5coeKQSsQmP7zQzaSh43TwITltvnQr1ygLcCZd3ory+EQYKtog7OwOlNw752A75Od BTZqCPP+pQ3xgMwsEXGqA4Ww6Ajw47m+ih/EmVFMz+CNS0ZmdngEGP29mQI+jnQ8L3g/ Z1NkhOLYZUDhR2LC7hBFNQdo3eRMua9SEEthNJkWMKjR7ncSiabrZyQmYKsJm017J1z9 aoD4jXy6IKn54vMgyaDPHg7g4tgzB+bbtNKIJRGsaNQ8acOIJHEks/9lXr29fc8rmzmU BHFA== X-Gm-Message-State: APjAAAUx4GQuzOw7W1W1Hbq8rIlqCKZQd1NMvWvKm0aCOEusUCER3T1s i9YelfkuLZVbKYMlJTQGQLyHWTD3 X-Google-Smtp-Source: APXvYqy+qq3YOx5KKzeDY893qKSGWhvt8/1aA0TqVr6FY9sy46M3iJUKGQzpmPYsEiqOHSu6EZKLJw== X-Received: by 2002:a1c:acc8:: with SMTP id v191mr92720425wme.177.1564229585104; Sat, 27 Jul 2019 05:13:05 -0700 (PDT) Received: from blackbox.darklights.net (p200300F133C65C00B418D0F4A25A19EC.dip0.t-ipconnect.de. [2003:f1:33c6:5c00:b418:d0f4:a25a:19ec]) by smtp.googlemail.com with ESMTPSA id o26sm111786569wro.53.2019.07.27.05.13.04 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 27 Jul 2019 05:13:04 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com Subject: [PATCH v2 2/4] ARM: dts: meson8b: ec100: add the VDDEE regulator Date: Sat, 27 Jul 2019 14:12:55 +0200 Message-Id: <20190727121257.18017-3-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190727121257.18017-1-martin.blumenstingl@googlemail.com> References: <20190727121257.18017-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-20190727_051306_931049_D401F939 X-CRM114-Status: GOOD ( 12.63 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Blumenstingl , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The VDDEE regulator is basically a copy of the VCCK regulator. VDDEE supplies for example the Mali GPU and is controlled by PWM_D instead of PWM_C. Add the VDDEE PWM regulator and make it the supply of the Mali GPU. Signed-off-by: Martin Blumenstingl --- arch/arm/boot/dts/meson8b-ec100.dts | 31 ++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/meson8b-ec100.dts b/arch/arm/boot/dts/meson8b-ec100.dts index 96d239d8334e..bed1dfef1985 100644 --- a/arch/arm/boot/dts/meson8b-ec100.dts +++ b/arch/arm/boot/dts/meson8b-ec100.dts @@ -219,6 +219,27 @@ */ vin-supply = <&vcc_3v3>; }; + + vddee: regulator-vddee { + /* + * Silergy SY8089AAC-GP 2A continuous, 3A peak, 1MHz + * Synchronous Step Down Regulator. Also called VDDAO + * in a part of the schematics. + */ + compatible = "pwm-regulator"; + + regulator-name = "VDDEE"; + regulator-min-microvolt = <860000>; + regulator-max-microvolt = <1140000>; + + vin-supply = <&vcc_5v>; + + pwms = <&pwm_cd 1 1148 0>; + pwm-dutycycle-range = <100 0>; + + regulator-boot-on; + regulator-always-on; + }; }; &cpu0 { @@ -269,6 +290,10 @@ }; }; +&mali { + mali-supply = <&vddee>; +}; + &saradc { status = "okay"; vref-supply = <&vcc_1v8>; @@ -350,10 +375,10 @@ &pwm_cd { status = "okay"; - pinctrl-0 = <&pwm_c1_pins>; + pinctrl-0 = <&pwm_c1_pins>, <&pwm_d_pins>; pinctrl-names = "default"; - clocks = <&clkc CLKID_XTAL>; - clock-names = "clkin0"; + clocks = <&clkc CLKID_XTAL>, <&clkc CLKID_XTAL>; + clock-names = "clkin0", "clkin1"; }; &rtc { From patchwork Sat Jul 27 12:12:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 11062375 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 A971C1398 for ; Sat, 27 Jul 2019 12:13:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B0FB28A8F for ; Sat, 27 Jul 2019 12:13:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8F23D28B01; Sat, 27 Jul 2019 12:13:57 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 4178828A8F for ; Sat, 27 Jul 2019 12:13:57 +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=soVIUcZLhSMYm6u49qko7OVexLsAQYwm8CZ22R9Mz0o=; b=TSX8fUJUcAY8sV wpxOrEqAodRW7TsGwvJKiAerHjPySPs7nJa4hKjoMRH5GdUHNvz3rH79gwGNdiTlvYZ4SrKxdzT8l FAd32Lmbhj8TJtysNdy0EhYJAp/+O3qThnWgmtylZdeehQtkZGwOqdV8fOzib+D/IwQkFuxpJldnd ir97fhEV+DEabVg1htduEG6IuIqoU+fSHbD3NP4O+ATOfvAo47ZNRy26vzrmbGWtXY4W0lMsjpt1B OuoMz0EOA+Q9TQXpxpa5RaZK8qzYYyDBV6dOnYOy+YZk7vjbM+8InT6wFH/iEggMsODStpf3iIEfb 0cr2Zaqeev6P6kU47RHg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hrLaG-0002JU-Vx; Sat, 27 Jul 2019 12:13:56 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hrLZV-0001Dv-Ee; Sat, 27 Jul 2019 12:13:10 +0000 Received: by mail-wm1-x341.google.com with SMTP id l2so49692276wmg.0; Sat, 27 Jul 2019 05:13:07 -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=M5VJ77HzSYMyOnNSU34/RgfTpL1VyZ0UT5tc7uiCpts=; b=bOyXsaODj+oGFDXnUUVuZUhUfBLQL2o2uw0ObAXJqabol6/LNMKy8PQiUMWDezAeCm nKDX37UApFaq3ykUpHVBNKpdBHdVxNdepU+1Kz+PAc9IyUonr7WqJ/WjaPFFp9cjZFfr yiF2qlYqsHcSyPsCYJFFGLl2QmtMnP7PDb7yoSq/RBvOAlyrcAvHOvgIaq7eUwXnz/lr FlTlDq/5INFPHfh1mo0p+hBWYKge9eD8+6TuZ4CoCQALMq3GbE6/gkzAIyfucXPeanSn tQk6BFgv1mrjIAdChmyHzQTLqH/Hzs5e1spOAfENPe1+UCYPF318Ee3AagW4taHmsnWr 18xw== 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=M5VJ77HzSYMyOnNSU34/RgfTpL1VyZ0UT5tc7uiCpts=; b=qh5fyeUR5k5AW+97P+rgSDms9Woa5swSHv2n5ApysBi+lQeH3Ch6ZsVPRKkAEkgtis aBcyTPjvnZUEjocnTxrKNSrcxMY0drJIcR/WSJfIjfigpNkjROXy7VuMTfiGUWfpGa// A5Wb4m4HHyRy9t4JcenrRZ9zYnxe+n73PeE2SQyvugCiO2rUCBEQgfkliRGn2cViJdFQ VY8SX2gO7vmzUKJHC59vsF11CCzmCr3aQ1vjtWPCKaOXns0fEVjzpsRPs/1bxkOVf/OL GgPquhkpuzdLCr+JoujHmVl4L9md/JWWNw1zw5WQ7nUIcGKG9QUgn4E2Xhkk+0i2OF/H gliw== X-Gm-Message-State: APjAAAUzSNQGY+j6GjIN1grP5vOJlN5psooMGRQvS+Q+lLWXEYIEemBU WYw47eu2Qyw8dM3OyYFflY8mGT8u X-Google-Smtp-Source: APXvYqxbZtZTQGMBIkUPVU7HbCAa3FLI7lq62O0oi2gTvqH7vtlDPfKNmRXpqxz193SKwUhMWl7l/g== X-Received: by 2002:a1c:544d:: with SMTP id p13mr93863021wmi.78.1564229586042; Sat, 27 Jul 2019 05:13:06 -0700 (PDT) Received: from blackbox.darklights.net (p200300F133C65C00B418D0F4A25A19EC.dip0.t-ipconnect.de. [2003:f1:33c6:5c00:b418:d0f4:a25a:19ec]) by smtp.googlemail.com with ESMTPSA id o26sm111786569wro.53.2019.07.27.05.13.05 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 27 Jul 2019 05:13:05 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com Subject: [PATCH v2 3/4] ARM: dts: meson8b: odroidc1: add the VDDEE regulator Date: Sat, 27 Jul 2019 14:12:56 +0200 Message-Id: <20190727121257.18017-4-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190727121257.18017-1-martin.blumenstingl@googlemail.com> References: <20190727121257.18017-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-20190727_051309_497946_6D10706C X-CRM114-Status: GOOD ( 12.14 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Blumenstingl , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The VDDEE regulator is basically a copy of the VCCK regulator. VDDEE supplies for example the Mali GPU and is controlled by PWM_D instead of PWM_C. Add the VDDEE PWM regulator and make it the supply of the Mali GPU. Signed-off-by: Martin Blumenstingl --- arch/arm/boot/dts/meson8b-odroidc1.dts | 27 +++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/meson8b-odroidc1.dts b/arch/arm/boot/dts/meson8b-odroidc1.dts index 86c4614e0a38..90f66dc45115 100644 --- a/arch/arm/boot/dts/meson8b-odroidc1.dts +++ b/arch/arm/boot/dts/meson8b-odroidc1.dts @@ -154,6 +154,23 @@ vin-supply = <&p5v0>; }; + vddee: regulator-vddee { + /* Monolithic Power Systems MP2161 */ + compatible = "pwm-regulator"; + + regulator-name = "VDDEE"; + regulator-min-microvolt = <860000>; + regulator-max-microvolt = <1140000>; + + vin-supply = <&p5v0>; + + pwms = <&pwm_cd 1 12218 0>; + pwm-dutycycle-range = <91 0>; + + regulator-boot-on; + regulator-always-on; + }; + vdd_rtc: regulator-vdd-rtc { /* * Torex Semiconductor XC6215 configured for a fixed output of @@ -276,6 +293,10 @@ pinctrl-names = "default"; }; +&mali { + mali-supply = <&vddee>; +}; + &saradc { status = "okay"; vref-supply = <&vcc_1v8>; @@ -308,10 +329,10 @@ &pwm_cd { status = "okay"; - pinctrl-0 = <&pwm_c1_pins>; + pinctrl-0 = <&pwm_c1_pins>, <&pwm_d_pins>; pinctrl-names = "default"; - clocks = <&clkc CLKID_XTAL>; - clock-names = "clkin0"; + clocks = <&clkc CLKID_XTAL>, <&clkc CLKID_XTAL>; + clock-names = "clkin0", "clkin1"; }; &rtc { From patchwork Sat Jul 27 12:12:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 11062371 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 D5B3A138D for ; Sat, 27 Jul 2019 12:13:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C83CB28A8F for ; Sat, 27 Jul 2019 12:13:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BCA0028B01; Sat, 27 Jul 2019 12:13:47 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 5FE7E28A8F for ; Sat, 27 Jul 2019 12:13:47 +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=whw6TG0hAoBSrQH/7mLKq4rAykIaduFgspnFdasqcGI=; b=GSwuvEGmzuYCHI BJfV9PgSuj+yUcNNJAYsAqqx+dVNFSme2zvSYCsjE4Od+pBfGXkotB7Nxok6cbaPTWyvzUbCuuMFv Wi6j9vE5LCv5yhDBT3o74F0t/J6e12QbdR3NUmQksBykYwAPB30zFrVAMb9mW7B5HqXw7rkdCkW+t +XGpaa8FLGRsqkxXv82O55Zs4uTKYDKPz+1BWbWrJH5IfONoLhVj3bEm5WVAdN4DS+RVYo6H1kh6i c65A7hHtIhjwNUm4N6f+U96yUOvx/dxcLNxEvawAZnEAqK753n3wnUeczoQnubg/wIU1Q93KV0/o6 pe3DuY++kTPbcv4Ufd3Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hrLa6-00022w-MC; Sat, 27 Jul 2019 12:13:46 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hrLZU-0001EQ-K3; Sat, 27 Jul 2019 12:13:09 +0000 Received: by mail-wr1-x444.google.com with SMTP id p13so56989684wru.10; Sat, 27 Jul 2019 05:13:08 -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=M1c63JSwpgOze8F8pCPA5/iXGFnYX96rO0PJN0uiLng=; b=n+YubnUJE+3ya51GU0gCWEFmN2Is8esPm9su1SzC4xFK2t/5X/wRmg4kKVBOiLOVXE SeMTz7HfovTyx8cTWHpiKksKrNa9RopkYILmSMsXboAXIMbICg4pZNgv/K1DRI8sjaj9 sdj2zbjZeVsLZkw5sjzOUHOZGRC6Fm6U0H9zft11utfOR3n6gCTvr5edK0t35WP8OOth wcP5R5xj11f9DdVfL81GywWBwFQlvAGEBvXhwrG9UleZpVCTcTZ399h9+PTP0YcLctem IXcjnqg0qSwZmmjGYr/1JAqYdwx3F5XMIofanMlm2aoHg1kvW3MCylPy4WzUzy8SGp5c crgA== 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=M1c63JSwpgOze8F8pCPA5/iXGFnYX96rO0PJN0uiLng=; b=mpGZnpMIYy83W8ELKs+r7Ke7Y6VRBQSzLd7UBKYDR11UAg73VftnSg8ZAvX5C0ZbVN ezGw+Q8S83NiEpljzkIqtCv7gm78PVAEs7m0b0ys7XZ5qLsyYk+T+/w6b7PyBvpIunUL zMQOg6qFu2MMYuxFjeDUa1OQQuUxGZlmZSM4LfdmWgDzOKLc+fqcbkwGreWErbi02q++ s9/2XFk9rr6FSYNP0zr5kwlEuf6+cEQ/y3rCRdkC+MeyXDTFKblh7zgM9MzJjX3/QRr3 vOEjZt4yVqYiwI+NvTHEB0itAeQBXe10eFhh8w62F4cx3eE8B/65G3Gc5oRTgi2lmqBk d1pQ== X-Gm-Message-State: APjAAAXny5b5HfqisHxsQf3vIDhXwbxaEXzIhIlZsBwZY91R/Y91PRCd aNP7SnUREgU3pJJij8tS/jWjX0P8 X-Google-Smtp-Source: APXvYqyr7nirAJDTRhfEZh2/V2yjDVaRoaLfSaO5Fn4FmWl+IwT2T2//0bdNuTazUIEuHY9BVvNKrA== X-Received: by 2002:a5d:4ec1:: with SMTP id s1mr101413995wrv.19.1564229587054; Sat, 27 Jul 2019 05:13:07 -0700 (PDT) Received: from blackbox.darklights.net (p200300F133C65C00B418D0F4A25A19EC.dip0.t-ipconnect.de. [2003:f1:33c6:5c00:b418:d0f4:a25a:19ec]) by smtp.googlemail.com with ESMTPSA id o26sm111786569wro.53.2019.07.27.05.13.06 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 27 Jul 2019 05:13:06 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com Subject: [PATCH v2 4/4] ARM: dts: meson8b: mxq: add the VDDEE regulator Date: Sat, 27 Jul 2019 14:12:57 +0200 Message-Id: <20190727121257.18017-5-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190727121257.18017-1-martin.blumenstingl@googlemail.com> References: <20190727121257.18017-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-20190727_051308_671536_75277630 X-CRM114-Status: GOOD ( 11.58 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Blumenstingl , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The VDDEE regulator is basically a copy of the VCCK regulator. VDDEE supplies for example the Mali GPU and is controlled by PWM_D instead of PWM_C. Add the VDDEE PWM regulator and make it the supply of the Mali GPU. Signed-off-by: Martin Blumenstingl --- arch/arm/boot/dts/meson8b-mxq.dts | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/meson8b-mxq.dts b/arch/arm/boot/dts/meson8b-mxq.dts index bb27b34eb346..6e39ad52e42d 100644 --- a/arch/arm/boot/dts/meson8b-mxq.dts +++ b/arch/arm/boot/dts/meson8b-mxq.dts @@ -76,6 +76,22 @@ regulator-boot-on; regulator-always-on; }; + + vddee: regulator-vddee { + compatible = "pwm-regulator"; + + regulator-name = "VDDEE"; + regulator-min-microvolt = <860000>; + regulator-max-microvolt = <1140000>; + + vin-supply = <&vcc_5v>; + + pwms = <&pwm_cd 1 1148 0>; + pwm-dutycycle-range = <100 0>; + + regulator-boot-on; + regulator-always-on; + }; }; &cpu0 { @@ -112,6 +128,10 @@ }; }; +&mali { + mali-supply = <&vddee>; +}; + &saradc { status = "okay"; vref-supply = <&vcc_1v8>; @@ -143,10 +163,10 @@ &pwm_cd { status = "okay"; - pinctrl-0 = <&pwm_c1_pins>; + pinctrl-0 = <&pwm_c1_pins>, <&pwm_d_pins>; pinctrl-names = "default"; - clocks = <&clkc CLKID_XTAL>; - clock-names = "clkin0"; + clocks = <&clkc CLKID_XTAL>, <&clkc CLKID_XTAL>; + clock-names = "clkin0", "clkin1"; }; &uart_AO {