Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp132706lqr; Wed, 5 Jun 2024 00:53:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV9CEhEs6LyXL188ZMSmWWdvHiw6JQdRCfL6t30YcAOZ7YJtiW0NiIc1rqkXc2X+eHlzuZmqNTR0Fub++ZjqvCLxDuWc/96HKDUEZCVcg== X-Google-Smtp-Source: AGHT+IGSh3vqHhIG8eAMonWNlesL2kPPDopSgblxxwtoUAkuo4nWMb1NF7wt7MgUYshBVE4yAZNu X-Received: by 2002:a05:6e02:1747:b0:374:a412:3d98 with SMTP id e9e14a558f8ab-374b1f58209mr16576915ab.32.1717574006558; Wed, 05 Jun 2024 00:53:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717574006; cv=pass; d=google.com; s=arc-20160816; b=C49hwxoVTWh0Ua8jpySCtuUnVnAp2JvtSJmO80xMlRCTEmWOrqQcciOIwalxfNtAW/ 6H/7ZR8/CmYx197Y+UakPFuOLDbMTKB8u2hbA56N1nGA6aYd+Jo7t9OJ0AWkUAQWWGnY fQriPDtIR6k+LYQ3CASHRcrLwUImHHa+8XC4kKQCUF8+SJtOYYI3dQxSI0jo2Q5rlN47 PvqhueEnXDcLSjzw+9W6EOre1nFWS1cUc/C4Rc9fMz+0tRsI+uCjIGi0whDuBv/ANIZP DAKF25QjcE5hGL6zW8VxWeVZWTv5CYp0IicsZAksvKquvKMdCfY/kiz417aukhFXv+Kc I3Tw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=I2b7Zi6ItOQugitQ2hTpkJ8GSL/WqmFJBbmRgWJQowA=; fh=wp9BFsF8s37Zp5C9p8Txo5/G26SCR7hSoqsyXNs/EiM=; b=aYPG5rvZtu4x7Kjv378Qq7sbHFk8RU4rzi8IN1x6wahbCM2BacoRbgx2rxt4buTjE8 sZea03T+yJI/1bGK+COv0TP0RY/9Lsl4Xcw/csXAEWsebmmZjbDG7OuhcBEqnVs83naD xNMpXK8PxGWPf95QFD919pcsWW61BJVb+ULGZagl6D6n9L9QqaZx7UfMLYu9OGYTZT/Y U5y0OERTqegEH3uOIpSEN15p+2LIVJAuqiU45VYlFXyi5jLsczKkwSl8Hqn7azB/Sk6l wVmpTB0D4BGtwacMjCL1KvRwxy0tJsYcF6VJDgMoyeIVxH5QQUxtKhr6XcLOOsTwiZjy 7sJQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=V9+lbNik; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-201909-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201909-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c359e09e21si2133940a12.295.2024.06.05.00.53.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 00:53:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201909-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=V9+lbNik; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-201909-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201909-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id F2BAF284428 for ; Wed, 5 Jun 2024 07:53:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8B7E318C350; Wed, 5 Jun 2024 07:52:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="V9+lbNik" Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (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 1B78718C33F; Wed, 5 Jun 2024 07:52:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717573965; cv=none; b=jDmvM+0kki2XFlHi6R1UEK031mCIos6wwsLL5jaLxxtUWtSWbcj5rxqaoVcXSHiXUz/6PW5gDhqTPJHw6u1F2JYs8k6b8jqyyuGF+v1RaL1KXl50SiQE+e6wpXjpHmbSwTrA2OpCZHxK+AuauwcDOANnlsmkqqjKa4ij8SX1F6I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717573965; c=relaxed/simple; bh=jPUgkSBxATucwUxWafWmlqxBz0OSUifDCiSpBBgJwH4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=n4AcQQd5HgeINxqLpJdZHVfiX/EPPlxmz/NEvGM04CK3iqXxCYIZk/vcwb8Af42/qbViLjfF3NOREwwCZonD3z3l3OLinxLrESaiqZ4pRJebNs+3BnHZeVFbpU0kc80BYsgjKxew7sbONVO35YgEBuEebw5xhGlcoIKou1u/SCI= 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=V9+lbNik; arc=none smtp.client-ip=209.85.221.45 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 Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-35dcd5377c4so5567362f8f.2; Wed, 05 Jun 2024 00:52:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717573962; x=1718178762; 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=I2b7Zi6ItOQugitQ2hTpkJ8GSL/WqmFJBbmRgWJQowA=; b=V9+lbNikOyWYVMgeiB6B5hCBJMdQ1ZITH5gZobTrLPAy29DvaL1qZdbOcmxAPSpfTp fCaGYFl6uw/Jxjj8MVlATwJYQEMFsm61nI1hEyCmoHZJF8NG26losSx9GYBegJSGO1tO HMfnWSNDaRTIwR6FyKgGAfOSYOyAsXVX9vPj4v5DoorW4lk3w1dY8HI9rZwlMwW70HwB S1EegPBR157pPnqNOfasQL394JRKvmFdQpV47ebb6J3+0b7aBZCRtYJtbYrIQoxeGgAh PeboObmLOHhgj0ccfb95VxLXn48/wISZyOn/SRaKDBcByoqaGBw3m64slzv8AqBpQ9Mz P4Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717573962; x=1718178762; 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=I2b7Zi6ItOQugitQ2hTpkJ8GSL/WqmFJBbmRgWJQowA=; b=PALPWxi4wiJjdOO60QYWTSpu6+sMrItDzdrFycYBI4xd2L2/isy3ezWA8zgySfkBE4 nKhoCLWLPmaM3GYoPdY3Q33ZdM9lMVswl4kVRvultYxeT4qx58Wp1t42awfilzDTTqAp yMPC+Q31CJfNrh6vaM/yojPcHrJe3dS0pjMv8WQ3tD2NMrZHdq9MgGr9Yj446SHhHYgB RcZN7qjfonu5ZT5ktoewMLz3GG93xXEkQmkmaEs4w9R5iRyclotsiWFkr7sVBncDaSkU R3ZTp3bqKxYDtdISbQ7AiA0cXjIH/+p7uLyEwjB4Wtt4rMTyDLQfhgCAgGn6IPHF2QiV WU8Q== X-Forwarded-Encrypted: i=1; AJvYcCWCVc+b57XlijXxcfixGTs4Asi0PsgiCYcP+NIoQnjNngrnTbO1pE+o9lNMaby9YHi/w5ZmlJnVFmjfxIeLe0An3bvPiCDRTmSStgB618E9NlWcbcobXXQT6dYt31YECe7grzeiAHfmH/RtYd9h443aSo1HJRLE9WAyRCjfjSUa71QvWQ== X-Gm-Message-State: AOJu0YwHRjo6hZ1/0XKTvJdOPl7R/Qo0vO6cRUehkWHLbnbVwdaTbBY2 1ssjfAiPQLCWe3h2xlei88Px0HL5iLMGQJodO0LCRdvvobebofQX X-Received: by 2002:adf:f803:0:b0:351:c7c7:985f with SMTP id ffacd0b85a97d-35e8ef7e9eemr1402234f8f.53.1717573962115; Wed, 05 Jun 2024 00:52:42 -0700 (PDT) Received: from spiri.. ([2a02:2f08:a10a:2300:8e59:f160:bdc8:6311]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35dd04c0839sm13760638f8f.23.2024.06.05.00.52.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 00:52:41 -0700 (PDT) From: Alisa-Dariana Roman X-Google-Original-From: Alisa-Dariana Roman To: Alisa-Dariana Roman , Jonathan Cameron , Michael Hennerich , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Lars-Peter Clausen , Michael Hennerich , Alexandru Tachici , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown Subject: [PATCH v2 2/3] dt-bindings: iio: adc: ad7192: Fix clock config Date: Wed, 5 Jun 2024 10:51:53 +0300 Message-Id: <20240605075154.625123-2-alisa.roman@analog.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240605075154.625123-1-alisa.roman@analog.com> References: <20240605075154.625123-1-alisa.roman@analog.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 There are actually 4 configuration modes of clock source for AD719X devices. Either a crystal can be attached externally between MCLK1 and MCLK2 pins, or an external CMOS-compatible clock can drive the MCLK2 pin. The other 2 modes make use of the 4.92MHz internal clock, which can be made available on the MCLK2 pin. The presence of an external clock is optional, not required. Fixes: f7356e47032c ("dt-bindings: iio: adc: ad7192: Add binding documentation for AD7192") Signed-off-by: Alisa-Dariana Roman --- .../bindings/iio/adc/adi,ad7192.yaml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml index a03da9489ed9..c5a4219a9388 100644 --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml @@ -39,11 +39,16 @@ properties: clocks: maxItems: 1 - description: phandle to the master clock (mclk) + description: | + Optionally, either a crystal can be attached externally between MCLK1 and + MCLK2 pins, or an external CMOS-compatible clock can drive the MCLK2 + pin. If absent, internal 4.92MHz clock is used which can be made available + on MCLK2. clock-names: - items: - - const: mclk + enum: + - xtal + - clk interrupts: maxItems: 1 @@ -135,8 +140,6 @@ patternProperties: required: - compatible - reg - - clocks - - clock-names - interrupts - dvdd-supply - avdd-supply @@ -172,8 +175,8 @@ examples: spi-max-frequency = <1000000>; spi-cpol; spi-cpha; - clocks = <&ad7192_mclk>; - clock-names = "mclk"; + clocks = <&ad7192_clk>; + clock-names = "clk"; interrupts = <25 0x2>; interrupt-parent = <&gpio>; aincom-supply = <&aincom>; @@ -202,8 +205,6 @@ examples: spi-max-frequency = <1000000>; spi-cpol; spi-cpha; - clocks = <&ad7192_mclk>; - clock-names = "mclk"; interrupts = <25 0x2>; interrupt-parent = <&gpio>; aincom-supply = <&aincom>; -- 2.34.1