From patchwork Tue Oct 22 10:26:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 13845490 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (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 4A61019ABAC for ; Tue, 22 Oct 2024 10:27:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729592837; cv=none; b=BOnWzI8LXz00MVdve0f892kzGfcz+kEu18GDpfYJETSLjh7pFgH9k0JyfErjW5OSraHrU+SAUY2xxAkFcxOYPtOwtlf9SalkMB6Fku4m75De5kIObPLcO1p9U/TLPryEDy0OBBwT8L2ASilPUFyKKuP98XS4R7d/M9L/uHJsCJI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729592837; c=relaxed/simple; bh=9fRQ6n/qsT4Eo4o8dtxsoT2LEgiFvt7RuxiVrOmz67M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QobM3MiePb1psYlo+lr5PuXX0yHI27qhDJeU98pHWwSeX/C5hrG1B/YLGHGw+ucIIdrIlL5pG8Ellu98+HUikVGZkSKpWwUTsdTyCdufz35dYA8WGYYUrtN+kZqUQZLB3LL2sjJWW11pF4BPtuCKGFwLAzJp+pBBvHgcH7+9EeE= 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=KygAGPNS; arc=none smtp.client-ip=209.85.221.46 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="KygAGPNS" Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-37d461162b8so3642751f8f.1 for ; Tue, 22 Oct 2024 03:27:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729592833; x=1730197633; 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=dWCtht+OoWB12NCCbJohh/zQ+S38rmPfIVCAzkodcBA=; b=KygAGPNSDwj+b6WAWddOEgSHPgHhrl1PvlIU7cLX6LbLReFMGD2WhMXjM9Yl+GR3Ul kXqygDptCOdUxPNUh8AYwYW+SHpU/IDSYdHgDDuwH5PoXppV2hRh3HHZaxiLlREj5EWr L8UMICk2HZauHmPJcB+1g7yWJeXo42kTONAFy0Im+lYGgIQPJupXlP+40F3b4S8ju4sQ OII3dtdpkPfMyacpJDGUorqUMP5Fuf2MqgwLJiNScPVI9ix/DeqfgCV9C13jGnONhUhy Xta9wKTaVGfZcfJ8PTKMslm3gwoziF7SaS1DedHRCSbYiT4FmzyFLhSePFB6TOgP/etN i74w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729592833; x=1730197633; 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=dWCtht+OoWB12NCCbJohh/zQ+S38rmPfIVCAzkodcBA=; b=gikJ/cmaOX+RYC2726ZYmij035n+fY5CNvvvSG1d20jdtmIu3zr2FJeUJrrhmiFILK 7AOOIpW4R73leEP/JjkD7LXqqjAaTPeJFT3zdAt/+jRqnICX8ygfi32wIWO7y9o7VP91 0W0QwyPHaMizmcMrwtyiyG81QViLhZEzMR8fHo8Jo8r8D2IkLOfyENJ9gCdzPaWZfY+q kmMJR3GO7YPQlN17anRq313x9+3o6Yrj2PoLiq6yIKcREEQL+V8xUg/MGRdm2JgZh2iY A+QFulwocR94bu87rgUT5sgzDeEwi6h7pS7/AQkpjy4bNgU2cvuSZu2oYPrGBSmSwTr+ iVPQ== X-Gm-Message-State: AOJu0Yz7mtQ/pVENmxsjkd4hJkOhY9yqtx681VOBvzBi770bfOwdTRbU xbwbe4/tmGOtwGaeQ7k+iZU1Bz6rdGj2OiujT7PhaJ9OAqw4O2xFW8ubWJ8Wazn7JitHa4hb/0l w X-Google-Smtp-Source: AGHT+IGfgr7tyJC12Fmn3Oe6eVtTlsH5ZYzur2/bdoxM7nF+dK6YBfkfJ3j91qi2gldb7K51Lg0KkQ== X-Received: by 2002:adf:e70c:0:b0:37d:4846:3d29 with SMTP id ffacd0b85a97d-37ea2198725mr10182676f8f.28.1729592833384; Tue, 22 Oct 2024 03:27:13 -0700 (PDT) Received: from [127.0.1.1] ([82.76.168.176]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37ee0b94048sm6285184f8f.85.2024.10.22.03.27.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2024 03:27:13 -0700 (PDT) From: Abel Vesa Date: Tue, 22 Oct 2024 13:26:54 +0300 Subject: [PATCH v3 1/4] dt-bindings: usb: Add Parade PS8830 Type-C retimer bindings Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241022-x1e80100-ps8830-v3-1-68a95f351e99@linaro.org> References: <20241022-x1e80100-ps8830-v3-0-68a95f351e99@linaro.org> In-Reply-To: <20241022-x1e80100-ps8830-v3-0-68a95f351e99@linaro.org> To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Konrad Dybcio , Rajendra Nayak , Sibi Sankar , Johan Hovold , Dmitry Baryshkov , Trilok Soni , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, Abel Vesa X-Mailer: b4 0.15-dev-dedf8 X-Developer-Signature: v=1; a=openpgp-sha256; l=3623; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=9fRQ6n/qsT4Eo4o8dtxsoT2LEgiFvt7RuxiVrOmz67M=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBnF3344rsQ7Lqt78Ied8Q9JJHvAYQrJMJO76p7g M/NjF/4UfaJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZxd9+AAKCRAbX0TJAJUV VsErD/99GOp0pKiCdrrqBBy4RM+7vUBpdCq0nb4v+yKBmKUmBf+WmjQac7QUF88fyRKcKIj+V/3 fe8/PUbNFsLHrIbZs/sFiuH0fvOuzBM9mqZuagVu99ZdtiN8eLC3uvVBU6cXwm1z4MgV2D0y3Hk txYleU27gNE43DLzcJlYaIGgxHPtPoNNwi4Xnr2zAZjm7KagwrqdkdPGH6PN1wd/QXRRiRq1XhP StP5g4YNTADqas2rkImRXs67opTRQWAvpkWqe7OGXUDdhkux2KjTjmZPAe0rFGaQv31klkVatvG KjYi3SYHwdldtHQj1UPUl1Y0MB/ERvnKWwgcCKuTZk7EzlyJYOvUTOPqnhoRohIne9zUNRdzJNF FQsD7nN1ENoaIqbmt6iFnw+0Lu0jb0ofOB3pepOJCpHWATcgbGUV6m4t0+pVeiHL/BGmiGzTBaj expCv7hxyN+BhsfrY8r0MhrbNQSgNr2sRXq4Q6SMWsAEx1oYa7H5Ypj1xdHKi/FpX53SwaYkrLw 6aFY7m0QC+ZSLw6WfBTcU7A2xgqjoHFkpKKbfFwu3Z3gg2cdIym0ztkiAkCp37Xlkux6UjzLjFn 5PpWtrAZIDUtiDide3J4YuaEvQkMqWzlpS2YM9iyuwQzzcdHRCRtssZAdU0gX3Ebnhrv/TFYO+D +qgA4nBIfxMUQpg== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE Document bindings for the Parade PS8830 Type-C retimer. This retimer is currently found on all boards featuring Qualcomm Snapdragon X Elite SoCs and it is needed to provide altmode muxing between DP and USB, but also connector orientation handling between. Signed-off-by: Abel Vesa --- .../devicetree/bindings/usb/parade,ps8830.yaml | 129 +++++++++++++++++++++ 1 file changed, 129 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/parade,ps8830.yaml b/Documentation/devicetree/bindings/usb/parade,ps8830.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ee4c69eca6066e4da0373fad6c25d6e9fff83366 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/parade,ps8830.yaml @@ -0,0 +1,129 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/parade,ps8830.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Parade PS8830 USB and DisplayPort Retimer + +maintainers: + - Abel Vesa + +properties: + compatible: + enum: + - parade,ps8830 + + reg: + maxItems: 1 + + clocks: + items: + - description: XO Clock + + clock-names: + items: + - const: xo + + ps8830,boot-on: + description: Left enabled at boot, so skip resetting + type: boolean + + reset-gpios: + maxItems: 1 + + vdd-supply: + description: power supply (1.07V) + + vdd33-supply: + description: power supply (3.3V) + + vdd33-cap-supply: + description: power supply (3.3V) + + vddar-supply: + description: power supply (1.07V) + + vddat-supply: + description: power supply (1.07V) + + vddio-supply: + description: power supply (1.2V or 1.8V) + +required: + - compatible + - reg + - clocks + - clock-names + - reset-gpios + - vdd-supply + - vdd33-supply + - vdd33-cap-supply + - vddat-supply + - vddio-supply + - orientation-switch + - retimer-switch + +allOf: + - $ref: usb-switch.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + typec-mux@8 { + compatible = "parade,ps8830"; + reg = <0x8>; + + clocks = <&clk_rtmr_xo>; + clock-names = "xo"; + + vdd-supply = <&vreg_rtmr_1p15>; + vdd33-supply = <&vreg_rtmr_3p3>; + vdd33-cap-supply = <&vreg_rtmr_3p3>; + vddar-supply = <&vreg_rtmr_1p15>; + vddat-supply = <&vreg_rtmr_1p15>; + vddio-supply = <&vreg_rtmr_1p8>; + + reset-gpios = <&tlmm 10 GPIO_ACTIVE_LOW>; + + retimer-switch; + orientation-switch; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + endpoint { + remote-endpoint = <&typec_con_ss>; + }; + }; + + port@1 { + reg = <1>; + + endpoint { + remote-endpoint = <&usb_phy_ss>; + }; + }; + + port@2 { + reg = <2>; + + endpoint { + remote-endpoint = <&typec_dp_aux>; + }; + }; + }; + }; + }; +...