From nobody Wed Oct 1 23:46:52 2025 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 12AF12FDC57 for ; Mon, 29 Sep 2025 10:56:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759143420; cv=none; b=BbjvGQEDz6Ks724yuyuVZF6uAMZH/3/xMQQvMlqnTzeHe6oBNGahRpEbEp4ufBA5EZl0v6oQdRS8BTgfGM2IPwJEInMwg7yrxS/ZuRnBjmbSjfsVF27HhW620Mwn0sKnBl0eq1zWk8hvBhveD8CWcZFXJbv6iiNpU0p5AwdLHq8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759143420; c=relaxed/simple; bh=es2eQE3djkxxO7Qk3efIm3x2FtzFs1v6bsaNQwYnZRE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=btCqSxV233cL7qlLpm6nXpZJp311SJ1oD9XRRiEvHrG70ZiGVPJxFIb7V+jgVhjNKnswZC6soIJRjTSmJQHzJ1jFwJoIK0fl65reL1X4LalmdOXlwUW5SrzgXVa7560r+8u4mU97h5lYOyo1zSO7HoO5WVbTYS9THJnJzkOk2HA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=GHleWSt4; arc=none smtp.client-ip=209.85.214.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GHleWSt4" Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-27ee41e0798so53816445ad.1 for ; Mon, 29 Sep 2025 03:56:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1759143418; x=1759748218; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4PY8OmxrnVOq+prHUYZH2nnjzosZ3Ye7L/hjac8Ucls=; b=GHleWSt4ZnBKyLp2zmL55jpvSW4cBnRoWlDEcEiJOhSb23gIelWQM3FqkuWM+6SKP9 1/eoUchKd8o4jEcml7nyOMKFi9OhGejGn/Gjj8EG/+1Fdgd9G+AmZgpBMO/DZXIHXHZ7 LlKXetBRV2qAgTEKJSBbMxBEoIA84wB/EDfgqqdO32ihwFT46g7P6M/FFPJ+nLoWxCRx Rhn8w0ERw1p/eUVrVU2y+Hot4Thpy5eU/RHjsu7HCU47/RpgS8QrDqRkfckrajH1a516 n7XORpSzwgE5m8qkcC02CJg2fQl+0mfg6iIepbVAyG0mEKiVQvQDbuZWcFm/zekGhIEK Vcxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759143418; x=1759748218; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4PY8OmxrnVOq+prHUYZH2nnjzosZ3Ye7L/hjac8Ucls=; b=onDBTnAhyNyEV/2FhL1AoHYrlh0OdBm+KBCNbfEpU555diROeWpUrzWzUOCDsTOlZr F5PFqu59B/bNWsH5eHi8Ox1czgWR/dfKZktqAAc0xW/afteTI939iLU2Xb0PRt5K2mA4 yAwRINqsLF2bxILiOWQZimQmkwkwpA2idjNyGWlGHhFYd4KnFGggaom1jJC3VtMQLhbf XDK9xlqxHgKjtAMkd/Ea0nK6UDJek6NYBtRGR1O05zFATqrZylk3dx2S4umgi21h4/l5 rr7zf3K1zve4Lj8aY/wFhWID2SGdhQ6JaWbxiX61gi+CdVNGT1za6nsuCXET3dMvh5eD Rb0A== X-Forwarded-Encrypted: i=1; AJvYcCW2OMl8Pu2F6zEVPmemI98xERfNumNfl+xApwqWuBzsooH7T5IFBh9NGdHtOm4ZpsojUlBt7rn4xU1NWNw=@vger.kernel.org X-Gm-Message-State: AOJu0YwJsNU2F6rDBh4/wc6xv2H7sdfP+rjL8+cED37keeqwcDnnD32t YqV7RJPKjlt4MXFP/KqdJcS77p2gFO3K0Xy90Je8A7Ow3MfGAk4PGh05 X-Gm-Gg: ASbGncuRWRi+TEYOgXO5p95xaucl3dEH0DYufuVspvu+xLdhcGjXF3+Vvco0mSE4T4e 2F00S+argqnyfQm4xOoATZP1YEN6iKK0pAPjeAPrBHQyOpk+hxIoWrlvqkfJDPp00Ef6oVR2M1+ MAs7MyAHLo6QGymQXDtJ2Z7Bdg6J5v71TiQtAva4po3gLJUZ/5wqdUlzJ3QKUiEesHKlUjwHnno pvNhY0xUIbUFH98jfQS83fJvszzWqJUZw9ofQUatR73MaWc8gVGQGzzenwY0FP1lQiL/wKRZgGi KOSzJ8Kht+SdQjd185jiYm49RqSrqn7hC0hiQRBx/7yZplfrHEqk3hWDMy3mwR5GE+4zPWYT8wz vXqJ6GFWF/C7W1I+9hydon81pQYI3ry/aZ44qtkOghe2WU+CtCbSy X-Google-Smtp-Source: AGHT+IFjqe0V6bcffA7grVGYsuJAtlVGm62MbayVYnq93DK4PsVr92HZqeb0AfB8cpvkg7+9FmS0ww== X-Received: by 2002:a17:903:2847:b0:269:4741:6d33 with SMTP id d9443c01a7336-27ed49d2c35mr115317405ad.23.1759143418232; Mon, 29 Sep 2025 03:56:58 -0700 (PDT) Received: from HYB-iPCgmhaB8Cy.ad.analog.com ([59.9.235.253]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-28cef7db380sm4762325ad.107.2025.09.29.03.56.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Sep 2025 03:56:57 -0700 (PDT) From: Joan-Na-adi X-Google-Original-From: Joan-Na-adi To: Liam Girdwood Cc: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Joan Na Subject: [PATCH v2 3/3] dt-bindings: regulator: Add MAX77675 regulator binding Date: Mon, 29 Sep 2025 19:56:18 +0900 Message-Id: <20250929105618.177511-4-joan.na@analog.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250929105618.177511-1-joan.na@analog.com> References: <20250929105618.177511-1-joan.na@analog.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Joan Na Add device tree binding YAML schema for the Maxim MAX77675 PMIC regulator. This defines the node properties and supported regulator names for use in device tree sources. Signed-off-by: Joan Na --- .../bindings/regulator/maxim,max77675.yaml | 202 ++++++++++++++++++ 1 file changed, 202 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/maxim,max77= 675.yaml diff --git a/Documentation/devicetree/bindings/regulator/maxim,max77675.yam= l b/Documentation/devicetree/bindings/regulator/maxim,max77675.yaml new file mode 100644 index 000000000000..f93dfdc499bc --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/maxim,max77675.yaml @@ -0,0 +1,202 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/maxim,max77675.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim MAX77675 PMIC Regulator + +maintainers: + - Joan Na + +description: | + The MAX77675 is a PMIC providing multiple switching buck regulators + (SBB0=E2=80=93SBB3), accessible via I2C. Each SBB can be configured indi= vidually + in the Device Tree. Additional PMIC settings can be configured through + device-specific properties. + Users should use the macros from dt-bindings/regulator/maxim,max77675-re= gulator.h + +allOf: + - $ref: regulator.yaml# + +properties: + compatible: + const: maxim,max77675 + + reg: + maxItems: 1 + + maxim,dvs-slew-rate: + description: | + DVS slew rate setting. + 0 (MAX77675_DVS_SLEW_5MV) - 5 mV/=CE=BCs + 1 (MAX77675_DVS_SLEW_10MV) - 10 mV/=CE=BCs + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + + maxim,latency-mode: + description: | + Latency mode for voltage transition: + 0 (MAX77675_LAT_MODE_HIGH_LATENCY) - Low quiescent current, high lat= ency (~100=CE=BCs) + 1 (MAX77675_LAT_MODE_LOW_LATENCY) - High quiescent current, low late= ncy (~10=CE=BCs) + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + + maxim,drv-sbb-strength: + description: | + SIMO Buck-Boost Drive Strength Trim. + 0 (MAX77675_DRV_SBB_FASTEST) - Fastest transition (~0.6 ns) + 1 (MAX77675_DRV_SBB_FAST) - Faster transition (~1.2 ns) + 2 (MAX77675_DRV_SBB_MEDIUM) - Moderate transition (~1.8 ns) + 3 (MAX77675_DRV_SBB_SLOWEST) - Slowest transition (~8 ns) + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1, 2, 3] + + maxim,manual-reset-time: + description: | + Manual reset time in seconds: + 0 (MAX77675_MRT_4S): 4 seconds + 1 (MAX77675_MRT_8S): 8 seconds + 2 (MAX77675_MRT_12S): 12 seconds + 3 (MAX77675_MRT_16S): 16 seconds + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1, 2, 3] + + maxim,en-pullup-disable: + description: | + Disable internal pull-up for EN pin. + 0 (MAX77675_PU_EN): Internal pull-up enabled (default). + 1 (MAX77675_PU_DIS): Internal pull-up disabled. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + + maxim,bias-low-power-request: + description: | + Controls the bias low-power mode setting. + 0 (MAX77675_BIAS_NORMAL): Normal bias operation + 1 (MAX77675_BIAS_LPM_REQ): Request low-power bias mode + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + + maxim,simo-int-ldo-always-on: + description: | + SIMO internal channel disable configuration. + 0 (MAX77675_SIMO_INT_NORMAL): SIMO channel enabled + 1 (MAX77675_SIMO_INT_LDO): SIMO channel disabled + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + + maxim,en-mode: + description: | + Enable mode configuration. + 0 (MAX77675_EN_PUSH_BUTTON): Push button + 1 (MAX77675_EN_SLIDE_SWITCH): Slide switch + 2 (MAX77675_EN_LOGIC): Logic mode + 3 (MAX77675_EN_RESERVED): Reserved + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1, 2, 3] + + maxim,en-debounce-time: + description: | + Debounce timer enable. + 0 (MAX77675_DBEN_100US): 100us + 1 (MAX77675_DBEN_30MS): 30ms + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + + regulators: + type: object + description: Regulator child nodes + patternProperties: + "^sbb[0-3]$": + type: object + $ref: regulator.yaml# + properties: + maxim,fps-slot: + description: | + FPS slot selection. + 0 (MAX77675_FPS_SLOT_0): FPS Slot 0 + 1 (MAX77675_FPS_SLOT_1): FPS Slot 1 + 2 (MAX77675_FPS_SLOT_2): FPS Slot 2 + 3 (MAX77675_FPS_SLOT_3): FPS Slot 3 + 4 (MAX77675_FPS_NONE): No FPS Slot (disabled) + 5 (MAX77675_FPS_DEF): Use the defaul + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1, 2, 3, 4, 5] + + maxim,slew-rate-use-dvs: + description: | + 0 (MAX77675_SR_2MV_PER_US): Fixed slew rate of 2mV/=CE=BCs. + 1 (MAX77675_SR_USE_DVS): Uses maxim,dvs-slew-rate for dynamic vo= ltage scaling. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + additionalProperties: false + +required: + - compatible + - reg + - regulators + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + max77675: pmic@44 { + compatible =3D "maxim,max77675"; + reg =3D <0x44>; + + maxim,dvs-slew-rate =3D ; + maxim,latency-mode =3D ; + maxim,drv-sbb-strength =3D ; + maxim,manual-reset-time =3D ; + maxim,en-pullup-disable =3D ; + maxim,bias-low-power-request =3D ; + maxim,simo-int-ldo-always-on =3D ; + maxim,en-mode =3D ; + maxim,en-debounce-time =3D ; + + regulators { + sbb0: sbb0 { + regulator-name =3D "sbb0"; + regulator-min-microvolt =3D <500000>; + regulator-max-microvolt =3D <5500000>; + maxim,fps-slot =3D ; + maxim,slew-rate-use-dvs =3D ; + }; + + sbb1: sbb1 { + regulator-name =3D "sbb1"; + regulator-min-microvolt =3D <500000>; + regulator-max-microvolt =3D <5500000>; + regulator-allow-set-voltage; + maxim,fps-slot =3D ; + maxim,slew-rate-use-dvs =3D ; + }; + + sbb2: sbb2 { + regulator-name =3D "sbb2"; + regulator-min-microvolt =3D <500000>; + regulator-max-microvolt =3D <5500000>; + regulator-allow-set-voltage; + maxim,fps-slot =3D ; + maxim,slew-rate-use-dvs =3D ; + }; + + sbb3: sbb3 { + regulator-name =3D "sbb3"; + regulator-min-microvolt =3D <500000>; + regulator-max-microvolt =3D <5500000>; + regulator-allow-set-voltage; + maxim,fps-slot =3D ; + maxim,slew-rate-use-dvs =3D ; + }; + }; + }; + }; + -- 2.34.1