From patchwork Sat Nov 25 02:33:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianhua Lu X-Patchwork-Id: 13468350 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jDTiDS8f" Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C4FA1990; Fri, 24 Nov 2023 18:33:53 -0800 (PST) Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-6cbda959062so2230682b3a.1; Fri, 24 Nov 2023 18:33:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700879632; x=1701484432; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=9LgmvUfGWjKIm8iadY/2xVP7C/NerwMgdLCiio0IxTI=; b=jDTiDS8fF3hwQ3HbIMKbbDmLV6bSCqgPGU0fn7zIeigf6hSVqOyqpx/YSCFCdeJZBY mCJqaOq/BiXnUwsLjkF4xta3ngmIvpCKorZ55j+wcHrSuiCNTb6QgEe2mIY7B68f+O32 gcHO3JHyEMjKHH3krq8HW+BSdMSWKwcQT4feKprALrQbHfJ4z65pYlTPrGdk9TFU4x63 ixg0vupaGh7WoHXojnVNDBh+CA6CbKrWlzRW9AcYLLK5TrRLLweYT2Yrmgm0fq87dsjw hgyoftZuGAoKhfq3VmKMFKbsPMeoY0SjIL/+pWL+YIyX6L7vpo6dI+xvpJA6wDgoETwA LP5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700879632; x=1701484432; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9LgmvUfGWjKIm8iadY/2xVP7C/NerwMgdLCiio0IxTI=; b=dYldUYUfIWYuvZdY/CDqc9ekRT67SAXa5TcVGyFUdorIYznuA1tltDqd4bkhi5Y+7I HZfvcAUSaCG5Xwqvn09olUVwKTemihF/rduwE/8w7iWciWRDCTced5tWR0NaV2mUSRL7 aeCg+tA1jBQlFWXTv2JNG/bIw2gOF23bKQUQfheOn5wZz1jFpPyBVoJGev8W6b7a9HB8 rcP9Ox77V+p/FqOGKCv0z/seNNpWCmFd5xRs+vqTwCuoCPpDCrE70x7sc2P0Stpv5VYQ pOmFtyrMs0U58zZUYsmJRd6aYdCrdfpA2jE01QT/EjeglYSnQbi3uoF3B3tndOgEER3Z mJYg== X-Gm-Message-State: AOJu0YxJAoD1W/P1O7iHmNZ8c9wlz/el3OBUZuJP/sUzsZEZ6fmz6zDo 0bRwHNWt+g6XF74mQoXEJuw= X-Google-Smtp-Source: AGHT+IEgGUD9Pd+bQ7DVbSRyD0Wo/4cVRb+7VXsfnnsZ9qYBBIfyoTWwr/RuGqJ4RNGJEE8fdevU2Q== X-Received: by 2002:a05:6a20:daa8:b0:18b:914a:a81 with SMTP id iy40-20020a056a20daa800b0018b914a0a81mr6189316pzb.52.1700879632467; Fri, 24 Nov 2023 18:33:52 -0800 (PST) Received: from localhost.localdomain ([192.166.114.90]) by smtp.gmail.com with ESMTPSA id mz22-20020a17090b379600b002839a4f65c5sm3611353pjb.30.2023.11.24.18.33.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 18:33:52 -0800 (PST) From: Jianhua Lu To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Jianhua Lu Subject: [PATCH v2 1/3] arm64: dts: qcom: sm8250-xiaomi-elish: Fix typos Date: Sat, 25 Nov 2023 10:33:41 +0800 Message-ID: <20231125023343.10939-1-lujianhua000@gmail.com> X-Mailer: git-send-email 2.41.0 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 There are two typos in this dtsi, so fix it. classis -> chassis. 80700000 -> 80600000 Signed-off-by: Jianhua Lu Reviewed-by: Konrad Dybcio --- No changes in v2. arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi index 85e5cf3dc91e..3d4ea428e4cb 100644 --- a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi @@ -23,7 +23,7 @@ /delete-node/ &xbl_aop_mem; / { - classis-type = "tablet"; + chassis-type = "tablet"; /* required for bootloader to select correct board */ qcom,msm-id = ; /* SM8250 v2.1 */ @@ -114,7 +114,7 @@ vreg_s6c_0p88: smpc6-regulator { }; reserved-memory { - xbl_aop_mem: xbl-aop@80700000 { + xbl_aop_mem: xbl-aop@80600000 { reg = <0x0 0x80600000 0x0 0x260000>; no-map; }; From patchwork Sat Nov 25 02:33:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianhua Lu X-Patchwork-Id: 13468351 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WdEE/hO+" Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4959419A7; Fri, 24 Nov 2023 18:33:59 -0800 (PST) Received: by mail-pj1-x1029.google.com with SMTP id 98e67ed59e1d1-2857670af8cso1489336a91.0; Fri, 24 Nov 2023 18:33:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700879639; x=1701484439; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rhicU3/zHEQEppvUEunixypz6W920hQ+yafx5Cg+Em0=; b=WdEE/hO+PSuRnQ1bFvWYrUGHocLsdfNq5Kg3QerXF0sOntxL3PP0QwLtYkN05+mP1g OjpcvjfpeIjKyJLxPh1cRsh07s3p0Jb/0AY+gweGPl0LU+8YdODzphkWALfuHBmX7Gz4 bC8MXaE462fClF5lpX8kCXXuUUNahZvgrqRxEjZJTMPo2patGsmy2pdRkcyo5iKVWlbU 9hoXw1bLZt32w4D1ZshnnBpQxuI/9OK2irKA3p/Nzqp38TBgA/qhJOCv/S5eMq9HaP/W 94fl0+csHoWV5o0ubByEPutJaUKYF5zvFA4XKPkh6qQ/uwYko+6QfFJgX8uFpdiAeDLv G4Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700879639; x=1701484439; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rhicU3/zHEQEppvUEunixypz6W920hQ+yafx5Cg+Em0=; b=UATEUrcbvYMgpbZQRD053EZ8J6YUMmwwftxXcEBeVL4eoANI15nWrQjdeUBs9SAT95 yF3VvgvwE85ED3D8ei9POR8lj6ZbJ4+7JziVbaq8qia5uNFp27Qsqnve5T4PIdxV8Hgl Mm4sSt+cdwGrblNTtroVnkFdv8V4OSAFkCKA/88KHLLq5unl+6VdOqz8Y5IFVISWj/Rv 1hKa85FiK6vIVObe4Sn0S9SmN7TNZcR9IxQP4ToXV7roxG8BU72Lt1MJi8SXb5IPosmu MPt4XU60EJXgEH6X98HnM0Fpm/d6dLrjgKW7n+EXjKJuH/8vKNUc0E18mccW4ucdrghy Rq0A== X-Gm-Message-State: AOJu0Yy2fIYti5ZKX9KfPJnIxvAGdBfI6r6MERcbwFHNVfHILizSi3Jb XehNA+duraGacsT+M0kwxHw= X-Google-Smtp-Source: AGHT+IGwFqWBPXHxByzRR+4RMJE9+zUPfmeQtuh0mWetWkfRsw8zAg1Xekm6TE2rDuAWrQnVntIWig== X-Received: by 2002:a17:90a:684e:b0:280:22e2:60ea with SMTP id e14-20020a17090a684e00b0028022e260eamr4562962pjm.3.1700879638631; Fri, 24 Nov 2023 18:33:58 -0800 (PST) Received: from localhost.localdomain ([192.166.114.90]) by smtp.gmail.com with ESMTPSA id mz22-20020a17090b379600b002839a4f65c5sm3611353pjb.30.2023.11.24.18.33.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 18:33:58 -0800 (PST) From: Jianhua Lu To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Jianhua Lu Subject: [PATCH v2 2/3] arm64: dts: qcom: sm8250-xiaomi-elish: Add pm8150b type-c node Date: Sat, 25 Nov 2023 10:33:42 +0800 Message-ID: <20231125023343.10939-2-lujianhua000@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231125023343.10939-1-lujianhua000@gmail.com> References: <20231125023343.10939-1-lujianhua000@gmail.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add type-c node to feature otg function. Signed-off-by: Jianhua Lu Reviewed-by: Konrad Dybcio --- No changes in v2. .../dts/qcom/sm8250-xiaomi-elish-common.dtsi | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi index 3d4ea428e4cb..ba2119da1979 100644 --- a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi @@ -6,6 +6,7 @@ #include #include #include +#include #include "sm8250.dtsi" #include "pm8150.dtsi" #include "pm8150b.dtsi" @@ -627,6 +628,37 @@ vol_up_n: vol-up-n-state { }; }; +&pm8150b_typec { + vdd-pdphy-supply = <&vreg_l2a_3p1>; + status = "okay"; + + connector { + compatible = "usb-c-connector"; + + power-role = "source"; + data-role = "dual"; + self-powered; + + source-pdos = ; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + pm8150b_role_switch_in: endpoint { + remote-endpoint = <&usb_1_role_switch_out>; + }; + }; + }; + }; +}; + &pon_pwrkey { status = "okay"; }; @@ -678,6 +710,10 @@ &usb_1_hsphy { status = "okay"; }; +&usb_1_role_switch_out { + remote-endpoint = <&pm8150b_role_switch_in>; +}; + &ufs_mem_hc { vcc-supply = <&vreg_l17a_3p0>; vcc-max-microamp = <800000>; From patchwork Sat Nov 25 02:33:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianhua Lu X-Patchwork-Id: 13468352 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="EAYKzt7w" Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38D1E19AE; Fri, 24 Nov 2023 18:34:05 -0800 (PST) Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-6b709048d8eso2219468b3a.2; Fri, 24 Nov 2023 18:34:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700879644; x=1701484444; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cwDxPrBV1gye210dmGOK3P4MxuKjaUxc9oeTylrdKVk=; b=EAYKzt7wa84nfObW8UuTipq3DpXKs8tuLvZDkbA6GBeToyOwNpjqXHKQON/P2lMiw9 muPNCPj7ZBj+u2lDdzJoQwRvlXdyP+jaslkPsJWIZAULh38Jgt6hi4b+y8ZIoUlcTa/7 GR9QfR0Fl6r/UJcKKzuq4RGAMTlI0t5iAQ/YrkJlxJEEHF7WLo9Me5uWkiIrS4cxbXC0 DYzf0oWWEQIQST43R7PL4mxxF203gU2UIT5cJiJPFpJ6Mg4O9Rj6oJYiOER0rKlLKJ2o ICStOfFy9VqIGFeeoWkbfGi72n4woAJ9yWBPlCVZLOZU8dh8uzlX6p3UAiRzNL60pHQJ 0prg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700879644; x=1701484444; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cwDxPrBV1gye210dmGOK3P4MxuKjaUxc9oeTylrdKVk=; b=XJQbYMDVKsRPm1b0hk1/7ogs5M8T8ahGS8AF+UzchAYWQqn6jQUd9H1ZX4cy49UY1e BGwuCwNNgu78aIuC2uYQ6zkb+FEHAIEfvCr8cVLpVmnXDDr3RBGIBx+eeqeSuRC9zPWy upjJgnXpjxQCqqcU2XJUZHYMWXkjVS9wjm1enOjw2cFQSfEygW3z0quiGmnBywN+Q+8V tb6Gm4jPcGGDlNqEfd9OoADCNDw+VMMmM5+ZTKGxPzZbQxGCL0aI0FALvwL0atusT8tF 2Z8b0oZVOsOJh3MsjSaCSP837/tEtReJpeaydvEdGdqqOisJnAD8mAevD3mYKeXcMI1B rQ1g== X-Gm-Message-State: AOJu0Yws8zpzpwWHEdQCW+KQJPWbNVKv9Qt/jyYZ56yxouqKWNL87KV8 RJz0rEMgQaG+hpW/innAlDY= X-Google-Smtp-Source: AGHT+IGn+LcE04+sPvS0bUrNhEsTVIrXUWbqE3J0aelwrU/x6umTcfKFPBvWITjK+TMsFaXQp+nbJQ== X-Received: by 2002:a05:6a20:94c3:b0:18b:8b4:2de6 with SMTP id ht3-20020a056a2094c300b0018b08b42de6mr6582236pzb.37.1700879644585; Fri, 24 Nov 2023 18:34:04 -0800 (PST) Received: from localhost.localdomain ([192.166.114.90]) by smtp.gmail.com with ESMTPSA id mz22-20020a17090b379600b002839a4f65c5sm3611353pjb.30.2023.11.24.18.33.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 18:34:04 -0800 (PST) From: Jianhua Lu To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Jianhua Lu Subject: [PATCH v2 3/3] arm64: dts: qcom: sm8250-xiaomi-elish: Enable usb_1 otg Date: Sat, 25 Nov 2023 10:33:43 +0800 Message-ID: <20231125023343.10939-3-lujianhua000@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231125023343.10939-1-lujianhua000@gmail.com> References: <20231125023343.10939-1-lujianhua000@gmail.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Change dr_mode to otg and set usb_role_swith property to enable usb otg. Signed-off-by: Jianhua Lu Reviewed-by: Konrad Dybcio --- Changes in v2: 1. a new patch that I missed to generate. arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi index ba2119da1979..6abca574398d 100644 --- a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi @@ -696,11 +696,12 @@ &usb_1 { }; &usb_1_dwc3 { - dr_mode = "peripheral"; + dr_mode = "otg"; maximum-speed = "high-speed"; /* Remove USB3 phy */ phys = <&usb_1_hsphy>; phy-names = "usb2-phy"; + usb-role-switch; }; &usb_1_hsphy {