From patchwork Mon Feb 13 13:26:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13138452 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 B3011C64ED6 for ; Mon, 13 Feb 2023 13:33:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230285AbjBMNdJ (ORCPT ); Mon, 13 Feb 2023 08:33:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230176AbjBMNdD (ORCPT ); Mon, 13 Feb 2023 08:33:03 -0500 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F4C91B316 for ; Mon, 13 Feb 2023 05:33:00 -0800 (PST) Received: by mail-ej1-x635.google.com with SMTP id jg8so31899071ejc.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=+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=5bFlzdyrODz+ZfxQzOedDEzGG2n97VdogmTKGlAmTTkbFgAf5RyFIzQrEFCLjWsP7s MeRhCjrBQh0O0KZE+rHBjjiJATCEncSXhQj6N4N0AvOgbYDyFrkflew9DDT0ZVe7DJHK QKp0ysVdmzILtWwa7B2IUQqmHhHgY9GP2ASgnswur+mgzMTqXGadl4cQ0UAYhE1GkS1I 9bB7jRTzQ0Duk25zvXZ397jfHNdSNmZ4Pmujv5aoQ9JViaOGvbj6x6lO/Xspw028ghoY 6vN11FCc+AaS6tiJqihC5FOaQvrtykkAgwlfI1oJvYLxYophpK70YdP75wgIpn6eENMQ /fww== X-Gm-Message-State: AO0yUKU2AeAdhMAZUJJnr9vNyLGfe5+gkGxnvQwIRwSueIqScale8fJX H6pNVEnSGuL8LIYevJc/3q0eTw== 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 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-arm-msm@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 { }; &adsp { - status = "okay"; firmware-name = "qcom/sm7225/fairphone4/adsp.mdt"; + status = "okay"; }; &apps_rsc { @@ -355,13 +355,13 @@ &cci1_i2c0 { }; &cdsp { - status = "okay"; firmware-name = "qcom/sm7225/fairphone4/cdsp.mdt"; + status = "okay"; }; &i2c10 { - status = "okay"; clock-frequency = <400000>; + status = "okay"; haptics@5a { compatible = "awinic,aw8695"; @@ -396,8 +396,8 @@ &ipa { }; &mpss { - status = "okay"; firmware-name = "qcom/sm7225/fairphone4/modem.mdt"; + status = "okay"; }; &pm6150l_flash { @@ -423,11 +423,11 @@ led-1 { }; &pm6150l_wled { - status = "okay"; - qcom,switching-freq = <800>; qcom,current-limit-microamp = <20000>; qcom,num-strings = <2>; + + status = "okay"; }; &pm6350_gpios { @@ -441,8 +441,8 @@ gpio_keys_pin: gpio-keys-state { }; &pm6350_resin { - status = "okay"; linux,code = ; + status = "okay"; }; &pm7250b_adc { @@ -535,21 +535,21 @@ &uart9 { }; &ufs_mem_hc { - status = "okay"; - reset-gpios = <&tlmm 156 GPIO_ACTIVE_LOW>; vcc-supply = <&vreg_l7e>; vcc-max-microamp = <800000>; vccq2-supply = <&vreg_l12a>; vccq2-max-microamp = <800000>; + + status = "okay"; }; &ufs_mem_phy { - status = "okay"; - vdda-phy-supply = <&vreg_l18a>; vdda-pll-supply = <&vreg_l22a>; + + status = "okay"; }; &usb_1 { @@ -562,26 +562,26 @@ &usb_1_dwc3 { }; &usb_1_hsphy { - status = "okay"; - vdd-supply = <&vreg_l18a>; vdda-pll-supply = <&vreg_l2a>; vdda-phy-dpdm-supply = <&vreg_l3a>; + + status = "okay"; }; &usb_1_qmpphy { - status = "okay"; - vdda-phy-supply = <&vreg_l22a>; vdda-pll-supply = <&vreg_l16a>; + + status = "okay"; }; &wifi { - status = "okay"; - vdd-0.8-cx-mx-supply = <&vreg_l4a>; vdd-1.8-xo-supply = <&vreg_l7a>; vdd-1.3-rfa-supply = <&vreg_l2e>; vdd-3.3-ch0-supply = <&vreg_l10e>; vdd-3.3-ch1-supply = <&vreg_l11e>; + + status = "okay"; }; From patchwork Mon Feb 13 13:26:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13138453 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 A2A8FC64ED9 for ; Mon, 13 Feb 2023 13:33:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230292AbjBMNdJ (ORCPT ); Mon, 13 Feb 2023 08:33:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230281AbjBMNdE (ORCPT ); Mon, 13 Feb 2023 08:33:04 -0500 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07C5F1ABD0 for ; Mon, 13 Feb 2023 05:33:01 -0800 (PST) Received: by mail-ej1-x632.google.com with SMTP id qb15so29819126ejc.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=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=a4r9Hr6fo+Jlsri/skn6k8kh6VD417HrP78KqgzQ+H38uVrmFdxTF8Gxk9SWnWHNAt Se6vy0Aj4iNr5iO3LPgo7wxntkblbJ+Ibo4xIWuSzukkDJjYMxhhueLniqgOwka1b7EG LGY1N/KwFA37K0BvdxAnB+5LoeGy07aJrRe+jZaUQpZGaq0AlFx5928HhmxHMyjrBioF LvH6hQ95YJDFRAdUwQeTr/PiO2SLc4hAz2u1HAnFRhN2GaJvi3t0fVJfJoZYdtnRvKXz nnmBsKL/f9hOu4i65eIJeqejtsLBmVlO/3J1rQd6Ws4Z5UskusTgLkk/8mQxeMRQFdV+ A/ow== X-Gm-Message-State: AO0yUKUg5Y3CLoLxteZIo8j+aRvz7RMZoRmMgJ/2cq9JLA14IP4Fe2+R 31kPd2fjW8AcQps2EV3Oji4+6w== 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 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-arm-msm@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 = "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"; };