From patchwork Sun Jan 21 05:17:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Subhajit Ghosh X-Patchwork-Id: 764840 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) (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 4C5A6364AB for ; Sun, 21 Jan 2024 05:17:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705814280; cv=none; b=j6IiWczBp92ILk/YMAG+jzdTCs2Uhi/kSfP3LIo/SuQrnK0SrPkSJJ/EqyCwsFGXysr7K12fkQjlkpniwVARxtSz8dCO8ePXl/ufeqqYpCnYHO48rtg8vOK2ObJInxq1FKFxZ3tnRPYwuaoePavN2AwwHhJidAPf5wZW2Live7s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705814280; c=relaxed/simple; bh=9PPgyl4c02AhR7tsdj/3jHF5jJWRSgTdQEG0MfhuJW4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=gSWtfjrpNSX8RYOIARSBlVO3mJ6rUljB1PyIjU2i+TzNKD32GPN5f76j+8aEh9Pfa+Km92tQcuToXCY5kiVRt3FohefjQDcPaf4duBt4ZO2A0n7rtcwpJLfnSIpkwqBj/gHVY11LdH//Hi4i0AEHJTDPoUNtw1xcJMWeMu0BoJs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tweaklogic.com; spf=pass smtp.mailfrom=tweaklogic.com; dkim=pass (2048-bit key) header.d=tweaklogic.com header.i=@tweaklogic.com header.b=HU/Tvzsn; arc=none smtp.client-ip=209.85.210.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tweaklogic.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tweaklogic.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tweaklogic.com header.i=@tweaklogic.com header.b="HU/Tvzsn" Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-6d9f94b9186so2228741b3a.0 for ; Sat, 20 Jan 2024 21:17:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tweaklogic.com; s=google; t=1705814278; x=1706419078; 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=IbZe2AzIkKy+l4ATOd5FQ3m1RMu6EicdGaUIFG7TJls=; b=HU/TvzsnK5Fq+1Re4RIUSjQogNCvsbQ/PcWz66oY/FNGgUZkO6WYaALZMeTH5uMHp4 BcnGJ12iXlEjsD5Ck527bHmP8wMyRIWUGSlXC/ToZFyhL92Yqk8JDhQGSeWrbEv82ZN8 dX8etNCuRenb+Z4qWmcZh6Be4OFXV/vm2Bed1vYJ+NnI8Awf5V5g0Pzh4ivSSkVovDsj arA0i2CuagxyoSq0jjh5hMyn3eohYk5dFkvxLIaGLsE2j0HH4cGvd1A82lcSH2CQKJHz DPftZ9/SX8tJgn+B/MEFrI3hHHE0QhaGFu73Ubz32F88jXrDmkoPgW2OhguH7rzMle+O 1NYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705814278; x=1706419078; 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=IbZe2AzIkKy+l4ATOd5FQ3m1RMu6EicdGaUIFG7TJls=; b=p/y+YVg0Y/7GgTyjWJer+aog2F2Ete4M88WTGDSYlbGB8YAVIoQl6y/qYDWsB8xsVH wQ9AqCWZAqNWJMizkuilR9BcT+vdG9Ozvu11GfaE0ESMYwBhl6UMvraQxgDGuD6yEBZc si9cLpDxdso1IlPIIhnglTap9E1fbIf1z2BwI7R9oDdhCakwFPWEEMO0pe+djCiW56I1 5zxIeNin+XdNlEIFX6aSMuvpMIU5bJhRV6hXH8nDV51RXnIJ17dvmE8e8Puy4jlduQ3a /x0CcqQMrgCxd4sqfkMhrqQHIE7Jdc4cYhXDXojdykUcHsOZJadfbfX0PjjC+8OiiDBV 3CFA== X-Gm-Message-State: AOJu0YwydXufC5GfY6JsgBBP8CcI+b0lreqMBl5YKhi7mO7v7iCCmXJa 3j0JxGQHrf9QBu4sk48sWmeGA0+s23Y5Tvbr1hBDIuAK1PCH0oZ+YitLz2jOGhI= X-Google-Smtp-Source: AGHT+IFevGHaPKM+SIBslDZEahr4PU5NhW4eEVPcS+/9n12nXetRoXAFD6wxA8n1WRWV1BaAFBZizA== X-Received: by 2002:aa7:9d1e:0:b0:6da:b959:3782 with SMTP id k30-20020aa79d1e000000b006dab9593782mr3416555pfp.35.1705814278565; Sat, 20 Jan 2024 21:17:58 -0800 (PST) Received: from localhost.localdomain (2403-580d-82f4-0-3fa1-f9ce-6074-3bab.ip6.aussiebb.net. [2403:580d:82f4:0:3fa1:f9ce:6074:3bab]) by smtp.gmail.com with ESMTPSA id f6-20020a056a000b0600b006d96d034befsm7547196pfu.30.2024.01.20.21.17.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jan 2024 21:17:58 -0800 (PST) From: Subhajit Ghosh To: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matti Vaittinen , Andy Shevchenko , Marek Vasut , Anshul Dalal , Javier Carrasco Cc: Subhajit Ghosh , Matt Ranostay , Stefan Windfeldt-Prytz , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 2/3] dt-bindings: iio: light: Avago APDS9306 Date: Sun, 21 Jan 2024 15:47:33 +1030 Message-Id: <20240121051735.32246-3-subhajit.ghosh@tweaklogic.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240121051735.32246-1-subhajit.ghosh@tweaklogic.com> References: <20240121051735.32246-1-subhajit.ghosh@tweaklogic.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Adding device tree support for APDS9306 Ambient Light Sensor. Updating datasheet hyperlinks. Adding interrupt definition macro and header file. Adding vdd-supply property. Signed-off-by: Subhajit Ghosh --- v2 -> v5: - Implemented changes as per previous reviews: Link: https://lore.kernel.org/lkml/20231028142944.7e210eb6@jic23-huawei/ Link: https://lore.kernel.org/lkml/22e9e5e9-d26a-46e9-8986-5062bbfd72ec@linaro.org/ --- .../bindings/iio/light/avago,apds9300.yaml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/light/avago,apds9300.yaml b/Documentation/devicetree/bindings/iio/light/avago,apds9300.yaml index c610780346e8..bee73a590424 100644 --- a/Documentation/devicetree/bindings/iio/light/avago,apds9300.yaml +++ b/Documentation/devicetree/bindings/iio/light/avago,apds9300.yaml @@ -4,19 +4,21 @@ $id: http://devicetree.org/schemas/iio/light/avago,apds9300.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: Avago Gesture/RGB/ALS/Proximity sensors +title: Avago (Broadcom) Gesture/RGB/ALS/Proximity sensors maintainers: - Subhajit Ghosh description: | - Datasheet: https://www.avagotech.com/docs/AV02-1077EN - Datasheet: https://www.avagotech.com/docs/AV02-4191EN + Datasheet: https://docs.broadcom.com/doc/AV02-1077EN + Datasheet: https://docs.broadcom.com/doc/AV02-4191EN + Datasheet: https://docs.broadcom.com/doc/AV02-4755EN properties: compatible: enum: - avago,apds9300 + - avago,apds9306 - avago,apds9960 reg: @@ -25,6 +27,8 @@ properties: interrupts: maxItems: 1 + vdd-supply: true + additionalProperties: false required: @@ -33,6 +37,8 @@ required: examples: - | + #include + i2c { #address-cells = <1>; #size-cells = <0>; @@ -41,7 +47,8 @@ examples: compatible = "avago,apds9300"; reg = <0x39>; interrupt-parent = <&gpio2>; - interrupts = <29 8>; + interrupts = <29 IRQ_TYPE_LEVEL_LOW>; + vdd-supply = <®ulator_3v3>; }; }; ...