Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp3521766pxb; Tue, 12 Jan 2021 17:28:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQrUka0xFnAOYqkUjYPhYZg8sbPuXgSIULVQgGbachHxTuratInomzXLYqWg7tu9Y1J1oe X-Received: by 2002:aa7:c64e:: with SMTP id z14mr1532032edr.69.1610501337887; Tue, 12 Jan 2021 17:28:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610501337; cv=none; d=google.com; s=arc-20160816; b=KtDdSXjTPkemzVsyq2YsasDM3fQ7dJzRfxWwuFXAQU/80e+gO60yimq6eFBneuzwOH 82BaiQxWqfaCtlZFjo2LSSI3xQ/acLktztF3Q9a1Mc5glKSGSRuv3gHCvScCZzZBFX30 Kek6EIcur5m753R1+KEXKVnRARoU8jbY3vDJjERsyjbXTLnc/6TlvdScDg2zRVVwf+QR kTvAjSGoV1D9gO1F5wfIl9kIIQgPhzxV2ZlvnkVQcKGPSz3x7+ij0049Qi6Sq99yE09w MWzTGBQiKSpOxvhWIAKq414okZ69MlfmZbyH/jaKLvkpQHGhTKYuXy49TeTilnPH0Fjr A1Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:references:in-reply-to :message-id:date:subject:cc:to:from; bh=VbV016iUs1kSSvnnmwJ1+u526lKog8x7EXH+fkgRCTI=; b=hx4+epuYFYbplaQMkOeQMk51J/uweezifFfSNv1qHiCZAnHUVf7AtKALmXFtXJZyUk 2T/1fzQqPcItQmm1UMdXEVeBgjtTiP1Ap6rNsDuTYs4ox+N8Jmwkp8AoRVm0qej6LZ7v Lj5r+x7JT8c7I07pNsayUZM4OugHe7z0yBMGwqw911DjE1Gfki/AqG+8PJ/R/2HJ9Zjx b/kj5kk+EdFXQ59ewwae5SkQpmXz+jMa1Jo8qkFy2+4UahIvzgbF80u+fXgV0Sef24UQ PQ7LIjZLIixD0/qZYBHIkKSEtRku1KiAm62njV6Psbh67qtOKiHcN9ZDKMKoutnV+SXw smBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bf17si227721edb.344.2021.01.12.17.28.33; Tue, 12 Jan 2021 17:28:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390013AbhALJzB (ORCPT + 99 others); Tue, 12 Jan 2021 04:55:01 -0500 Received: from comms.puri.sm ([159.203.221.185]:34882 "EHLO comms.puri.sm" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728923AbhALJy6 (ORCPT ); Tue, 12 Jan 2021 04:54:58 -0500 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id D795CDFE3F; Tue, 12 Jan 2021 01:53:30 -0800 (PST) Received: from comms.puri.sm ([127.0.0.1]) by localhost (comms.puri.sm [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ssBzB1dWDfi9; Tue, 12 Jan 2021 01:53:29 -0800 (PST) From: Martin Kepplinger To: robh@kernel.org, shawnguo@kernel.org, festevam@gmail.com Cc: kernel@pengutronix.de, linux-imx@nxp.com, catalin.marinas@arm.com, will@kernel.org, krzk@kernel.org, kernel@puri.sm, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kepplinger Subject: [PATCH 8/9] arm64: dts: Add Librem5 Evergreen Date: Tue, 12 Jan 2021 10:51:50 +0100 Message-Id: <20210112095151.4995-9-martin.kepplinger@puri.sm> In-Reply-To: <20210112095151.4995-1-martin.kepplinger@puri.sm> References: <20210112095151.4995-1-martin.kepplinger@puri.sm> Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add librem5-r4 with specifics to that revision like the near-level, battery and charger properties. For schematics and more information, see https://developer.puri.sm/Librem5/Hardware_Reference/Evergreen.html Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/Makefile | 1 + .../boot/dts/freescale/imx8mq-librem5-r4.dts | 35 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index 38559943c15d..e814ee98fecf 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -48,6 +48,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mq-hummingboard-pulse.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mq-librem5-devkit.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mq-librem5-r2.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mq-librem5-r3.dtb +dtb-$(CONFIG_ARCH_MXC) += imx8mq-librem5-r4.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mq-nitrogen.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mq-phanbell.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mq-pico-pi.dtb diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts new file mode 100644 index 000000000000..cbfb49aa2563 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts @@ -0,0 +1,35 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +// Copyright (C) 2020 Purism SPC + +/dts-v1/; + +#include "imx8mq-librem5.dtsi" + +/ { + model = "Purism Librem 5r4"; + compatible = "purism,librem5r4", "purism,librem5", "fsl,imx8mq"; +}; + +&accel_gyro { + mount-matrix = "1", "0", "0", + "0", "1", "0", + "0", "0", "-1"; +}; + +&bat { + maxim,rsns-microohm = <1667>; +}; + +&bq25895 { + ti,battery-regulation-voltage = <4200000>; /* uV */ + ti,charge-current = <1500000>; /* uA */ + ti,termination-current = <144000>; /* uA */ +}; + +&led_backlight { + led-max-microamp = <25000>; +}; + +&proximity { + proximity-near-level = <10>; +}; -- 2.20.1