From patchwork Mon Sep 13 19:28:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 509835 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp851259jao; Mon, 13 Sep 2021 12:28:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9NCcJjkbk0rs4NOmucn3XO1gy15SHCK/EPpZRlkXW0JNoZvioMtOEaZ6yYG9JP7PjaXqk X-Received: by 2002:a05:6e02:1d06:: with SMTP id i6mr9598396ila.113.1631561310322; Mon, 13 Sep 2021 12:28:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631561310; cv=none; d=google.com; s=arc-20160816; b=a0YHDebXxb/JsiTQWoAfQdX1qB5jBf5z+rmUC2owCy5nYO0C98nzpvTFVsV75xktjM Nf1LOKJuI0qPD4qAtu9ttrKYZvVsBPr/SPFWX9E+1GZpGirQwNVG4jkaVSTYQCGrF2Ck LDy5YX906EQ1+/HZ4TVmfhTL/9RsX0BUdnv7cxuz6+8A5VTOLgmaVQMJmjICS+ORH2v/ 49G2ipCpvIc+sjoogzfeldyGGFqUoGYT+zu9/9WCeINjmPEiiZfIBivYvD9EYpAF6+JK 6XxgSgq8MXJyuMaOTeBZdNgLkDerfh/Dqx8t4FM5A5UpnhAAi11cuO+T1H7baxyDLN4M S2fw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=S09DONJ4lcwRKCzXlF4Hu+KGIQds8gxD/iFwoouakjk=; b=pTpZeHwge+dlWhAmiOl94paMTzzMdrWK2WPg8fkeX3tzU5n+k1NPlLDDJkLC0vKagK jAFBZGj024pK57LFp8jmGXLMd5xh9XFwUGBLCxQG5O4iAERNKW7fwcQxVbhuJhcvYMYn aIq5gHlk/oDVnMK4BHDTfDAyg7hi08r/H1sgsON8itjcSOJ5oCg6rqCbjILqE7cWijbW sNJAfoLtSzJrNbM/ft7pgns/XAPfxuJR4mVj5Idk57fMVat7cyZ0UMXXARSgf+2Zf67c wormzj+ZG28aD9ejes91uaAHbnx4Kqr6FEysEKgNPj5FdPxlhG+95kWk1+e8SzxOtP5Q OV7A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o6si7906711ilh.124.2021.09.13.12.28.30 for ; Mon, 13 Sep 2021 12:28:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345974AbhIMT3o (ORCPT ); Mon, 13 Sep 2021 15:29:44 -0400 Received: from mail-oi1-f175.google.com ([209.85.167.175]:34504 "EHLO mail-oi1-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242460AbhIMT3m (ORCPT ); Mon, 13 Sep 2021 15:29:42 -0400 Received: by mail-oi1-f175.google.com with SMTP id p2so15560670oif.1; Mon, 13 Sep 2021 12:28:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=S09DONJ4lcwRKCzXlF4Hu+KGIQds8gxD/iFwoouakjk=; b=SwRGmBL8x3XGgcxo0tnnQBmBKLlPnZte4RFxcW9bj7+/RebcQfjsLBcIpiLewm2g3Q ihnXdQBZiJsTS0/UJYvPz87Kdg2eOB+SEAzqI2nVCvU/uplANlKgBGO+lK2r3eWtyOyr q62aiumqm1MhBVYbeajKMbgsZEi2dtarR7jdxlIRKZK9Y5hiaOvnjYkqwVj8yELOs1F8 X1MBzQY42mXLnsEbv9FXpVKky8jT83os4xmLsMKNjG2uvAxlOkTt21WYwPn9IfEYrcqe gautZ+lVEu7kWywg0WGI8qvJYu0RVfhqQKl1kudWc0mS8y9zrq8EMfNXmrpAAWLazp/7 310Q== X-Gm-Message-State: AOAM531QKMf3duZ7vSb9/m6i2+2mXZ6AtQusTkzRanqmanmiu6CyR7Bz jpy66XBhbo1sDD/CF5hfjw== X-Received: by 2002:aca:4b85:: with SMTP id y127mr9060394oia.169.1631561306234; Mon, 13 Sep 2021 12:28:26 -0700 (PDT) Received: from xps15.herring.priv (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.googlemail.com with ESMTPSA id m24sm1907838oie.50.2021.09.13.12.28.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Sep 2021 12:28:24 -0700 (PDT) From: Rob Herring To: Linus Walleij , Stephen Boyd , Pavel Machek Cc: Liviu Dudau , Sudeep Holla , Lorenzo Pieralisi , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org Subject: [PATCH v2 5/8] clk: versatile: clk-icst: Support 'reg' in addition to 'vco-offset' for register address Date: Mon, 13 Sep 2021 14:28:13 -0500 Message-Id: <20210913192816.1225025-6-robh@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210913192816.1225025-1-robh@kernel.org> References: <20210913192816.1225025-1-robh@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org The ICST binding now also supports 'reg' in addition to 'vco-offset' for the VCO register address. Add support to the driver to get the VCO address from 'reg'. Cc: Linus Walleij Cc: Stephen Boyd Cc: linux-arm-kernel@lists.infradead.org Cc: linux-clk@vger.kernel.org Signed-off-by: Rob Herring --- drivers/clk/versatile/clk-icst.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.30.2 Reviewed-by: Stephen Boyd Reviewed-by: Linus Walleij diff --git a/drivers/clk/versatile/clk-icst.c b/drivers/clk/versatile/clk-icst.c index fdd6aa3cb1fc..77fd0ecaf155 100644 --- a/drivers/clk/versatile/clk-icst.c +++ b/drivers/clk/versatile/clk-icst.c @@ -501,7 +501,8 @@ static void __init of_syscon_icst_setup(struct device_node *np) return; } - if (of_property_read_u32(np, "vco-offset", &icst_desc.vco_offset)) { + if (of_property_read_u32(np, "reg", &icst_desc.vco_offset) && + of_property_read_u32(np, "vco-offset", &icst_desc.vco_offset)) { pr_err("no VCO register offset for ICST clock\n"); return; }