From patchwork Mon Feb 13 14:46:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13138522 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 4966AC64EC7 for ; Mon, 13 Feb 2023 14:46:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230294AbjBMOqo (ORCPT ); Mon, 13 Feb 2023 09:46:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230183AbjBMOqn (ORCPT ); Mon, 13 Feb 2023 09:46:43 -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 82C2B1C306 for ; Mon, 13 Feb 2023 06:46:33 -0800 (PST) Received: by mail-ej1-x62d.google.com with SMTP id dr8so32379112ejc.12 for ; Mon, 13 Feb 2023 06:46:33 -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=WFfrceIf1t2XWsQlP6g7QsNsQTEjGCVtN3IyH9ltulo=; b=woKvrX1sGqxQx6Cbklg8tApJqk933IYZTDpF1a6UC5EWAzMm33IOcIqUXHCjtxA09y sAwKfHIGkVlmNlttz9k1nbmtt2eRA6A+5e5xi9ZlgxL/NX3Z80r4NK8IqUh7yjVd4Od2 HBTPk37AvoGJtTCHk8a3/HgmpYCmREDEFYBXfcl77HDLJZUu0Q3Y52c6COplPayq8V7B oT4EqOGTL1J03rSJv1K8uCbQj6mjwFnUdDK930tzEN6uNorHVb9/gRci6G9Hmhbpq9PP vuUXRjhqURT3q4pGZyEv5HXpyPDSCJTLFypDegB/mm3a1D+HcB+enHJQMTaLQaEbvHP/ FBxw== 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=WFfrceIf1t2XWsQlP6g7QsNsQTEjGCVtN3IyH9ltulo=; b=YHz7nXV+nex1wvXuyRymDp9ocrMWbgPgPPTBzamWhdkTI9AdXmPLzUdH6lP7vBah7F 35XsJKozuJeC/VI6bRkWpB5M2Si86EcdxDsTtXl9yv4AZu469z/3Tgt1RNOm485dns2O s+bolrDqNPUjXhNJFL1UhZIbK9LedCpwWMXn+J+2ckM27d/N9J3xEfB2QgrqyraD9jYO GB9SXWq7lYLS4eCui77VVMOiBoudmj+QU4sssoBqk58Lhs5MYOfEZf0mPVp2o6EgB26Z Idf1GyzON7xysGZEFH8USwy89m6BEsdTUiDA6M+saOXTdbjVNK7JiJHVS5pT3W16sQyg mYsg== X-Gm-Message-State: AO0yUKWdxSokBfmng+06p+CJCrw/jW2+ovnbyitOuCQI5Qj2ALxxBDGC QZrAOJlw+31JeV0rjuQmekghLoCiqEp687P1WL8= X-Google-Smtp-Source: AK7set8ADgoliwZ106ReYmNDSte1uMhXzntdImCMTGghdwpfO0opNzV0UP5PadwaDdDylPnWrBx2SQ== X-Received: by 2002:a17:906:1d14:b0:88c:a43d:81bc with SMTP id n20-20020a1709061d1400b0088ca43d81bcmr22765588ejh.58.1676299592151; Mon, 13 Feb 2023 06:46:32 -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 b19-20020a17090636d300b0085d6bfc6201sm6884208ejc.86.2023.02.13.06.46.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Feb 2023 06:46:31 -0800 (PST) From: Luca Weiss Date: Mon, 13 Feb 2023 15:46:30 +0100 Subject: [PATCH v2 1/2] arm64: dts: qcom: sm7225-fairphone-fp4: move status property down MIME-Version: 1.0 Message-Id: <20230213-fp4-more-i2c-v2-1-1c459c572f80@fairphone.com> References: <20230213-fp4-more-i2c-v2-0-1c459c572f80@fairphone.com> In-Reply-To: <20230213-fp4-more-i2c-v2-0-1c459c572f80@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. Reviewed-by: Konrad Dybcio Signed-off-by: Luca Weiss --- 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 14:46:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13138523 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 2CDF6C636CC for ; Mon, 13 Feb 2023 14:46:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230318AbjBMOqp (ORCPT ); Mon, 13 Feb 2023 09:46:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230239AbjBMOqo (ORCPT ); Mon, 13 Feb 2023 09:46:44 -0500 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 368A41C320 for ; Mon, 13 Feb 2023 06:46:34 -0800 (PST) Received: by mail-ed1-x52d.google.com with SMTP id a10so13198486edu.9 for ; Mon, 13 Feb 2023 06:46:34 -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=mYt0UvSCB3GCUEfFP2VKDcvyRzb86/6xZ/drofUnvWU=; b=H7CmGL4toJujXUyjXiOqsBKS3oQ/OPCqgVxR2qZX3NIeNQomor2BuTBe3CxRxqblOg yYfBXQny4rQqh8eTKQjULC97fd68fuEk/j88P6cGhkoqjNmfsUnk6Thq/HwPVKffaTLq hJ4EVomttNgezaxMnpMSAekHR3CBBEALmptn7WxA8YPndyn/qrQcSI9L/239c9nhGfhs AuLXsPwRbpI2oROquQp6CUGkJgaeWHc34u39xDVF+HhJJ7KpqfoS76/sy72Darn9lJRp j0grQk86/WmBZx38gX2/wXwYFtMwjRQf3g+IlLzTgEtY4THIh0DXVw6OPRvpPDUHkNIk 3BOg== 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=mYt0UvSCB3GCUEfFP2VKDcvyRzb86/6xZ/drofUnvWU=; b=T8B8dojOldIrA+ijQXGpUi9uHyMCod2UyZlE+h5IA5E3yoms7xxifUCh5RpOXDIZuI AWSWUhk2gp0fteTU46r5JHhHQ5xfLcIKVc4CIG0UDJ87iMyeBHoNnHTaOEtzAkKNFV+I 8Xe1gyz8EhdfpaiI/OccgnwuUTueC7MtcpOu/lda6K/zpy3yrB3WcM++CxHpy/1ngb8W H7J9OX+vefflpXAdwebA6NfDxC4jYMSxAfBxdron0zHyhAY6ufkvJs25Ry/MlF9Ag5oL A6caH83VDz+AIddhU4aR5FxFoTzINjPqQYQj2/iTF43Z3gvaig+VIpcVbDKoYfvUxtnO JxYg== X-Gm-Message-State: AO0yUKWn9TNxg76IL+OFZvITaHy7GaEr9/ypSRMpwXbOBbAY1r2Vd4dv G4sLupsJ3n0M7VrZFY5vUqEL/g== X-Google-Smtp-Source: AK7set8kR2+9bPXCt4cS7kPEIOFtMli+K3NI8BYypsYy9bfi0z72yfNI8hiPIiJhzQbpCmp7+qBE+w== X-Received: by 2002:a50:c35a:0:b0:4ac:c12b:8ef8 with SMTP id q26-20020a50c35a000000b004acc12b8ef8mr4904070edb.26.1676299592737; Mon, 13 Feb 2023 06:46:32 -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 b19-20020a17090636d300b0085d6bfc6201sm6884208ejc.86.2023.02.13.06.46.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Feb 2023 06:46:32 -0800 (PST) From: Luca Weiss Date: Mon, 13 Feb 2023 15:46:31 +0100 Subject: [PATCH v2 2/2] arm64: dts: qcom: sm7225-fairphone-fp4: enable remaining i2c busses MIME-Version: 1.0 Message-Id: <20230213-fp4-more-i2c-v2-2-1c459c572f80@fairphone.com> References: <20230213-fp4-more-i2c-v2-0-1c459c572f80@fairphone.com> In-Reply-To: <20230213-fp4-more-i2c-v2-0-1c459c572f80@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. Also enable gpi_dma and the other qupv3 for that. Reviewed-by: Konrad Dybcio Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts | 33 +++++++++++++++++++++++ 1 file changed, 33 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..7ae6aba5d2ec 100644 --- a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts +++ b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts @@ -359,10 +359,39 @@ &cdsp { status = "okay"; }; +&gpi_dma0 { + status = "okay"; +}; + +&gpi_dma1 { + 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 +524,10 @@ adc-chan@644 { }; }; +&qupv3_id_0 { + status = "okay"; +}; + &qupv3_id_1 { status = "okay"; };