Add graph connections between tcpc & fg for Pixel 6
cover Add graph connections between tcpc & fg for Pixel 6
max77759 Type-C controller supplies VBUS into & out of (depending on the charging mode) the battery in Pixel 6. In order to represent this relationship, we use graph to connect tcpc & fuel gauge.
Link to USB connector binding that this patchset uses:
- https://lore.kernel.org/all/[email protected]/
This patchset depends on the following:
- https://lore.kernel.org/all/[email protected]/
Amit Sunil Dhamne (2):
dt-bindings: power: supply: max17201: add port property
arm64: dts: exynos: gs101-pixel-common: add graph property to connect
tcpc & fg
.../bindings/power/supply/maxim,max17201.yaml | 5 +++++ .../boot/dts/exynos/google/gs101-pixel-common.dtsi | 14 ++++++++++++++ 2 files changed, 19 insertions(+)
base-commit: 92a09c47464d040866cf2b4cd052bc60555185fb
prerequisite-patch-id: 74aa0a6fc4a5c56d870bb15375fad1fe41ffc1e9
prerequisite-patch-id: 46f968300dcf5442e12d882ca23168494249d378
prerequisite-patch-id: 3ad83a2782819bca215bb267d36a1ff04fe557b2
prerequisite-patch-id: 86b5207d8f44255c36b1e600ecdf4f948c5da685
prerequisite-patch-id: a15532888ff2572696d9fa6a14775e8ebf590391
Signature · 1 line
2.49.0.987.g0cc8ee98dc-goog
PATCH 1/2 dt-bindings: power: supply: max17201: add port property
Add port binding to represent an endpoint that connects the power line from the battery to the Type-C port connector
--- .../devicetree/bindings/power/supply/maxim,max17201.yaml | 5 +++++ 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/power/supply/maxim,max17201.yaml +5 -0
@@ -32,6 +32,11 @@ properties: interrupts: maxItems: 1 + port: + $ref: /schemas/graph.yaml#/properties/port + description: OF graph endpoint representing power line (VBUS) connecting + with the Type-C port connector. + required: - compatible - reg
Signature · 1 line
2.49.0.987.g0cc8ee98dc-goog
PATCH 2/2 arm64: dts: exynos: gs101-pixel-common: add graph property to connect tcpc & fg
In reply to Amit Sunil DhamneAdd "port" binding to represent vbus/vchgin connection between tcpc connector & battery using OF graphs.
--- .../boot/dts/exynos/google/gs101-pixel-common.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/exynos/google/gs101-pixel-common.dtsi +14 -0
@@ -186,6 +186,14 @@ usbc0_role_sw: endpoint { remote-endpoint = <&usbdrd31_dwc3_role_switch>; }; }; + + port@3 { + reg = <3>; + + conn_batt_vbus: endpoint { + remote-endpoint = <&batt_conn_vbus>; + }; + }; }; }; };
@@ -197,6 +205,12 @@ fuel-gauge@36 { interrupt-parent = <&gpa9>; interrupts = <3 IRQ_TYPE_LEVEL_LOW>; shunt-resistor-micro-ohms = <5000>; + + port { + batt_conn_vbus: endpoint { + remote-endpoint = <&conn_batt_vbus>; + }; + }; }; };
Signature · 1 line
2.49.0.987.g0cc8ee98dc-goog
Rob Herring (Arm)
maintainerRe: [PATCH v1 1/2] dt-bindings: power: supply: max17201: add port property
In reply to Amit Sunil DhamneQuoted 8 lines · Amit Sunil Dhamne
Add port binding to represent an endpoint that connects the power line from the battery to the Type-C port connector
Signed-off-by Amit Sunil Dhamne <[email protected]>--- .../devicetree/bindings/power/supply/maxim,max17201.yaml | 5 +++++ 1 file changed, 5 insertions(+)
My bot found errors running 'make dt_binding_check' on your patch:
yamllint warnings/errors:
dtschema/dtc warnings/errors:
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/[email protected]
The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch.
If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:
pip3 install dtschema --upgrade
Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.
Rob Herring (Arm)
maintainerQuoted 20 lines · Amit Sunil Dhamne
max77759 Type-C controller supplies VBUS into & out of (depending on the charging mode) the battery in Pixel 6. In order to represent this relationship, we use graph to connect tcpc & fuel gauge.
Link to USB connector binding that this patchset uses:
- https://lore.kernel.org/all/[email protected]/This patchset depends on the following:
- https://lore.kernel.org/all/[email protected]/Amit Sunil Dhamne (2):
dt-bindings: power: supply: max17201: add port property
arm64: dts: exynos: gs101-pixel-common: add graph property to connect
tcpc & fg.../bindings/power/supply/maxim,max17201.yaml | 5 +++++ .../boot/dts/exynos/google/gs101-pixel-common.dtsi | 14 ++++++++++++++ 2 files changed, 19 insertions(+)
Quoted 11 lines
base-commit:
92a09c47464d040866cf2b4cd052bc60555185fb
prerequisite-patch-id:74aa0a6fc4a5c56d870bb15375fad1fe41ffc1e9
prerequisite-patch-id:46f968300dcf5442e12d882ca23168494249d378
prerequisite-patch-id:3ad83a2782819bca215bb267d36a1ff04fe557b2
prerequisite-patch-id:86b5207d8f44255c36b1e600ecdf4f948c5da685
prerequisite-patch-id:a15532888ff2572696d9fa6a14775e8ebf590391--
2.49.0.987.g0cc8ee98dc-goog
My bot found new DTB warnings on the .dts files added or changed in this series.
Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings are fixed by another series. Ultimately, it is up to the platform maintainer whether these warnings are acceptable or not. No need to reply unless the platform maintainer has comments.
If you already ran DT checks and didn't see these error(s), then make sure dt-schema is up to date:
pip3 install dtschema --upgrade
This patch series was applied (using b4) to base:
Base: using specified base-commit 92a09c47464d040866cf2b4cd052bc60555185fb
Deps: looking for dependencies matching 5 patch-ids
Deps: Applying prerequisite patch: [PATCH v3 1/5] power: supply: correct capacity computation
Deps: Applying prerequisite patch: [PATCH v3 2/5] power: supply: add support for max77759 fuel gauge
Deps: Applying prerequisite patch: [PATCH v3 3/5] dt-bindings: power: supply: add max77759-fg flavor
Deps: Applying prerequisite patch: [PATCH v3 4/5] arm64: defconfig: enable Maxim max1720x driver
Deps: Applying prerequisite patch: [PATCH v3 5/5] arm64: dts: exynos: gs101-oriole: enable Maxim max77759 fuel gauge
If this is not the correct base, please add 'base-commit' tag (or use b4 which does this automatically)
New warnings running 'make CHECK_DTBS=y for arch/arm64/boot/dts/exynos/' for [email protected]:
arch/arm64/boot/dts/exynos/google/gs101-oriole.dtb: fuel-gauge@36 (maxim,max77759-fg): reg: [[54]] is too short
from schema $id: http://devicetree.org/schemas/power/supply/maxim,max17201.yaml#arch/arm64/boot/dts/exynos/google/gs101-oriole.dtb: fuel-gauge@36 (maxim,max77759-fg): reg-names: ['m5'] is too short
from schema $id: http://devicetree.org/schemas/power/supply/maxim,max17201.yaml#arch/arm64/boot/dts/exynos/google/gs101-oriole.dtb: fuel-gauge@36 (maxim,max77759-fg): Unevaluated properties are not allowed ('reg-names' was unexpected)
from schema $id: http://devicetree.org/schemas/power/supply/maxim,max17201.yaml#arch/arm64/boot/dts/exynos/google/gs101-raven.dtb: fuel-gauge@36 (maxim,max77759-fg): reg: [[54]] is too short
from schema $id: http://devicetree.org/schemas/power/supply/maxim,max17201.yaml#arch/arm64/boot/dts/exynos/google/gs101-raven.dtb: fuel-gauge@36 (maxim,max77759-fg): reg-names: ['m5'] is too short
from schema $id: http://devicetree.org/schemas/power/supply/maxim,max17201.yaml#arch/arm64/boot/dts/exynos/google/gs101-raven.dtb: fuel-gauge@36 (maxim,max77759-fg): Unevaluated properties are not allowed ('reg-names' was unexpected)
from schema $id: http://devicetree.org/schemas/power/supply/maxim,max17201.yaml#