From nobody Tue Dec 16 14:08:11 2025 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4C24F263F2D for ; Sat, 1 Nov 2025 03:59:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761969591; cv=none; b=MYA7PMhM/Soten5osDD5NRPX4KbgZzy+RNPM/mB3j4/iWhYWbfjn65dzc1EUg84UmP3bYfcNGWEUIZuTKaGb8Km/e0gNWL/fBDkVanL9ASFPh5S/Eo1OSasZdeOfsUqgXnrQJXkvxnSRcCEec+1kXLQceis+UdjBqQ/nTVUlOWg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761969591; c=relaxed/simple; bh=Yx47/v7UP2S9t4kbCJoO8vfIzHGQNKl3EuLxc5b7Of4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Vcy5NAX0frtR6lRvm2dTl2vv5MO2K0KdgF4mWanSDFHBO8gKuixJbti+TM1BkyOSokmXTWLD0iVeiXrPY6kccTu/v1PVEf04HW352H6BQ0hS1J1Qcnvw1KYcCJDkcB2eat0Xi5Z7OPuVAVLZsB8+1q+2yJk6wunxTAgNuKAKixk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=ARCjd3mR; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=G2jkhru/; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="ARCjd3mR"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="G2jkhru/" Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5A12plNS461351 for ; Sat, 1 Nov 2025 03:59:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= uOuNrPNOxNtGjbqecQTezoMALC4gh5guIoDEvWHDAF8=; b=ARCjd3mRjjR+xne1 2cTg7UmlpSzqP2pV5LVSpc3OclNEYf9+oXaVE6dFalPb7wY9gYGGM2AGB1qC+xzs qeNv24mCaZTUd8RlwUUP0yQZ3dfQz7xCz/snR3/tQXwf2Ht6AoMxcE8z1LzNJfq8 z0Vlpb0cgfzQ/XYuOeIkWdSAwn3/0Kg6jHStDmAp7WVgtKYFoOiKvb5VXoGZOvPD iGOB0m3oX4ez7VM3wDZg+1H3Jf9u0Ams14giD6Bl3inq1arClVorKIkNl5OjRux6 yP73RPqexEyceFzTtY+HvMp2NPpn56N05NJDEkuLLaVSE9BIyrFQfhh6R1ajrSYD bOPtXA== Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4a59t002nw-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sat, 01 Nov 2025 03:59:49 +0000 (GMT) Received: by mail-pl1-f200.google.com with SMTP id d9443c01a7336-290c9724deeso29816145ad.2 for ; Fri, 31 Oct 2025 20:59:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1761969588; x=1762574388; 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=uOuNrPNOxNtGjbqecQTezoMALC4gh5guIoDEvWHDAF8=; b=G2jkhru/RMUNB7Ml08cXmo73GunQHXOIyz2khe15x2rF20H7H7qEPQ5vW6dFQtkp7z Xn7Cl0BcMmlDNizDYiV1E31cbxkC3LodUbdhsjrsnPaN69Xbx6Dk4thO9TWkIezuRDv2 gyGA364CHgU00yXD/XVHhkb0NSDGu+hd0vX5AzVVPFvF457BSbNxWO6Tg5fRew7DoNu4 Un9rx4almR3XZhcaFUuejrwREfF0nlWZtHh8Ekh6zsztMrJud1miUxHdAuSmYPvDSbib soXZxy83Gl4n8cRuQiaej0HPTlrL4BIlDGrFbenvQCloCJy9XWhVBRDLvCnOv3WGhW1f NfCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761969588; x=1762574388; 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=uOuNrPNOxNtGjbqecQTezoMALC4gh5guIoDEvWHDAF8=; b=NNzDstWNYSQphNW/QzIFXsxJbTzpDIWjtOpuNF2vAwKzJMM8kS9GeoeCDghdYc315i Yrf3FhYVzOcrD4Abthihlj8bmlqMaGtYQetKFMIWaMtujBJ0qT7hsmQceKDKpJi99ycB 1mqm/tJjuBzdrMvKpszYpBzRuxf3JprzaiGpmd4KEqFUTAR/dwkLqjWge65Tf8IAHubt Se+y2SUVp4y+gsLj6nNi2NWhKXsFw1IttvlfOi5N4t8KqH1ge5h9FdPRkm8FjxzTJZN0 1DL8AZBaPfvenSbsWVNiba76LWbc6mEUQz+qnvYoIClJVMva9Gn+Bu/dPTV08TegS7v8 5jzA== X-Forwarded-Encrypted: i=1; AJvYcCVtADDytxjznhIYTJTMy0yiTtw3v24SZr30Iamabilr+Egbm4K12LgR62XYFwVnzpE1MqNZ0o7Z9IqCz5Q=@vger.kernel.org X-Gm-Message-State: AOJu0Yz6LK2nu6SkDFD+yGmi/7KGGyD1GhGiy5rq3ojuy1HiYZbY5zBW d94XhHoSA/xiboshXQhuc/CeIA3AHmvhUOOQVJTWsrxVi57XMC/X16v9BTob2X282cH7J2q6Tbz awZ902OyHcwUVgrFEra2WQXSDVKmUbloA+3lSh4Y0AYAyyVIp9a7IH8GKq4KPwokV8OU= X-Gm-Gg: ASbGncuNF0VMZVUaD0E62NKtsj6UceGdK9Y64ULteiG0QskV3CK0VtIVLZehkMtc8sZ 4njE1MJC1/vZTPvSOP4+nnjz3d5fG+ERasNYUNw6cDgw3Y0hkwsBIs8+Mhw7QkqNo1oI0h2Kk3f A+l+Qr4dxaETCul2YL34fcNqvJEElK7IxYaWM6j66cgZiQLFT5ktBBrb1e8l9JzfWMnQfGuPn7B Qm5PM0Sb1NkfDN8TdWUO1iAcOw+idnnk4djCPWPEnlC8OL88IISyF6JlOEdjYXCw4ZpcXkbcEdY jZParn+fD7JYE5JxlcjB0SRR+R/1c7S0qAOIY9GGAwBojbwEbYa62mzTY6yhTvaMp1GfoA8mVs8 Q26ot0Gvw0ns9ahsejnZyRW32QOKHGNsPAA== X-Received: by 2002:a17:903:234b:b0:295:3e41:5aa1 with SMTP id d9443c01a7336-2953e415cc4mr43463885ad.21.1761969588183; Fri, 31 Oct 2025 20:59:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEou51Q4Z7vnpG3VKsqD3DPTzo9lSyIzhBdN0I3SsB9JhOkCBLILKQLgfWf8OK/OV1KgNHzng== X-Received: by 2002:a17:903:234b:b0:295:3e41:5aa1 with SMTP id d9443c01a7336-2953e415cc4mr43463495ad.21.1761969587623; Fri, 31 Oct 2025 20:59:47 -0700 (PDT) Received: from hu-krichai-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-295268717ffsm41490725ad.2.2025.10.31.20.59.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Oct 2025 20:59:47 -0700 (PDT) From: Krishna Chaitanya Chundru Date: Sat, 01 Nov 2025 09:29:32 +0530 Subject: [PATCH v9 1/7] dt-bindings: PCI: Add binding for Toshiba TC9563 PCIe switch Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251101-tc9563-v9-1-de3429f7787a@oss.qualcomm.com> References: <20251101-tc9563-v9-0-de3429f7787a@oss.qualcomm.com> In-Reply-To: <20251101-tc9563-v9-0-de3429f7787a@oss.qualcomm.com> To: Bjorn Helgaas , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Manivannan Sadhasivam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jingoo Han , Bartosz Golaszewski , Bjorn Andersson , Konrad Dybcio , cros-qcom-dts-watchers@chromium.org Cc: linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Krishna Chaitanya Chundru X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1761969577; l=5917; i=krishna.chundru@oss.qualcomm.com; s=20230907; h=from:subject:message-id; bh=Yx47/v7UP2S9t4kbCJoO8vfIzHGQNKl3EuLxc5b7Of4=; b=6ZhmnVVExo5QQm+sgn0bDG4eLmae4mGL05kLPko5sybEGRHO3CWJHXMYEewwqs2/nLEBHxP7O HGjTNqhbVXFBxs24h1ou4jhppEtQOBNYvV9bsEbxJwwqdsHmvZJaGzl X-Developer-Key: i=krishna.chundru@oss.qualcomm.com; a=ed25519; pk=10CL2pdAKFyzyOHbfSWHCD0X0my7CXxj8gJScmn1FAg= X-Authority-Analysis: v=2.4 cv=B5e0EetM c=1 sm=1 tr=0 ts=690585b5 cx=c_pps a=IZJwPbhc+fLeJZngyXXI0A==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=6UeiqGixMTsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=gEfo2CItAAAA:8 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=dWfasREweX4F4dHnDHIA:9 a=QEXdDO2ut3YA:10 a=uG9DUKGECoFWVXl0Dc02:22 a=sptkURWiP4Gy88Gu7hUp:22 X-Proofpoint-GUID: r_in6lb1kunuU9NzT1ThtNM1Hb3XkQwP X-Proofpoint-ORIG-GUID: r_in6lb1kunuU9NzT1ThtNM1Hb3XkQwP X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMTAxMDAzMCBTYWx0ZWRfX+n8fRQCQX5hb YoC0dnwjIs8kdkAEc/kc47BhcxKSNn3+BERP0eMaBDY+eTG5TRa91KC8UgvKxCaSn1+XxODg4eO jq1DquHI8us8U3Q4VvJfWAWqVRc4jy+dPN8KfjLIwK5Qu1o3oGXAh/4H+4uXoVvbbKDbOu0qkr0 xXfVnTaDtFzZIwFzvKcxuBem+F9mL21p8eLw1G2LTVFSUsS6OS7UU07oWzwfNAERF1ZTrBT/01L KtLVMY/PNIceIdwzVJ8y3Xwtt0N13r0dj8AVhSBmdtlDaGxA5XYTHow44LohGBVEKRTgGqLHrMb I+hhUvO96ZjPxXcbsrfjnKhg3xcYNN1grC4Ko6oivJXGXHevglEygZIrPmAY1y9t8TeV4uy670U l1PeDLxv49NZUWE23bc0PWgr6p0d+A== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-10-31_08,2025-10-29_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 impostorscore=0 spamscore=0 bulkscore=0 adultscore=0 clxscore=1015 suspectscore=0 priorityscore=1501 malwarescore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2511010030 Add a device tree binding for the Toshiba TC9563 PCIe switch, which provides an Ethernet MAC integrated to the 3rd downstream port and two downstream PCIe ports. Reviewed-by: Rob Herring (Arm) Acked-by: Manivannan Sadhasivam Signed-off-by: Krishna Chaitanya Chundru --- .../devicetree/bindings/pci/toshiba,tc9563.yaml | 179 +++++++++++++++++= ++++ 1 file changed, 179 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/toshiba,tc9563.yaml b/Do= cumentation/devicetree/bindings/pci/toshiba,tc9563.yaml new file mode 100644 index 0000000000000000000000000000000000000000..fae466064780959833e7102164a= 124086bd9099e --- /dev/null +++ b/Documentation/devicetree/bindings/pci/toshiba,tc9563.yaml @@ -0,0 +1,179 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pci/toshiba,tc9563.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Toshiba TC9563 PCIe switch + +maintainers: + - Krishna Chaitanya Chundru + +description: | + Toshiba TC9563 PCIe switch has one upstream and three downstream ports. + The 3rd downstream port has integrated endpoint device of Ethernet MAC. + Other two downstream ports are supposed to connect to external device. + + The TC9563 PCIe switch can be configured through I2C interface before + PCIe link is established to change FTS, ASPM related entry delays, + tx amplitude etc for better power efficiency and functionality. + +properties: + compatible: + enum: + - pci1179,0623 + + reg: + maxItems: 1 + + resx-gpios: + maxItems: 1 + description: + GPIO controlling the RESX# pin. + + vdd18-supply: true + + vdd09-supply: true + + vddc-supply: true + + vddio1-supply: true + + vddio2-supply: true + + vddio18-supply: true + + i2c-parent: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + A phandle to the parent I2C node and the slave address of the device + used to configure tc9563 to change FTS, tx amplitude etc. + items: + - description: Phandle to the I2C controller node + - description: I2C slave address + +patternProperties: + "^pcie@[1-3],0$": + description: + child nodes describing the internal downstream ports of + the tc9563 switch. + type: object + allOf: + - $ref: "#/$defs/tc9563-node" + - $ref: /schemas/pci/pci-pci-bridge.yaml# + unevaluatedProperties: false + +$defs: + tc9563-node: + type: object + + properties: + toshiba,tx-amplitude-microvolt: + description: + Change Tx Margin setting for low power consumption. + + toshiba,no-dfe-support: + type: boolean + description: + Disable DFE (Decision Feedback Equalizer), which mitigates + intersymbol interference and some reflections caused by + impedance mismatches. + +required: + - resx-gpios + - vdd18-supply + - vdd09-supply + - vddc-supply + - vddio1-supply + - vddio2-supply + - vddio18-supply + - i2c-parent + +allOf: + - $ref: "#/$defs/tc9563-node" + - $ref: /schemas/pci/pci-bus-common.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + + pcie { + #address-cells =3D <3>; + #size-cells =3D <2>; + + pcie@0 { + device_type =3D "pci"; + reg =3D <0x0 0x0 0x0 0x0 0x0>; + + #address-cells =3D <3>; + #size-cells =3D <2>; + ranges; + bus-range =3D <0x01 0xff>; + + pcie@0,0 { + compatible =3D "pci1179,0623"; + + reg =3D <0x10000 0x0 0x0 0x0 0x0>; + device_type =3D "pci"; + #address-cells =3D <3>; + #size-cells =3D <2>; + ranges; + bus-range =3D <0x02 0xff>; + + i2c-parent =3D <&qup_i2c 0x77>; + + vdd18-supply =3D <&vdd>; + vdd09-supply =3D <&vdd>; + vddc-supply =3D <&vdd>; + vddio1-supply =3D <&vdd>; + vddio2-supply =3D <&vdd>; + vddio18-supply =3D <&vdd>; + + resx-gpios =3D <&gpio 1 GPIO_ACTIVE_LOW>; + + pcie@1,0 { + compatible =3D "pciclass,0604"; + reg =3D <0x20800 0x0 0x0 0x0 0x0>; + #address-cells =3D <3>; + #size-cells =3D <2>; + device_type =3D "pci"; + ranges; + bus-range =3D <0x03 0xff>; + + toshiba,no-dfe-support; + }; + + pcie@2,0 { + compatible =3D "pciclass,0604"; + reg =3D <0x21000 0x0 0x0 0x0 0x0>; + #address-cells =3D <3>; + #size-cells =3D <2>; + device_type =3D "pci"; + ranges; + bus-range =3D <0x04 0xff>; + }; + + pcie@3,0 { + compatible =3D "pciclass,0604"; + reg =3D <0x21800 0x0 0x0 0x0 0x0>; + #address-cells =3D <3>; + #size-cells =3D <2>; + device_type =3D "pci"; + ranges; + bus-range =3D <0x05 0xff>; + + toshiba,tx-amplitude-microvolt =3D <10>; + + ethernet@0,0 { + reg =3D <0x50000 0x0 0x0 0x0 0x0>; + }; + + ethernet@0,1 { + reg =3D <0x50100 0x0 0x0 0x0 0x0>; + }; + }; + }; + }; + }; --=20 2.34.1