Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp761383lqd; Wed, 24 Apr 2024 16:50:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW7r2W5gTZFrB/56KreNbNbpmLiZibHBHTglDLD48uqN/DVlCr+JOKyUmLNCR9CA46GTRm8izXk5gexHTynEpDm4vs+9b0VCb66bLB93g== X-Google-Smtp-Source: AGHT+IHwb5ybVnWeBgPJlORLOmMc/RTxL/6yQVweziS8oTmJ70IKLstkCB3SQvYgmkumnADhBQlL X-Received: by 2002:a05:622a:1a07:b0:434:feb6:bda8 with SMTP id f7-20020a05622a1a0700b00434feb6bda8mr5467803qtb.15.1714002634784; Wed, 24 Apr 2024 16:50:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714002634; cv=pass; d=google.com; s=arc-20160816; b=OWQyz7xNLgQBq+A4bH0v3+4mGX6lNmYCQQONne10mpMoFDkIWxiatLZD/Dh0On90M5 LLe7/wiJBnomy6NazQlS2VN+nyueV1PHB7EOzYP/4T4e4X+H1fIDiKwcpibpbiiHRmES RX6gWL8F8h/aE8UcaSPBYosJJ1UuFbSVlvckO8tM0wuS+a1OioQifcmSJnFfcSL8GxF0 Lg/FvB+KErOWiqb+FTNTVpUA73AXBMGn8kPTamh4JXKtFpb8ACz9XS+xDetncaila0Nl mCI1ZPZZADCAVpMUTihuBy3m+hlRJJzf6b9sBKdmlr1PyITHxtrBswyJU+2dtWqwdZMO sxpw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=TKixhZx64p8gqjHZGvKvvDIbH18aQ6pIL/VlQRUhdko=; fh=atuHudd7ylHgtp/5lu4o/KKoncQ6bPn6zfYWkzOJaIU=; b=UrZmgjiZj0xxSsnzI8qcJnXmHKnwknGexlw7CVc1FYZrLtwrDQUqqjZ6IengUYphSr Sb4S5hysKTVUFdO8WkucPlcyhZ73mrF5WDD8v8xzrNYdKlYYtzWNZnp+oI9FnQMV8FFs BFM0ScBhqZaa/vdt0Mjqib+SHWZ0iCDrckgpTFr0EmD3C+CzKDwyxu3hOsnQ8mCVQQl3 xcYfD+HZGYe/y6vLR9HVx6IcSFg9AePdKtkkYuS0Bf4PZfWl5YTPSWxwRKv48v93JaEw GLUqtixpVh934k2NJHeGLeWh/VsTvLyTRe1k2viq0HkRBylqBfG8m6lr2V+0WlTA0yv6 fzZg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p1pwovRm; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-157860-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157860-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ex25-20020a05622a519900b00439ac788934si8843501qtb.754.2024.04.24.16.50.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 16:50:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157860-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p1pwovRm; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-157860-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157860-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 761D41C21209 for ; Wed, 24 Apr 2024 23:50:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A17216F27A; Wed, 24 Apr 2024 23:50:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="p1pwovRm" Received: from mail-yb1-f182.google.com (mail-yb1-f182.google.com [209.85.219.182]) (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 1307B16F0F0 for ; Wed, 24 Apr 2024 23:50:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714002624; cv=none; b=nad/sUrkrXVLUvzqe3iExz6kFA3DKapTQMcvrwN0Tf7KmYpI6NU2GFSwejSinll6ahSSVdPJf0fa5MGTfzUyFHjwGoapC4XT6gNNi5x4eSYxI3bfaNaUxca72yIIs/aPm0T6G8XulZeXLeLjrsBrC9impUbPKT8UnKjZApMpF1Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714002624; c=relaxed/simple; bh=a+78WLXzL5brPFIIHLVMK6SobctLn60Y0rFRT1lqYoA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ll4ekpFTbRv8XjF+IwXd+caLJ1u3xFjjtVqjRR8h7K7FK+XvFYu5NzmZzBPZQY7ZKUM4T7/8u+2hk7v8NybYpT3oc3fqvdhPF6GGgXPs/JPkaHHLNG9ji6qsAGQjsHj+22++GLvU0q59qi8xGBBys745eK8Q9W4GT2Jd5beslLQ= 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=p1pwovRm; arc=none smtp.client-ip=209.85.219.182 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 Received: by mail-yb1-f182.google.com with SMTP id 3f1490d57ef6-de54b28c3b7so443505276.1 for ; Wed, 24 Apr 2024 16:50:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714002621; x=1714607421; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=TKixhZx64p8gqjHZGvKvvDIbH18aQ6pIL/VlQRUhdko=; b=p1pwovRmdqZrM3ljKE9m1/HCbYIH9W0ZW89p87+t0OrYStq+gHpXJthtaKxr6WRlKX oBSVvC0HBBWdX8GoMkUd5GCykbI/Ufy1E6d5R0at25aRpk0P714Yz1De0Af2Oa4JTQ/K wBF85429grJVHvLAZfWozZf18xri/Zrhhj1rT5pXcTFbjmfm/IFhdiuW8nyB5QQ9EY4I HneDjN5JGUFg3A+k5SnUG/rkYRhlm92X145yrqgSf56qLyRCWtW/Le78tl1HFs5gGrWO 2DKo5y45mU6qS8moykI7NS0ZCf/hPagmpKp62SilSsuwIBRzFh+1t/3WuUqZ6BERbE2I G2vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714002621; x=1714607421; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TKixhZx64p8gqjHZGvKvvDIbH18aQ6pIL/VlQRUhdko=; b=jxVqVCE3fNrNqD2hRkCWas0ZopQsaDpYSftXGTNKbyZYN9jylfcIkWriWTRATW26FH As2f2+u8k7xe1NH4nShynojFBgnutOcXepCDCkdSFUSHwYDpyMb+bKHHX12kyuov4vRV j03MuXtvI05z2/5vK0hDaSszULsTTXkQzOQdNcjVqnBQpXmPlbAByIPDJeLBVAVHnCIb Ytje9a90kAqWE6LeiwJvJvRHcORCAK/0f7BekXLRoSrJ6+rf+yy6A/pqDPrLENiep/jm xNQCl2vqNhOXS6xoeYLCF3IF1YvxuaExloo1Yf07TRJTC8MydWHXMgeET9UpfxG8a89R rL+w== X-Forwarded-Encrypted: i=1; AJvYcCWh3DuWD9/v9YLLKPEw0HW33wxQK4GxUUAcGTUW3Zfn8lN+dfPK0Z037knJos/iSqfOUELDJiZviPGo7trQvc55pBIUyQRxh+4SteuI X-Gm-Message-State: AOJu0YwCKTGS286f8mSWCMaUa0r5yPL2MUAjBtUzFgAl/dj0YOkjIfvd fgILuxTyFMR5fDQGGw9b7kmTI7eQDcmFl3BBw/YDGqDr6EayR+Kxg0/dhGHYT3o+l5H9LskxfwX hKRJsF0kM+Cj4/VpgTy4707sJ7M3dsnG/I4Rz2w== X-Received: by 2002:a25:d846:0:b0:dcc:9e88:b15 with SMTP id p67-20020a25d846000000b00dcc9e880b15mr4041268ybg.41.1714002621096; Wed, 24 Apr 2024 16:50:21 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240424024508.3857602-1-quic_tengfan@quicinc.com> <20240424024508.3857602-5-quic_tengfan@quicinc.com> In-Reply-To: <20240424024508.3857602-5-quic_tengfan@quicinc.com> From: Dmitry Baryshkov Date: Thu, 25 Apr 2024 02:50:10 +0300 Message-ID: Subject: Re: [PATCH v7 4/4] arm64: dts: qcom: aim300: add AIM300 AIoT To: Tengfei Fan Cc: andersson@kernel.org, konrad.dybcio@linaro.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, keescook@chromium.org, tony.luck@intel.com, gpiccoli@igalia.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, kernel@quicinc.com, Qiang Yu , Ziyue Zhang Content-Type: text/plain; charset="UTF-8" On Wed, 24 Apr 2024 at 05:46, Tengfei Fan wrote: > > Add AIM300 AIoT Carrier board DTS support, including usb, UART, PCIe, > I2C functions support. > Here is a diagram of AIM300 AIoT Carrie Board and SoM > +--------------------------------------------------+ > | AIM300 AIOT Carrier Board | > | | > | +-----------------+ | > |power----->| Fixed regulator |---------+ | > | +-----------------+ | | > | | | > | v VPH_PWR | > | +----------------------------------------------+ | > | | AIM300 SOM | | | > | | |VPH_PWR | | > | | v | | > | | +-------+ +--------+ +------+ | | > | | | UFS | | QCS8550| |PMIC | | | > | | +-------+ +--------+ +------+ | | > | | | | > | +----------------------------------------------+ | > | | > | +----+ +------+ | > | |USB | | UART | | > | +----+ +------+ | > +--------------------------------------------------+ > > Co-developed-by: Qiang Yu > Signed-off-by: Qiang Yu > Co-developed-by: Ziyue Zhang > Signed-off-by: Ziyue Zhang > Signed-off-by: Tengfei Fan > --- > arch/arm64/boot/dts/qcom/Makefile | 1 + > .../boot/dts/qcom/qcs8550-aim300-aiot.dts | 343 ++++++++++++++++++ > 2 files changed, 344 insertions(+) > create mode 100644 arch/arm64/boot/dts/qcom/qcs8550-aim300-aiot.dts > > diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile > index f63abb43e9fe..c46c10d85697 100644 > --- a/arch/arm64/boot/dts/qcom/Makefile > +++ b/arch/arm64/boot/dts/qcom/Makefile > @@ -96,6 +96,7 @@ dtb-$(CONFIG_ARCH_QCOM) += qcm6490-idp.dtb > dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb-1000.dtb > dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb-4000.dtb > dtb-$(CONFIG_ARCH_QCOM) += qcs6490-rb3gen2.dtb > +dtb-$(CONFIG_ARCH_QCOM) += qcs8550-aim300-aiot.dtb > dtb-$(CONFIG_ARCH_QCOM) += qdu1000-idp.dtb > dtb-$(CONFIG_ARCH_QCOM) += qrb2210-rb1.dtb > dtb-$(CONFIG_ARCH_QCOM) += qrb4210-rb2.dtb > diff --git a/arch/arm64/boot/dts/qcom/qcs8550-aim300-aiot.dts b/arch/arm64/boot/dts/qcom/qcs8550-aim300-aiot.dts > new file mode 100644 > index 000000000000..146bf6ea9e6a > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/qcs8550-aim300-aiot.dts > @@ -0,0 +1,343 @@ > +// SPDX-License-Identifier: BSD-3-Clause > +/* > + * Copyright (c) 2023-2024, Qualcomm Innovation Center, Inc. All rights reserved. > + */ > + > +/dts-v1/; > + > +#include > +#include "qcs8550-aim300.dtsi" > +#include "pm8010.dtsi" > +#include "pmr735d_a.dtsi" > +#include "pmr735d_b.dtsi" > + > +/ { > + model = "Qualcomm Technologies, Inc. QCS8550 AIM300 AIOT"; > + compatible = "qcom,qcs8550-aim300-aiot", "qcom,qcs8550-aim300", "qcom,qcs8550", > + "qcom,sm8550"; > + > + aliases { > + serial0 = &uart7; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + gpio-keys { > + compatible = "gpio-keys"; > + > + pinctrl-0 = <&volume_up_n>; > + pinctrl-names = "default"; > + > + key-volume-up { > + label = "Volume Up"; > + debounce-interval = <15>; > + gpios = <&pm8550_gpios 6 GPIO_ACTIVE_LOW>; > + linux,code = ; > + linux,can-disable; > + wakeup-source; > + }; > + }; > + > + pmic-glink { > + compatible = "qcom,sm8550-pmic-glink", "qcom,pmic-glink"; > + #address-cells = <1>; > + #size-cells = <0>; > + orientation-gpios = <&tlmm 11 GPIO_ACTIVE_HIGH>; > + > + connector@0 { > + compatible = "usb-c-connector"; > + reg = <0>; > + power-role = "dual"; > + data-role = "dual"; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + > + pmic_glink_hs_in: endpoint { > + remote-endpoint = <&usb_1_dwc3_hs>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + > + pmic_glink_ss_in: endpoint { > + remote-endpoint = <&redriver_ss_out>; > + }; > + }; > + > + port@2 { > + reg = <2>; > + > + pmic_glink_sbu: endpoint { > + remote-endpoint = <&fsa4480_sbu_mux>; > + }; > + }; > + }; > + }; > + }; > + > + vph_pwr: regulator-vph-pwr { > + compatible = "regulator-fixed"; > + regulator-name = "vph_pwr"; > + regulator-min-microvolt = <3700000>; > + regulator-max-microvolt = <3700000>; > + > + regulator-always-on; > + regulator-boot-on; > + }; > +}; > + > +&apps_rsc { > + regulators-0 { > + vdd-bob1-supply = <&vph_pwr>; > + vdd-bob2-supply = <&vph_pwr>; > + }; > + > + regulators-3 { > + vdd-s4-supply = <&vph_pwr>; > + vdd-s5-supply = <&vph_pwr>; > + }; > + > + regulators-4 { > + vdd-s4-supply = <&vph_pwr>; > + }; > + > + regulators-5 { > + vdd-s1-supply = <&vph_pwr>; > + vdd-s2-supply = <&vph_pwr>; > + vdd-s3-supply = <&vph_pwr>; > + vdd-s4-supply = <&vph_pwr>; > + vdd-s5-supply = <&vph_pwr>; > + vdd-s6-supply = <&vph_pwr>; > + }; > +}; > + > +&i2c_hub_2 { > + status = "okay"; > + > + typec-mux@42 { > + compatible = "fcs,fsa4480"; > + reg = <0x42>; > + > + vcc-supply = <&vreg_bob1>; > + > + mode-switch; > + orientation-switch; > + > + port { > + fsa4480_sbu_mux: endpoint { > + remote-endpoint = <&pmic_glink_sbu>; > + }; > + }; > + }; > + > + typec-retimer@1c { > + compatible = "onnn,nb7vpq904m"; > + reg = <0x1c>; > + > + vcc-supply = <&vreg_l15b_1p8>; > + > + orientation-switch; > + retimer-switch; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + > + redriver_ss_out: endpoint { > + remote-endpoint = <&pmic_glink_ss_in>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + > + redriver_ss_in: endpoint { > + data-lanes = <3 2 1 0>; > + remote-endpoint = <&usb_dp_qmpphy_out>; > + }; > + }; > + }; > + }; > +}; > + > +&mdss_dsi0 { > + status = "okay"; > + > + panel@0 { > + compatible = "visionox,vtdr6130"; > + reg = <0>; > + > + pinctrl-0 = <&dsi_active>, <&te_active>; > + pinctrl-1 = <&dsi_suspend>, <&te_suspend>; > + pinctrl-names = "default", "sleep"; > + > + reset-gpios = <&tlmm 133 GPIO_ACTIVE_LOW>; > + > + vci-supply = <&vreg_l13b_3p0>; > + vdd-supply = <&vreg_l11b_1p2>; > + vddio-supply = <&vreg_l12b_1p8>; > + > + port { > + panel0_in: endpoint { > + remote-endpoint = <&mdss_dsi0_out>; > + }; > + }; > + }; > +}; > + > +&mdss_dsi0_out { > + remote-endpoint = <&panel0_in>; > + data-lanes = <0 1 2 3>; > +}; > + > +&mdss_dsi0_phy { > + status = "okay"; > +}; > + > +&pcie0 { > + pinctrl-0 = <&pcie0_default_state>; > + pinctrl-names = "default"; > + > + status = "okay"; > +}; > + > +&pcie0_phy { > + status = "okay"; > +}; > + > +&pcie1 { > + pinctrl-0 = <&pcie1_default_state>; > + pinctrl-names = "default"; > + > + status = "okay"; > +}; > + > +&pcie1_phy { > + status = "okay"; > +}; > + > +&pm8550_gpios { > + volume_up_n: volume-up-n-state { > + pins = "gpio6"; > + function = "normal"; > + power-source = <1>; > + bias-pull-up; > + input-enable; > + }; > +}; > + > +&pon_pwrkey { > + status = "okay"; > +}; > + > +&pon_resin { > + linux,code = ; > + > + status = "okay"; > +}; > + > +&qupv3_id_0 { > + status = "okay"; > +}; > + > +&remoteproc_adsp { > + firmware-name = "qcom/qcs8550/adsp.mbn", > + "qcom/qcs8550/adsp_dtbs.elf"; > + status = "okay"; > +}; > + > +&remoteproc_cdsp { > + firmware-name = "qcom/qcs8550/cdsp.mbn", > + "qcom/qcs8550/cdsp_dtbs.elf"; > + status = "okay"; > +}; > + > +&swr1 { > + status = "okay"; > +}; > + > +&swr2 { > + status = "okay"; > +}; > + > +&tlmm { > + gpio-reserved-ranges = <32 8>; > + > + dsi_active: dsi-active-state { > + pins = "gpio133"; > + function = "gpio"; > + drive-strength = <8>; > + bias-disable; > + }; > + > + dsi_suspend: dsi-suspend-state { > + pins = "gpio133"; > + function = "gpio"; > + drive-strength = <2>; > + bias-pull-down; > + }; > + > + te_active: te-active-state { > + pins = "gpio86"; > + function = "mdp_vsync"; > + drive-strength = <2>; > + bias-pull-down; > + }; > + > + te_suspend: te-suspend-state { > + pins = "gpio86"; > + function = "mdp_vsync"; > + drive-strength = <2>; > + bias-pull-down; > + }; > +}; > + > +&uart7 { > + status = "okay"; > +}; > + > +&usb_1 { > + status = "okay"; > +}; > + > +&usb_1_dwc3 { > + dr_mode = "otg"; OTG is default and can be dropped. > + usb-role-switch; Please move to SoC dtsi and drop from board files. > +}; > + > +&usb_1_dwc3_hs { > + remote-endpoint = <&pmic_glink_hs_in>; > +}; > + > +&usb_1_dwc3_ss { > + remote-endpoint = <&usb_dp_qmpphy_usb_ss_in>; This too. > +}; > + > +&usb_1_hsphy { > + status = "okay"; > +}; > + > +&usb_dp_qmpphy { > + orientation-switch; This too > + > + status = "okay"; > +}; > + > +&usb_dp_qmpphy_out { > + remote-endpoint = <&redriver_ss_in>; > +}; > + > +&usb_dp_qmpphy_usb_ss_in { > + remote-endpoint = <&usb_1_dwc3_ss>; And this. > +}; > -- > 2.25.1 > -- With best wishes Dmitry