1ccd3517fSBjorn Andersson// SPDX-License-Identifier: BSD-3-Clause 2ccd3517fSBjorn Andersson/* 3ccd3517fSBjorn Andersson * Copyright (c) 2022, Linaro Limited 4ccd3517fSBjorn Andersson */ 5ccd3517fSBjorn Andersson 6ccd3517fSBjorn Andersson#include <dt-bindings/input/input.h> 7ccd3517fSBjorn Andersson#include <dt-bindings/interrupt-controller/irq.h> 8ccd3517fSBjorn Andersson#include <dt-bindings/spmi/spmi.h> 9ccd3517fSBjorn Andersson 10*448a7821SManivannan Sadhasivam/ { 11*448a7821SManivannan Sadhasivam thermal-zones { 12*448a7821SManivannan Sadhasivam pm8280_1_thermal: pm8280-1-thermal { 13*448a7821SManivannan Sadhasivam polling-delay-passive = <100>; 14*448a7821SManivannan Sadhasivam polling-delay = <0>; 15*448a7821SManivannan Sadhasivam thermal-sensors = <&pm8280_1_temp_alarm>; 16*448a7821SManivannan Sadhasivam 17*448a7821SManivannan Sadhasivam trips { 18*448a7821SManivannan Sadhasivam trip0 { 19*448a7821SManivannan Sadhasivam temperature = <95000>; 20*448a7821SManivannan Sadhasivam hysteresis = <0>; 21*448a7821SManivannan Sadhasivam type = "passive"; 22*448a7821SManivannan Sadhasivam }; 23*448a7821SManivannan Sadhasivam 24*448a7821SManivannan Sadhasivam trip1 { 25*448a7821SManivannan Sadhasivam temperature = <115000>; 26*448a7821SManivannan Sadhasivam hysteresis = <0>; 27*448a7821SManivannan Sadhasivam type = "critical"; 28*448a7821SManivannan Sadhasivam }; 29*448a7821SManivannan Sadhasivam }; 30*448a7821SManivannan Sadhasivam }; 31*448a7821SManivannan Sadhasivam 32*448a7821SManivannan Sadhasivam pm8280_2_thermal: pm8280-2-thermal { 33*448a7821SManivannan Sadhasivam polling-delay-passive = <100>; 34*448a7821SManivannan Sadhasivam polling-delay = <0>; 35*448a7821SManivannan Sadhasivam thermal-sensors = <&pm8280_2_temp_alarm>; 36*448a7821SManivannan Sadhasivam 37*448a7821SManivannan Sadhasivam trips { 38*448a7821SManivannan Sadhasivam trip0 { 39*448a7821SManivannan Sadhasivam temperature = <95000>; 40*448a7821SManivannan Sadhasivam hysteresis = <0>; 41*448a7821SManivannan Sadhasivam type = "passive"; 42*448a7821SManivannan Sadhasivam }; 43*448a7821SManivannan Sadhasivam 44*448a7821SManivannan Sadhasivam trip1 { 45*448a7821SManivannan Sadhasivam temperature = <115000>; 46*448a7821SManivannan Sadhasivam hysteresis = <0>; 47*448a7821SManivannan Sadhasivam type = "critical"; 48*448a7821SManivannan Sadhasivam }; 49*448a7821SManivannan Sadhasivam }; 50*448a7821SManivannan Sadhasivam }; 51*448a7821SManivannan Sadhasivam }; 52*448a7821SManivannan Sadhasivam}; 53*448a7821SManivannan Sadhasivam 54ccd3517fSBjorn Andersson&spmi_bus { 55ccd3517fSBjorn Andersson pmk8280: pmic@0 { 56ccd3517fSBjorn Andersson compatible = "qcom,pmk8350", "qcom,spmi-pmic"; 57ccd3517fSBjorn Andersson reg = <0x0 SPMI_USID>; 58ccd3517fSBjorn Andersson #address-cells = <1>; 59ccd3517fSBjorn Andersson #size-cells = <0>; 60ccd3517fSBjorn Andersson 61ccd3517fSBjorn Andersson pmk8280_pon: pon@1300 { 62ccd3517fSBjorn Andersson compatible = "qcom,pm8998-pon"; 63ccd3517fSBjorn Andersson reg = <0x1300>; 64ccd3517fSBjorn Andersson 65ccd3517fSBjorn Andersson pmk8280_pon_pwrkey: pwrkey { 66ccd3517fSBjorn Andersson compatible = "qcom,pmk8350-pwrkey"; 67ccd3517fSBjorn Andersson interrupts = <0x0 0x13 0x7 IRQ_TYPE_EDGE_BOTH>; 68ccd3517fSBjorn Andersson linux,code = <KEY_POWER>; 69ccd3517fSBjorn Andersson status = "disabled"; 70ccd3517fSBjorn Andersson }; 71ccd3517fSBjorn Andersson }; 72ccd3517fSBjorn Andersson }; 73ccd3517fSBjorn Andersson 74ccd3517fSBjorn Andersson pmc8280_1: pmic@1 { 75ccd3517fSBjorn Andersson compatible = "qcom,pm8350", "qcom,spmi-pmic"; 76ccd3517fSBjorn Andersson reg = <0x1 SPMI_USID>; 77ccd3517fSBjorn Andersson #address-cells = <1>; 78ccd3517fSBjorn Andersson #size-cells = <0>; 79ccd3517fSBjorn Andersson 806c82f40eSManivannan Sadhasivam pm8280_1_temp_alarm: temp-alarm@a00 { 816c82f40eSManivannan Sadhasivam compatible = "qcom,spmi-temp-alarm"; 826c82f40eSManivannan Sadhasivam reg = <0xa00>; 836c82f40eSManivannan Sadhasivam interrupts = <0x1 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; 846c82f40eSManivannan Sadhasivam #thermal-sensor-cells = <0>; 856c82f40eSManivannan Sadhasivam }; 866c82f40eSManivannan Sadhasivam 87ccd3517fSBjorn Andersson pmc8280_1_gpios: gpio@8800 { 88ccd3517fSBjorn Andersson compatible = "qcom,pm8350-gpio", "qcom,spmi-gpio"; 89ccd3517fSBjorn Andersson reg = <0x8800>; 90ccd3517fSBjorn Andersson gpio-controller; 91ccd3517fSBjorn Andersson gpio-ranges = <&pmc8280_1_gpios 0 0 10>; 92ccd3517fSBjorn Andersson #gpio-cells = <2>; 93ccd3517fSBjorn Andersson interrupt-controller; 94ccd3517fSBjorn Andersson #interrupt-cells = <2>; 95ccd3517fSBjorn Andersson }; 96ccd3517fSBjorn Andersson }; 97ccd3517fSBjorn Andersson 98ccd3517fSBjorn Andersson pmc8280c: pmic@2 { 99ccd3517fSBjorn Andersson compatible = "qcom,pm8350c", "qcom,spmi-pmic"; 100ccd3517fSBjorn Andersson reg = <0x2 SPMI_USID>; 101ccd3517fSBjorn Andersson #address-cells = <1>; 102ccd3517fSBjorn Andersson #size-cells = <0>; 103ccd3517fSBjorn Andersson 104ccd3517fSBjorn Andersson pmc8280c_gpios: gpio@8800 { 105ccd3517fSBjorn Andersson compatible = "qcom,pm8350c-gpio", "qcom,spmi-gpio"; 106ccd3517fSBjorn Andersson reg = <0x8800>; 107ccd3517fSBjorn Andersson gpio-controller; 108ccd3517fSBjorn Andersson gpio-ranges = <&pmc8280c_gpios 0 0 9>; 109ccd3517fSBjorn Andersson #gpio-cells = <2>; 110ccd3517fSBjorn Andersson interrupt-controller; 111ccd3517fSBjorn Andersson #interrupt-cells = <2>; 112ccd3517fSBjorn Andersson }; 113ccd3517fSBjorn Andersson 1147dac7991SBhupesh Sharma pmc8280c_lpg: pwm { 115ccd3517fSBjorn Andersson compatible = "qcom,pm8350c-pwm"; 116ccd3517fSBjorn Andersson 117ccd3517fSBjorn Andersson #address-cells = <1>; 118ccd3517fSBjorn Andersson #size-cells = <0>; 119ccd3517fSBjorn Andersson 120ccd3517fSBjorn Andersson #pwm-cells = <2>; 121ccd3517fSBjorn Andersson 122ccd3517fSBjorn Andersson status = "disabled"; 123ccd3517fSBjorn Andersson }; 124ccd3517fSBjorn Andersson }; 125ccd3517fSBjorn Andersson 126ccd3517fSBjorn Andersson pmc8280_2: pmic@3 { 127ccd3517fSBjorn Andersson compatible = "qcom,pm8350", "qcom,spmi-pmic"; 128ccd3517fSBjorn Andersson reg = <0x3 SPMI_USID>; 129ccd3517fSBjorn Andersson #address-cells = <1>; 130ccd3517fSBjorn Andersson #size-cells = <0>; 131ccd3517fSBjorn Andersson 1326c82f40eSManivannan Sadhasivam pm8280_2_temp_alarm: temp-alarm@a00 { 1336c82f40eSManivannan Sadhasivam compatible = "qcom,spmi-temp-alarm"; 1346c82f40eSManivannan Sadhasivam reg = <0xa00>; 1356c82f40eSManivannan Sadhasivam interrupts = <0x2 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; 1366c82f40eSManivannan Sadhasivam #thermal-sensor-cells = <0>; 1376c82f40eSManivannan Sadhasivam }; 1386c82f40eSManivannan Sadhasivam 139ccd3517fSBjorn Andersson pmc8280_2_gpios: gpio@8800 { 140ccd3517fSBjorn Andersson compatible = "qcom,pm8350-gpio", "qcom,spmi-gpio"; 141ccd3517fSBjorn Andersson reg = <0x8800>; 142ccd3517fSBjorn Andersson gpio-controller; 143ccd3517fSBjorn Andersson gpio-ranges = <&pmc8280_2_gpios 0 0 10>; 144ccd3517fSBjorn Andersson #gpio-cells = <2>; 145ccd3517fSBjorn Andersson interrupt-controller; 146ccd3517fSBjorn Andersson #interrupt-cells = <2>; 147ccd3517fSBjorn Andersson }; 148ccd3517fSBjorn Andersson }; 149ccd3517fSBjorn Andersson 150ccd3517fSBjorn Andersson pmr735a: pmic@4 { 151ccd3517fSBjorn Andersson compatible = "qcom,pmr735a", "qcom,spmi-pmic"; 152ccd3517fSBjorn Andersson reg = <0x4 SPMI_USID>; 153ccd3517fSBjorn Andersson #address-cells = <1>; 154ccd3517fSBjorn Andersson #size-cells = <0>; 155ccd3517fSBjorn Andersson 156ccd3517fSBjorn Andersson pmr735a_gpios: gpio@8800 { 157ccd3517fSBjorn Andersson compatible = "qcom,pmr735a-gpio", "qcom,spmi-gpio"; 158ccd3517fSBjorn Andersson reg = <0x8800>; 159ccd3517fSBjorn Andersson gpio-controller; 160ccd3517fSBjorn Andersson gpio-ranges = <&pmr735a_gpios 0 0 4>; 161ccd3517fSBjorn Andersson #gpio-cells = <2>; 162ccd3517fSBjorn Andersson interrupt-controller; 163ccd3517fSBjorn Andersson #interrupt-cells = <2>; 164ccd3517fSBjorn Andersson }; 165ccd3517fSBjorn Andersson }; 166ccd3517fSBjorn Andersson}; 167