Message ID | 20240729201843.142918-1-danila@jiaxyga.com |
---|---|
Headers | show |
Series | Add Nothing Phone (1) support | expand |
On Mon, Jul 29, 2024 at 11:18:13PM GMT, Danila Tikhonov wrote: > The SM7325 Linux Android firmware needs this workaround as well. Add it > to the list. Which one? quirk_sc8280xp enables two workardounds: one for the firmware crash on GET_PDOS command and another one for the empty PDOs being returned unless there is PD-enabled partner. > > Signed-off-by: Danila Tikhonov <danila@jiaxyga.com> > --- > drivers/usb/typec/ucsi/ucsi_glink.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/usb/typec/ucsi/ucsi_glink.c b/drivers/usb/typec/ucsi/ucsi_glink.c > index 16c328497e0b..80fb04473617 100644 > --- a/drivers/usb/typec/ucsi/ucsi_glink.c > +++ b/drivers/usb/typec/ucsi/ucsi_glink.c > @@ -294,6 +294,7 @@ static const struct of_device_id pmic_glink_ucsi_of_quirks[] = { > { .compatible = "qcom,qcm6490-pmic-glink", .data = &quirk_sc8280xp, }, > { .compatible = "qcom,sc8180x-pmic-glink", .data = &quirk_sc8180x, }, > { .compatible = "qcom,sc8280xp-pmic-glink", .data = &quirk_sc8280xp, }, > + { .compatible = "qcom,sm7325-pmic-glink", .data = &quirk_sc8280xp, }, > { .compatible = "qcom,sm8350-pmic-glink", .data = &quirk_sc8180x, }, > { .compatible = "qcom,sm8450-pmic-glink", .data = &quirk_sm8450, }, > { .compatible = "qcom,sm8550-pmic-glink", .data = &quirk_sm8450, }, > -- > 2.45.2 >
On 29/07/2024 22:18, Danila Tikhonov wrote: > Add Soc ID table entries for Qualcomm SM7325 family. > > Signed-off-by: Danila Tikhonov <danila@jiaxyga.com> > --- Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
On 29/07/2024 22:18, Danila Tikhonov wrote: > The SM7325 Linux Android firmware needs this workaround as well. Add it > to the list. > > Signed-off-by: Danila Tikhonov <danila@jiaxyga.com> > --- > drivers/usb/typec/ucsi/ucsi_glink.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/usb/typec/ucsi/ucsi_glink.c b/drivers/usb/typec/ucsi/ucsi_glink.c > index 16c328497e0b..80fb04473617 100644 > --- a/drivers/usb/typec/ucsi/ucsi_glink.c > +++ b/drivers/usb/typec/ucsi/ucsi_glink.c > @@ -294,6 +294,7 @@ static const struct of_device_id pmic_glink_ucsi_of_quirks[] = { > { .compatible = "qcom,qcm6490-pmic-glink", .data = &quirk_sc8280xp, }, > { .compatible = "qcom,sc8180x-pmic-glink", .data = &quirk_sc8180x, }, > { .compatible = "qcom,sc8280xp-pmic-glink", .data = &quirk_sc8280xp, }, > + { .compatible = "qcom,sm7325-pmic-glink", .data = &quirk_sc8280xp, }, Let's don't grow any of such lists without need. Use proper fallbacks, if that's applicable. Best regards, Krzysztof
On 29/07/2024 22:18, Danila Tikhonov wrote: > Add entry for Nothing Technology Limited (https://nl.nothing.tech/) > > Signed-off-by: Danila Tikhonov <danila@jiaxyga.com> > --- Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
On 29/07/2024 22:18, Danila Tikhonov wrote: > Nothing Phone 1 (nothing,spacewar) is a smartphone based on the SM7325 > SoC. > > Signed-off-by: Danila Tikhonov <danila@jiaxyga.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
On Mon, Jul 29, 2024 at 11:18:07PM +0300, Danila Tikhonov wrote: > This series of patches adds support for the Nothing Phone (1), identified > as nothing,spacewar. The Nothing Phone (1) is built on the Qualcomm > Snapdragon 778G+ (SM7325-AE, also known as yupik). Your email header has this: Content-Type: text/plain; charset=y charset=y is not valid. When git-send-email asks what charset, press <enter>, not 'y', to accept the default utf-8. Rob
This series of patches adds support for the Nothing Phone (1), identified as nothing,spacewar. The Nothing Phone (1) is built on the Qualcomm Snapdragon 778G+ (SM7325-AE, also known as yupik). SM7325 is identical to SC7280 just as SM7125 is identical to SC7180, so SM7325 devicetree imports SC7280 devicetree as a base. All of these patches are essential for the integration of the Nothing Phone (1) into the kernel. The inclusion of SoC IDs is particularly important, as I encounter crash dumps if the device tree lacks msm and board id information. To: Rob Herring <robh@kernel.org> To: Krzysztof Kozlowski <krzk+dt@kernel.org> To: Conor Dooley <conor+dt@kernel.org> To: Bjorn Andersson <andersson@kernel.org> To: Konrad Dybcio <konrad.dybcio@linaro.org> To: "Rafael J. Wysocki" <rafael@kernel.org> To: Viresh Kumar <viresh.kumar@linaro.org> To: Heikki Krogerus <heikki.krogerus@linux.intel.com> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: Kees Cook <kees@kernel.org> To: Tony Luck <tony.luck@intel.com> To: "Guilherme G. Piccoli" <gpiccoli@igalia.com> To: Sudeep Holla <sudeep.holla@arm.com> To: Andre Przywara <andre.przywara@arm.com> To: Rajendra Nayak <quic_rjendra@quicinc.com> To: Sibi Sankar <quic_sibis@quicinc.com> To: David Wronek <davidwronek@gmail.com> To: Ulf Hansson <ulf.hansson@linaro.org> To: Neil Armstrong <neil.armstrong@linaro.org> To: Heiko Stuebner <heiko.stuebner@cherry.de> To: "Rafał Miłecki" <rafal@milecki.pl> To: Chris Morgan <macromorgan@hotmail.com> To: Linus Walleij <linus.walleij@linaro.org> To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> To: Johan Hovold <johan+linaro@kernel.org> To: Javier Carrasco <javier.carrasco.cruz@gmail.com> To: Luca Weiss <luca@lucaweiss.eu> To: Krishna Kurapati <quic_kriskura@quicinc.com> To: Lorenzo Pieralisi <lpieralisi@kernel.org> To: Eugene Lepshy <fekz115@gmail.com> Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org Cc: linux-pm@vger.kernel.org Cc: linux-usb@vger.kernel.org Cc: linux-hardening@vger.kernel.org Cc: linux@mainlining.org Signed-off-by: Danila Tikhonov <danila@jiaxyga.com> Danila Tikhonov (9): dt-bindings: arm: qcom,ids: Add IDs for SM7325 family soc: qcom: socinfo: Add Soc IDs for SM7325 family cpufreq: Add SM7325 to cpufreq-dt-platdev blocklist soc: qcom: pd_mapper: Add SM7325 compatible dt-bindings: soc: qcom: qcom,pmic-glink: Document SM7325 compatible usb: typec: ucsi: Add qcom,sm7325-pmic-glink as needing PDOS quirk dt-bindings: arm: cpus: Add qcom kryo670 compatible dt-bindings: vendor-prefixes: Add Nothing Technology Limited dt-bindings: arm: qcom: Add SM7325 Nothing Phone 1 Eugene Lepshy (2): arm64: dts: qcom: Add SM7325 device tree arm64: dts: qcom: sm7325: Add device-tree for Nothing Phone 1 .../devicetree/bindings/arm/cpus.yaml | 1 + .../devicetree/bindings/arm/qcom.yaml | 6 + .../bindings/soc/qcom/qcom,pmic-glink.yaml | 1 + .../devicetree/bindings/vendor-prefixes.yaml | 2 + arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/sm7325-nothing-spacewar.dts | 1261 +++++++++++++++++ arch/arm64/boot/dts/qcom/sm7325.dtsi | 17 + drivers/cpufreq/cpufreq-dt-platdev.c | 1 + drivers/soc/qcom/qcom_pd_mapper.c | 1 + drivers/soc/qcom/socinfo.c | 2 + drivers/usb/typec/ucsi/ucsi_glink.c | 1 + include/dt-bindings/arm/qcom,ids.h | 2 + 12 files changed, 1296 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sm7325-nothing-spacewar.dts create mode 100644 arch/arm64/boot/dts/qcom/sm7325.dtsi