From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (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 B868E259CA6; Mon, 12 May 2025 08:32:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747038733; cv=none; b=Lz71eXge8qQwVUc7bVlO8nlFnRYE6EGDIM2sw4rLWk0+0kx2rg53JL1BVHnesOUgLvaMmAuTIEzgXemFP5UGvfSNtMtpeVNHr3lDwDjKK7v2GiJZillaE9wbvLY0q/gInUhTLTKFEAxKyuwrb7wckOOkOySSg5zxWxmBjbErW9E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747038733; c=relaxed/simple; bh=+5n8LGKDfW18plwbTGQmgpeHVv+pteVhGAZyfwbJAnI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=r/x37tMJtPe34JTdLzB82CFwkV0n3fnI75sEAF5P24CibGrhuCyu8WIDe47iHkvnl6N/ASHnVoJIEHJYkYtM5MNHUJ8VQjwHEZEQSUHT/UwUWIPjsl6sCr4uB9L6gDpuHJz/js3fAO0bD4Wdr0vCAPYgRMOAwgkdaDMQy89IfcE= 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=L2hgrtOx; arc=none smtp.client-ip=209.85.210.181 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="L2hgrtOx" Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-7398d65476eso3378229b3a.1; Mon, 12 May 2025 01:32:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747038731; x=1747643531; 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=oIT2Ww9YHJoAeYD9q0ENs8yzWYWGnqL4OFpQGLUKdTs=; b=L2hgrtOxeSoLMoxuM0zF2NdXNtDqv2X6iRq11tgZg+soCI3JL4lL7V59SE1Y/YH0eM /svXyuz9qFphuI+Ys2H77Yh2a1z8roV+ZZXvc3s20T8w5kMaPaggY24TDnA1jt8mH8pr kMJ3AOxdoDpgIIgljAyShctKYspAZ0pOedMTc/Ye43sqD4MXLlcV7o7E7uw4XE7wrWc8 sV3rA9Pu19sg4aRJhYoHJZuvENg5CuTJ9TSb1vBDbDzI5MYuLgvN8YXsPicVBzOUaWRo 0wJRypo/rZGVcmRavIavMDqtH4E2OmrkT7STTCRV7UfFjKmaj+1Xw5my+Na2ZYTuvVuw wkNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747038731; x=1747643531; 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=oIT2Ww9YHJoAeYD9q0ENs8yzWYWGnqL4OFpQGLUKdTs=; b=MJyDq9w+iZ28bmVvRxdDtqyBpxv5BzyUGkZu5l5OmcbrWCLtB43CKJlx4hc6VwC0IP QF5MyYKnkaNQUGhoWEh0fEX5YW0/fr18zEC9+wkOx/pnPPNwt8yQjODmg/W7NAHK57XJ PpX2NzNGYcWHjDzdUguq0gVJbG1jOYdjKshmZyh8ELEwbyiUamsilVK0Zptw6oBYyRUY N0ygQYTIuOvTyCtQtDTyssoOfgBqIAhtcgKeV1GBfGoaU8QjSfN8jGzbIoqoXKpsDmPK FUU6rkAR2TsRYnvrEsRq+VeU5ItYNJXqRdh49k27zD2RP7oQnAMJlmWQYE8BiQZMiBHH xgxQ== X-Forwarded-Encrypted: i=1; AJvYcCUjlLNl+2tinhl8QHEzfiznH0lGmJMgrbrpYB4XF3B2Uwx2NfwSOa/5dNkao6Y87E2wWCCDUz/QcSV0UdeJ@vger.kernel.org, AJvYcCW4oksqaQB/g7Y9YAZjMmZnzhDq38mPJth6XxzwrY/j8jcmOB+go6QqL17zSYI8VqIuJdxLfBfJ+GpW@vger.kernel.org X-Gm-Message-State: AOJu0YwDYLXlh4PyFp9v1h/IUAqL0xQwgHPDYB22QI6DJ7q6yxSpSLHU /ezSVcNxwStr9s7zqXfL9EV0Ks3Htwq5XyFHkfM/FFKIDyhLbwJs X-Gm-Gg: ASbGnctt0nuVQEjDiIukn9l6OawBB86+IFnwSLrN0XEYOQWGDFiAFNvftIsWN2GMMym nnKtrdwadpX/yGE23ClWItyJjqFbXur3cEcaaemunxcR0/A4h3l4gPxAXhen7ro8d9x0MHrsaHg a+0NbVOtaXWwRjZneC9Kjr/eEE1HTG1BuRhC69xOry3NmJm32v6iEOZRFKj2WaeDMCajx1MvZe1 z2EeDgW+Tqhve8tqXoCdD3/oFMQUSH8tGY/HnGx4vBLH3rdIKVcqtdJbRSzCmYrgO+cc9CvVtzj WeHHk7TykZHO0LDKH/kz1omFO0drs0UV/TcEUdGLrVB2dpQf/zCusF8aVwEPix1jPBeUv3/bT3O piXTMS0I= X-Google-Smtp-Source: AGHT+IEILE4Cro2ZGFcteNB1yRAY397iaySDuOLuNT9yp2sjXI0PXJFVA/+jJjtf/rhSd+22OzBszg== X-Received: by 2002:a05:6a00:3e1b:b0:740:b3a2:136c with SMTP id d2e1a72fcca58-7423bfc6fe8mr19230207b3a.5.1747038730910; Mon, 12 May 2025 01:32:10 -0700 (PDT) Received: from openbmc.. (211-23-34-211.hinet-ip.hinet.net. [211.23.34.211]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7423772752csm5437232b3a.45.2025.05.12.01.32.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 May 2025 01:32:10 -0700 (PDT) From: Eason Yang To: jic23@kernel.org, lars@metafoo.de, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, dlechner@baylibre.com, nuno.sa@analog.com, javier.carrasco.cruz@gmail.com, andriy.shevchenko@linux.intel.com, alisadariana@gmail.com, gstols@baylibre.com, olivier.moysan@foss.st.com, tgamblin@baylibre.com, antoniu.miclaus@analog.com, eblanc@baylibre.com, stefan.popa@analog.com, angelogioacchino.delregno@collabora.com, marcelo.schmitt@analog.com, tobias.sperling@softing.com, chanh@os.amperecomputing.com, KWLIU@nuvoton.com, yhyang2@nuvoton.com Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Eason Yang , Krzysztof Kozlowski Subject: [PATCH v10 1/2] dt-bindings: iio: adc: add NCT7201 ADCs Date: Mon, 12 May 2025 16:31:55 +0800 Message-Id: <20250512083156.3300006-2-j2anfernee@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250512083156.3300006-1-j2anfernee@gmail.com> References: <20250512083156.3300006-1-j2anfernee@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add a binding specification for the Nuvoton NCT7201/NCT7202 up to 12-bit ADCs with I2C interface. Signed-off-by: Eason Yang Reviewed-by: Krzysztof Kozlowski --- .../bindings/iio/adc/nuvoton,nct7201.yaml | 70 +++++++++++++++++++ MAINTAINERS | 6 ++ 2 files changed, 76 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/nuvoton,nct7201.yaml diff --git a/Documentation/devicetree/bindings/iio/adc/nuvoton,nct7201.yaml b/Documentation/devicetree/bindings/iio/adc/nuvoton,nct7201.yaml new file mode 100644 index 000000000000..8ce7d415d956 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/nuvoton,nct7201.yaml @@ -0,0 +1,70 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/nuvoton,nct7201.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Nuvoton nct7201 and similar ADCs + +maintainers: + - Eason Yang + +description: | + The NCT7201/NCT7202 is a Nuvoton Hardware Monitor IC, contains up to 12 + voltage monitoring channels, with SMBus interface, and up to 4 sets SMBus + address selection by ADDR connection. It also provides ALERT# signal for + event notification and reset input RSTIN# to recover it from a fault + condition. + + NCT7201 contains 8 voltage monitor inputs (VIN1~VIN8). + NCT7202 contains 12 voltage monitor inputs (VIN1~VIN12). + +properties: + compatible: + enum: + - nuvoton,nct7201 + - nuvoton,nct7202 + + reg: + maxItems: 1 + + vdd-supply: + description: + A 3.3V to supply that powers the chip. + + vref-supply: + description: + The regulator supply for the ADC reference voltage. + + interrupts: + maxItems: 1 + + reset-gpios: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + adc@1d { + compatible = "nuvoton,nct7202"; + reg = <0x1d>; + vdd-supply = <&vdd>; + vref-supply = <&vref>; + interrupt-parent = <&gpio3>; + interrupts = <30 IRQ_TYPE_LEVEL_LOW>; + reset-gpios = <&gpio3 28 GPIO_ACTIVE_LOW>; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index f21f1dabb5fe..2e4000866a7c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -17432,6 +17432,12 @@ F: drivers/nubus/ F: include/linux/nubus.h F: include/uapi/linux/nubus.h +NUVOTON NCT7201 IIO DRIVER +M: Eason Yang +L: linux-iio@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/iio/adc/nuvoton,nct7201.yaml + NVIDIA (rivafb and nvidiafb) FRAMEBUFFER DRIVER M: Antonino Daplas L: linux-fbdev@vger.kernel.org -- 2.34.1