Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2681276rwb; Fri, 11 Nov 2022 13:04:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf4q5IPp/S3egS/VCD0ojYfQRBy2GB0jDGrxZXQi5V1Qzhzca9gada5NWLEQJMmJ/BzPJr3+ X-Received: by 2002:a05:6a00:1955:b0:562:fcae:5f10 with SMTP id s21-20020a056a00195500b00562fcae5f10mr4340276pfk.28.1668200677790; Fri, 11 Nov 2022 13:04:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668200677; cv=none; d=google.com; s=arc-20160816; b=v1Yv2tEes+zy9kGbSd2dx5NLNnHOXlhHt8N+0+5g80+cFJpdTqH8DUx0yVZ7SP/sEE 8gHj/dobP75IKF0sWkIYHS9uDSeW/OhcENL1mAV7X+A5jDnBWX1aknYeHu7EoflY5erL W3z34op4JNmPX8U4WLfPYjxRkUcvgK/PuE184KsN75k5dA+voLka+gVsq5pvNgJlTvgf CnTgzgfkoINcZyCC+z/8TjM/kkYJqSsw/L/ANq3776uBXUBHJ4fMKgYi27GwhO+sW56s f/MVEXfHR1UCh3E4VcQIVVoiwgt24tnz0V2IfJHNNZ33QuFH1DqlXlJTwO7zRuY3MSh9 Vg2g== 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=trm7Fv/arfBv1TD0wRihigGtHoL1Dfw2bgYW1ilr510=; b=VI2myx1Ms/iudNdNza3zHff3ondI/RUt4sGfLUaDebkohSuAVCBoYHNfptfA9QvQTf 8/kma0mWIunaGHKSiJea25m21gX2uzbN95oZ0xLdU7U1uwZGzNK9AbD0GG/u2cQYbVhP o3EpKY2oS0B1UWonI1WqPGFLbS98J+HoRj/hBzGm1CkLelh/bu/sQ+DPc7hVlt0pajb4 n6FROjR5NM9JhhCqGi9m7as4GdxyNJWDGG8k2+DNJ4olj6KHaQljAowTk9BPQKmYCJtz mcFib4LFV+viNxqvEeeaV64r0u1SmBljUgkzLNNBXbYgI1zuaV2nhI21OGX5wUj2Me2z n0iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WzWptt9K; 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 u7-20020a170902e80700b0017a7506e0dcsi3551499plg.231.2022.11.11.13.04.24; Fri, 11 Nov 2022 13:04:37 -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=@kernel.org header.s=k20201202 header.b=WzWptt9K; 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 S233851AbiKKUiA (ORCPT + 90 others); Fri, 11 Nov 2022 15:38:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233192AbiKKUh5 (ORCPT ); Fri, 11 Nov 2022 15:37:57 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7191367101; Fri, 11 Nov 2022 12:37:56 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 0BCDA620DB; Fri, 11 Nov 2022 20:37:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D981C433D6; Fri, 11 Nov 2022 20:37:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668199075; bh=ovvQiAHLa7aYPPn/sZ8ILqgW47wsNSwgsjKrsWdiy9k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WzWptt9K7taHqpHapImn3V02c6ZLEhotXpwfxjTFCAJmtStFUAvrtVOI6V1r3MEQV bCKCxxLCBCVQ3HDks9k2V04vwxqneDVY5HdnzZbx7hcUKkyzkU1E6pqpWiR79quk6l F9J6rrHcGPlKEEkJo5P4uRuYYruE9w3FepUPLKTBQfmsOs/Rjg7EycAjXTwwpvNvjy zVtcCqPCpngdrzdWMj7KJUAg5eM5xyQ6S0J3tf3PU7kY1m8GPunv10dZoMDhm9bdVP Yy81BfQZNI3hDz7Be4GWin/VL51FdF1HQ+/2CVhNOCbu7Bjm2E0h+0Z/MrFA/KnJYG 4qfQ+Qe3DQrcg== Date: Fri, 11 Nov 2022 14:37:52 -0600 From: Bjorn Andersson To: Dmitry Baryshkov Cc: Konrad Dybcio , linux-arm-msm@vger.kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org, patches@linaro.org, Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 03/10] arm64: dts: qcom: Add a device tree for PMK8350 on SID6 Message-ID: <20221111203752.ilo2ligpaa2fgya7@builder.lan> References: <20221109111236.46003-1-konrad.dybcio@linaro.org> <20221109111236.46003-4-konrad.dybcio@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 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 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 Thu, Nov 10, 2022 at 12:12:19PM +0300, Dmitry Baryshkov wrote: > On Wed, 9 Nov 2022 at 14:12, Konrad Dybcio wrote: > > > > PMK8350 is shipped on SID6 with some SoCs, for example with SM6375. > > Add a DT with the SID changed to allow it to work. > > > > Unfortunately, the entire DT needs to be copied even if the diff is > > very little, as the node names are not unique. Including pm6125 and > > pmk8350 together for example, would make pmk8350 overwrite the pm6125 > > node, as both are defined as 'pmic@0'. > > > > Signed-off-by: Konrad Dybcio > > --- > > arch/arm64/boot/dts/qcom/pmk8350_sid6.dtsi | 73 ++++++++++++++++++++++ > > 1 file changed, 73 insertions(+) > > create mode 100644 arch/arm64/boot/dts/qcom/pmk8350_sid6.dtsi > > Just to throw my 2c. If I was doing this myself, I'd allow pmk8350 to > receive external SID using the cpp #define (And to default to 0 if one > didn't use it). > I attempted this, for my four PM8150s in the SA8295P ADP. Unfortunately it became quite messy due to the multiple SIDs, the fact that all interrupts specifiers contains the SID, that the labels became unreadable and the fact that there are label-based references within each pmic. But I like the idea! Regards, Bjorn