diff options
Diffstat (limited to 'zephyr/dts/bindings/charger/chg-chip.yaml')
-rw-r--r-- | zephyr/dts/bindings/charger/chg-chip.yaml | 77 |
1 files changed, 32 insertions, 45 deletions
diff --git a/zephyr/dts/bindings/charger/chg-chip.yaml b/zephyr/dts/bindings/charger/chg-chip.yaml index 50e78756d9..58cc487b1b 100644 --- a/zephyr/dts/bindings/charger/chg-chip.yaml +++ b/zephyr/dts/bindings/charger/chg-chip.yaml @@ -1,20 +1,9 @@ -# Copyright (c) 2022 The Chromium OS Authors +# Copyright 2022 The ChromiumOS Authors # SPDX-License-Identifier: Apache-2.0 description: Charger chip -properties: - port: - type: phandle - required: true - description: | - I2C port used to communicate with charger chip - - i2c-addr-flags: - type: string - required: false - description: | - I2C address of charger chip +include: i2c-device.yaml # Example # The charger chips nodes have to be placed under the USB-C @@ -30,28 +19,30 @@ properties: # port0@0 { # compatible = "named-usbc-port"; # reg = <0>; -# bc12 { -# compatible = "pericom,pi3usb9201"; -# port = <&i2c_ec_i2c_usb_c0>; -# }; -# chg { -# compatible = "siliconmitus,sm5803"; -# status = "okay"; -# port = <&i2c_ec_i2c_usb_c0>; -# }; +# bc12 = <&bc12_port0>; +# chg = <&chg_port0>; # }; # port1@1 { # compatible = "named-usbc-port"; # reg = <1>; -# bc12 { -# compatible = "pericom,pi3usb9201"; -# port = <&i2c_ec_i2c_sub_usb_c1>; -# }; -# chg { -# compatible = "siliconmitus,sm5803"; -# status = "okay"; -# port = <&i2c_ec_i2c_sub_usb_c1>; -# }; +# bc12 = <&bc12_port1>; +# chg = <&chg_port1>; +# }; +# }; +# +# &i2c5 { +# chg_port0: sm5803@32 { +# compatible = "siliconmitus,sm5803"; +# status = "okay"; +# reg = <0x32>; +# }; +# }; +# +# &i2c4 { +# chg_port1: sm5803@32 { +# compatible = "siliconmitus,sm5803"; +# status = "okay"; +# reg = <0x32>; # }; # }; # @@ -63,23 +54,19 @@ properties: # port0@0 { # compatible = "named-usbc-port"; # reg = <0>; -# bc12 { -# compatible = "pericom,pi3usb9201"; -# port = <&i2c_ec_i2c_usb_c0>; -# }; -# chg { -# compatible = "siliconmitus,sm5803"; -# status = "okay"; -# port = <&i2c_ec_i2c_usb_c0>; -# }; +# chg = <&charger>; # }; # port1@1 { # compatible = "named-usbc-port"; # reg = <1>; -# bc12 { -# compatible = "pericom,pi3usb9201"; -# port = <&i2c_ec_i2c_sub_usb_c1>; -# }; +# bc12 = <&bc12_port1>; +# }; +# }; +# +# &i2c5 { +# charger: sm5803@32 { +# compatible = "siliconmitus,sm5803"; +# status = "okay"; +# reg = <0x32>; # }; # }; - |