From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.9 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0776AC43218 for ; Fri, 26 Apr 2019 09:48:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D584C2089E for ; Fri, 26 Apr 2019 09:48:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726309AbfDZJst (ORCPT ); Fri, 26 Apr 2019 05:48:49 -0400 Received: from ns.iliad.fr ([212.27.33.1]:34764 "EHLO ns.iliad.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726852AbfDZJss (ORCPT ); Fri, 26 Apr 2019 05:48:48 -0400 Received: from ns.iliad.fr (localhost [127.0.0.1]) by ns.iliad.fr (Postfix) with ESMTP id D5C1E217FD; Fri, 26 Apr 2019 11:48:45 +0200 (CEST) Received: from [192.168.108.49] (freebox.vlq16.iliad.fr [213.36.7.13]) by ns.iliad.fr (Postfix) with ESMTP id C6609217FB; Fri, 26 Apr 2019 11:48:45 +0200 (CEST) Subject: Re: [PATCH v4 2/2] arm64: dts: qcom: Add Lenovo Miix 630 To: Jeffrey Hugo References: <20190423160543.9922-1-jeffrey.l.hugo@gmail.com> <20190423160616.10017-1-jeffrey.l.hugo@gmail.com> Cc: Amit Kucheria , Bjorn Andersson , Andy Gross , MSM From: Noob Message-ID: Date: Fri, 26 Apr 2019 11:48:45 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190423160616.10017-1-jeffrey.l.hugo@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP ; ns.iliad.fr ; Fri Apr 26 11:48:45 2019 +0200 (CEST) Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On 23/04/2019 18:06, Jeffrey Hugo wrote: > This adds the initial DT for the Lenovo Miix 630 laptop. Supported > functionality includes USB (host), microSD-card, keyboard, and trackpad. > > Signed-off-by: Jeffrey Hugo > --- > arch/arm64/boot/dts/qcom/Makefile | 1 + > .../boot/dts/qcom/msm8998-clamshell.dtsi | 278 ++++++++++++++++++ > .../boot/dts/qcom/msm8998-lenovo-miix-630.dts | 30 ++ > 3 files changed, 309 insertions(+) > create mode 100644 arch/arm64/boot/dts/qcom/msm8998-clamshell.dtsi > create mode 100644 arch/arm64/boot/dts/qcom/msm8998-lenovo-miix-630.dts > > diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile > index 21d548f02d39..c3e4307bcbd4 100644 > --- a/arch/arm64/boot/dts/qcom/Makefile > +++ b/arch/arm64/boot/dts/qcom/Makefile > @@ -6,6 +6,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8916-mtp.dtb > dtb-$(CONFIG_ARCH_QCOM) += msm8992-bullhead-rev-101.dtb > dtb-$(CONFIG_ARCH_QCOM) += msm8994-angler-rev-101.dtb > dtb-$(CONFIG_ARCH_QCOM) += msm8996-mtp.dtb > +dtb-$(CONFIG_ARCH_QCOM) += msm8998-lenovo-miix-630.dtb > dtb-$(CONFIG_ARCH_QCOM) += msm8998-mtp.dtb > dtb-$(CONFIG_ARCH_QCOM) += sdm845-mtp.dtb > dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb-1000.dtb > diff --git a/arch/arm64/boot/dts/qcom/msm8998-clamshell.dtsi b/arch/arm64/boot/dts/qcom/msm8998-clamshell.dtsi > new file mode 100644 > index 000000000000..1a341d4b1597 > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/msm8998-clamshell.dtsi > @@ -0,0 +1,278 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* Copyright (c) 2019, Jeffrey Hugo. All rights reserved. */ > + > +/* > + * Common include for MSM8998 clamshell devices, ie the Lenovo Miix 630, > + * Asus NovaGo TP370QL, and HP Envy x2. All three devices are basically the > + * same, with differences in peripherals. > + */ > + > +#include "msm8998.dtsi" > +#include "pm8998.dtsi" > +#include "pm8005.dtsi" > + > +/ { > + chosen { > + }; > + > + thermal-zones { > + battery-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&tsens0 0>; > + > + trips { > + battery_crit: trip0 { > + temperature = <60000>; > + hysteresis = <2000>; > + type = "critical"; > + }; > + }; > + }; > + > + skin-thermal { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&tsens1 5>; > + > + trips { > + skin_alert: trip0 { > + temperature = <44000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + > + skip_crit: trip1 { > + temperature = <70000>; > + hysteresis = <2000>; > + type = "critical"; > + }; > + }; > + }; > + }; Note that these thermal-zones are likely incorrect: https://git.kernel.org/pub/scm/linux/kernel/git/agross/linux.git/commit/?h=for-next&id=ad480e0149cfc10defe76e88354b977360adb7a1 Regards.