Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BFA6FC61D9D for ; Tue, 24 Jan 2023 21:46:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235071AbjAXVqK (ORCPT ); Tue, 24 Jan 2023 16:46:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235129AbjAXVqD (ORCPT ); Tue, 24 Jan 2023 16:46:03 -0500 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48D864B775 for ; Tue, 24 Jan 2023 13:46:01 -0800 (PST) Received: by mail-ej1-x62d.google.com with SMTP id hw16so42658507ejc.10 for ; Tue, 24 Jan 2023 13:46:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=9xdh2yXUEHJLO3yLt9IOrFcz74mAZ087g5gbTk/yanY=; b=fm0yBjJquVlA+TgQg+HS6DLHSSnMSnMo2hoYalAO2d0BnBxjIUcTz3ONqP2TB8lQHb s2a8wNu8hD9hQaIqV3/fqafwt5rIxg4hlb7B4uW/LVBGNy/AKWH7vr2asjM+mRRmjv0u aCp9wDDEiPk9Zz0U9OAvpprbIdnKgzELD2R7hWleOhdseOQvvDrLVmMEJdWjhLvqfAGJ qd/V+yet4cMGM7xJ+ASaMrvwSscddjnyu9SAApknJdcvWbHFqibF5TJnmOu578pDs+T/ IJEtlttjmxSoa2h1WoM9ZYYj1QXc2CAujW3BYFpQDDYsSuq6LNwuRZ7zR7/mJw7ftdsY GMRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=9xdh2yXUEHJLO3yLt9IOrFcz74mAZ087g5gbTk/yanY=; b=66leoDc7BDACTfejBlmbmgxT8iBP+0XZwKHdD3cVQRI7uu56WjxUYFaXf0Mf54BmOx xHlraytWKaLerivPZwhxRHkgVxcVPmPMrCb14PHLzj6tk63G+92NxG4GFv5K7/A51Apg dbCFxDZgpFXHDJ/FRphZYiamr9KcOS3iNZAFFa9uPAWASAgueDqxDODcYGrq1V6N+8+V ivmUdMMFhT2UbbZv1/gFJzCZx9QNi7rLgjtkbM1eb/eS7wny57OgKQ3KglGet2bKbcV5 xUDk1Np8XVdwRVChtBoKkEvTVoWzU0asex1+97wBC2fMtgPMWaC1E2LP0KIp6YupfiRV i4UQ== X-Gm-Message-State: AFqh2kq6Qft1gBkx3TP0/BLdrM/VWOBRUlsC1OHUM8m5IZDDyCKgcs99 hxUf54rc3TOT8qYngGsDh6qvqg== X-Google-Smtp-Source: AMrXdXvn3p6vxdHIfQJV7xez9X1sqklQMBgb0JM8gn6Ny6gilstu8jtokmAeSx6Ib1Q3BQljexD++w== X-Received: by 2002:a17:907:2a8c:b0:870:8e22:1433 with SMTP id fl12-20020a1709072a8c00b008708e221433mr23229804ejc.16.1674596759807; Tue, 24 Jan 2023 13:45:59 -0800 (PST) Received: from [192.168.1.101] (abyl109.neoplus.adsl.tpnet.pl. [83.9.31.109]) by smtp.gmail.com with ESMTPSA id n22-20020a1709065e1600b00877de2def77sm1420794eju.31.2023.01.24.13.45.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Jan 2023 13:45:59 -0800 (PST) Message-ID: <3d126383-8fea-7ff5-3f42-c131ce46547f@linaro.org> Date: Tue, 24 Jan 2023 22:45:57 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.0 Subject: Re: [PATCH 2/2] arm64: dts: qcom: sa8540p-ride: Document i2c busses Content-Language: en-US To: Andrew Halaney , andersson@kernel.org Cc: agross@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bmasney@redhat.com, quic_shazhuss@quicinc.com References: <20230124192351.695838-1-ahalaney@redhat.com> <20230124192351.695838-2-ahalaney@redhat.com> From: Konrad Dybcio In-Reply-To: <20230124192351.695838-2-ahalaney@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24.01.2023 20:23, Andrew Halaney wrote: > It isn't obvious in the current devicetree what is connected. Go ahead > and document what's on the other end. > > Signed-off-by: Andrew Halaney > --- Other boards do similar things under the i2c host nodes (see e.g. sm8450-sony-xperia-nagara.dtsi.. > > Not sure if this sort of patch is actually welcomed or not but I went > through this exercise (for the prior patch) and thought it might be > useful to document. ..and yes it is very welcome! > > Shazad, this also highlights (unless I misread things) that i2c12 has no > use for us, right? If agreed I can remove it but sorting through the > lore links that provided all this it seems like at the time it was > desired to be added. It's fine if you guys decide that it's useful for some kind expansion mezzanine or other add-on board, but if it's not connected anywhere you may wish to disable the host and remove the pinctrl entries, as keeping it enabled essentially wastes some power. Konrad > > Thanks, > Andrew > > arch/arm64/boot/dts/qcom/sa8540p-ride.dts | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sa8540p-ride.dts b/arch/arm64/boot/dts/qcom/sa8540p-ride.dts > index cb9fbdeb5a9e..3478ab91fe73 100644 > --- a/arch/arm64/boot/dts/qcom/sa8540p-ride.dts > +++ b/arch/arm64/boot/dts/qcom/sa8540p-ride.dts > @@ -317,6 +317,7 @@ &xo_board_clk { > > &tlmm { > i2c0_default: i2c0-default-state { > + /* To USB7002T-I/KDXVA0 USB hub (SIP1 only) */ > pins = "gpio135", "gpio136"; > function = "qup0"; > drive-strength = <2>; > @@ -324,6 +325,7 @@ i2c0_default: i2c0-default-state { > }; > > i2c1_default: i2c1-default-state { > + /* To PM40028B-F3EI PCIe switch */ > pins = "gpio158", "gpio159"; > function = "qup1"; > drive-strength = <2>; > @@ -331,6 +333,7 @@ i2c1_default: i2c1-default-state { > }; > > i2c12_default: i2c12-default-state { > + /* Not connected */ > pins = "gpio0", "gpio1"; > function = "qup12"; > drive-strength = <2>; > @@ -338,6 +341,7 @@ i2c12_default: i2c12-default-state { > }; > > i2c15_default: i2c15-default-state { > + /* To display connector (SIP1 only) */ > pins = "gpio36", "gpio37"; > function = "qup15"; > drive-strength = <2>; > @@ -345,6 +349,7 @@ i2c15_default: i2c15-default-state { > }; > > i2c18_default: i2c18-default-state { > + /* To ASM330LHH IMU (SIP1 only) */ > pins = "gpio66", "gpio67"; > function = "qup18"; > drive-strength = <2>;