From patchwork Mon Feb 19 12:37:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 10227653 X-Patchwork-Delegate: horms@verge.net.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1114F602B7 for ; Mon, 19 Feb 2018 12:38:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E7D3028689 for ; Mon, 19 Feb 2018 12:38:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC244286D2; Mon, 19 Feb 2018 12:38:10 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6145E28689 for ; Mon, 19 Feb 2018 12:38:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752657AbeBSMiK (ORCPT ); Mon, 19 Feb 2018 07:38:10 -0500 Received: from mail-pf0-f174.google.com ([209.85.192.174]:45342 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752638AbeBSMiJ (ORCPT ); Mon, 19 Feb 2018 07:38:09 -0500 Received: by mail-pf0-f174.google.com with SMTP id j24so1138956pff.12 for ; Mon, 19 Feb 2018 04:38:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:date:message-id:subject; bh=pQ7F+iric75isrqwU/97qsp7UzINUTpj+wyTWlpH+gs=; b=fTybrSiq5uUtxQvAYN0SXy3ZHvoHSO1nAf54tW1+AMm0FTDXNk9fm3ONHmpvOAWrct XrpispMEV3gTSHVSqPZC3G1NTqaBZPChmJWdcGw6whjNACjhN+uvuez5/jYxB6ih4I+D ASrkmcOT2Cj5ohYn+rmmdBSCZfqxPXSZjHAhHF6YQMKPhF2u40wk+a9eEd/S92EJih6o RnYHr2+vaPTPahRyDkQo4Lpk7+McH2sLl9+seNT4tSEUSbvXS0vIsWgUx2DVcAw/W9H8 ATbl69SZBBBHXMf4PiAStRhkAleWjV6F+z2r/4gXxOq/AnbZNz+jUokZ+aStYEh56e80 RGiw== 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:date:message-id:subject; bh=pQ7F+iric75isrqwU/97qsp7UzINUTpj+wyTWlpH+gs=; b=OXxlZkL5okv4WdUZ+qcgrMmiGJac6YZOTPphKCki21dWUoH0LE302NxcBs/0zDonY4 XLOpJ8b4QFpMJsMlAWlMQa78r9D4mrSh84He21Xt71CLcWG1/sP8UzAOqHlUwHncXdiO S0m6iXQ2Xa6dsJ3A2C+jrxlrQlHCt9h0QuPxyagBTpnH2YNljibRoGh5RxqEHpu4Xk/P c1sErBM5/9UMZZFsO4eUNG3gceve5qCius1Qt/LtFIauepccO3cjSCVzqSpyFtMAvS5R 4fdMfR8z4yhZDg6hy3vxwNPa/R/f9mHiwU31t+GCctjeo/HkNwQh3ROyuocQMIPgDsHk jjtg== X-Gm-Message-State: APf1xPAdykTmf8fKXPbHWeSpAcQXBZUjUgQY2dBCsZBPcFRnKaZBloHn VfESrkb0+MLro9lDgeMiVlBJxJBm X-Google-Smtp-Source: AH8x226LlRgOT210ZH2qvAvwI2tr/ES08xr8MumCZ7iHZWaWU7th3No3tjcURjwDVO5DXdk1K88uvg== X-Received: by 10.99.176.68 with SMTP id z4mr10141206pgo.74.1519043888438; Mon, 19 Feb 2018 04:38:08 -0800 (PST) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by smtp.gmail.com with ESMTPSA id i1sm476971pfi.116.2018.02.19.04.38.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Feb 2018 04:38:07 -0800 (PST) From: Magnus Damm To: linux-renesas-soc@vger.kernel.org Cc: Magnus Damm Date: Mon, 19 Feb 2018 21:37:58 +0900 Message-Id: <151904387813.30430.10543147136498508821.sendpatchset@little-apple> Subject: [PATCH] ARM: dts: marzen: Add SDHI0 VCCQ Regulator Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Magnus Damm Add support for the on-board voltage regulator hooked up to GPIO3_20 on r8a7779 Marzen. The board schematics describes the regulator as U4 TPS2110A. Input wise, U4 has D0 fixed to ground, D1 tied to GPIO3_20 while IN1 is fixed to 3.3V and IN2 is fixed to 1.8V. OUT goes to the pull-ups for the data pins of SDHI0. Signed-off-by: Magnus Damm --- arch/arm/boot/dts/r8a7779-marzen.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) --- 0001/arch/arm/boot/dts/r8a7779-marzen.dts +++ work/arch/arm/boot/dts/r8a7779-marzen.dts 2018-02-19 21:21:14.400607110 +0900 @@ -42,6 +42,19 @@ regulator-always-on; }; + vccq_sdhi0: regulator-vccq-sdhi0 { + compatible = "regulator-gpio"; + + regulator-name = "SDHI0 VccQ"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + + gpios = <&gpio3 20 GPIO_ACTIVE_HIGH>; + gpios-states = <1>; + states = <3300000 1 + 1800000 0>; + }; + ethernet@18000000 { compatible = "smsc,lan9220", "smsc,lan9115"; reg = <0x18000000 0x100>; @@ -243,6 +256,7 @@ pinctrl-names = "default"; vmmc-supply = <&fixedregulator3v3>; + vqmmc-supply = <&vccq_sdhi0>; bus-width = <4>; status = "okay"; };