arm64: dts: qcom: sc7180-trogdor: Wire up USB
Subsystems (5)
v2 cover arm64: dts: qcom: sc7180-trogdor: Wire up USB
Wiring up the USB hub to the connectors allows us to gain the proper 'connect_type' and 'removable' values in sysfs for the USB devices on sc7180 trogdor devices. These two patches are split off of a larger series[1] so they can land faster and because we've come to the conclusion that the DisplayPort path is going to connect to the cros-ec-typec node.
The first patch adds the pogo pin binding to describe the detachable keyboards found on some trogdor devices (actually strongbad). The second patch is the dts changes required to wire up all the USB stuff. This is sufficient to set the connect_type and removable sysfs properties of USB devices.
Changes from v1 https://lore.kernel.org/r/[email protected]
* Split out of larger series
* Added description to DT binding
* Removed DP part of dts changes
[1] https://lore.kernel.org/r/[email protected]
Stephen Boyd (2):
dt-bindings: chrome: Add binding for ChromeOS Pogo pin connector
arm64: dts: qcom: sc7180-trogdor: Wire up USB to usb-c-connectors
.../chrome/google,pogo-pin-connector.yaml | 68 +++++++++++ .../dts/qcom/sc7180-trogdor-clamshell.dtsi | 21 ++++ .../boot/dts/qcom/sc7180-trogdor-coachz.dtsi | 47 ++++++++ .../dts/qcom/sc7180-trogdor-detachable.dtsi | 15 +++ .../dts/qcom/sc7180-trogdor-homestar.dtsi | 47 ++++++++ .../dts/qcom/sc7180-trogdor-kingoftown.dts | 55 +++++++++ .../boot/dts/qcom/sc7180-trogdor-lazor.dtsi | 55 +++++++++ .../boot/dts/qcom/sc7180-trogdor-pazquel.dtsi | 55 +++++++++ .../boot/dts/qcom/sc7180-trogdor-pompom.dtsi | 44 +++++++ .../qcom/sc7180-trogdor-quackingstick.dtsi | 31 +++++ .../arm64/boot/dts/qcom/sc7180-trogdor-r1.dts | 56 ++++++++- .../dts/qcom/sc7180-trogdor-wormdingler.dtsi | 47 ++++++++ arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 109 ++++++++++++++++++ 13 files changed, 648 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/chrome/google,pogo-pin-connector.yaml
base-commit: 2014c95afecee3e76ca4a56956a936e23283f05b
Signature · 1 line
https://chromeos.dev
PATCH v2 1/2 dt-bindings: chrome: Add binding for ChromeOS Pogo pin connector
Describe the set of pins used to connect the detachable keyboard on detachable ChromeOS devices. The set of pins is called the "pogo pins". It's basically USB 2.0 with an extra pin for base detection. We expect to find a keyboard on the other side of this connector with a specific vid/pid, so describe that as a child device at the port of the usb device connected upstream.
--- .../chrome/google,pogo-pin-connector.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/chrome/google,pogo-pin-connector.yaml
Documentation/devicetree/bindings/chrome/google,pogo-pin-connector.yaml new file +68 -0
@@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/chrome/google,pogo-pin-connector.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Google Pogo Pin Connector + +maintainers: + - Stephen Boyd <[email protected]> + +description: + ChromeOS devices with a detachable keyboard have a set of five pins called + pogo pins that are the typical four pins for USB (D+/D-, vbus, ground) and an + extra pin for base detection. The detachable keyboard is a USB device that + connects to the pogo pins. + +properties: + compatible: + const: google,pogo-pin-connector + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + port: + $ref: /schemas/graph.yaml#/properties/port + description: Connection to USB2 port providing USB signals + required: + - endpoint + +patternProperties: + "^keyboard@[0-9a-f]{1,2}$": + description: The detachable keyboard + type: object + $ref: /schemas/usb/usb-device.yaml + unevaluatedProperties: false + +required: + - compatible + - '#address-cells' + - '#size-cells' + - port + +additionalProperties: false + +examples: + - | + connector { + compatible = "google,pogo-pin-connector"; + #address-cells = <1>; + #size-cells = <0>; + + keyboard@2 { + compatible = "usb18d1,504c"; + reg = <2>; + }; + + port { + pogo_connector_in: endpoint { + remote-endpoint = <&usb_hub_dsp3_hs>; + }; + }; + }; + +...
Signature · 1 line
https://chromeos.dev
Re: [PATCH v2 1/2] dt-bindings: chrome: Add binding for ChromeOS Pogo pin connector
Quoted 26 lines · Stephen Boyd
Describe the set of pins used to connect the detachable keyboard on detachable ChromeOS devices. The set of pins is called the "pogo pins". It's basically USB 2.0 with an extra pin for base detection. We expect to find a keyboard on the other side of this connector with a specific vid/pid, so describe that as a child device at the port of the usb device connected upstream.
Cc Rob Herring <[email protected]>Cc Krzysztof Kozlowski <[email protected]>Cc Conor Dooley <[email protected]>Cc Benson Leung <[email protected]>Cc <[email protected]>Cc <[email protected]>Cc Pin-yen Lin <[email protected]>Signed-off-by Stephen Boyd <[email protected]>--- .../chrome/google,pogo-pin-connector.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/chrome/google,pogo-pin-connector.yamlDocumentation/devicetree/bindings/chrome/google,pogo-pin-connector.yaml new file +0
-0
Documentation/devicetree/bindings/chrome/google,pogo-pin-connector.yaml line 7
Quoted 7 lines
Documentation/devicetree/bindings/chrome/google,pogo-pin-connector.yaml new file +7
-0@@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/chrome/google,pogo-pin-connector.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Google Pogo Pin Connector
This looks like a very generic piece of hw.. many boards (esp. convertibles) do the same thing, with 4 or 5 pins on the bottom of the device.
But of course hw manufacturers being hw manufacturers, many different kinds of signals go through such connectors - if it's not USB then it's perhaps I2C or some variation thereof
IMO, we could perhaps add this to usb-connector.yaml as "usb-custom-connector" or so
Konrad
Re: [PATCH v2 1/2] dt-bindings: chrome: Add binding for ChromeOS Pogo pin connector
Quoting Konrad Dybcio (2025-02-06 03:30:50)
Quoted 9 lines · Stephen Boyd
Quoted 8 lines
Documentation/devicetree/bindings/chrome/google,pogo-pin-connector.yaml new file +2
-0@@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2
Quoted 8 lines
Documentation/devicetree/bindings/chrome/google,pogo-pin-connector.yaml line 7
Quoted 5 lines
Documentation/devicetree/bindings/chrome/google,pogo-pin-connector.yaml new file +5
-0+--- +$id: http://devicetree.org/schemas/chrome/google,pogo-pin-connector.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Google Pogo Pin ConnectorThis looks like a very generic piece of hw.. many boards (esp. convertibles) do the same thing, with 4 or 5 pins on the bottom of the device.
Yes, connectors are basically just pins :-)
Quoted 4 lines
But of course hw manufacturers being hw manufacturers, many different kinds of signals go through such connectors - if it's not USB then it's perhaps I2C or some variation thereof
Right, and I doubt they call them "pogo".
Quoted 3 lines
IMO, we could perhaps add this to
usb-connector.yamlas "usb-custom-connector" or so
Do you have a device that could use such a generic binding? I can't really design something in the abstract without two or more concrete use cases. Coming up with something generic looks like a quagmire, because as you say the signals going through the pins could be anything: i2c, 1-wire, etc.
At least this is a vendor prefixed binding, meaning a generic binding could supersede this one later. The risk of accepting this binding is low because it can be replaced by a more generic one at a later date.
I will move the file to usb/ so that it is more likely to be seen, but I'm hesitant to sign up to work on any sort of generic binding for USB2 plus an extra pin used for who knows what.
Re: [PATCH v2 1/2] dt-bindings: chrome: Add binding for ChromeOS Pogo pin connector
Quoted 29 lines · Stephen Boyd
Quoting Konrad Dybcio (2025-02-06 03:30:50)
Quoted 9 lines · Stephen Boyd
Quoted 8 lines
Documentation/devicetree/bindings/chrome/google,pogo-pin-connector.yaml new file +2
-0@@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2Quoted 8 lines
Documentation/devicetree/bindings/chrome/google,pogo-pin-connector.yaml line 7
Quoted 5 lines
Documentation/devicetree/bindings/chrome/google,pogo-pin-connector.yaml new file +5
-0+--- +$id: http://devicetree.org/schemas/chrome/google,pogo-pin-connector.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Google Pogo Pin ConnectorThis looks like a very generic piece of hw.. many boards (esp. convertibles) do the same thing, with 4 or 5 pins on the bottom of the device.
Yes, connectors are basically just pins :-)
Quoted 4 lines
But of course hw manufacturers being hw manufacturers, many different kinds of signals go through such connectors - if it's not USB then it's perhaps I2C or some variation thereof
Right, and I doubt they call them "pogo".
Quoted 1 line
Quoted 8 lines
Quoted 2 lines
IMO, we could perhaps add this to
usb-connector.yamlas "usb-custom-connector" or soDo you have a device that could use such a generic binding? I can't really design something in the abstract without two or more concrete use cases. Coming up with something generic looks like a quagmire, because as you say the signals going through the pins could be anything: i2c, 1-wire, etc.
Right, we can't be overly generic either. FWIW I'm not standing in the way of this patch getting merged.
Konrad
Quoted 7 lines
At least this is a vendor prefixed binding, meaning a generic binding could supersede this one later. The risk of accepting this binding is low because it can be replaced by a more generic one at a later date.
I will move the file to usb/ so that it is more likely to be seen, but I'm hesitant to sign up to work on any sort of generic binding for USB2 plus an extra pin used for who knows what.
Re: [PATCH v2 1/2] dt-bindings: chrome: Add binding for ChromeOS Pogo pin connector
Quoting Konrad Dybcio (2025-02-10 11:09:57)
Quoted 11 lines · Stephen Boyd
Quoted 6 lines
Do you have a device that could use such a generic binding? I can't really design something in the abstract without two or more concrete use cases. Coming up with something generic looks like a quagmire, because as you say the signals going through the pins could be anything: i2c, 1-wire, etc.
Right, we can't be overly generic either. FWIW I'm not standing in the way of this patch getting merged.
Ok, got it. I've renamed this to google,usb-pogo-keyboard and made it keyboard specific. I'll send v3 shortly.
PATCH v2 2/2 arm64: dts: qcom: sc7180-trogdor: Wire up USB to usb-c-connectors
In reply to Stephen BoydFully describe the USB type-c on sc7180 Trogdor devices. Most Trogdor devices have two USB type-c ports (i.e. usb-c-connector nodes), but Quackingstick only has one. Also, clamshell devices such as Lazor have a USB webcam connected to the USB hub, while detachable devices such as Wormdingler don't have a webcam, or a USB type-a connector. Instead they have the pogo pins for the detachable keyboard.
Fully describing the topology like this will let us expose information about what devices are connected to which physical USB connector (type-A or type-C).
--- .../dts/qcom/sc7180-trogdor-clamshell.dtsi | 21 ++++ .../boot/dts/qcom/sc7180-trogdor-coachz.dtsi | 47 ++++++++ .../dts/qcom/sc7180-trogdor-detachable.dtsi | 15 +++ .../dts/qcom/sc7180-trogdor-homestar.dtsi | 47 ++++++++ .../dts/qcom/sc7180-trogdor-kingoftown.dts | 55 +++++++++ .../boot/dts/qcom/sc7180-trogdor-lazor.dtsi | 55 +++++++++ .../boot/dts/qcom/sc7180-trogdor-pazquel.dtsi | 55 +++++++++ .../boot/dts/qcom/sc7180-trogdor-pompom.dtsi | 44 +++++++ .../qcom/sc7180-trogdor-quackingstick.dtsi | 31 +++++ .../arm64/boot/dts/qcom/sc7180-trogdor-r1.dts | 56 ++++++++- .../dts/qcom/sc7180-trogdor-wormdingler.dtsi | 47 ++++++++ arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 109 ++++++++++++++++++ 12 files changed, 580 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/qcom/sc7180-trogdor-clamshell.dtsi +21 -0
@@ -7,3 +7,24 @@ /* This file must be included after sc7180-trogdor.dtsi to modify cros_ec */ #include <arm/cros-ec-keyboard.dtsi> + +/ { + usb-a-connector { + compatible = "usb-a-connector"; + + port { + #address-cells = <1>; + #size-cells = <0>; + + usb_a0_hs: endpoint@0 { + reg = <0>; + /* Endpoint filled in by board */ + }; + + usb_a0_ss: endpoint@1 { + reg = <1>; + /* Endpoint filled in by board */ + }; + }; + }; +};
arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi +47 -0
59 lines not on this page · raw message
arch/arm64/boot/dts/qcom/sc7180-trogdor-detachable.dtsi +15 -0
@@ -6,6 +6,21 @@ */ /* This file must be included after sc7180-trogdor.dtsi to modify cros_ec */ + +/ { + pogo_pins: pogo-pin-connector { + compatible = "google,pogo-pin-connector"; + #address-cells = <1>; + #size-cells = <0>; + /* Detachable keyboard populated for each board */ + port { + pogo_pins_in: endpoint { + /* Endpoint filled in by board */ + }; + }; + }; +}; + &cros_ec { keyboard-controller { compatible = "google,cros-ec-keyb-switches";
arch/arm64/boot/dts/qcom/sc7180-trogdor-homestar.dtsi +47 -0
59 lines not on this page · raw message
arch/arm64/boot/dts/qcom/sc7180-trogdor-kingoftown.dts +55 -0
61 lines not on this page · raw message
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor.dtsi +55 -0
61 lines not on this page · raw message
arch/arm64/boot/dts/qcom/sc7180-trogdor-pazquel.dtsi +55 -0
61 lines not on this page · raw message
arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom.dtsi +44 -0
54 lines not on this page · raw message
arch/arm64/boot/dts/qcom/sc7180-trogdor-quackingstick.dtsi +31 -0
@@ -105,6 +105,17 @@ &sdhc_2 { status = "okay"; }; +&pogo_pins { + keyboard@1 { + compatible = "usb18d1,505b"; + reg = <1>; + }; +}; + +&pogo_pins_in { + remote-endpoint = <&usb_hub_dfp1_hs>; +}; + &pp1800_uf_cam { status = "okay"; };
@@ -129,11 +140,31 @@ pp3300_disp_on: &pp3300_dx_edp { gpio = <&tlmm 67 GPIO_ACTIVE_HIGH>; }; +&usb_c0_hs { + remote-endpoint = <&usb_hub_dfp2_hs>; +}; + +&usb_c0_ss { + remote-endpoint = <&usb_hub_dfp2_ss>; +}; + /* This board only has 1 USB Type-C port. */ &usb_c1 { status = "disabled"; }; +&usb_hub_dfp2_hs { + remote-endpoint = <&usb_c0_hs>; +}; + +&usb_hub_dfp2_ss { + remote-endpoint = <&usb_c0_ss>; +}; + +&usb_hub_dfp1_hs { + remote-endpoint = <&pogo_pins_in>; +}; + /* PINCTRL - modifications to sc7180-trogdor.dtsi */ /*
arch/arm64/boot/dts/qcom/sc7180-trogdor-r1.dts +54 -2
66 lines not on this page · raw message
arch/arm64/boot/dts/qcom/sc7180-trogdor-wormdingler.dtsi +47 -0
59 lines not on this page · raw message
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +109 -0
133 lines not on this page · raw message
Signature · 1 line
https://chromeos.dev