From nobody Fri Sep 12 05:09:27 2025 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 CFB29C636CC for ; Mon, 13 Feb 2023 13:33:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230217AbjBMNdN (ORCPT ); Mon, 13 Feb 2023 08:33:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229877AbjBMNdD (ORCPT ); Mon, 13 Feb 2023 08:33:03 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F5891B31F for ; Mon, 13 Feb 2023 05:33:00 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id qb15so29819038ejc.1 for ; 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=+CfA+7YWK5fftu9bWm2r5jkUZ+FbbBYidkZ5DdCodcs=; b=eGGN3mtx/fmPjOXMZ0l7O/py/cySWsl6E6e1bLUy+i10xNpbSxbpOccpBxZ+KNSkBZ q20+rmI+fVqF1SDNup0/AcxJN9puha8bgPizsAptG8qybn1jrzkoqXWYgSE6oWuV6Qh5 956QCc2xHOiiZXTEYikvJiI3KZrhZQ6ZYiiGyUNxhr8IgmC1FC5pM7uBLBHKfGBK1H1g q9uW/bR74VjY/DxL8JxsMF7gxVT/xTFsHqDp49WG4w7QgEm6+w9lRAmI0tbLsVGLJl3H eVLpyHsWDMHkTEYq8h62y6hF0JaXjCg51UaHGR6t8nHUriC1ylezPM2GhDSqFLuvb/oL 2oLw== 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=+CfA+7YWK5fftu9bWm2r5jkUZ+FbbBYidkZ5DdCodcs=; b=5lXlHTQHQNyXxGAzIArgfIj3Uyfc9nMI7/s0eLJIpiIHaFuWSQFqLquHVkq/z0lxd9 0g7rDI73m3mjYMRJovz/DNu+NhYyQ++d/fJplv+nQe++uvoIQY2Ei4cmPI+H0FXxumZe D3IVyAJtYtAggPMj1+9YAFcPxOgXEi4b6CleVLjyKE/L9nz65PIRjYnfgskb8jzNZyyg ZiwhYN1UwYNO3tUadJiVlBIlq3P9Ulo1F2iDKFZYesfPxbKzyGx/KSf8IWsslvEtUlvc BOgHN8nSp1ySKu0XAcsT4QneGtatGkQClV+RMbJ/adD/ArCpuqqvcGIc5Y1tTXLN0yph LqiQ== X-Gm-Message-State: AO0yUKW/Rr7aYAeCG3EgkkGVvgXFHJmx1+qtX+p21EJOeIzVdtVutMfb p+zwAPQoCYNRi/R++CL8LlL76A== X-Google-Smtp-Source: AK7set8/vFnC7Pn5oCi5X3RaHhEwrBd83KL+IGorR5v85xRpe5ndttnsVmSH0IXOEzwDByVYUdZzzg== X-Received: by 2002:a17:907:9844:b0:888:9693:fb18 with SMTP id jj4-20020a170907984400b008889693fb18mr26220022ejc.37.1676295178730; Mon, 13 Feb 2023 05:32:58 -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:58 -0800 (PST) From: Luca Weiss Date: Mon, 13 Feb 2023 14:26:49 +0100 Subject: [PATCH 1/2] arm64: dts: qcom: sm7225-fairphone-fp4: move status property down MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20230213-fp4-more-i2c-v1-1-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 , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski 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 X-Mailer: b4 0.12.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently the dts contains a mix of status-as-first-property (old qcom style) and status-as-last-property (new style). Move all status properties down to the bottom once and for all so that the style is consistent between different nodes. Signed-off-by: Luca Weiss Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts | 34 +++++++++++--------= ---- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts b/arch/arm64= /boot/dts/qcom/sm7225-fairphone-fp4.dts index f7602e93121a..86114dd2c0c4 100644 --- a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts +++ b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts @@ -110,8 +110,8 @@ active-config0 { }; =20 &adsp { - status =3D "okay"; firmware-name =3D "qcom/sm7225/fairphone4/adsp.mdt"; + status =3D "okay"; }; =20 &apps_rsc { @@ -355,13 +355,13 @@ &cci1_i2c0 { }; =20 &cdsp { - status =3D "okay"; firmware-name =3D "qcom/sm7225/fairphone4/cdsp.mdt"; + status =3D "okay"; }; =20 &i2c10 { - status =3D "okay"; clock-frequency =3D <400000>; + status =3D "okay"; =20 haptics@5a { compatible =3D "awinic,aw8695"; @@ -396,8 +396,8 @@ &ipa { }; =20 &mpss { - status =3D "okay"; firmware-name =3D "qcom/sm7225/fairphone4/modem.mdt"; + status =3D "okay"; }; =20 &pm6150l_flash { @@ -423,11 +423,11 @@ led-1 { }; =20 &pm6150l_wled { - status =3D "okay"; - qcom,switching-freq =3D <800>; qcom,current-limit-microamp =3D <20000>; qcom,num-strings =3D <2>; + + status =3D "okay"; }; =20 &pm6350_gpios { @@ -441,8 +441,8 @@ gpio_keys_pin: gpio-keys-state { }; =20 &pm6350_resin { - status =3D "okay"; linux,code =3D ; + status =3D "okay"; }; =20 &pm7250b_adc { @@ -535,21 +535,21 @@ &uart9 { }; =20 &ufs_mem_hc { - status =3D "okay"; - reset-gpios =3D <&tlmm 156 GPIO_ACTIVE_LOW>; =20 vcc-supply =3D <&vreg_l7e>; vcc-max-microamp =3D <800000>; vccq2-supply =3D <&vreg_l12a>; vccq2-max-microamp =3D <800000>; + + status =3D "okay"; }; =20 &ufs_mem_phy { - status =3D "okay"; - vdda-phy-supply =3D <&vreg_l18a>; vdda-pll-supply =3D <&vreg_l22a>; + + status =3D "okay"; }; =20 &usb_1 { @@ -562,26 +562,26 @@ &usb_1_dwc3 { }; =20 &usb_1_hsphy { - status =3D "okay"; - vdd-supply =3D <&vreg_l18a>; vdda-pll-supply =3D <&vreg_l2a>; vdda-phy-dpdm-supply =3D <&vreg_l3a>; + + status =3D "okay"; }; =20 &usb_1_qmpphy { - status =3D "okay"; - vdda-phy-supply =3D <&vreg_l22a>; vdda-pll-supply =3D <&vreg_l16a>; + + status =3D "okay"; }; =20 &wifi { - status =3D "okay"; - vdd-0.8-cx-mx-supply =3D <&vreg_l4a>; vdd-1.8-xo-supply =3D <&vreg_l7a>; vdd-1.3-rfa-supply =3D <&vreg_l2e>; vdd-3.3-ch0-supply =3D <&vreg_l10e>; vdd-3.3-ch1-supply =3D <&vreg_l11e>; + + status =3D "okay"; }; --=20 2.39.1 From nobody Fri Sep 12 05:09:27 2025 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 76162C636CC for ; Mon, 13 Feb 2023 13:33:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230300AbjBMNdR (ORCPT ); Mon, 13 Feb 2023 08:33:17 -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 ); 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 ; Mon, 13 Feb 2023 05:33:01 -0800 (PST) Received: by mail-ej1-x62a.google.com with SMTP id jg8so31899142ejc.6 for ; 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-Google-Smtp-Source: AK7set+nssou59xHVmaH/Q4nYYZy5U3YjvGk2efyx7dTUsVP2Q+dP5FCZEMqrN2EgxHoC3ZiaboTcQ== 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 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: quoted-printable 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 , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski 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 X-Mailer: b4 0.12.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Reviewed-by: Konrad Dybcio --- 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 =3D "okay"; }; =20 +&i2c0 { + clock-frequency =3D <400000>; + status =3D "okay"; + + /* ST21NFCD NFC @ 8 */ + /* VL53L3 ToF @ 29 */ + /* AW88264A amplifier @ 34 */ + /* AW88264A amplifier @ 35 */ +}; + +&i2c8 { + clock-frequency =3D <400000>; + status =3D "okay"; + + /* HX83112A touchscreen @ 48 */ +}; + &i2c10 { clock-frequency =3D <400000>; status =3D "okay"; =20 + /* PM8008 PMIC @ 8 and 9 */ + /* PX8618 @ 26 */ + /* SMB1395 PMIC @ 34 */ + haptics@5a { compatible =3D "awinic,aw8695"; reg =3D <0x5a>; @@ -495,6 +516,10 @@ adc-chan@644 { }; }; =20 +&qupv3_id_0 { + status =3D "okay"; +}; + &qupv3_id_1 { status =3D "okay"; }; --=20 2.39.1