diff options
Diffstat (limited to 'zephyr/dts')
18 files changed, 221 insertions, 75 deletions
diff --git a/zephyr/dts/bindings/battery/battery-smart.yaml b/zephyr/dts/bindings/battery/battery-smart.yaml index 60c7360460..74deb224b2 100644 --- a/zephyr/dts/bindings/battery/battery-smart.yaml +++ b/zephyr/dts/bindings/battery/battery-smart.yaml @@ -13,6 +13,7 @@ properties: enum: - "aec,5477109" - "atl,cfd72" + - "bms-gf,cr50" - "byd,l22b3pg0" - "byd,wv3k8" - "cdt,c340152" @@ -54,6 +55,7 @@ properties: - "smp,l20m3pg0" - "smp,l20m3pg1" - "smp,l20m3pg2" + - "smp,l21m4pg0" - "smp,l22m3pg0" - "smp,l22m3pg1" - "smp,pc-vp-bp153" diff --git a/zephyr/dts/bindings/battery/bms-gf,cr50.yaml b/zephyr/dts/bindings/battery/bms-gf,cr50.yaml new file mode 100644 index 0000000000..cd5cc8c05a --- /dev/null +++ b/zephyr/dts/bindings/battery/bms-gf,cr50.yaml @@ -0,0 +1,53 @@ +description: "BMS-GF CR50" +compatible: "bms-gf,cr50" + +include: battery-smart.yaml + +properties: + enum-name: + type: string + default: "bms-gf,cr50" + + # Fuel gauge + manuf_name: + default: "BMS-GF" + device_name: + default: "CR50" + ship_mode_reg_addr: + default: 0x00 + ship_mode_reg_data: + default: [0x0010, 0x0010] + fet_mfgacc_support: + default: 0 + fet_reg_addr: + default: 0x43 + fet_reg_mask: + default: 0x0001 + fet_disconnect_val: + default: 0x0000 + fet_cfet_mask: + default: 0x0002 + fet_cfet_off_val: + default: 0x0000 + + # Battery info + voltage_max: + default: 17600 + voltage_normal: + default: 15000 + voltage_min: + default: 12000 + precharge_current: + default: 256 + start_charging_min_c: + default: 0 + start_charging_max_c: + default: 50 + charging_min_c: + default: 0 + charging_max_c: + default: 60 + discharging_min_c: + default: -20 + discharging_max_c: + default: 60 diff --git a/zephyr/dts/bindings/battery/smp,l21m4pg0.yaml b/zephyr/dts/bindings/battery/smp,l21m4pg0.yaml new file mode 100644 index 0000000000..6f3f093fa8 --- /dev/null +++ b/zephyr/dts/bindings/battery/smp,l21m4pg0.yaml @@ -0,0 +1,53 @@ +# Copyright 2023 The ChromiumOS Authors +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +description: "SMP L21M4PG0" +compatible: "smp,l21m4pg0" + +include: battery-smart.yaml + +properties: + enum-name: + type: string + default: "smp,l21m4pg0" + + # Fuel gauge + manuf_name: + default: "SMP" + device_name: + default: "L21M4PG0" + ship_mode_reg_addr: + default: 0x34 + ship_mode_reg_data: + default: [0x0000, 0x1000] + fet_mfgacc_support: + default: 0 + fet_reg_addr: + default: 0x34 + fet_reg_mask: + default: 0x0100 + fet_disconnect_val: + default: 0x0100 + + # Battery info + voltage_max: + default: 8900 + voltage_normal: + default: 7720 + voltage_min: + default: 6000 + precharge_current: + default: 274 + start_charging_min_c: + default: 0 + start_charging_max_c: + default: 50 + charging_min_c: + default: 0 + charging_max_c: + default: 60 + discharging_min_c: + default: -20 + discharging_max_c: + default: 60 diff --git a/zephyr/dts/bindings/cros_kb_raw/ite,it8xxx2-cros-kb-raw.yaml b/zephyr/dts/bindings/cros_kb_raw/ite,it8xxx2-cros-kb-raw.yaml index 2b50f09474..134a036dbd 100644 --- a/zephyr/dts/bindings/cros_kb_raw/ite,it8xxx2-cros-kb-raw.yaml +++ b/zephyr/dts/bindings/cros_kb_raw/ite,it8xxx2-cros-kb-raw.yaml @@ -5,7 +5,7 @@ description: ITE, it8xxx2-cros-kb-raw node compatible: "ite,it8xxx2-cros-kb-raw" -include: base.yaml +include: [base.yaml, pinctrl-device.yaml] properties: reg: @@ -22,3 +22,9 @@ properties: EC or not. Via this controller, we set the wakeup trigger edge, enable, disable, and clear wakeup status for the specific pin which may be gpio pins or alternate pins. + + pinctrl-0: + required: true + + pinctrl-names: + required: true diff --git a/zephyr/dts/bindings/cros_pwr_signal/mediatek,mt8188-power-signal-list.yaml b/zephyr/dts/bindings/cros_pwr_signal/mediatek,mt8188-power-signal-list.yaml new file mode 100644 index 0000000000..9c782d13d3 --- /dev/null +++ b/zephyr/dts/bindings/cros_pwr_signal/mediatek,mt8188-power-signal-list.yaml @@ -0,0 +1,21 @@ +# Copyright 2023 Google LLC +# SPDX-License-Identifier: Apache-2.0 + +description: MediaTek MT8188, Power Signal List +compatible: "mediatek,mt8188-power-signal-list" + +include: power-signal-list.yaml + +properties: + power-signals-required: + default: 5 + +child-binding: + properties: + power-enum-name: + enum: + - AP_IN_RST + - AP_IN_S3 + - AP_WDT_ASSERTED + - AP_WARM_RST_REQ + - PG_PP4200_S5 diff --git a/zephyr/dts/bindings/cros_shi/ite,it8xxx2-cros-shi.yaml b/zephyr/dts/bindings/cros_shi/ite,it8xxx2-cros-shi.yaml deleted file mode 100644 index 6ac4c501f9..0000000000 --- a/zephyr/dts/bindings/cros_shi/ite,it8xxx2-cros-shi.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright 2021 The ChromiumOS Authors -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -description: ITE, IT8XXX2 Serial Host Interface (SHI) node - -compatible: "ite,it8xxx2-cros-shi" - -include: [base.yaml, pinctrl-device.yaml] - -properties: - reg: - required: true - - pinctrl-0: - required: true - - pinctrl-names: - required: true diff --git a/zephyr/dts/bindings/cros_shi/nuvoton,npcx-cros-shi.yaml b/zephyr/dts/bindings/cros_shi/nuvoton,npcx-cros-shi.yaml deleted file mode 100644 index af7f98f9bb..0000000000 --- a/zephyr/dts/bindings/cros_shi/nuvoton,npcx-cros-shi.yaml +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 2021 Google LLC -# SPDX-License-Identifier: Apache-2.0 - -description: Nuvoton, NPCX Serial Host Interface (SHI) node - -compatible: "nuvoton,npcx-cros-shi" - -include: [base.yaml, pinctrl-device.yaml] - -properties: - reg: - description: mmio register space - required: true - - clocks: - required: true - description: configurations of device source clock controller - - pinctrl-0: - required: true - - pinctrl-1: - required: false - - pinctrl-names: - required: true - - shi-cs-wui: - type: phandle - required: true - description: | - Mapping table between Wake-Up Input (WUI) and SHI_CS signal. - - For example the WUI mapping on NPCX7 would be - shi-cs-wui = <&wui_io53>; diff --git a/zephyr/dts/bindings/emul/tcpci.yaml b/zephyr/dts/bindings/emul/tcpci.yaml index 899a6ebea4..2a10209fdd 100644 --- a/zephyr/dts/bindings/emul/tcpci.yaml +++ b/zephyr/dts/bindings/emul/tcpci.yaml @@ -7,8 +7,14 @@ description: Common TCPCI properties include: base.yaml properties: - alert_gpio: - type: phandle + irq-gpios: + type: phandle-array required: false - description: - Reference to Alert# GPIO. + description: | + Interrupt from TCPC using shim driver + + int-pin: + type: phandles + required: false + description: | + Interrupt from TCPC using gpio-int diff --git a/zephyr/dts/bindings/gpio/gpio-enum-name.yaml b/zephyr/dts/bindings/gpio/gpio-enum-name.yaml index 5041b0646a..74b40f2acc 100644 --- a/zephyr/dts/bindings/gpio/gpio-enum-name.yaml +++ b/zephyr/dts/bindings/gpio/gpio-enum-name.yaml @@ -72,6 +72,7 @@ properties: - GPIO_PG_EC_ALL_SYS_PWRGD - GPIO_PG_EC_DSW_PWROK - GPIO_PG_EC_RSMRST_ODL + - GPIO_PG_PP4200_S5_OD - GPIO_PMIC_EC_PWRGD - GPIO_PMIC_KPD_PWR_ODL - GPIO_PMIC_RESIN_L diff --git a/zephyr/dts/bindings/power/ap-pwrseq-sub-states.yaml b/zephyr/dts/bindings/power/ap-pwrseq-sub-states.yaml new file mode 100644 index 0000000000..8632b7e7b5 --- /dev/null +++ b/zephyr/dts/bindings/power/ap-pwrseq-sub-states.yaml @@ -0,0 +1,21 @@ +# Copyright 2022 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +description: | + Define additional substates to be included in state machine. Use corresponding + macros to provide action handlers. +compatible: "ap-pwrseq-sub-states" + +properties: + chipset: + type: string-array + required: false + description: | + User defined power subtstates, use AP_POWER_CHIPSET_SUB_STATE_DEFINE, to define + substate action handler functions. + application: + type: string-array + required: false + description: | + User defined power subtstates, use AP_POWER_APP_SUB_STATE_DEFINE, to define + substate action handler functions. diff --git a/zephyr/dts/bindings/usbc/tcpc/analogix,anx7447-tcpc.yaml b/zephyr/dts/bindings/usbc/tcpc/analogix,anx7447-tcpc.yaml index 645ce7303b..ba25ccd683 100644 --- a/zephyr/dts/bindings/usbc/tcpc/analogix,anx7447-tcpc.yaml +++ b/zephyr/dts/bindings/usbc/tcpc/analogix,anx7447-tcpc.yaml @@ -10,7 +10,8 @@ properties: default: 0 description: | TCPC configuration flags - int-pin: - type: phandle + irq-gpios: + type: phandle-array required: false - description: Interrupt from TCPC + description: | + Interrupt from TCPC diff --git a/zephyr/dts/bindings/usbc/tcpc/cypress,ccgxxf.yaml b/zephyr/dts/bindings/usbc/tcpc/cypress,ccgxxf.yaml index 3e06ed38b6..89f1f78b63 100644 --- a/zephyr/dts/bindings/usbc/tcpc/cypress,ccgxxf.yaml +++ b/zephyr/dts/bindings/usbc/tcpc/cypress,ccgxxf.yaml @@ -14,7 +14,16 @@ properties: default: 0 description: | TCPC configuration flags + irq-gpios: + type: phandle-array + required: false + description: | + Interrupt from TCPC using shim driver int-pin: - type: phandle + type: phandles required: false - description: Interrupt from TCPC + deprecated: true + description: | + Interrupt from TCPC using gpio-int. This property should only be used when + CONFIG_PLATFORM_EC_TCPC_INTERRUPT=n and should be removed when the chip + uses the common TCPC driver. diff --git a/zephyr/dts/bindings/usbc/tcpc/fairchild,fusb302.yaml b/zephyr/dts/bindings/usbc/tcpc/fairchild,fusb302.yaml index 79b0df470e..c3f353cbf2 100644 --- a/zephyr/dts/bindings/usbc/tcpc/fairchild,fusb302.yaml +++ b/zephyr/dts/bindings/usbc/tcpc/fairchild,fusb302.yaml @@ -10,7 +10,16 @@ properties: default: 0 description: | TCPC configuration flags + irq-gpios: + type: phandle-array + required: false + description: | + Interrupt from TCPC using shim driver int-pin: - type: phandle + type: phandles required: false - description: Interrupt from TCPC + deprecated: true + description: | + Interrupt from TCPC using gpio-int. This property should only be used when + CONFIG_PLATFORM_EC_TCPC_INTERRUPT=n and should be removed when the chip + uses the common TCPC driver. diff --git a/zephyr/dts/bindings/usbc/tcpc/nuvoton,nct38xx.yaml b/zephyr/dts/bindings/usbc/tcpc/nuvoton,nct38xx.yaml index 78e1fbf7da..cfbe5a748f 100644 --- a/zephyr/dts/bindings/usbc/tcpc/nuvoton,nct38xx.yaml +++ b/zephyr/dts/bindings/usbc/tcpc/nuvoton,nct38xx.yaml @@ -21,7 +21,17 @@ properties: description: | TCPC configuration flags + irq-gpios: + type: phandle-array + required: false + description: | + Interrupt from TCPC using shim driver + int-pin: - type: phandle + type: phandles required: false - description: Interrupt from TCPC + deprecated: true + description: | + Interrupt from TCPC using gpio-int. This property should only be used when + CONFIG_PLATFORM_EC_TCPC_INTERRUPT=n and should be removed when the chip + uses the common TCPC driver. diff --git a/zephyr/dts/bindings/usbc/tcpc/parade,ps8xxx.yaml b/zephyr/dts/bindings/usbc/tcpc/parade,ps8xxx.yaml index f77d4a0c28..e6c2a9bbcb 100644 --- a/zephyr/dts/bindings/usbc/tcpc/parade,ps8xxx.yaml +++ b/zephyr/dts/bindings/usbc/tcpc/parade,ps8xxx.yaml @@ -10,7 +10,8 @@ properties: default: 0 description: | TCPC configuration flags - int-pin: - type: phandle + irq-gpios: + type: phandle-array required: false - description: Interrupt from TCPC + description: | + Interrupt from TCPC diff --git a/zephyr/dts/bindings/usbc/tcpc/renesas,raa489000.yaml b/zephyr/dts/bindings/usbc/tcpc/renesas,raa489000.yaml index f8dd9807ed..de6402d4ee 100644 --- a/zephyr/dts/bindings/usbc/tcpc/renesas,raa489000.yaml +++ b/zephyr/dts/bindings/usbc/tcpc/renesas,raa489000.yaml @@ -14,3 +14,8 @@ properties: default: 0 description: | TCPC configuration flags + irq-gpios: + type: phandle-array + required: false + description: | + Interrupt from TCPC diff --git a/zephyr/dts/bindings/usbc/tcpc/richtek,rt1718s-tcpc.yaml b/zephyr/dts/bindings/usbc/tcpc/richtek,rt1718s-tcpc.yaml index 0fed6b6380..8baa3ee550 100644 --- a/zephyr/dts/bindings/usbc/tcpc/richtek,rt1718s-tcpc.yaml +++ b/zephyr/dts/bindings/usbc/tcpc/richtek,rt1718s-tcpc.yaml @@ -14,7 +14,8 @@ properties: default: 0 description: | TCPC configuration flags - int-pin: - type: phandle + irq-gpios: + type: phandle-array required: false - description: Interrupt from TCPC + description: | + Interrupt from TCPC diff --git a/zephyr/dts/bindings/vendor-prefixes.txt b/zephyr/dts/bindings/vendor-prefixes.txt index 53dd2d4cfc..c04ca3b546 100644 --- a/zephyr/dts/bindings/vendor-prefixes.txt +++ b/zephyr/dts/bindings/vendor-prefixes.txt @@ -19,4 +19,5 @@ celxpert Battery vendor sunwoda Battery vendor cosmx Battery vendor dynapack Battery vendor -atl Battery vendor
\ No newline at end of file +atl Battery vendor +bms-gf Battery vendor
\ No newline at end of file |