From patchwork Fri Dec 4 13:06:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 337759 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp391420jai; Fri, 4 Dec 2020 05:09:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJzrHhPsEd6GgSmmxTq7RFI0whX6MJVYirbHQNGMSwcFBZG7+kcfzUNCmk+7PRunTcOPxlX4 X-Received: by 2002:a50:fe88:: with SMTP id d8mr7376711edt.36.1607087354197; Fri, 04 Dec 2020 05:09:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607087354; cv=none; d=google.com; s=arc-20160816; b=B7m2lKXI82wrwYYnweIukWBJ6RYC7GPCcslE7RfBLbYCTMd1XB0XM31yKTkWAD+HFp 7NN9e8jziQfSUFH2eAIeg1bWl0wJktD+OaSnq0gtZGYyVs3tB9sGuJKVveC5yP5mkDfd fVd7dg5C0jml1FMncC/gBo7RWIIhE0ceDL7unBiHlVv9/b20emXSlPL0GLAWg1JUa4Lq /IpE7+qSKVWSE5n0ZGmbKXTPc5yKZ7caT9NLY2lxYztfaS126os/v394ZCgm8vlvRTk9 plrCvZcYHNXbD7GQ9/n8JSBGtNf8fL9XWy/TOBuTFwboBtayQ9l6T8GkZf9HUjfDmvE+ 7/EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=1WPjmv54FTNqf7vO/idCcxqTa5h6NuxzDHhR2ohpt+E=; b=uhGPKT5Xj1sgtA6cf9J08peRcBF84Fs0uKuN31UMQ+VpHVdaHim1k6Kk1G877KRy9A 4d+9Tr38XYcpu1owEDEFgt6VurnpMABABGqIHynh1eZDMWhP+/RonE7ikuKBCB5Ed7aE 5qkjd8IQ6/PVmnIytVN17p4wEv1dt+bTIB1LlCUcuuReHylhtq5bNrsgJcUkDlAcu5sp 4V51VQoG6Rn6UvJ9b8i98iVPYi9itQsR3Pn68uQ7/XL0Mn7hDLwAKM6z4olZDhBjR4x4 qQi+A6cs0jLp4WKLuG6pRObEGRphOzrQ/nwM77sxNrnEFndNQ5D2hCHQCCvPfbPVrNjA HE5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WjMQos8L; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g35si2612972edd.391.2020.12.04.05.09.13; Fri, 04 Dec 2020 05:09:14 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WjMQos8L; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726024AbgLDNHk (ORCPT + 6 others); Fri, 4 Dec 2020 08:07:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727967AbgLDNHk (ORCPT ); Fri, 4 Dec 2020 08:07:40 -0500 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87040C061A4F for ; Fri, 4 Dec 2020 05:06:59 -0800 (PST) Received: by mail-lf1-x134.google.com with SMTP id t6so7505832lfl.13 for ; Fri, 04 Dec 2020 05:06:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1WPjmv54FTNqf7vO/idCcxqTa5h6NuxzDHhR2ohpt+E=; b=WjMQos8L1SPBMbMjaRzDUzgBUMCrqDZnfzdlJ75RnsKMNLIMdK9W18giJVpgU7PXV4 SmBsNFGZGcnOAUuHw3kuOIsWjUNijLGbwoC5OCMt/OeUIQP/XApXhZs1TSFmf6fCTYTO e1z3rRxXhiXz/3rc6isWXQeZarTOuGmbSffBd19Qoj3MjmasQAbO1EE1YyGrspw62qA8 tRbmEc4E+5qKvL12BMQ8rCIBaw+VCbg2MxpDpXdoBcizmEizYRXQNPqu188UmTvWjA/1 sP2VrCa4Dwg+0Q8/Sk8hbqbw6cn6+9RAi4CEC8cXZgqk/IR0qo1LqsHCyKPXc2kyPilN gQCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1WPjmv54FTNqf7vO/idCcxqTa5h6NuxzDHhR2ohpt+E=; b=BcaPta3yUR8obJBEEsHDpVx0tbbIP1Qgg7RQmEkOKra+G1tZ1yldOGXMdmG+593Ihk cYK2XjY/qanzETUpPjFkuLHYGz4hq5FOo/0RHl1/cAOBrq5rbTFZ/s60Z7iZzvhFVBGP xYrlWUXngIO0DcI5GHysEEkaktnV8zhykqxgjMOibhaXIDM9USufbZXO/Nz6HvCMNfCZ cNcrfPC0gl4Q0adRShdLlLkXOh3OeUKkjD3QHAg74xIymM7TUI7oGQZ38f8a4FaYbdIa BWf87Ei8Zm6GrCQPbWwy67GqS3gmHRpszVZL3kX6uWskESAxEwUlefk4+UVh6xPKZ+Od SW4Q== X-Gm-Message-State: AOAM532RcbRCkumLoi2rM7sxBImZOLovAoMaOvuLO5vOjIXpkKP+0fzm 2IC35/KgduZde8AyW94nU7k1Hg== X-Received: by 2002:ac2:442d:: with SMTP id w13mr3231369lfl.336.1607087217712; Fri, 04 Dec 2020 05:06:57 -0800 (PST) Received: from localhost.bredbandsbolaget (c-92d7225c.014-348-6c756e10.bbcust.telenor.se. [92.34.215.146]) by smtp.gmail.com with ESMTPSA id u15sm1656836lfl.116.2020.12.04.05.06.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2020 05:06:57 -0800 (PST) From: Linus Walleij To: lee.jones@linaro.org, linux-kernel@vger.kernel.org Cc: Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH] mfd: db8500-prcmu: Add devicetree bindings Date: Fri, 4 Dec 2020 14:06:55 +0100 Message-Id: <20201204130655.1591181-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This driver was merged in the early days of device tree on Arm in 2012 and somehow we failed to provide bindings for it. Fix it up with some YAML bindings. Cc: devicetree@vger.kernel.org Signed-off-by: Linus Walleij --- .../bindings/mfd/stericsson,db8500-prcmu.yaml | 282 ++++++++++++++++++ 1 file changed, 282 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/stericsson,db8500-prcmu.yaml -- 2.26.2 diff --git a/Documentation/devicetree/bindings/mfd/stericsson,db8500-prcmu.yaml b/Documentation/devicetree/bindings/mfd/stericsson,db8500-prcmu.yaml new file mode 100644 index 000000000000..10cb7d40ebf2 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/stericsson,db8500-prcmu.yaml @@ -0,0 +1,282 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/stericsson,db8500-prcmu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ST-Ericsson DB8500 PRCMU - Power Reset and Control Management Unit + +maintainers: + - Linus Walleij + +description: + The DB8500 Power Reset and Control Management Unit is an XP70 8-bit + microprocessor that is embedded in the always-on power domain of the + DB8500 SoCs to manage the low power states, powering up and down parts + of the silicon, and controlling reset of different IP blocks. + +properties: + $nodename: + pattern: '^prcmu@80157000$' + + compatible: + description: The device is compatible both to the device-specific + compatible "stericsson,db8500-prcmu" and "syscon". The latter + compatible is needed for the device to be exposed as a system + controller so that arbitrary registers can be access by + different operating system components. + items: + - const: stericsson,db8500-prcmu + - const: syscon + + reg: + items: + - description: Main PRCMU register area + - description: PRCMU TCPM register area + - description: PRCMU TCDM register area + + reg-names: + items: + - const: prcmu + - const: prcmu-tcpm + - const: prcmu-tcdm + + interrupts: + maxItems: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 1 + + ranges: true + + interrupt-controller: true + + '#interrupt-cells': + const: 2 + + db8500-prcmu-regulators: + description: Node describing the DB8500 regulators. These are mainly + power rails inside the silicon but some of those are also routed + out to external pins. + type: object + + properties: + compatible: + const: stericsson,db8500-prcmu-regulator + + db8500_vape: + description: The voltage for the application processor, the + main voltage domain for the chip. + type: object + $ref: ../regulator/regulator.yaml# + + db8500_varm: + description: The voltage for the ARM Cortex A-9 CPU. + type: object + $ref: ../regulator/regulator.yaml# + + db8500_vmodem: + description: The voltage for the modem subsystem. + type: object + $ref: ../regulator/regulator.yaml# + + db8500_vpll: + description: The voltage for the phase locked loop clocks. + type: object + $ref: ../regulator/regulator.yaml# + + db8500_vsmps1: + description: Also known as VIO12, is a step-down voltage regulator + for 1.2V I/O. SMPS means System Management Power Source. + type: object + $ref: ../regulator/regulator.yaml# + + db8500_vsmps2: + description: Also known as VIO18, is a step-down voltage regulator + for 1.8V I/O. SMPS means System Management Power Source. + type: object + $ref: ../regulator/regulator.yaml# + + db8500_vsmps3: + description: This is a step-down voltage regulator + for 0.87 thru 1.875V I/O. SMPS means System Management Power Source. + type: object + $ref: ../regulator/regulator.yaml# + + db8500_vrf1: + description: RF transciever voltage regulator. + type: object + $ref: ../regulator/regulator.yaml# + + db8500_sva_mmdsp: + description: Smart Video Accelerator (SVA) multimedia DSP (MMDSP) + voltage regulator. This is the voltage for the accelerator DSP + for video encoding and decoding. + type: object + $ref: ../regulator/regulator.yaml# + + db8500_sva_mmdsp_ret: + description: Smart Video Accelerator (SVA) multimedia DSP (MMDSP) + voltage regulator for retention mode. + type: object + $ref: ../regulator/regulator.yaml# + + db8500_sva_pipe: + description: Smart Video Accelerator (SVA) multimedia DSP (MMDSP) + voltage regulator for the data pipe. + type: object + $ref: ../regulator/regulator.yaml# + + db8500_sia_mmdsp: + description: Smart Image Accelerator (SIA) multimedia DSP (MMDSP) + voltage regulator. This is the voltage for the accelerator DSP + for image encoding and decoding. + type: object + $ref: ../regulator/regulator.yaml# + + db8500_sia_mmdsp_ret: + description: Smart Image Accelerator (SIA) multimedia DSP (MMDSP) + voltage regulator for retention mode. + type: object + $ref: ../regulator/regulator.yaml# + + db8500_sia_pipe: + description: Smart Image Accelerator (SIA) multimedia DSP (MMDSP) + voltage regulator for the data pipe. + type: object + $ref: ../regulator/regulator.yaml# + + db8500_sga: + description: Smart Graphics Accelerator (SGA) voltage regulator. + This is in effect controlling the power to the MALI400 3D + accelerator block. + type: object + $ref: ../regulator/regulator.yaml# + + db8500_b2r2_mcde: + description: Blit Blend Rotate and Rescale (B2R2), and Multi-Channel + Display Engine (MCDE) voltage regulator. These are two graphics + blocks. + type: object + $ref: ../regulator/regulator.yaml# + + db8500_esram12: + description: Embedded Static RAM (ESRAM) 1 and 2 voltage regulator. + type: object + $ref: ../regulator/regulator.yaml# + + db8500_esram12_ret: + description: Embedded Static RAM (ESRAM) 1 and 2 voltage regulator for + retention mode. + type: object + $ref: ../regulator/regulator.yaml# + + db8500_esram34: + description: Embedded Static RAM (ESRAM) 3 and 4 voltage regulator. + type: object + $ref: ../regulator/regulator.yaml# + + db8500_esram34_ret: + description: Embedded Static RAM (ESRAM) 3 and 4 voltage regulator for + retention mode. + type: object + $ref: ../regulator/regulator.yaml# + + required: + - compatible + - db8500_vape + - db8500_varm + - db8500_vmodem + - db8500_vpll + - db8500_vsmps1 + - db8500_vsmps2 + - db8500_vsmps3 + - db8500_vrf1 + - db8500_sva_mmdsp + - db8500_sva_mmdsp_ret + - db8500_sva_pipe + - db8500_sia_mmdsp + - db8500_sia_mmdsp_ret + - db8500_sia_pipe + - db8500_sga + - db8500_b2r2_mcde + - db8500_esram12 + - db8500_esram12_ret + - db8500_esram34 + - db8500_esram34_ret + + additionalProperties: false + + thermal@801573c0: + description: Node describing the DB8500 thermal control functions. + This binds to an operating system driver that monitors the + temperature of the SoC. + type: object + + properties: + compatible: + const: stericsson,db8500-thermal + + reg: + maxItems: 1 + + interrupts: + items: + - description: Hotmon low interrupt (falling temperature) + - description: Hotmon high interrupt (rising temperature) + + interrupt-names: + items: + - const: IRQ_HOTMON_LOW + - const: IRQ_HOTMON_HIGH + + '#thermal-sensor-cells': + const: 0 + + additionalProperties: false + + prcmu-timer-4@80157450: + description: Node describing the externally visible timer 4 in the + PRCMU block. This timer is interesting to the operating system + since even thought it has a very low resolution (32768 Hz) it is + always on, and thus provides a consistent monotonic timeline for + the system. + type: object + + properties: + compatible: + const: stericsson,db8500-prcmu-timer-4 + + reg: + maxItems: 1 + + additionalProperties: false + +patternProperties: + "^ab850[05]$": + description: Node describing the Analog Baseband 8500 mixed-signals + ASIC AB8500 and subcomponents. The AB8500 is accessed through the + PRCMU and hence it appears here. This component has a separate + set of devicetree bindings. The AB8505 is a newer version of the + same ASIC. + type: object + +required: + - compatible + - reg + - '#address-cells' + - '#size-cells' + - ranges + - interrupt-controller + - '#interrupt-cells' + - db8500-prcmu-regulators + - thermal@801573c0 + - prcmu-timer-4@80157450 + +dependencies: + interrupt-controller: [ interrupts ] + +additionalProperties: false