18bab661aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 28bab661aSEmmanuel Vadot%YAML 1.2 38bab661aSEmmanuel Vadot--- 48bab661aSEmmanuel Vadot$id: http://devicetree.org/schemas/pwm/nvidia,tegra20-pwm.yaml# 58bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 68bab661aSEmmanuel Vadot 78bab661aSEmmanuel Vadottitle: NVIDIA Tegra PWFM controller 88bab661aSEmmanuel Vadot 98bab661aSEmmanuel Vadotmaintainers: 108bab661aSEmmanuel Vadot - Thierry Reding <thierry.reding@gmail.com> 118bab661aSEmmanuel Vadot - Jon Hunter <jonathanh@nvidia.com> 128bab661aSEmmanuel Vadot 138bab661aSEmmanuel Vadotproperties: 148bab661aSEmmanuel Vadot compatible: 158bab661aSEmmanuel Vadot oneOf: 168bab661aSEmmanuel Vadot - enum: 178bab661aSEmmanuel Vadot - nvidia,tegra20-pwm 188bab661aSEmmanuel Vadot - nvidia,tegra186-pwm 198bab661aSEmmanuel Vadot 208bab661aSEmmanuel Vadot - items: 218bab661aSEmmanuel Vadot - enum: 228bab661aSEmmanuel Vadot - nvidia,tegra30-pwm 238bab661aSEmmanuel Vadot - nvidia,tegra114-pwm 248bab661aSEmmanuel Vadot - nvidia,tegra124-pwm 258bab661aSEmmanuel Vadot - nvidia,tegra132-pwm 268bab661aSEmmanuel Vadot - nvidia,tegra210-pwm 278bab661aSEmmanuel Vadot - enum: 288bab661aSEmmanuel Vadot - nvidia,tegra20-pwm 298bab661aSEmmanuel Vadot 308bab661aSEmmanuel Vadot - items: 318bab661aSEmmanuel Vadot - const: nvidia,tegra194-pwm 328bab661aSEmmanuel Vadot - const: nvidia,tegra186-pwm 338bab661aSEmmanuel Vadot 348bab661aSEmmanuel Vadot - items: 358bab661aSEmmanuel Vadot - const: nvidia,tegra234-pwm 368bab661aSEmmanuel Vadot - const: nvidia,tegra194-pwm 378bab661aSEmmanuel Vadot 388bab661aSEmmanuel Vadot reg: 398bab661aSEmmanuel Vadot maxItems: 1 408bab661aSEmmanuel Vadot 418bab661aSEmmanuel Vadot clocks: 428bab661aSEmmanuel Vadot maxItems: 1 438bab661aSEmmanuel Vadot 448bab661aSEmmanuel Vadot resets: 458bab661aSEmmanuel Vadot items: 468bab661aSEmmanuel Vadot - description: module reset 478bab661aSEmmanuel Vadot 488bab661aSEmmanuel Vadot reset-names: 498bab661aSEmmanuel Vadot items: 508bab661aSEmmanuel Vadot - const: pwm 518bab661aSEmmanuel Vadot 528bab661aSEmmanuel Vadot "#pwm-cells": 538bab661aSEmmanuel Vadot const: 2 548bab661aSEmmanuel Vadot 558bab661aSEmmanuel Vadot pinctrl-names: 568bab661aSEmmanuel Vadot items: 578bab661aSEmmanuel Vadot - const: default 588bab661aSEmmanuel Vadot - const: sleep 598bab661aSEmmanuel Vadot 608bab661aSEmmanuel Vadot pinctrl-0: 618bab661aSEmmanuel Vadot description: configuration for the default/active state 628bab661aSEmmanuel Vadot 638bab661aSEmmanuel Vadot pinctrl-1: 648bab661aSEmmanuel Vadot description: configuration for the sleep state 658bab661aSEmmanuel Vadot 66*cb7aa33aSEmmanuel Vadot operating-points-v2: true 678bab661aSEmmanuel Vadot 688bab661aSEmmanuel Vadot power-domains: 698bab661aSEmmanuel Vadot items: 708bab661aSEmmanuel Vadot - description: phandle to the core power domain 718bab661aSEmmanuel Vadot 728bab661aSEmmanuel VadotallOf: 738bab661aSEmmanuel Vadot - $ref: pwm.yaml 748bab661aSEmmanuel Vadot 758bab661aSEmmanuel Vadotrequired: 768bab661aSEmmanuel Vadot - compatible 778bab661aSEmmanuel Vadot - reg 788bab661aSEmmanuel Vadot - clocks 798bab661aSEmmanuel Vadot - resets 808bab661aSEmmanuel Vadot - reset-names 818bab661aSEmmanuel Vadot 828bab661aSEmmanuel VadotadditionalProperties: false 838bab661aSEmmanuel Vadot 848bab661aSEmmanuel Vadotexamples: 858bab661aSEmmanuel Vadot - | 868bab661aSEmmanuel Vadot #include <dt-bindings/clock/tegra20-car.h> 878bab661aSEmmanuel Vadot 888bab661aSEmmanuel Vadot pwm: pwm@7000a000 { 898bab661aSEmmanuel Vadot compatible = "nvidia,tegra20-pwm"; 908bab661aSEmmanuel Vadot reg = <0x7000a000 0x100>; 918bab661aSEmmanuel Vadot #pwm-cells = <2>; 928bab661aSEmmanuel Vadot clocks = <&tegra_car TEGRA20_CLK_PWM>; 938bab661aSEmmanuel Vadot resets = <&tegra_car 17>; 948bab661aSEmmanuel Vadot reset-names = "pwm"; 958bab661aSEmmanuel Vadot }; 96