forked from luck/tmp_suning_uos_patched
dt-bindings: Changes for v5.10-rc1
This set of changes adds compatible strings for Tegra234 to existing device tree bindings. -----BEGIN PGP SIGNATURE----- iQJHBAABCAAxFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAl9kyicTHHRyZWRpbmdA bnZpZGlhLmNvbQAKCRDdI6zXfz6zoU0CD/4u3fv5Z3UlNZFGk2XO/LBJabE8S9X2 77HyC+xh9///HrGtMO1H3Va8BHn1bPItiiTY73GyyI7usi1B+Won9Z8EhPN4SW+c OptvXsiuUtLAmx0/Q+rJb8YPhJ+GwOS73XW7JUafyR6gsqRGM+WQOg2GMJthTw+G 0PxpjvfS2Jb2K1M9zWgnHT1vxpbDUvBrCGqX++/8vAa3r+XdCiBGEdBlQslmzREg qhtWXqueszkUeJlFrsNBEZZesR7umjsmLAa/bWrf1nyyDkDsmSwZRwxfyHxrB/iE 0Ipg6J374tKfmXjSXVz/Bt1HvQzzlEAT0/tWSkZtURthkvQnAOz0muhb+Oo+ui3O GKhiVNqXvtnpVOrH9mnbtn2kGm6f+tJAhYs7eX9GVOKrbORo4GV2gYa5tc21j9QX hpzUL7h9kA7T/sRTtlO8gadAVYLimWrQaqNAaCdblqqnchWXYM9TEpR+CDDIT1mj DARnoP9+XFKyLbuf4tKEj0wnSsbLy6q9zsBjN+Ob5vHKSt4VeM+wMQ9wJE0yGpZX KUcLgPovJ22P9P+8My7ezjowc2HbsU4r3aZSOtSneuhWvIIcK8onUCu+sOozCzPo 63tS8BlFolaJ+/bwbSPldKJBhNOndWfzJZvkzGjatZSODn1obyE+4D79PqbFWOq5 JKRHxsRjkRlSuQ== =bnbf -----END PGP SIGNATURE----- Merge tag 'tegra-for-5.10-dt-bindings' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux into arm/dt dt-bindings: Changes for v5.10-rc1 This set of changes adds compatible strings for Tegra234 to existing device tree bindings. * tag 'tegra-for-5.10-dt-bindings' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux: dt-bindings: power: supply: Add device-tree binding for Summit SMB3xx dt-bindings: tegra: pmc: Add Tegra234 support dt-bindings: fuse: tegra: Add Tegra234 support dt-bindings: tegra: Add Tegra234 VDK compatible dt-bindings: misc: tegra186-misc: Add Tegra234 support dt-bindings: misc: tegra186-misc: Add missing compatible string dt-bindings: misc: tegra-apbmisc: Add missing compatible strings Link: https://lore.kernel.org/r/20200918150303.3938852-1-thierry.reding@gmail.com Signed-off-by: Olof Johansson <olof@lixom.net>
This commit is contained in:
commit
61d5d791cb
|
@ -119,3 +119,7 @@ properties:
|
|||
items:
|
||||
- const: nvidia,p3509-0000+p3668-0000
|
||||
- const: nvidia,tegra194
|
||||
- items:
|
||||
- enum:
|
||||
- nvidia,tegra234-vdk
|
||||
- const: nvidia,tegra234
|
||||
|
|
|
@ -4,6 +4,7 @@ Required properties:
|
|||
- compatible: Should contain one of the following:
|
||||
- "nvidia,tegra186-pmc": for Tegra186
|
||||
- "nvidia,tegra194-pmc": for Tegra194
|
||||
- "nvidia,tegra234-pmc": for Tegra234
|
||||
- reg: Must contain an (offset, length) pair of the register set for each
|
||||
entry in reg-names.
|
||||
- reg-names: Must include the following entries:
|
||||
|
@ -11,7 +12,7 @@ Required properties:
|
|||
- "wake"
|
||||
- "aotag"
|
||||
- "scratch"
|
||||
- "misc" (Only for Tegra194)
|
||||
- "misc" (Only for Tegra194 and later)
|
||||
|
||||
Optional properties:
|
||||
- nvidia,invert-interrupt: If present, inverts the PMU interrupt signal.
|
||||
|
|
|
@ -7,6 +7,7 @@ Required properties:
|
|||
For Tegra132 must contain "nvidia,tegra132-efuse", "nvidia,tegra124-efuse".
|
||||
For Tegra210 must contain "nvidia,tegra210-efuse". For Tegra186 must contain
|
||||
"nvidia,tegra186-efuse". For Tegra194 must contain "nvidia,tegra194-efuse".
|
||||
For Tegra234 must contain "nvidia,tegra234-efuse".
|
||||
Details:
|
||||
nvidia,tegra20-efuse: Tegra20 requires using APB DMA to read the fuse data
|
||||
due to a hardware bug. Tegra20 also lacks certain information which is
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
NVIDIA Tegra186 MISC register block
|
||||
NVIDIA Tegra186 (and later) MISC register block
|
||||
|
||||
The MISC register block found on Tegra186 SoCs contains registers that can be
|
||||
used to identify a given chip and various strapping options.
|
||||
The MISC register block found on Tegra186 and later SoCs contains registers
|
||||
that can be used to identify a given chip and various strapping options.
|
||||
|
||||
Required properties:
|
||||
- compatible: Must be:
|
||||
- Tegra186: "nvidia,tegra186-misc"
|
||||
- Tegra194: "nvidia,tegra194-misc"
|
||||
- Tegra234: "nvidia,tegra234-misc"
|
||||
- reg: Should contain 2 entries: The first entry gives the physical address
|
||||
and length of the register region which contains revision and debug
|
||||
features. The second entry specifies the physical address and length
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
NVIDIA Tegra20/Tegra30/Tegr114/Tegra124 apbmisc block
|
||||
NVIDIA Tegra APBMISC block
|
||||
|
||||
Required properties:
|
||||
- compatible : For Tegra20, must be "nvidia,tegra20-apbmisc". For Tegra30,
|
||||
must be "nvidia,tegra30-apbmisc". Otherwise, must contain
|
||||
"nvidia,<chip>-apbmisc", plus one of the above, where <chip> is tegra114,
|
||||
tegra124, tegra132.
|
||||
- compatible: Must be:
|
||||
- Tegra20: "nvidia,tegra20-apbmisc"
|
||||
- Tegra30: "nvidia,tegra30-apbmisc", "nvidia,tegra20-apbmisc"
|
||||
- Tegra114: "nvidia,tegra114-apbmisc", "nvidia,tegra20-apbmisc"
|
||||
- Tegra124: "nvidia,tegra124-apbmisc", "nvidia,tegra20-apbmisc"
|
||||
- Tegra132: "nvidia,tegra124-apbmisc", "nvidia,tegra20-apbmisc"
|
||||
- Tegra210: "nvidia,tegra210-apbmisc", "nvidia,tegra20-apbmisc"
|
||||
- reg: Should contain 2 entries: the first entry gives the physical address
|
||||
and length of the registers which contain revision and debug features.
|
||||
The second entry gives the physical address and length of the
|
||||
|
|
|
@ -0,0 +1,152 @@
|
|||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
||||
%YAML 1.2
|
||||
---
|
||||
$id: "http://devicetree.org/schemas/power/supply/summit,smb347-charger.yaml#"
|
||||
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
|
||||
|
||||
title: Battery charger driver for SMB345, SMB347 and SMB358
|
||||
|
||||
maintainers:
|
||||
- David Heidelberg <david@ixit.cz>
|
||||
- Dmitry Osipenko <digetx@gmail.com>
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
enum:
|
||||
- summit,smb345
|
||||
- summit,smb347
|
||||
- summit,smb358
|
||||
|
||||
reg:
|
||||
maxItems: 1
|
||||
|
||||
interrupts:
|
||||
maxItems: 1
|
||||
|
||||
monitored-battery:
|
||||
description: phandle to the battery node
|
||||
$ref: /schemas/types.yaml#/definitions/phandle
|
||||
|
||||
summit,enable-usb-charging:
|
||||
type: boolean
|
||||
description: Enable charging through USB.
|
||||
|
||||
summit,enable-otg-charging:
|
||||
type: boolean
|
||||
description: Provide power for USB OTG
|
||||
|
||||
summit,enable-mains-charging:
|
||||
type: boolean
|
||||
description: Enable charging through mains
|
||||
|
||||
summit,enable-charge-control:
|
||||
description: Enable charging control
|
||||
$ref: /schemas/types.yaml#/definitions/uint32
|
||||
enum:
|
||||
- 0 # SMB3XX_CHG_ENABLE_SW SW (I2C interface)
|
||||
- 1 # SMB3XX_CHG_ENABLE_PIN_ACTIVE_LOW Pin control (Active Low)
|
||||
- 2 # SMB3XX_CHG_ENABLE_PIN_ACTIVE_HIGH Pin control (Active High)
|
||||
|
||||
summit,fast-voltage-threshold-microvolt:
|
||||
description: Voltage threshold to transit to fast charge mode (in uV)
|
||||
minimum: 2400000
|
||||
maximum: 3000000
|
||||
|
||||
summit,mains-current-limit-microamp:
|
||||
description: Maximum input current from AC/DC input (in uA)
|
||||
|
||||
summit,usb-current-limit-microamp:
|
||||
description: Maximum input current from USB input (in uA)
|
||||
|
||||
summit,charge-current-compensation-microamp:
|
||||
description: Charge current compensation (in uA)
|
||||
|
||||
summit,chip-temperature-threshold-celsius:
|
||||
description: Chip temperature for thermal regulation in °C.
|
||||
enum: [100, 110, 120, 130]
|
||||
|
||||
summit,soft-compensation-method:
|
||||
description: Soft temperature limit compensation method
|
||||
$ref: /schemas/types.yaml#/definitions/uint32
|
||||
enum:
|
||||
- 0 # SMB3XX_SOFT_TEMP_COMPENSATE_NONE Compensation none
|
||||
- 1 # SMB3XX_SOFT_TEMP_COMPENSATE_CURRENT Current compensation
|
||||
- 2 # SMB3XX_SOFT_TEMP_COMPENSATE_VOLTAGE Voltage compensation
|
||||
|
||||
allOf:
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
enum:
|
||||
- summit,smb345
|
||||
- summit,smb358
|
||||
|
||||
then:
|
||||
properties:
|
||||
summit,mains-current-limit-microamp:
|
||||
enum: [ 300000, 500000, 700000, 1000000,
|
||||
1500000, 1800000, 2000000]
|
||||
|
||||
summit,usb-current-limit-microamp:
|
||||
enum: [ 300000, 500000, 700000, 1000000,
|
||||
1500000, 1800000, 2000000]
|
||||
|
||||
summit,charge-current-compensation-microamp:
|
||||
enum: [200000, 450000, 600000, 900000]
|
||||
|
||||
else:
|
||||
properties:
|
||||
summit,mains-current-limit-microamp:
|
||||
enum: [ 300000, 500000, 700000, 900000, 1200000,
|
||||
1500000, 1800000, 2000000, 2200000, 2500000]
|
||||
|
||||
summit,usb-current-limit-microamp:
|
||||
enum: [ 300000, 500000, 700000, 900000, 1200000,
|
||||
1500000, 1800000, 2000000, 2200000, 2500000]
|
||||
|
||||
summit,charge-current-compensation-microamp:
|
||||
enum: [250000, 700000, 900000, 1200000]
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
|
||||
anyOf:
|
||||
- required:
|
||||
- summit,enable-usb-charging
|
||||
- required:
|
||||
- summit,enable-otg-charging
|
||||
- required:
|
||||
- summit,enable-mains-charging
|
||||
|
||||
additionalProperties: false
|
||||
|
||||
examples:
|
||||
- |
|
||||
#include <dt-bindings/power/summit,smb347-charger.h>
|
||||
|
||||
i2c {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
charger@7f {
|
||||
compatible = "summit,smb347";
|
||||
reg = <0x7f>;
|
||||
|
||||
summit,enable-charge-control = <SMB3XX_CHG_ENABLE_PIN_ACTIVE_HIGH>;
|
||||
summit,chip-temperature-threshold-celsius = <110>;
|
||||
summit,mains-current-limit-microamp = <2000000>;
|
||||
summit,usb-current-limit-microamp = <500000>;
|
||||
summit,enable-usb-charging;
|
||||
summit,enable-mains-charging;
|
||||
|
||||
monitored-battery = <&battery>;
|
||||
};
|
||||
};
|
||||
|
||||
battery: battery-cell {
|
||||
compatible = "simple-battery";
|
||||
constant-charge-current-max-microamp = <1800000>;
|
||||
operating-range-celsius = <0 45>;
|
||||
alert-celsius = <3 42>;
|
||||
};
|
19
include/dt-bindings/power/summit,smb347-charger.h
Normal file
19
include/dt-bindings/power/summit,smb347-charger.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
/* SPDX-License-Identifier: (GPL-2.0-or-later or MIT) */
|
||||
/*
|
||||
* Author: David Heidelberg <david@ixit.cz>
|
||||
*/
|
||||
|
||||
#ifndef _DT_BINDINGS_SMB347_CHARGER_H
|
||||
#define _DT_BINDINGS_SMB347_CHARGER_H
|
||||
|
||||
/* Charging compensation method */
|
||||
#define SMB3XX_SOFT_TEMP_COMPENSATE_NONE 0
|
||||
#define SMB3XX_SOFT_TEMP_COMPENSATE_CURRENT 1
|
||||
#define SMB3XX_SOFT_TEMP_COMPENSATE_VOLTAGE 2
|
||||
|
||||
/* Charging enable control */
|
||||
#define SMB3XX_CHG_ENABLE_SW 0
|
||||
#define SMB3XX_CHG_ENABLE_PIN_ACTIVE_LOW 1
|
||||
#define SMB3XX_CHG_ENABLE_PIN_ACTIVE_HIGH 2
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user