Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2077692imu; Thu, 24 Jan 2019 06:54:34 -0800 (PST) X-Google-Smtp-Source: ALg8bN5+0v9gB6fBj1hlJAy/jJlQjJH5T5SWHnOAzIYHvCHIGKumzvdXLT3Q6dEfGif9op1iwD++ X-Received: by 2002:a63:6486:: with SMTP id y128mr6221674pgb.18.1548341674667; Thu, 24 Jan 2019 06:54:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548341674; cv=none; d=google.com; s=arc-20160816; b=V5Pka1OuuhuKV+fbUqvT30FzpOFwdXDDI5t3jiuExlkQaYrCERHtoAg2LmPxVfcIUh V9YonZMij1fH0EJHfhCozMgeOUTucQJgrc4t0uSFNr1ig9srZYbAw0K7UP0czlbpQX2H dPEm/kyPkW3L5ix7g7ZM90YQAAodov/GbZJ+7HlMwoB92CR7KFpqXFzsE3+AqhF5oSwL Ic2dMzT1QsKrafhgsZQNjI3eq/ikYCLklpPzzQrcsikJ6xwXt079GKpNp+df3rUB0GhM Xf42LN+Ga/q10GeKXTidhVm46ySIx7kETc6rhRS2BHRIcgwJiIHe8CR7OtiR3Rp8npvh kxsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=NOFMpVcXHy+sVbkvQS5EEr4KI99ndjmL+sfcPLZ3kSI=; b=fMAv5U4RRJ3TdmkzbItcURklRbYo3UesHwlIOSShRavGI94XjnZVDL5rnLKFP302l4 kVmC7OFDZiVcL2Aw5/8GMlvAMYg7fJwKfa19iSrJ1ECLf76uO4ycideDlydCA2qwugND grSZMKgkdSgxKS9CXXnce0qyu/7kVhTjHPbAU1HpftOSBOx6IFcPGc4XcweMz6D91iBj ZeuvvGHHvvofA672NXYBtg14Di+F9qAW6xTrU2ZcKsSCkb8fAsIHnmTpl8HMTh9KHbWG VOxXPVlKVBTzOW7F7gercvm/X7gfr88G5qqUP3CVj/sM3nku2xEuOx4Gbcx2V9lSFMVi 5Ubw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=sFDqun13; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l3si17177676pld.229.2019.01.24.06.54.18; Thu, 24 Jan 2019 06:54:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=sFDqun13; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728505AbfAXOyF (ORCPT + 99 others); Thu, 24 Jan 2019 09:54:05 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:36480 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728378AbfAXOyB (ORCPT ); Thu, 24 Jan 2019 09:54:01 -0500 Received: by mail-wr1-f65.google.com with SMTP id u4so6810358wrp.3; Thu, 24 Jan 2019 06:53:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=NOFMpVcXHy+sVbkvQS5EEr4KI99ndjmL+sfcPLZ3kSI=; b=sFDqun13+x84hunpUYZxJXC9iviUuG2XXLafgGyCr268Dc8Jb5F22hqAcYHkUkS7PC B79glBOVb6H+wxj0Cx7dtRYScqOgl/yEmue/73oJkbNS+fytCwiVfxZfMPRaRJwk6P14 s5BnYC9BhOL5+XlVBq7QM7RcazTehS1bakX09LQgwxrJzry7Y1LVM7J6HfjyJH8QFK32 RBWZjL494yaRPW79Zy02o20ZKEDROMF8ntp+RfCIBdrLXcPQ4xgx6/KYsa0L0a0hdD1U yVEBNEx2n4XqoT6mz1ih11NZ3u7Jx0dSKrzcGyEG9QjFK+kBX2OcKUzYCHfxwv2ucAb6 +aGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=NOFMpVcXHy+sVbkvQS5EEr4KI99ndjmL+sfcPLZ3kSI=; b=TWA2iF8RJBxDgih4DLisiwrKCW0Hgetm5EQmpendcMCKVQQt57APdINiarkVJ26h4z GSID20r+z1H4U8UGOXVyOMed5+mc2rr59YbTgKNs59tBrPJWJyZLKW40Y4FBPi/9f8fE +Np/xJB3H+3q3fS0yIq8rTl2Em7Tiy8eneJRByYi+SnZSpl2P+0Qb2K6eO4iNLT9+3tI Qs5dfGVLnEPyGvWvFj6/j7WWh63k2i2U2zwIOLsTPUlaGpFZRHLzJHl4e/xN0sMix3gG w6h7SxyBTHOs33p67fZEu/9PRHy/U4qh4SnU4xnqzvZSrt+W+25z5PoXQjjDbAP8puUS 5S0A== X-Gm-Message-State: AJcUukeqFQOofAsjuIgBAK4lp8TymSE+GFOVUTOHDtbqMfZSmk9ffYUM Dp7dJ64yN8ikpVRJzbY4Ja4= X-Received: by 2002:adf:c711:: with SMTP id k17mr7299693wrg.197.1548341638677; Thu, 24 Jan 2019 06:53:58 -0800 (PST) Received: from Sarah.corp.lairdtech.com ([109.174.151.67]) by smtp.gmail.com with ESMTPSA id t63sm53611538wmt.8.2019.01.24.06.53.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Jan 2019 06:53:58 -0800 (PST) From: Ben Whitten X-Google-Original-From: Ben Whitten To: afaerber@suse.de Cc: davem@davemloft.net, robh+dt@kernel.org, mark.rutland@arm.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ben Whitten Subject: [PATCH v3 lora-next 3/4] dt-bindings: lora: sx125x: add clock bindings Date: Thu, 24 Jan 2019 14:53:08 +0000 Message-Id: <20190124145309.21698-4-ben.whitten@lairdtech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190124145309.21698-1-ben.whitten@lairdtech.com> References: <20190124145309.21698-1-ben.whitten@lairdtech.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ben Whitten The SX125x consumes a clock (FXOSC) ranging from 32 to 36 MHz as its main XTAL. It may also consume a clock for the TX synthesizer or DAC input clock (FCLK_IN). If the radio is coupled with an SX130x the radio is therefor operating in master mode and it may also provide a gated version of FXOSC clock for the concentrator. In this case the concentrator is expecting a 32 MHz input clock. In the example we connect fxosc to the "txco" clock source, represented by a fixed clock. The radio also provides a clock output "fclk_out" for consumption by the SX130x concentrator. Signed-off-by: Ben Whitten --- v2 -> v3: * Name clock inputs and outputs * Add FCLK_IN v1 -> v2: * Fixed incorrect usage of clock cells * Fixed wording in commit and descriptions * Dropped enforced clock names --- .../bindings/net/lora/semtech,sx125x.yaml | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/Documentation/devicetree/bindings/net/lora/semtech,sx125x.yaml b/Documentation/devicetree/bindings/net/lora/semtech,sx125x.yaml index fe2d2a23c28b..be45bcfd97be 100644 --- a/Documentation/devicetree/bindings/net/lora/semtech,sx125x.yaml +++ b/Documentation/devicetree/bindings/net/lora/semtech,sx125x.yaml @@ -27,12 +27,41 @@ properties: description: The chip select on the SPI bus or radio number in concentrator , with radio A = 0 and radio B = 1. + clocks: + maxItems: 2 + description: Input clock (FXOSC) provider with output ranging from 32 MHz + to 36 MHz. TX synthesizer or DAC input clock (FCLK_IN) provider with + output ranging from 32 MHz to 36 MHz. + + clock-names: + items: + - const: fxosc + - const: fclk_in + description: Input clock (FXOSC), TX synthesizer or DAC input clock + (FCLK_IN) + + clock-output-names: + items: + - const: fclk_out + description: Output clock (FCLK_OUT) name, clock is gated version of the + input (FXOSC). Used in master mode operation. + + '#clock-cells': + const: 0 + required: - compatible - reg examples: - | + tcxo: dummy32m { + compatible = "fixed-clock"; + clock-frequency = <32000000>; + clock-output-names = "tcxo"; + #clock-cells = <0>; + }; + spi { #address-cells = <1>; #size-cells = <0>; @@ -40,5 +69,9 @@ examples: radio0: radio@0 { compatible = "semtech,sx1257"; reg = <0>; + clocks = <&tcxo>; + clock-names = "fxosc"; + clock-output-names = "fclk_out"; + #clock-cells = <0>; }; }; -- 2.17.1