From patchwork Wed Feb 21 14:38:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 775283 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EFC667FBA3 for ; Wed, 21 Feb 2024 14:38:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708526339; cv=none; b=fMbMl0XV9BKFA+Fthzp2NNNUQxdM0tsTuF0Qo0blR5lQyo/Z/LLEsiVuANXRyv/aFJOOJSaeGjxOvuDOnnZoqY+Azq7QEEF5jDW3/ibUYyJYYibSjYFBhvZzV955HkkNN1QikMxj8uJVavNwgTJISj3iVXE3cVl0F/LS93LiJmw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708526339; c=relaxed/simple; bh=tpSk0M3zSnSlVM7y9XJMuhxS2XPPkzW0s2tzL4z3u1E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rAy8d2YKsf6iCuXbNZUch2gpEtJqwePYahvR/CZ9N5pAIXuTKwKx/uw8WCUQjCjK6AJPsg4Go7CcPfBchJybzDt6IwTdkui9igEjPUHErDNWfS9v2AsAX3WRs5xlbviwOPgTbjgoaWBNqtQT6cS6aYcE82IIqx0vyLTUFHDmjVM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=BCVvOEOb; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="BCVvOEOb" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a30f7c9574eso853531866b.0 for ; Wed, 21 Feb 2024 06:38:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708526336; x=1709131136; darn=vger.kernel.org; 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=QhBPs6M2gk6rH7s82ekTV9UmMDiSMSdO6mX/HtcFuwU=; b=BCVvOEObhbWHB0tthm0dFxdXXMva789IWo8RwSzP2abRQD3pWkb8XpNfDH3gvrUrHh 9Eab6dZQ2yFPxtHJDZEnfWjpxSefR4cbA8KAJ/t4BP5xkSiY2RqXFaM698EtLU2PUykH RST6oOUDmw25h0N55kb4OhwkYEMKwvtZmvx3XHdfKdvFkqfsXGkveIObOHxhEcqCtBnV v9omIU3A5hnExz61rUQ+7mfbmKHib9HObF+bjpoDN+Klyjyx7dh4pbHp0K8uurUY9uuK rDmnFb5s9Ek7TSB828ZSpVlsz21CdryI0rrC5O2qpzAHcysK9OABCphl3pBq7e833w5j wOMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708526336; x=1709131136; 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=QhBPs6M2gk6rH7s82ekTV9UmMDiSMSdO6mX/HtcFuwU=; b=chVg1UOkqd+UUKAxz8YFE3OE0/AUwHn3NM1iwJ9P3NfY1abJ/T8Ys2oWR4BYgqCdOl ZKpq672785hSF+2dENNGAYU+cN+jPYH5P5W8q2khbRZoK9n9C6/Q7wTbpSWK+pcnGSRt fInRnjl3VTWqx17FG8RgXJcrrHdrgV73UoW3rJVi25QeaPqECttd+PwXAuyWDvEN7gbv 3F7ZIDN8iXs3OWia66PfooDj3K7KUfiqMhxPMw3MtUC0bM8pCkkeGIiprGd0GCnjX6ey /11T+CWLHT0/J908K7NCOIVch/4h5GJLRL5b2swLO6iH3mYyWdc4jwS9D+BEcn72ZbI/ bKkQ== X-Gm-Message-State: AOJu0YyQ7qxA4d4UHep2tOGhg3ABB2eY8bcEVFvqkGSqhCc9MeyHDqsa IfWhPXUH3qr3A0i/a83OC8TZVaTWm9Nsm0U7qHuOkDvU+5tJ5xKMfixj17B4JHSCs7I1PTu04UA S X-Google-Smtp-Source: AGHT+IGjKUlXy9lg2fFYmpP0KZOibyKT/DZ2/v9F1MVXMJ7fcG1Elhrl5rOpKQ2SQtqxHIcO/zQMcg== X-Received: by 2002:a17:906:d8b4:b0:a3f:3acf:c58b with SMTP id qc20-20020a170906d8b400b00a3f3acfc58bmr1209784ejb.13.1708526336223; Wed, 21 Feb 2024 06:38:56 -0800 (PST) Received: from [127.0.1.1] ([188.24.162.93]) by smtp.gmail.com with ESMTPSA id wp12-20020a170907060c00b00a3eb953335esm2653970ejb.44.2024.02.21.06.38.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 06:38:55 -0800 (PST) From: Abel Vesa Date: Wed, 21 Feb 2024 16:38:31 +0200 Subject: [PATCH v2 1/4] arm64: dts: qcom: x1e80100: Add SPMI support Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240221-x1e80100-dts-smb2360-v2-1-037d183cc021@linaro.org> References: <20240221-x1e80100-dts-smb2360-v2-0-037d183cc021@linaro.org> In-Reply-To: <20240221-x1e80100-dts-smb2360-v2-0-037d183cc021@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Rob Herring Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Abel Vesa X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2025; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=tpSk0M3zSnSlVM7y9XJMuhxS2XPPkzW0s2tzL4z3u1E=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBl1gr57hJ28ZZZcZcrzgpopRaMSDJxbHVq87S9O mxO5sDiOj6JAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZdYK+QAKCRAbX0TJAJUV Vgh9D/91MjIC8bAbJKaJbMBGUxh63ygCYOecY7d9iDeksK2FOiry3RzuW93kGvKIU1ZwV+Td5b0 WnTRpnO4ocO8mXNHYsYEJ7HUcAv8QJtPA+SyCn/6Y3+cjc8hpRlDBN1rlBI+fb+plUN9qGPOE66 URFPmwv3ObfOhpNao+fOMZVSpKpyTXPc94tGJwg0zZjUn2IkEpf/CdfGaSXpYsVxPhs47+v8+Eo wOOcDpfSj1HOCtIPCXzSBeIZG2g4wwF7x+Gj0HOq+hyV/mPtZxEVH0dXxef5qRn3cr8wfDmVgIg 5Gh53zgsIXQ4gIaSbLM5DOsEwMyUSeFpoLJkpbEFIEKpRW816usO/YMILocb+UqntXo2MjB142n NAl4I8HCdXJYrmbzkgXGg0pwApA2l96TuYPL+GzCYxTtcSumJzDlTll6je6xDyWmZ4f7ZT/oIFY q+URjC2WNzQfCROIN58MwwHNfna/niCsHC09pJrBQSGgBzpVqds8lojacY33JqxCiUO1svVTG6t 317ft1H+pLLiheAocCd97/sXADRUKwib4w1lfq9Uyf+uSmF3NQhW8Xd3BZQEDCfPjlnrGycWv81 EDeMKjXM2KGTbBUES8rI987GnSLl8tt1etKixlPuZ/HcTRFOmBi8M2xLt8ilXHppYsQFnZ1fK+0 QG5otkc94YMG9NA== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE The X1E80100 platform implements the v7 SPMI arbiter, which means it implements two separate buses. The difference, when compared to existing platforms that also implement v7 SPMI arbiter, is that this is the first platform that actually has boards with secondary bus populated with some PMICs. This is why it needs to have 2 separate buses as child nodes of the arbiter. Signed-off-by: Abel Vesa --- arch/arm64/boot/dts/qcom/x1e80100.dtsi | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e80100.dtsi b/arch/arm64/boot/dts/qcom/x1e80100.dtsi index 8e517f76189e..d1c012fd71e6 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100.dtsi +++ b/arch/arm64/boot/dts/qcom/x1e80100.dtsi @@ -4221,6 +4221,48 @@ aoss_qmp: power-management@c300000 { #clock-cells = <0>; }; + spmi: arbiter@c400000 { + compatible = "qcom,spmi-pmic-arb-v7"; + reg = <0 0x0c400000 0 0x3000>, + <0 0x0c500000 0 0x400000>, + <0 0x0c440000 0 0x80000>; + reg-names = "core", "chnls", "obsrvr"; + + qcom,ee = <0>; + qcom,channel = <0>; + + #address-cells = <2>; + #size-cells = <2>; + ranges; + + spmi_bus0: spmi@0 { + reg = <0 0x0c42d000 0 0x4000>, + <0 0x0c4c0000 0 0x10000>; + reg-names = "cnfg", "intr"; + + interrupt-names = "periph_irq"; + interrupts-extended = <&pdc 1 IRQ_TYPE_LEVEL_HIGH>; + interrupt-controller; + #interrupt-cells = <4>; + + #address-cells = <2>; + #size-cells = <0>; + }; + + spmi_bus1: spmi@1 { + reg = <0 0x0c432000 0 0x4000>, + <0 0x0c4d0000 0 0x10000>; + reg-names = "cnfg", "intr"; + + interrupt-names = "periph_irq"; + interrupts-extended = <&pdc 3 IRQ_TYPE_LEVEL_HIGH>; + interrupt-controller; + #interrupt-cells = <4>; + + #address-cells = <2>; + #size-cells = <0>; + }; + }; tlmm: pinctrl@f100000 { compatible = "qcom,x1e80100-tlmm"; From patchwork Wed Feb 21 14:38:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 774580 Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9AA187FBA8 for ; Wed, 21 Feb 2024 14:38:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708526341; cv=none; b=ufIPAPTngM6QHb+0WX5JlUxI5pHlRUKZoqXesaVjvhmItRTW+XPaU66vCYwO2Zl1eNSHFk3jcy4qjV8GDfELGgzvjgRpdQdg7cBMvzfB3YmaboJr4rVRG0tS4PYiKKIzMyBf2nQ+151ajcg33HfU9ro1OIsrF4nix/kMBL40xdE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708526341; c=relaxed/simple; bh=NlA2nnmOVbPlcAIMkxQ6yd/LLF/90SMDy3FXGM9Rq2A=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=aMdWESBNBlcMuRuTgxhhc8frJqd5BH0JMT3/GxiMTx+pNBpPuPmDItqLHk8vzymEl+E3dq+KHyne1IbpAzyjBwNCgKAChXWyBN5sPcip9p5euKTW8149G9Uj13dVswM51+nGUMzRhsUaV0Cz0iwU0vhChctukD2I1q907psXjC0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=yHvZB9tl; arc=none smtp.client-ip=209.85.218.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="yHvZB9tl" Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a3e72ec566aso91051266b.2 for ; Wed, 21 Feb 2024 06:38:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708526337; x=1709131137; darn=vger.kernel.org; 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=ChqtzXoflnjSOQf8FO0bBBVo5MMagHq+8wVhpUTc2NI=; b=yHvZB9tlCE+6XTijyf1ZG3QYugbY1t/rJ4J40nlNyzo9G1yeDsntotRa1RhAxZ1y9B uEYtnYiDyiEp66qDILnHtW8ib92RyV+VsYfFwexZ+Bzb+AKuJ4HsGHlqTL4T9YOxE4Xd 7cVRTWvjO2T4PaWurEJV9Bf1xw3pC+k5nB0npQf7HB1nJ/Tqz65FHQwPb2+/HuUnfQXJ rmOs1SdMJuloLtuBG363lmtAvkVwR3PaJkl+aBiyvmxvfxv7stetzJKhK1b0xkmX/nbS IfrpWJH2z5nexCWn8ruC1KLXS/vARD2NVOt7oJ9Jv92KkZjxsk7o0fCuImezGEWj73KS GGYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708526337; x=1709131137; 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=ChqtzXoflnjSOQf8FO0bBBVo5MMagHq+8wVhpUTc2NI=; b=ss1nGLKKGkyo6G095vt1vSp/cmBsdc4i2kwcDL6PCr8KC8NpfOrknzmyNtKNanNId6 ztwOhzq2ZIL0LEKEUp0LCv37MRgzzL9QeI1yVGaJZQ+pSno84hPji8QjWJzIK+TnRldK LSlXCpkj2RVATeYshg2sO3ECEPs/CLTpzK71ziFD7UvUBYn01WgcVcMBux5JjBtL1jf3 Nb8GR/RGgmVYZI2qocKWD1tqpixQH8cG1qgNOaM1CM5zRsbtrjI90uWgJLmXVjtRh7bj Lsk4iIzIxB2fU6Uty59O0dPysk5mU3eUq/g/TKF8xQvHRq6Ay3hQiIkYeomxyRtonzyx bwtw== X-Gm-Message-State: AOJu0YxkIYVlipyj7p2PH9wZVuGnXynq4nEH7tO5SocErIzkjh+p2l85 XLrIY3BjoUGblezSVl1JvHRcOgj3rRFg/1fT249dYHGtaZ1BUV8fGGBqT2ix3ATNLUWJiEwkTAb d X-Google-Smtp-Source: AGHT+IHFsJ+x4ZZ/VEbpNzQPHDi/IAbmF+hl6qgClF73kviJl+s9nTcc7wTjxp7e2SD5wqqVUiRfsA== X-Received: by 2002:a17:906:7141:b0:a3d:48d0:d518 with SMTP id z1-20020a170906714100b00a3d48d0d518mr11820641ejj.53.1708526337552; Wed, 21 Feb 2024 06:38:57 -0800 (PST) Received: from [127.0.1.1] ([188.24.162.93]) by smtp.gmail.com with ESMTPSA id wp12-20020a170907060c00b00a3eb953335esm2653970ejb.44.2024.02.21.06.38.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 06:38:57 -0800 (PST) From: Abel Vesa Date: Wed, 21 Feb 2024 16:38:32 +0200 Subject: [PATCH v2 2/4] arm64: dts: qcom: Add SMB2360 pmic dtsi Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240221-x1e80100-dts-smb2360-v2-2-037d183cc021@linaro.org> References: <20240221-x1e80100-dts-smb2360-v2-0-037d183cc021@linaro.org> In-Reply-To: <20240221-x1e80100-dts-smb2360-v2-0-037d183cc021@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Rob Herring Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Abel Vesa X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1595; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=NlA2nnmOVbPlcAIMkxQ6yd/LLF/90SMDy3FXGM9Rq2A=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBl1gr6OIhfPbr2ZmqxWjYe8TtVkljkEuyvIZHMx 3IF1Hio2U2JAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZdYK+gAKCRAbX0TJAJUV VsdbD/9xQT/efkyflNYaNVKhueMHUzBRnQ8Pj2KBLomyjNMneXR3qJ/D/7IKDrwonNh6pVPj4ru zCsmisKZlJTlH9JPTkiJv4l8zRtlgooljnS65f5EPw1LJXstjB3jDq13yUuK9S/P0z0OEz8xsiP MOS/EB7fPkXsf3Qnb8TasETLeHuMZZmvevI/InPEZcSWnz54oTS+Cnri7p3/OmcbXcZlFYFZB2z DiltMEdo/Bc7/bKs5QYazYdnzTZc2bVxuf1dUEdnWN8u14MZPTsiUFG8poBKkMdbLaU6ivLyfQ0 qhjvqM0uIcN/qAO+0hOXTZJL4d++REwOLeAMs7NllE2HwJ2fzb+yR1zHY3yS3iZ0T4gkfLuoKmj P0XQV8VLBWt5jY92hnN/0yvfZZj7xbl1iBOOqopeK8B3JwLWghKAgSCmk6FSGwTuxAqfRh56o6V 0+g/VyWbqKHlIbcwTNRgs6WubwGyyThASp5nOjo6FC/NhS0BS08gno0TDRcNU3+RwV8TiHwrznQ X7Zxpr1w5w0SOpjs4uB3IEqv7YAYlfIFn+ybsv4+qT/bpMQPzsibLNc1vuJoqEaxsfjFH4zXIAN b/gBJyI3jH9l3WiDCM1Kkm2b4W7r45EaFqeUBSxZhoty8i+zX4+3A2QPxNFBZyQ2m1I/rQhXS3f z3fn+gK1ixH7vAg== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE Add nodes for SMB2360 with the eUSB2 repeater nodes. Signed-off-by: Abel Vesa --- arch/arm64/boot/dts/qcom/smb2360.dtsi | 51 +++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/smb2360.dtsi b/arch/arm64/boot/dts/qcom/smb2360.dtsi new file mode 100644 index 000000000000..8d7bdb56e6fe --- /dev/null +++ b/arch/arm64/boot/dts/qcom/smb2360.dtsi @@ -0,0 +1,51 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2023, Linaro Limited + */ + +#include +#include + +/ { +}; + +&spmi_bus1 { + smb2360h: pmic@7 { + compatible = "qcom,smb2360", "qcom,spmi-pmic"; + reg = <0x7 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + smb2360_1_eusb2_repeater: phy@fd00 { + compatible = "qcom,smb2360-eusb2-repeater"; + reg = <0xfd00>; + #phy-cells = <0>; + }; + }; + + smb2360k: pmic@a { + compatible = "qcom,smb2360", "qcom,spmi-pmic"; + reg = <0xa SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + smb2360_2_eusb2_repeater: phy@fd00 { + compatible = "qcom,smb2360-eusb2-repeater"; + reg = <0xfd00>; + #phy-cells = <0>; + }; + }; + + smb2360l: pmic@b { + compatible = "qcom,smb2360", "qcom,spmi-pmic"; + reg = <0xb SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + smb2360_3_eusb2_repeater: phy@fd00 { + compatible = "qcom,smb2360-eusb2-repeater"; + reg = <0xfd00>; + #phy-cells = <0>; + }; + }; +}; From patchwork Wed Feb 21 14:38:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 775282 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B9E0D8003F for ; Wed, 21 Feb 2024 14:39:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708526342; cv=none; b=ELjOIqISj9o7H0WjyUMZPrPrKO+ctBffi5oMr/QkonVMOo8G3ZnDf8Av85oiwwI1EVUKeBID+ZHWYqlWw78qrqu36IRMh2uWPFpu6D11QFgdpzfND8h522lsb8thD6s5AThy3HdEA5T85dCUuX09botY+DQXG4y+DgLQ68Mxd38= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708526342; c=relaxed/simple; bh=z4YNe3s7RiXrMcr2v5VUfWKjyjugl9g1ARc3B5J6qzY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=T7kX4jOHAkpFlYDJd8mqELyvdeIR957LmWLCebxQvzeld7gD7TVhsmD3Ejmp9YjrjXk5kZiA4O2QrqQXuuoNwEz/7UI8nfC3wzgYedrxS1DeEnGbeZ5bLpw6wyGud2soxomLr+0FZwikq1nXqoRVce5h0DOmplfE0SzLsSF5NHc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=yszqM2Jh; arc=none smtp.client-ip=209.85.218.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="yszqM2Jh" Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a3e6f79e83dso481160966b.2 for ; Wed, 21 Feb 2024 06:39:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708526339; x=1709131139; darn=vger.kernel.org; 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=dKUMaq5+YKpoNioR5AAEOHPi2LIHBpnQYMn+N71VaCk=; b=yszqM2JhiwrhiAQrLsY9DrorWw/loI8BBYNBKyqOgugWjXzzf6IX3pzEoGpNEMxAoJ 5hYnAMMifZEUEeak92bIhzET0TKHmNhhjSpUGwmPfjEXP8wBVK8S+VF5mAnQF/18P5jo g7VotQ9Ww8o5B5TgyXZjPeL0+h5B4THagi9shVgyjikAPHkD/oWGXtp5pafXI1kqJZ1o kUILzL8Oh+yxQO+E9qjrFYX3T2OnrDhBhy1Ho6ra+F4R1TtjKJ3zTUPGHX7sC8bT9pI0 VqSQeE5FhuPSN5rPwMhiWm32RLDRt6sU+7aVzRdrS0Hb3tdEU3gpGLOV1xurS8/EsgOk h6GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708526339; x=1709131139; 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=dKUMaq5+YKpoNioR5AAEOHPi2LIHBpnQYMn+N71VaCk=; b=svMXaC7R3rYEW/a8tWj/Hwv5tN+kwxL8go15F1fZuvUSeHefx/Mnoy/yZ/o1AnNr57 l1txS4BBuqBKZBqi41WPQyTWp5gvnkKrynI1FL7FPyJmjMqxEwRFgFIEWzT/b7MJN2DI KSvwI+nQ6Sr3089UYLw9o84SczQKrGjjz0v8QYoOX6om5+lB/gWq8ZANDqRHJ0UdbSco qHUpHZffUmuGHh6et/W8ZdHTP2n7EkESXVtvLACePGzGp2iI/ejfp7ekk7G0CTu5cUbx hkRQgoflkYZPw6jR5ZQJxs095wL9nHHdWV71ojPOtjREohg59hBPibVcucOWAYJ9Yycs XiWw== X-Gm-Message-State: AOJu0YxJ6wg/lR2/foS0/27Arj5NkVo7cLXo55zONsLhwgWtNS0EUcfa 8P0KpIrHjL47VeAz63MtImw1goMfkXyPD8TGrN/lNIEnq5eJYWwffs1OoHbt4HOngjp1/x13fbf X X-Google-Smtp-Source: AGHT+IGUJ9PB2acoyDH7oWw8uuJAjHjCsyJYmolBPapY1iBP9Ej5l6SjqJWFlrHqLeqAWIpJOdXXtg== X-Received: by 2002:a17:906:a0ce:b0:a3d:8f37:c37f with SMTP id bh14-20020a170906a0ce00b00a3d8f37c37fmr13958935ejb.6.1708526338852; Wed, 21 Feb 2024 06:38:58 -0800 (PST) Received: from [127.0.1.1] ([188.24.162.93]) by smtp.gmail.com with ESMTPSA id wp12-20020a170907060c00b00a3eb953335esm2653970ejb.44.2024.02.21.06.38.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 06:38:58 -0800 (PST) From: Abel Vesa Date: Wed, 21 Feb 2024 16:38:33 +0200 Subject: [PATCH v2 3/4] arm64: dts: qcom: x1e80100-crd: Add repeater nodes Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240221-x1e80100-dts-smb2360-v2-3-037d183cc021@linaro.org> References: <20240221-x1e80100-dts-smb2360-v2-0-037d183cc021@linaro.org> In-Reply-To: <20240221-x1e80100-dts-smb2360-v2-0-037d183cc021@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Rob Herring Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Abel Vesa X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1720; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=z4YNe3s7RiXrMcr2v5VUfWKjyjugl9g1ARc3B5J6qzY=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBl1gr7F3smlX41csaZupE+3mQ0hDrNTFwSP+em9 FMLmZqtSuaJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZdYK+wAKCRAbX0TJAJUV VrrYD/9sELQf6ABYKykIiiQihXS8+cee52Mkcb8PRB8cu3K72rT2YxPF6zxEK9JC/t8gZF1ZFzn kBwx+6qHK07ue+rGJBzWIAsIo/HqKt15/wKS2XedeeaFYOg2CdwHK/Asaidrg/6dG9Nn5Zezpmx 5ESV5A86nEVBTht5RiPkP/+VIK4XyRC6N9HpQcUo4HOeQPF/OJp5a6bRquC5NUyiafw91Db4QWS 47w/HzymnCsEJ+7LYOeQdBGBHBBTfdVfovAPGqx2arkydSLtu8htwnyv+8QQ2Rr+ViBbkUXsNYH fII9urSefC1uM8VIWEgKhB0NVIJiaVmSqVqJSz2RbbnzDPi9HfjPD/iEHBPM0ocX77WVyr41ln0 qPNXmJz627FxtRV5swPc17advyWV/5vq2roAwDcbjF+I2lXkze0O3pXgCnqMbueW8yQyCly/1JM ajKq2T1ZslOvS3+Alp2U8R2djjaSeTYEbb++JAYcp/ZL3GsdTvQV4t7BNVR8PXOCy+XGGtPnkih gti0KQvbSE+zc1XAHjcYRDYsP4DpUgrkekF94xS14Snaluce0YZixYG2vAOPExEWn86pNDePpuE Y635Miv8LXNSOJ1tbdvk00fh68HHyqzXQt98XJ7o8TWLsEqsFuCp+oqacF9gnLYSZYD9SqrXrvM LEr/YPQPapOk4XQ== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE Include the SMB2360 and add regulators to each one of those 3 eUSB2 repeaters. Tie up the repeaters to their corresponding USB HS PHY. Signed-off-by: Abel Vesa --- arch/arm64/boot/dts/qcom/x1e80100-crd.dts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-crd.dts b/arch/arm64/boot/dts/qcom/x1e80100-crd.dts index 6a0a54532e5f..37e19c0aa236 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-crd.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-crd.dts @@ -9,6 +9,7 @@ #include #include "x1e80100.dtsi" +#include "smb2360.dtsi" / { model = "Qualcomm Technologies, Inc. X1E80100 CRD"; @@ -680,6 +681,21 @@ &remoteproc_cdsp { status = "okay"; }; +&smb2360_1_eusb2_repeater { + vdd18-supply = <&vreg_l3d_1p8>; + vdd3-supply = <&vreg_l2b_3p0>; +}; + +&smb2360_2_eusb2_repeater { + vdd18-supply = <&vreg_l3d_1p8>; + vdd3-supply = <&vreg_l14b_3p0>; +}; + +&smb2360_3_eusb2_repeater { + vdd18-supply = <&vreg_l3d_1p8>; + vdd3-supply = <&vreg_l8b_3p0>; +}; + &swr0 { status = "okay"; @@ -817,6 +833,8 @@ &usb_1_ss0_hsphy { vdd-supply = <&vreg_l2e_0p8>; vdda12-supply = <&vreg_l3e_1p2>; + phys = <&smb2360_1_eusb2_repeater>; + status = "okay"; }; @@ -837,6 +855,8 @@ &usb_1_ss1_hsphy { vdd-supply = <&vreg_l2e_0p8>; vdda12-supply = <&vreg_l3e_1p2>; + phys = <&smb2360_2_eusb2_repeater>; + status = "okay"; }; @@ -857,6 +877,8 @@ &usb_1_ss2_hsphy { vdd-supply = <&vreg_l2e_0p8>; vdda12-supply = <&vreg_l3e_1p2>; + phys = <&smb2360_3_eusb2_repeater>; + status = "okay"; }; From patchwork Wed Feb 21 14:38:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 774579 Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 02F2180601 for ; Wed, 21 Feb 2024 14:39:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708526343; cv=none; b=cPQecjSyLInhnAq87yW0nJHxkhvqmEn86bmDPlb/GyZaip9R5k4fDavRwH8Wg5n5o1SgHWCnQTiNdLbMLj9XsWYa1GF0AqpxaK6/R9+QSX/7ev6bk7bGjjHrtmtwcOUrUiSRYouQfEa8mFx3laBmewKG7ycTHKHHfgr74BTc1ec= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708526343; c=relaxed/simple; bh=NdMZsQCHyDfw5FxmmKzy1ixpjMxRsMbi4uk5Uhz/3EI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ulxLl0pMgofYtMEJBMli3zjPZNW9gLULB+ouN8iY06cH/K9Yy1lSgZoCZLD1nt0MRq0M2d6cMJEa8/Yz2DgP4GX+zjywFgPw8XEW2ec8ebp3zGDXD1kXlj8j0HiTPCUeNAwckm5B2/JHKHVFl+AgbHbIiLqXiXA078R6MMnmqVQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=B9YN178Y; arc=none smtp.client-ip=209.85.208.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="B9YN178Y" Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-5650ac9a440so850975a12.3 for ; Wed, 21 Feb 2024 06:39:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708526340; x=1709131140; darn=vger.kernel.org; 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=qkpQ8pQMIT9WUBGGMu/y7XNXjhOVEi41ToHDWoFMF8A=; b=B9YN178YOJt+STQaNoQRUt/U2Im09H4naYqGILnSWUV9OfncknJ40mEU9DeWgOk7SB Cv8/HeFHD33hZNw2jm2G+WSf4Hz657DwvbxiPWtAVEsVo0/rz+GEKz8snHWycqOtOjzj GiXAVShhk5RkoSDo46pA+7n/DJ4qinveo55ywld3WnEGV0qf+l4de6oWpF/U4GaKJddh qKJa6fg/Wvwb6q/Gg737yIQ9lYOamnMWmbYL8TcAIMFkW0/5kdCaxQd/pSG6dEj99XGp 1KIUx5NYwuKTR1vPFUTZb23FoaQcn6yPinGwl8vtIzoCYA8B18RwluUn3IbCy0dVj7zc uUcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708526340; x=1709131140; 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=qkpQ8pQMIT9WUBGGMu/y7XNXjhOVEi41ToHDWoFMF8A=; b=dSSOiGCz/3PI4LcUUMmAF1LKIsDwAdVk68z5n9TdXMaQyxBza6nTfPr94QErqKsoN5 jtDAiwfQiz+zhDyqtQbWJf4tIIvPXhgnQLm3+DzR96DEGJf8TwavVTy/vR6owR8ammah 1JTaSje3zKrc9dShBtXhIQz7nEC/VzBHIip688/wDOIud29RKMjx65ACkGuqBjtaePB1 jJsxv8QR6jjB8fouVhMZgQe9iGqOylpGjJqnMqv84a+qqZfnQL7KPuSDQaoXWOuxL35i xgJGFZMDb/yXGZcsWN8jd29UXQ/OFuAvuVecpvjWp8srzK1tFmYcKvJoAYmmxM+nvEZa 5EXg== X-Gm-Message-State: AOJu0YxXkjapzWtHcKKls/qUnn0jQJkbCsi2gt44rzj6ySTaTZYsjzg9 1vzWsr8/E1tcSypyHcAT4WeTTpKbVL0hh1NUH5b7deq8qdcRVn+2WEUS5HkUyALtgBHthsAGo+6 W X-Google-Smtp-Source: AGHT+IEu5rk2ggib2DO6P5Av34zzrcvAbzt3sAKGDCfOwmC97l80tisxuJhuFgJTB4SHd6Fzhm15IQ== X-Received: by 2002:a17:906:7141:b0:a3d:48d0:d518 with SMTP id z1-20020a170906714100b00a3d48d0d518mr11820750ejj.53.1708526340057; Wed, 21 Feb 2024 06:39:00 -0800 (PST) Received: from [127.0.1.1] ([188.24.162.93]) by smtp.gmail.com with ESMTPSA id wp12-20020a170907060c00b00a3eb953335esm2653970ejb.44.2024.02.21.06.38.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 06:38:59 -0800 (PST) From: Abel Vesa Date: Wed, 21 Feb 2024 16:38:34 +0200 Subject: [PATCH v2 4/4] arm64: dts: qcom: x1e80100-qcp: Add repeater nodes Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240221-x1e80100-dts-smb2360-v2-4-037d183cc021@linaro.org> References: <20240221-x1e80100-dts-smb2360-v2-0-037d183cc021@linaro.org> In-Reply-To: <20240221-x1e80100-dts-smb2360-v2-0-037d183cc021@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Rob Herring Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Abel Vesa X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1780; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=NdMZsQCHyDfw5FxmmKzy1ixpjMxRsMbi4uk5Uhz/3EI=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBl1gr8eLIgSbl1/jlBxAZs3F+95jN8hJWf9Tyhb dmrCw0ZOb6JAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZdYK/AAKCRAbX0TJAJUV Vo9AD/wPkKkdRWl5Yq4nIOcQdiNBRB70cH0xNpx2vJV1XMxaFNyVYIGsRU1pkiM7ZODfbTZq4Gm ynjhrueB6NM/ggUe+5c2CVHWx03zXTLkJ+G5+tCXtMdcn3yxjwy4XTB//SNaKCA3BU5ZG4SBj0d qifWV5QsZTg0oLLDNcPvSlSsJO2uoybfzOFfDcg7gIH09RHHYFD6iRY4XkAshbAkJ2hZ+x1sNzp epkHpQ13xse1YWjDHmdND5swblg9/Lywky8XLiUVD6lPrSA7lOl2xINbkdLNb+SO9IjNBfjSY1M +IWZKcnlXIk4mdFpgadA8n5eMz8b53ZDdT9EVUOQ1/jHoZ8zNQ8L8D07TC06pYqq8ZbtgH8yg/D XKDZ5VpM5Gp+uwpjpepAJNPijNdrMdaoI/wd7syjjEiX0/Ch57+TPDHLFBmL1Mo/H6hfckISmI5 /X5Z3dGIbFyl39TiHf4cgxBSmPRmCcKKcXalrYvX0gbUGpyLq7iUTj6V6Yx1Hdb6ziPOuwdgTx6 iU3SABdu5kV1aS8xQS72hReYMmNGd9KjQV8lhm4nQKbZtuTGVE8WThdVBrfGHwRcafmy0Bpkgti xLyDYOmxSFP6PE13Hla2lsHkbVYC+4a+V62zM2DX8UKl6YKuuE39QX3RywqUA51Jb8czaDs1bgc SX8pZfGHupvlsCA== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE Include the SMB2360 and add regulators to each one of those 3 eUSB2 repeaters. Tie up the repeaters to their corresponding USB HS PHY. Signed-off-by: Abel Vesa Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/x1e80100-qcp.dts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts b/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts index e76d29053d79..2b960d31b261 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts @@ -9,6 +9,7 @@ #include #include "x1e80100.dtsi" +#include "smb2360.dtsi" / { model = "Qualcomm Technologies, Inc. X1E80100 QCP"; @@ -491,6 +492,21 @@ &remoteproc_cdsp { status = "okay"; }; +&smb2360_1_eusb2_repeater { + vdd18-supply = <&vreg_l3d_1p8>; + vdd3-supply = <&vreg_l2b_3p0>; +}; + +&smb2360_2_eusb2_repeater { + vdd18-supply = <&vreg_l3d_1p8>; + vdd3-supply = <&vreg_l14b_3p0>; +}; + +&smb2360_3_eusb2_repeater { + vdd18-supply = <&vreg_l3d_1p8>; + vdd3-supply = <&vreg_l8b_3p0>; +}; + &tlmm { gpio-reserved-ranges = <33 3>, /* Unused */ <44 4>, /* SPI (TPM) */ @@ -513,6 +529,8 @@ &usb_1_ss0_hsphy { vdd-supply = <&vreg_l2e_0p8>; vdda12-supply = <&vreg_l3e_1p2>; + phys = <&smb2360_1_eusb2_repeater>; + status = "okay"; }; @@ -533,6 +551,8 @@ &usb_1_ss1_hsphy { vdd-supply = <&vreg_l2e_0p8>; vdda12-supply = <&vreg_l3e_1p2>; + phys = <&smb2360_2_eusb2_repeater>; + status = "okay"; }; @@ -553,6 +573,8 @@ &usb_1_ss2_hsphy { vdd-supply = <&vreg_l2e_0p8>; vdda12-supply = <&vreg_l3e_1p2>; + phys = <&smb2360_3_eusb2_repeater>; + status = "okay"; };