From patchwork Thu Dec 15 11:56:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 33584 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp306101wrn; Thu, 15 Dec 2022 04:01:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf49qgMtPiGRs21qmgR0z9oN0lvK+uF/9BdygU8Iqw25zil8zBNAVQ5sNlG83C0/TVaqYVNL X-Received: by 2002:a05:6402:5303:b0:462:7b87:c6d with SMTP id eo3-20020a056402530300b004627b870c6dmr23848580edb.2.1671105676622; Thu, 15 Dec 2022 04:01:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671105676; cv=none; d=google.com; s=arc-20160816; b=nThuZZb4q1rnF+M0Hf4hcn9tZeppClPqmURQt8BCHwaUo8Q/gXOGpRPus2l1x56adn RIJHx0gcFyxx+AZH1PZk0zI8O20Jr5+vQcBGJzMSfAbnGLFYaOURbVJYMqfIJYw21Z0k LmCwdtav//iPBw5FNxA4SpzBtOYeqmbIOGoHL46oSu5b8JmQZFiM9rV8cfC5R+e+1ARd 33dzUNTj/TzJE+HPN43qrYhrrglLqtxkG7nGEHoi7vZse6mq3W5zfV2/3pT/RsUklcxM 7ZdB7/ih/QutQAEgZb6sm+wokFbDCu5bY/ApTHTAh8JtEl62Wsp4XpPzId08eBEO2+Jc s8RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :feedback-id:dkim-signature:dkim-signature; bh=xs+I3mt0XyFW9Uq6BJw0KPPKa2WXad4KJwYkN13Dk4I=; b=ScqUjkx2oX7M17vHTkxNRqWGOjcVjerWT52fQ+RxVVIv34Wpp3oZ1VmmiPYYSy/q/e Xb9Tf+0FNs0oVsu+Eto2C4rXVYxWzhSrUuOfyfZTapQF1YNrqR+T4kxGuK4gRD9aBeY4 ONImp9YrLQCngrZChaYz9laKtX2W4EZmEck/OqPQlIKMDZ9mwIi2IGYwCjCaaF7P7FfE toktExTmI6ZROen8SK7EUAZzhfb4H4/nxEaKR6We/taNuqUssrfvL9SJe9DCUShZcLjm /s+fVSGHGkg1vo1GWAj9T1Hhb4E+ZUF5PWE8reiWRZDndhlw/H+h7kgDW1GHo4PYKKZB cPfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm2 header.b=JbxjOoV5; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=EWTjsaSu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i5-20020a05640242c500b0046aeb9d6223si18535526edc.158.2022.12.15.04.00.52; Thu, 15 Dec 2022 04:01:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm2 header.b=JbxjOoV5; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=EWTjsaSu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229994AbiLOL54 (ORCPT + 99 others); Thu, 15 Dec 2022 06:57:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230004AbiLOL5d (ORCPT ); Thu, 15 Dec 2022 06:57:33 -0500 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 411E22A726; Thu, 15 Dec 2022 03:57:29 -0800 (PST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id A96B93200929; Thu, 15 Dec 2022 06:57:27 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 15 Dec 2022 06:57:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alistair23.me; h=cc:cc:content-transfer-encoding:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1671105447; x= 1671191847; bh=xs+I3mt0XyFW9Uq6BJw0KPPKa2WXad4KJwYkN13Dk4I=; b=J bxjOoV5ArcqEER6o0FOUBPEUANkgHnVthnqoxTq3hBXOUqKdCmgRlTxfs/ao/XEt G6bXrW3N1OkUmoSIwCwugv5rxv9GTxdjPjgobdHytAWaucQ85LQI0ojzbXLXLtus cMWerHc+8kDafRh7OI8CC1HFY7MnTzo94OSJ3t+R4KdDXZCUES3V659qVzK26NKF TeOi2M8ygRnRouUuRnZQ3BfKkpgBjU4uiOnzJMCfTnG/w2XthD4lckf5LfsbtcLZ CEqZby217y7EUc/jWINvI3Z1TFgFvXf7cvqwdJEV8o1IGq5RWP5wVDqYvQ9VBJhQ EcaWuZ299RO25btHdDzeQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1671105447; x=1671191847; bh=xs+I3mt0XyFW9 Uq6BJw0KPPKa2WXad4KJwYkN13Dk4I=; b=EWTjsaSujELYbXhUnw1yCrEQIiy9B kY9hP5IlVWysolg4LIwHfbOwo28QvH53hDWMoQFZ5huUdJsTjMnwIw3YU856U0QD riOPi1CTIWS4ExN0MvKHgr6ARuYc4X5Bh/GGKcxWb+SjvE1yNt+5FqHmECxu2pDX 3MA+/ohAskhs0nAzuGQzLctbNgmYWNjlkaT7ew9s2y67jzowfs57qEuvDsMuEuHY UfW2Jpuugt6iZsQJrkIUCF6D+ySwhOEjed2hsRNfPS5m+cRJvZmY+7jnHPIxAV0M k4rJCnJx86STfwnfDD95j7QSrPhfCB4CVeatCgxRnXLbdM7bHv+4SWkfg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeehgdeffecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestdekre dtredttdenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgr ihhrsegrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeeitdefkeetle dvleevveeuueejffeugfeuvdetkeevjeejueetudeftefhgfehheenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhishhtrghirhesrghlih hsthgrihhrvdefrdhmvg X-ME-Proxy: Feedback-ID: ifd214418:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 15 Dec 2022 06:57:20 -0500 (EST) From: Alistair Francis To: krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, robh+dt@kernel.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, s.hauer@pengutronix.de, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Cc: jernej.skrabec@gmail.com, alistair23@gmail.com, festevam@gmail.com, kernel@pengutronix.de, linux@armlinux.org.uk, arnd@arndb.de, Alistair Francis Subject: [PATCH 3/3] ARM: dts: imx7d-remarkable2: Enable the rohm,bd71815 Date: Thu, 15 Dec 2022 21:56:44 +1000 Message-Id: <20221215115644.208486-4-alistair@alistair23.me> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221215115644.208486-1-alistair@alistair23.me> References: <20221215115644.208486-1-alistair@alistair23.me> MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752281305898666035?= X-GMAIL-MSGID: =?utf-8?q?1752281305898666035?= Add support for the rohm,bd71815 power controller controller for the reMarkable 2. Signed-off-by: Alistair Francis --- arch/arm/boot/dts/imx7d-remarkable2.dts | 158 ++++++++++++++++++++++++ 1 file changed, 158 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-remarkable2.dts b/arch/arm/boot/dts/imx7d-remarkable2.dts index a138b292ec6a..e61ef3bd2eb9 100644 --- a/arch/arm/boot/dts/imx7d-remarkable2.dts +++ b/arch/arm/boot/dts/imx7d-remarkable2.dts @@ -92,6 +92,10 @@ wifi_pwrseq: wifi_pwrseq { }; }; +&cpu0 { + cpu-supply = <&buck1_reg>; +}; + &clks { assigned-clocks = <&clks IMX7D_CLKO2_ROOT_SRC>, <&clks IMX7D_CLKO2_ROOT_DIV>; @@ -119,6 +123,147 @@ wacom_digitizer: digitizer@9 { }; }; +&i2c2 { + clock-frequency = <100000>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&pinctrl_i2c2>; + pinctrl-1 = <&pinctrl_i2c2>; + status = "okay"; + + bd71815: pmic@4b { + #clock-cells = <0>; + + compatible = "rohm,bd71815"; + reg = <0x4b>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_bd71815>; + interrupt-parent = <&gpio6>; /* PMIC_INT_B GPIO6_IO16 */ + interrupts = <16 IRQ_TYPE_LEVEL_LOW>; + clocks = <&clks IMX7D_CLKO2_ROOT_SRC>; + clock-output-names = "bd71815-32k-out"; + + regulators { + #address-cells = <1>; + #size-cells = <0>; + + buck1_reg: regulator@0 { + reg = <0>; + regulator-compatible = "buck1"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <2000000>; + regulator-boot-on; + regulator-always-on; + regulator-ramp-delay = <1250>; + }; + + buck2_reg: regulator@1 { + reg = <1>; + regulator-compatible = "buck2"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <2000000>; + regulator-boot-on; + regulator-always-on; + regulator-ramp-delay = <1250>; + }; + + buck3_reg: regulator@2 { + reg = <2>; + regulator-compatible = "buck3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <2700000>; + regulator-boot-on; + regulator-always-on; + }; + + buck4_reg: regulator@3 { + reg = <3>; + regulator-compatible = "buck4"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1850000>; + regulator-boot-on; + regulator-always-on; + }; + + buck5_reg: regulator@4 { + reg = <4>; + regulator-compatible = "buck5"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo1_reg: regulator@5 { + reg = <5>; + regulator-compatible = "ldo1"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo2_reg: regulator@6 { + reg = <6>; + regulator-compatible = "ldo2"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo3_reg: regulator@7 { + reg = <7>; + regulator-compatible = "ldo3"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo4_reg: regulator@8 { + reg = <8>; + regulator-compatible = "ldo4"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo5_reg: regulator@9 { + reg = <9>; + regulator-compatible = "ldo5"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + dvref_reg: regulator@10 { + reg = <10>; + regulator-compatible = "dvref"; + regulator-boot-on; + regulator-always-on; + }; + + lpsr_reg: regulator@11 { + reg = <11>; + regulator-compatible = "lpsr"; + regulator-boot-on; + regulator-always-on; + }; + + wled_reg: regulator@12 { + reg = <12>; + regulator-compatible = "wled"; + regulator-min-microamp = <10>; + regulator-max-microamp = <25000>; + regulator-boot-on; + regulator-always-on; + }; + }; + }; +}; + &i2c3 { clock-frequency = <100000>; pinctrl-names = "default"; @@ -293,6 +438,12 @@ MX7D_PAD_LPSR_GPIO1_IO01__GPIO1_IO1 0x00000034 /* WACOM INT */ }; &iomuxc { + pinctrl_bd71815: bd71815grp { + fsl,pins = < + MX7D_PAD_SAI1_RX_SYNC__GPIO6_IO16 0x59 + >; + }; + pinctrl_brcm_reg: brcmreggrp { fsl,pins = < /* WIFI_PWR_EN */ @@ -323,6 +474,13 @@ MX7D_PAD_I2C1_SCL__I2C1_SCL 0x4000007f >; }; + pinctrl_i2c2: i2c2grp { + fsl,pins = < + MX7D_PAD_I2C2_SDA__I2C2_SDA 0x4000007f + MX7D_PAD_I2C2_SCL__I2C2_SCL 0x4000007f + >; + }; + pinctrl_i2c3: i2c3grp { fsl,pins = < MX7D_PAD_I2C3_SDA__I2C3_SDA 0x4000007f