Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4829553iog; Wed, 22 Jun 2022 06:42:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uONze39Yd/UiqKAS1ljNTreRHl5h0qtGMbj7hnK+3kpT6SLU6Fgl9ePxH866IS3Smro2lc X-Received: by 2002:a17:902:8a91:b0:167:621f:9749 with SMTP id p17-20020a1709028a9100b00167621f9749mr34203129plo.9.1655905351424; Wed, 22 Jun 2022 06:42:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655905351; cv=none; d=google.com; s=arc-20160816; b=GGeHm6zT9DpyAI/eGQHfsYmPxi9XsKuqVOzraVHxr2z+7bS8P1GUXs+mFqsZzT56CY TtpUbogbznXn5hcKE76BQOG0xZtrLpR9P1r1uaUu7Eu6+BwiClhPB0CdBGEfasM2Ao6Z JuQWvywciP+rjzr1ar8dFfGzuGYWQezgHAsFg+GjGM3ndpLZKFfTy0nGZzxFqQNjRIEI kYxDyFYlbcBKuIZ7rXW0WRt0P9gyhop7KaFEzvZJvtAdALAuDpk5oQfmNXvakpo77ggS 3eqWIc/eYah5KEQHe6l2UJ+/sOZ20F/IBGQn71VIK/GtGyDKUZbgFHnywCxjnbs/LOUh /+Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=32R/ij90JLY80I/ZqdWiARkVQoRba/JvSiFQDLaVWiU=; b=E5eg+7hD/f0+/1M1SFyJspbjXpBfEyioRkU1U0XQLLxzcwvINFAVtLA+48+gNdhXtv 0VkWJa3zJmPNmt1/cOO2ToPZP+rveffLQlfPm0HceWrt2ytROI+hUNTXPiuQIVBJYJAe pAjuiTIJ7mhfhF6oAP2Q4Eg6HWRtVhuUNz+4Iugs1xzmkSGhM+Ddc4ysoD9XYVYrfM/w W4zWZwotPOB1FqCY7FELiHXqagV2WcJ8DOfKjiybZl63MirHQgWtQKlt7oieQwQgRkiP D9OkjWu78YhfGtq1kIVnQWFCI17Qe824p4R1hJ7pxmHf2/s9fOXUeEiVPl4YBnzL+8nA c1GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PP7SAnmb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y22-20020a63ce16000000b00408c2ac7412si22717177pgf.660.2022.06.22.06.42.18; Wed, 22 Jun 2022 06:42:31 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=PP7SAnmb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235741AbiFVNKG (ORCPT + 99 others); Wed, 22 Jun 2022 09:10:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352817AbiFVNJ5 (ORCPT ); Wed, 22 Jun 2022 09:09:57 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB63F3138B; Wed, 22 Jun 2022 06:09:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7DF1CB81EB5; Wed, 22 Jun 2022 13:09:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 35158C34114; Wed, 22 Jun 2022 13:09:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655903380; bh=NsupuDvFVEzxG4bNGH8iGooT4sCes2l2/JfLnXk6bz4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PP7SAnmb4sHFNgLrdLLGJ19baVNHJ4VTk3ITSLDUpbKhwYeDUe0S/QjOlAeu7FN5f lPRkpXZKjER/jM77taOZ3Jdj6dIpBfjGJoXa9eJpzFsbZesSdtJ0usTlctNkULroC0 n6gw8NH8Sw0EHcSvkdnJFZuOiPstFiwFv5G3sfMPC8+ibMh+9TIlw8erPoshlBn4p6 zILpsElhWPVpKZ5ASpfUxWdAiSJDuzsb1zN4TsUMeacKCmVk7wkyiqa2g7DXjgg6KU xiMcYeZ0b/CIWJpO7IaxH8mzqRku8LxAAZ/zklHDPbm0j2W5muAvmDKwuMlJXmVrQo 0w/82e3CzLWdQ== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1o406y-0006Fb-EU; Wed, 22 Jun 2022 15:09:37 +0200 Date: Wed, 22 Jun 2022 15:09:36 +0200 From: Johan Hovold To: Bjorn Andersson Cc: Andy Gross , Krzysztof Kozlowski , Rob Herring , Manivannan Sadhasivam , Jassi Brar , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 4/6] arm64: dts: qcom: sc8280xp: Add reference device Message-ID: References: <20220622041224.627803-1-bjorn.andersson@linaro.org> <20220622041224.627803-5-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220622041224.627803-5-bjorn.andersson@linaro.org> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Tue, Jun 21, 2022 at 09:12:22PM -0700, Bjorn Andersson wrote: > Add basic support for the SC8280XP reference device, which allows it to > boot to a shell (using EFIFB) with functional storage (UFS), USB, > keyboard, touchpad, touchscreen, backlight and remoteprocs. > > The PMICs are, per socinfo, reused from other platforms. But given that > the address of the PMICs doesn't match other cases and that it's > desirable to label things according to the schematics a new dtsi file is > created to represent the reference combination of PMICs. > > Signed-off-by: Bjorn Andersson > --- > > Changes since v1: > - Reordered "status" last > - Fixed invalid PMIC gpio 0 > - Replaced "hid" name with touchscreen, touchpad and keyboard > - Added &xo_board_clk frequency > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts > @@ -0,0 +1,432 @@ > +// SPDX-License-Identifier: BSD-3-Clause > +/* > + * Copyright (c) 2021, The Linux Foundation. All rights reserved. > + * Copyright (c) 2022, Linaro Limited > + */ > + > +/dts-v1/; > + > +#include > +#include This one is unused and should be dropped. > +#include And this one belongs in sc8280xp-pmics.dtsi where it's used. > +#include > + > +#include "sc8280xp.dtsi" > +#include "sc8280xp-pmics.dtsi" > + > +/ { > + model = "Qualcomm SC8280XP CRD"; > + compatible = "qcom,sc8280xp-crd", "qcom,sc8280xp"; > + > + aliases { > + serial0 = &qup2_uart17; > + }; > + > + backlight { > + compatible = "pwm-backlight"; > + pwms = <&pmc8280c_lpg 3 1000000>; > + enable-gpios = <&pmc8280_1_gpios 8 GPIO_ACTIVE_HIGH>; > + power-supply = <&vreg_edp_bl>; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&edp_bl_en>, <&edp_bl_pwm>; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + vreg_edp_bl: edp-bl-regulator { The fixed regulator nodes should be renamed "regulator-edp-bl"... > + compatible = "regulator-fixed"; > + > + regulator-name = "VREG_EDP_BL"; > + regulator-min-microvolt = <3600000>; > + regulator-max-microvolt = <3600000>; > + > + gpio = <&pmc8280_1_gpios 9 GPIO_ACTIVE_HIGH>; > + enable-active-high; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&edp_bl_reg_en>; > + > + regulator-boot-on; > + }; > + > + vreg_misc_3p3: misc-3p3-regulator { ...and "regulator-misc-3p3" (e.g. so we have a common prefix to sort by). > + compatible = "regulator-fixed"; > + > + regulator-name = "VREG_MISC_3P3"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + > + gpio = <&pmc8280_1_gpios 1 GPIO_ACTIVE_HIGH>; > + enable-active-high; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&misc_3p3_reg_en>; > + > + regulator-boot-on; > + regulator-always-on; > + }; > + > + reserved-memory { > + }; > +}; Johan