Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp207200rdb; Tue, 5 Dec 2023 03:17:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IESBwwtSLd/pr4FPL4Dyaj9jpD7ODQGvQUbJdYkdBJicWABKhPkV6yLWYQ8fxRVRM6JyWHo X-Received: by 2002:a05:6a00:1256:b0:6cb:a434:b58f with SMTP id u22-20020a056a00125600b006cba434b58fmr1315652pfi.33.1701775051202; Tue, 05 Dec 2023 03:17:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701775051; cv=none; d=google.com; s=arc-20160816; b=RBY7ap3Zk0DS84e5hyYYEEN0q8CTNjV0FCNQxeFvoogye1ZyvqIHrQWWStzlqmxeLS u1liffJXNpOwS7MU3Bby2CZKZC/2Zj/EaP+KTTbid3lrHeIDiScR11O40zS+7Z79cDvB X/CNe2/Hh/P4FoxFFhtTyQLotSuL8tAInEy1G0s2JnK2ohQDlrWyzAJEpniUjKkMC2+x j7IWwsRHra7g6luUkNQ+CK3cvbnGBY1AreYL/1U0TyrdfaItHhAUIO7Nfim17FguOZzI 95SDFhTxxVDySIjXJjznR5oqvQvxXUVs2bxVkJ/hAnj4MVjdVjiEUVWjc33+KNmjDqnA UWCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=9bFWvbHdZ+yBWjkG2AjCOWgUeQFJsO6N0KpFAtG5kgs=; fh=LKVKjZO6hcM0eZ1Kr20S/plVUZxsD2+EArRhIvjNVqs=; b=vwMRdcaeEIIuRnzS4If9ZYepJkCgMplFSgZ00Pfy2jGGZ9PtbfDstHGhEWDJIG6BLN ffR465oMKrsp71CFENBuIZcc5G4JnnGFaafXV8P2pDSNa1FhbIA6olAOn8dfJt4f2S0/ 9VOWlSPvTBVVJg11E468/vv4T3vKNRCWglagnctFIII4sASgfQ6gzGFDEQ/x+IXgIidk JEvavAQxYiTZbx62DkpmaTQYWBHBDs5IxkW2fD1p3GV6Sn3X85rygQLqiAvy4QysSHHR /mPNLLgpbbxmcKFH7/cc+CHRgPMwWLvQ+7qWfbcE8yDt+2jmKfemoL9vxcSgYBYDeGpO WCNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Be41f6x4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id y33-20020a634961000000b005b896ecd1efsi9717206pgk.172.2023.12.05.03.17.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 03:17:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Be41f6x4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id DE8CC8043C21; Tue, 5 Dec 2023 03:17:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376771AbjLELRO (ORCPT + 99 others); Tue, 5 Dec 2023 06:17:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345052AbjLELRN (ORCPT ); Tue, 5 Dec 2023 06:17:13 -0500 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D62549E for ; Tue, 5 Dec 2023 03:17:18 -0800 (PST) Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-54cd8f5bb5cso2121812a12.1 for ; Tue, 05 Dec 2023 03:17:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701775037; x=1702379837; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=9bFWvbHdZ+yBWjkG2AjCOWgUeQFJsO6N0KpFAtG5kgs=; b=Be41f6x48JSYW40Nf+sf7VQmx2ksdDqrd/auftSDo6qYt9rI/nCKTELdIumiJFxfZx Fk9m6piQfiWC/wyJnkTFjQEN0NXLRWcDFqft/mqgywFzC4KnxM0z9G/tKbUMJP3mluyk NeUK2uCOI4cMpKbzKWdiRQfDPRJHI6gRbjyEnAcum0BNdGOcmibzwjRFyG4lSwQ15rNy BcfG6RPFvcronsd0X1hYtisZxk3s8SqOGEOH/BlnRAK7Tx71baqlTK1f7DPFJcVH4gN1 vfpoThtPAJXofP0UNflMxmeiPGraklWHmMl1c/p4nf7tcayFy88iicVLQH3ijWn/N2xv 153Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701775037; x=1702379837; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9bFWvbHdZ+yBWjkG2AjCOWgUeQFJsO6N0KpFAtG5kgs=; b=VPmr1vQ8s0mwgt+c9hhD2Qw4WRHNHFPhJHVUazYqpKnTmQPFOV71d9qnrJAvswAjvq lzuLtuiBzGibrb+dD/5Cp57c8WpjZrpVylQs2j+8yAsL5SdOPSAzcsmjZ6wkcWutUMkZ fuciZqufNbGu4rv8Pw16gHEAVAGnrM39kDo3rpIV2+w7WrrKHI6jqSsewDdNL+XMLa7I DRDTG74HgjpfYrPZjjHk1vj92WPNg4/21YivEY6r6WsKQiAeDo3JeihKFI4VBXtDeoW7 FaMutvC3gv7lqzsP5zDG9eEeJlUeMOP29IexeyVqaraGQn1aRi71A2mOcmrQokQNp2HR o83A== X-Gm-Message-State: AOJu0YxmO3qQTU5D9pqSz0P+fC7+MwI0bLKz1MaPZsCeChSGP054llFE wmZBuzYjQ0K2O3OLgN7Lbamblg== X-Received: by 2002:a05:6402:5190:b0:54c:c744:da7e with SMTP id q16-20020a056402519000b0054cc744da7emr1929309edd.40.1701775037298; Tue, 05 Dec 2023 03:17:17 -0800 (PST) Received: from ?IPV6:2001:1c06:2302:5600:366d:ca8f:f3af:381? (2001-1c06-2302-5600-366d-ca8f-f3af-0381.cable.dynamic.v6.ziggo.nl. [2001:1c06:2302:5600:366d:ca8f:f3af:381]) by smtp.gmail.com with ESMTPSA id g21-20020aa7c595000000b0054b3d8e65d7sm935118edq.47.2023.12.05.03.17.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Dec 2023 03:17:16 -0800 (PST) Message-ID: <1c62dd8b-72b2-4204-8284-a1dd90d4f909@linaro.org> Date: Tue, 5 Dec 2023 12:17:15 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] arm64: dts: qcom: msm8916/39-samsung-a2015: Add PMIC and charger Content-Language: en-US To: Raymond Hackley , linux-kernel@vger.kernel.org Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jakob Hauser , Stephan Gerhold , Nikita Travkin , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht References: <20231205093841.24325-1-raymondhackley@protonmail.com> From: Bryan O'Donoghue In-Reply-To: <20231205093841.24325-1-raymondhackley@protonmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 05 Dec 2023 03:17:29 -0800 (PST) On 05/12/2023 10:38, Raymond Hackley wrote: > The phones listed below have Richtek RT5033 PMIC and charger. > Add them to the device trees. > > - Samsung Galaxy A3/A5/A7 2015 > - Samsung Galaxy E5/E7 > - Samsung Galaxy Grand Max > > Signed-off-by: Raymond Hackley > --- > .../qcom/msm8916-samsung-a2015-common.dtsi | 59 +++++++++++++++++- > .../boot/dts/qcom/msm8916-samsung-a3u-eur.dts | 6 ++ > .../boot/dts/qcom/msm8916-samsung-a5u-eur.dts | 6 ++ > .../qcom/msm8916-samsung-e2015-common.dtsi | 6 ++ > .../boot/dts/qcom/msm8916-samsung-e5.dts | 6 ++ > .../boot/dts/qcom/msm8916-samsung-e7.dts | 7 +++ > .../dts/qcom/msm8916-samsung-grandmax.dts | 6 ++ > .../boot/dts/qcom/msm8939-samsung-a7.dts | 62 ++++++++++++++++++- > 8 files changed, 156 insertions(+), 2 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-a2015-common.dtsi b/arch/arm64/boot/dts/qcom/msm8916-samsung-a2015-common.dtsi > index 2937495940ea..e6355e5e2177 100644 > --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-a2015-common.dtsi > +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-a2015-common.dtsi > @@ -28,6 +28,12 @@ tz-apps@85500000 { > }; > }; > > + battery: battery { > + compatible = "simple-battery"; > + precharge-current-microamp = <450000>; > + precharge-upper-limit-microvolt = <3500000>; > + }; > + > clk_pwm: pwm { > compatible = "clk-pwm"; > #pwm-cells = <2>; > @@ -128,6 +134,12 @@ muic: extcon@25 { > > pinctrl-names = "default"; > pinctrl-0 = <&muic_int_default>; > + > + usb_con: connector { > + compatible = "usb-b-connector"; > + label = "micro-USB"; > + type = "micro"; > + }; It would be nice to break this up into individual patches One patch for the battery, one patch for the usb-b-connector per device you are targetting. More work but better practice to have more granular commits. > + regulators { > + rt5033_reg_safe_ldo: SAFE_LDO { > + regulator-min-microvolt = <4900000>; > + regulator-max-microvolt = <4900000>; > + regulator-always-on; > + }; > + > + /* > + * Needed for camera, but not used yet. > + * Define empty nodes to allow disabling the unused > + * regulators. > + */ > + LDO {}; > + BUCK {}; > + }; Aren't the camera regulators off until enabled ? --- bod