Message ID | 20230213-fp4-more-i2c-v1-2-5be09dbb5ce6@fairphone.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2350019wrn; Mon, 13 Feb 2023 05:38:47 -0800 (PST) X-Google-Smtp-Source: AK7set8WsGeSd+/m+XMSVXH0kyXOc+pnHfdkKHG196j/v4ppwjkjfAKVXHHIHoddjAYM+9fxgjNc X-Received: by 2002:a17:906:a255:b0:84d:4493:c83f with SMTP id bi21-20020a170906a25500b0084d4493c83fmr22615611ejb.6.1676295527098; Mon, 13 Feb 2023 05:38:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676295527; cv=none; d=google.com; s=arc-20160816; b=UykTaNzxtl+wo+kUg8s/mjLFTjdasn1XgtuxBgvnUhe2gcx/vxzjQq3XzRUNvM45ai aFjY/ezocUB0Vo5kvOPc/4/fpioCwDFGC29QFveLX6eNUeEBMKI6zutYKMrw+ymp+PYP Wctcd1J+rs6+AO4jgfKCeuFwGdpR0+jbxI9b5fBSTevmYm87C1caYgGQ43aMgz//c+4g Ummw7eDDL2vgsMqPLBYD23rY5LOrLQDNuqByf4caNZjDMOfkbZbzVepup3q1DQPYpqJY 4/bHmkL+TRJ7YgywDxFOWiOVvPBZPBYSr4XmN4SLLyomGwbJCvjZH0HqObxh+z//mEX3 fklQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=70OvqASv0mjZllhMqhkKWtUGVSAnAQUMLpze65KxTCo=; b=INApVXFdUlHz/v2VdvxzPwUPM0e9KR/AvamEkb2RFmpUcoJmT2EpDkgagPUiQl21vs kITjct/nuwmX7g+6CMKOTGqzQSDXAqNaz+FaVOHagTXegzCqweWnWa/12QFrCiAayb1I XNrjNmF6ktfEQZYjR5+X7OdBO08A+32IXxH3TUXz2A2IWQfUtc6ALZnDUeOFSfW6yNZz lUCrcYN2u/V2B6RpwISWaKvx/yClrPRvTZDCdvsHJyCGn40TWj6ot/yRqooo6kXNZvyF RCSCOLG2PbraGAKeGTqeLJlRYj/pIeqLr7khCX4GGIe2AACr/bcv007hznhzkNmTVLTJ YufQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=Ufl0lz+8; 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=fairphone.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ep12-20020a1709069b4c00b0086ee02edc68si14278174ejc.197.2023.02.13.05.38.24; Mon, 13 Feb 2023 05:38:47 -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=@fairphone.com header.s=fair header.b=Ufl0lz+8; 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=fairphone.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230244AbjBMNdQ (ORCPT <rfc822;tebrre53rla2o@gmail.com> + 99 others); Mon, 13 Feb 2023 08:33:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230209AbjBMNdE (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 13 Feb 2023 08:33:04 -0500 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06B691ABC4 for <linux-kernel@vger.kernel.org>; Mon, 13 Feb 2023 05:33:01 -0800 (PST) Received: by mail-ej1-x62a.google.com with SMTP id jg8so31899142ejc.6 for <linux-kernel@vger.kernel.org>; Mon, 13 Feb 2023 05:33:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=70OvqASv0mjZllhMqhkKWtUGVSAnAQUMLpze65KxTCo=; b=Ufl0lz+8F8Gv68rGLtMmMpLGiOD4XsDVpokfoh54YtWrD1I3E5ID3zwxHISNMtvnSG 7f4w7Q/14y/OoJWeCcQVAqO2sG7qHSLroGKk0QB9fCiciT1+Ik7IJfuug5j5HRK7139c 3L+vrW4qKEA7NO6x1gI5kIDAMYL2khBaDfnwiZGxqnRQ+6dn7fqmZ+eGUJYPZWPiYUtm EaGn0nzdsrnOu5pXxw0XJUwYmCPS6ZW1FzFNoryGCtwvhpNS4hb2YYQ7kqXy1vl9Ab+I n+Gz/oKbWEvZP8b0LDlzhqh6BSP4rV/i7x1F8gmNdq9ZhNsr2+btyvZRx0ygZNIc+qXi R+ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=70OvqASv0mjZllhMqhkKWtUGVSAnAQUMLpze65KxTCo=; b=ZJCCFlOusIq5pWVbUgDfM+21tTymME0WFRBdBtIdx07IGlr0yN1LqiRsNN1jlKzxNk op1WE335FzuNqahBFoP4kf41kt7XbAhIVDWvvH4RjiqDmWs7gH8NGqbHWleQVDxIk29G MKd9S3cvkRLf24xpDmtpm7M3D6hl0d6qvSVws7oIqKKBPnUWYM2R98YG0vZZ4dJdIFKw 7eJ7BPLl3R5JpV/o9NL4+lS3gLMZhCYoRlzGFLZdaoHamAfa2YXHVz57x+zAGNUTQtAE r3bAdI7Ecw1X6xKtTmqrbNVpDv5dL7vvDftDYFE9d12QLj9U4vFTmqsQUwYM8bu2C3ww sebg== X-Gm-Message-State: AO0yUKX2caS9toMBWZPUSBvRIRC2Szc/CZf5x5/szv1T694sF+PlA3m5 LRxoLo3Ki+2w6ieQ8+KhbJMiww== X-Received: by 2002:a17:906:2a0b:b0:887:d0e6:fa24 with SMTP id j11-20020a1709062a0b00b00887d0e6fa24mr23836713eje.76.1676295179311; Mon, 13 Feb 2023 05:32:59 -0800 (PST) Received: from [172.16.220.87] (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id h24-20020a170906829800b008aa0305dbe8sm6661180ejx.80.2023.02.13.05.32.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Feb 2023 05:32:59 -0800 (PST) From: Luca Weiss <luca.weiss@fairphone.com> Date: Mon, 13 Feb 2023 14:26:50 +0100 Subject: [PATCH 2/2] arm64: dts: qcom: sm7225-fairphone-fp4: enable remaining i2c busses MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230213-fp4-more-i2c-v1-2-5be09dbb5ce6@fairphone.com> References: <20230213-fp4-more-i2c-v1-0-5be09dbb5ce6@fairphone.com> In-Reply-To: <20230213-fp4-more-i2c-v1-0-5be09dbb5ce6@fairphone.com> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss <luca.weiss@fairphone.com> X-Mailer: b4 0.12.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757723258716149184?= X-GMAIL-MSGID: =?utf-8?q?1757723258716149184?= |
Series |
Enable remaining I2C busses on sm7225-fairphone-fp4
|
|
Commit Message
Luca Weiss
Feb. 13, 2023, 1:26 p.m. UTC
Enable all i2c busses where something is connected on this phone. Add
comments as placeholders for which components are still missing.
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
---
arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts | 25 +++++++++++++++++++++++
1 file changed, 25 insertions(+)
Comments
On 13.02.2023 14:26, Luca Weiss wrote: > Enable all i2c busses where something is connected on this phone. Add > comments as placeholders for which components are still missing. > > Signed-off-by: Luca Weiss <luca.weiss@fairphone.com> > --- Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Any reason you've not enabled GPI DMA yet? Konrad > arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts | 25 +++++++++++++++++++++++ > 1 file changed, 25 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts > index 86114dd2c0c4..d0f08b42592f 100644 > --- a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts > +++ b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts > @@ -359,10 +359,31 @@ &cdsp { > status = "okay"; > }; > > +&i2c0 { > + clock-frequency = <400000>; > + status = "okay"; > + > + /* ST21NFCD NFC @ 8 */ > + /* VL53L3 ToF @ 29 */ > + /* AW88264A amplifier @ 34 */ > + /* AW88264A amplifier @ 35 */ > +}; > + > +&i2c8 { > + clock-frequency = <400000>; > + status = "okay"; > + > + /* HX83112A touchscreen @ 48 */ > +}; > + > &i2c10 { > clock-frequency = <400000>; > status = "okay"; > > + /* PM8008 PMIC @ 8 and 9 */ > + /* PX8618 @ 26 */ > + /* SMB1395 PMIC @ 34 */ > + > haptics@5a { > compatible = "awinic,aw8695"; > reg = <0x5a>; > @@ -495,6 +516,10 @@ adc-chan@644 { > }; > }; > > +&qupv3_id_0 { > + status = "okay"; > +}; > + > &qupv3_id_1 { > status = "okay"; > }; >
On Mon Feb 13, 2023 at 3:40 PM CET, Konrad Dybcio wrote: > > > On 13.02.2023 14:26, Luca Weiss wrote: > > Enable all i2c busses where something is connected on this phone. Add > > comments as placeholders for which components are still missing. > > > > Signed-off-by: Luca Weiss <luca.weiss@fairphone.com> > > --- > Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> > > Any reason you've not enabled GPI DMA yet? Good call, I enabled it in a different commit that isn't meant for upstream, thought it was already enabled in mainline. Will send a v2 with this added: +&gpi_dma0 { + status = "okay"; +}; + +&gpi_dma1 { + status = "okay"; +}; > > Konrad > > arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts | 25 +++++++++++++++++++++++ > > 1 file changed, 25 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts > > index 86114dd2c0c4..d0f08b42592f 100644 > > --- a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts > > +++ b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts > > @@ -359,10 +359,31 @@ &cdsp { > > status = "okay"; > > }; > > > > +&i2c0 { > > + clock-frequency = <400000>; > > + status = "okay"; > > + > > + /* ST21NFCD NFC @ 8 */ > > + /* VL53L3 ToF @ 29 */ > > + /* AW88264A amplifier @ 34 */ > > + /* AW88264A amplifier @ 35 */ > > +}; > > + > > +&i2c8 { > > + clock-frequency = <400000>; > > + status = "okay"; > > + > > + /* HX83112A touchscreen @ 48 */ > > +}; > > + > > &i2c10 { > > clock-frequency = <400000>; > > status = "okay"; > > > > + /* PM8008 PMIC @ 8 and 9 */ > > + /* PX8618 @ 26 */ > > + /* SMB1395 PMIC @ 34 */ > > + > > haptics@5a { > > compatible = "awinic,aw8695"; > > reg = <0x5a>; > > @@ -495,6 +516,10 @@ adc-chan@644 { > > }; > > }; > > > > +&qupv3_id_0 { > > + status = "okay"; > > +}; > > + > > &qupv3_id_1 { > > status = "okay"; > > }; > >
diff --git a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts index 86114dd2c0c4..d0f08b42592f 100644 --- a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts +++ b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts @@ -359,10 +359,31 @@ &cdsp { status = "okay"; }; +&i2c0 { + clock-frequency = <400000>; + status = "okay"; + + /* ST21NFCD NFC @ 8 */ + /* VL53L3 ToF @ 29 */ + /* AW88264A amplifier @ 34 */ + /* AW88264A amplifier @ 35 */ +}; + +&i2c8 { + clock-frequency = <400000>; + status = "okay"; + + /* HX83112A touchscreen @ 48 */ +}; + &i2c10 { clock-frequency = <400000>; status = "okay"; + /* PM8008 PMIC @ 8 and 9 */ + /* PX8618 @ 26 */ + /* SMB1395 PMIC @ 34 */ + haptics@5a { compatible = "awinic,aw8695"; reg = <0x5a>; @@ -495,6 +516,10 @@ adc-chan@644 { }; }; +&qupv3_id_0 { + status = "okay"; +}; + &qupv3_id_1 { status = "okay"; };