From patchwork Tue Oct 31 19:54:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 117661 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp12014qgn; Tue, 31 Oct 2017 12:54:59 -0700 (PDT) X-Google-Smtp-Source: ABhQp+T5yF9digFwtkxG70xlUiURboTCDit4R0WtYetSHOCkmxKErQ/Hpm7gFUjhAhXNIAGmhV7p X-Received: by 10.98.65.11 with SMTP id o11mr3343443pfa.86.1509479699392; Tue, 31 Oct 2017 12:54:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509479699; cv=none; d=google.com; s=arc-20160816; b=XeJEmgfde2qqdtmShtgIpPUUM/32SrWPXNRnF/pUSiDyiWBcHL0u4gMBIFctUnPFZi cRQJC4dARflqLpudz47BycqNuvhXMzsu76Zgmh02cl/N7CwxHtYIx8FBKVkUVkptFwFL 7Ve94FzhRWNEFk5SZIp/LI4csd7IWWM3s0zVovxCoh+UQ/+mUkJNwAgCrxhFc/o5ulBD dNCUKlVsH5nd//cun3qNn3bIliwLV56MTYfM3qedbJ3eZaFN2NYqoCLJUcecfavHFAHs D+4me+VKUalH/6undb6molF+n/Ntl6gfhOnILTJI9qr/D2pTQk5VGBOon2lfjbnIlpes 9jSg== 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:arc-authentication-results; bh=LYhBBm13oISY2EhfUzFtfqdcBnS2dJsA6pbEl/ln0sI=; b=A6kEmiqfBphkIQ6VnDQmiF5chhrZRcF0wdk1iJiOUgZjBig5S8A8FM+MR5THu/ziie fI/aaQLZ+kG3BggYKGFifekkTWrCGDGZ06iLl1C/rCVl/bnCWKLPErXBTfD83TEqIKes IsW4qC02bvcuea4uAWqDP3TEhsfgMpsYCiTtLgWMRP7o3++ZSBKJbmB9oJyc/R2LnKQB MQLAhmkYH3Gghl/WpnW8nY/Pl6rKZMOxONTLvibvf6XYF3Bq1Dj1HfmNZFBe2v2CYpzV u4yVz8HWHJPOpqS51h9PAt54iV8RfkadS8Wk0Dy6Kcxt0ifboG4/NEwSfpGUUQoLBX7E 3mDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SBIjplM5; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y10si2295796pgq.774.2017.10.31.12.54.59; Tue, 31 Oct 2017 12:54:59 -0700 (PDT) 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=pass header.i=@linaro.org header.s=google header.b=SBIjplM5; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932856AbdJaTy5 (ORCPT + 27 others); Tue, 31 Oct 2017 15:54:57 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:49959 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932817AbdJaTyy (ORCPT ); Tue, 31 Oct 2017 15:54:54 -0400 Received: by mail-pf0-f193.google.com with SMTP id i5so104229pfe.6 for ; Tue, 31 Oct 2017 12:54:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LYhBBm13oISY2EhfUzFtfqdcBnS2dJsA6pbEl/ln0sI=; b=SBIjplM5D5ZXCugN3pIh6zpLcoAv3tYfAaKKAMpHiIQi1f5ixkJOsAYjkIqzsysFwC Y7vOt5J8QeLv3dFryjCyWAtYyJF+11j+B5e+mmhzZ1qCOyV/x8vzlWSXjCEVb5ZhzJ7p 4zs4g+KVkSF0CzYASoDYt7Oi92DLlXe8nWUow= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=LYhBBm13oISY2EhfUzFtfqdcBnS2dJsA6pbEl/ln0sI=; b=W13P8/gRRASzHoH5bgK7Hm7f2e53Q2fsSmkrvvuV0/APRmDdnpbhJgrJMc1aNTPqAZ M9aiUCDY+R4UDYu5805OfgLwNgcg94WGU09+IzmtEhUvEcn7zy6N1j5GNrIreG8FBShp iVxwz+aQ4NkRljStlu6PKXEKbSnBcWdXJDRoWNeH/bErXXy1qhDI+NNC37qIqkPwhqwD ID6wyzRIU4kJvticwd0wrAAtXqUcRQvs/m8m6eCwEO6b7Bqw8Q87n3mS6AYo97d8myVR T+fZnjzMSClcQEGyxaLS/DFlp19PmEV0WeSciHGxl70tV1vWpzHuhABEH5o+cgWO3LLC 8mBg== X-Gm-Message-State: AMCzsaWXv/lqeSvPywHKLFrS91gHsnoLSdD54IjYa0e+D+aBHNoufzOU mxoc4XkdJ/Oulwm3T/Ufbcsz X-Received: by 10.98.89.6 with SMTP id n6mr3249197pfb.89.1509479694295; Tue, 31 Oct 2017 12:54:54 -0700 (PDT) Received: from localhost.localdomain ([2405:204:7307:c0df:a955:b01b:cf95:dedf]) by smtp.gmail.com with ESMTPSA id r18sm4254289pfe.99.2017.10.31.12.54.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 Oct 2017 12:54:53 -0700 (PDT) From: Manivannan Sadhasivam To: mturquette@baylibre.com, sboyd@codeaurora.org, afaerber@suse.de, robh+dt@kernel.org, mark.rutland@arm.com Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, davem@davemloft.net, mchehab@kernel.org, rdunlap@infradead.org, daniel.thompson@linaro.org, amit.kucheria@linaro.org, liuwei@actions-semi.com, Manivannan Sadhasivam Subject: [PATCH 1/3] arm64: dts: actions: add s900 clock controller nodes Date: Wed, 1 Nov 2017 01:24:21 +0530 Message-Id: <1509479663-8985-2-git-send-email-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509479663-8985-1-git-send-email-manivannan.sadhasivam@linaro.org> References: <1509479663-8985-1-git-send-email-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds clock controller nodes for Actions Semi s900 SoC Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/actions/s900.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) -- 2.7.4 diff --git a/arch/arm64/boot/dts/actions/s900.dtsi b/arch/arm64/boot/dts/actions/s900.dtsi index 11406f6..c099ef1 100644 --- a/arch/arm64/boot/dts/actions/s900.dtsi +++ b/arch/arm64/boot/dts/actions/s900.dtsi @@ -5,6 +5,7 @@ */ #include +#include / { compatible = "actions,s900"; @@ -88,6 +89,24 @@ #clock-cells = <0>; }; + losc: losc { + compatible = "fixed-clock"; + clock-frequency = <32768>; + #clock-cells = <0>; + }; + + diff_24M: diff_24M { + compatible = "fixed-clock"; + clock-frequency = <24000000>; + #clock-cells = <0>; + }; + + clock: clock-controller@e0160000 { + compatible = "actions,s900-clock"; + reg = <0 0xe0160000 0 0x1000>; + #clock-cells = <1>; + }; + soc { compatible = "simple-bus"; #address-cells = <2>; From patchwork Tue Oct 31 19:54:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 117663 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp12415qgn; Tue, 31 Oct 2017 12:55:28 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RSn46ZhLoDQsepYkluohwFcjq9txd9M8XBX09+QYkVt3jXa+W4WOH+PZOy+AME628JXLUv X-Received: by 10.101.78.207 with SMTP id w15mr2978693pgq.347.1509479728658; Tue, 31 Oct 2017 12:55:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509479728; cv=none; d=google.com; s=arc-20160816; b=TZNooiu9kI7d8BWacz73EjcWiHgas8Jb+lhIpWqctV9YiI46Lc9Yoy6ZIo3aBuDPy8 vloC8WsbY0rkV6ln4u3QfBsatfu1f6NEpbKCh26iHTSMH8R8To+o/it4eR0H6R3Y2aAB OqQiBYhJeKRcKe6AIvdt9CMVEvPzOBFzzraEMaJZUAnsKpS64I4vfHzPnrpic6PtL3un ZkMyXLP/2xL7vz5BP1u0tGy6Pip6cHmjmlXyJkqv93vQeqbVCQyelTa+MHGupigPxJa9 hNWx7f1T2w8UFXM0h4Pq+Yn1lWAs6fGA1HXpncSjPtdvw+JbJIFqWXLW13iIdTBRysxy MwRw== 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:arc-authentication-results; bh=MjRguICDKVjzl7irl2WwsYnsLeJ4YFzhZ8Mkcs898ws=; b=j/T2cY1Nn5P64cxzXm0nA+gbKFbNHHiDd2vJwcqvrMMt0U+k1PIMv88zZp+O8106Ij 3uwc46JI4ISuCaSPh6y7FNyPr49avcvUrHgpiUkn5ZnpV48uxqKh4E7PMtmNReUo0vKr SfWJOU9M/drERPLEbG7K8jRc1oStQNL6skfmiggc2mRYnJ8BNmjcRcMDGS2ofS96eu8M LwrBlcZG82RVcktNKwDoZ/dKN9715arE4CXrfC+uMVTvFKxbWq8wQ2CE2XrIZdPwp62k hdMsFzGqLdZyWOu6m1d58YHFtdGZ8aXoP40OgAalHF62xhGgGVOlo3FgAJM7b56rc8n2 16+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UtM4pTT4; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b23si2431636pfm.307.2017.10.31.12.55.20; Tue, 31 Oct 2017 12:55:28 -0700 (PDT) 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=pass header.i=@linaro.org header.s=google header.b=UtM4pTT4; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932928AbdJaTzR (ORCPT + 27 others); Tue, 31 Oct 2017 15:55:17 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:53536 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932684AbdJaTzK (ORCPT ); Tue, 31 Oct 2017 15:55:10 -0400 Received: by mail-pf0-f193.google.com with SMTP id t188so95535pfd.10 for ; Tue, 31 Oct 2017 12:55:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=MjRguICDKVjzl7irl2WwsYnsLeJ4YFzhZ8Mkcs898ws=; b=UtM4pTT4r4SUbX/w8fl887r1jCOlYFJ12FQlezqEzNr/5ftDogbWsDlD7NpVX6CzVA SpyVeaC21Yn7jDL3Mf2v4PEYtI0HjVGB/Bpxl1zncKy9QG1gPwSnSO8iCkbY3JWa5D2E Fr0DKIBJs8JPSuNL3W2aUAEdv6Tuc1sOSRHmU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MjRguICDKVjzl7irl2WwsYnsLeJ4YFzhZ8Mkcs898ws=; b=jWtmXvxbXJV69MaB8dFaZJiOd1veJYzuYX1BYWkAMc7lJjuER4/MK5ax1jdg/KwL9q k0ePkrBImXKOVEyWoGt7G1uXSxtLGjFgGLHmNo8ZOiZqhyex0XGJSItagpwSu01yGJ8/ MRCmOehv8DaiuCcRdSlgdptn2SMRNsKugXzMW4fzWZVb5o1qkZaBLHjSNSa/6YOgSpQE m0IlwLekEaJpFnxjJaIml8a6EPkYi8agTrZizSXLpjPvA8SVlIlizG8Snl3RY89VZobT tQpaUEBE8Vzpa18kRSIg7DtowZcCNhK3iFU97wmooWOOh8eZBaxGgcJMyxhkZgEvWUue JIKg== X-Gm-Message-State: AMCzsaVX99bgDRw+J5QvGcIqyPvcEFCJBEQWrDOLHQ8fryrGyi3PDO40 pBRuq34OAZT9kiSHMFeh0dd4 X-Received: by 10.98.194.86 with SMTP id l83mr3197009pfg.314.1509479709918; Tue, 31 Oct 2017 12:55:09 -0700 (PDT) Received: from localhost.localdomain ([2405:204:7307:c0df:a955:b01b:cf95:dedf]) by smtp.gmail.com with ESMTPSA id r18sm4254289pfe.99.2017.10.31.12.55.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 Oct 2017 12:55:09 -0700 (PDT) From: Manivannan Sadhasivam To: mturquette@baylibre.com, sboyd@codeaurora.org, afaerber@suse.de, robh+dt@kernel.org, mark.rutland@arm.com Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, davem@davemloft.net, mchehab@kernel.org, rdunlap@infradead.org, daniel.thompson@linaro.org, amit.kucheria@linaro.org, liuwei@actions-semi.com, Manivannan Sadhasivam Subject: [PATCH 3/3] Documentation: add Actions S900 clock bindings Date: Wed, 1 Nov 2017 01:24:23 +0530 Message-Id: <1509479663-8985-4-git-send-email-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509479663-8985-1-git-send-email-manivannan.sadhasivam@linaro.org> References: <1509479663-8985-1-git-send-email-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds clock bindings for Actions Semi S900 SoC. Signed-off-by: Manivannan Sadhasivam --- .../bindings/clock/actions,s900-clock.txt | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/actions,s900-clock.txt -- 2.7.4 diff --git a/Documentation/devicetree/bindings/clock/actions,s900-clock.txt b/Documentation/devicetree/bindings/clock/actions,s900-clock.txt new file mode 100644 index 0000000..951d6ad --- /dev/null +++ b/Documentation/devicetree/bindings/clock/actions,s900-clock.txt @@ -0,0 +1,47 @@ +* Actions s900 Clock Controller + +The Actions s900 clock controller generates and supplies clock to various +controllers within the SoC. The clock binding described here is applicable to +s900 SoC. + +Required Properties: + +- compatible: should be "actions,s900-clock" +- reg: physical base address of the controller and length of memory mapped + region. +- #clock-cells: should be 1. + +Each clock is assigned an identifier and client nodes can use this identifier +to specify the clock which they consume. + +All available clocks are defined as preprocessor macros in +dt-bindings/clock/actions,s900-clock.h header and can be used in device +tree sources. + +External clocks: + +The hosc clock used as input for the plls is generated outside the SoC. It is +expected that it is defined using standard clock bindings as "hosc". + +Actions s900 Clock Controller also require two more clocks: + - "losc" - internal low frequency oscillator + - "diff_24M" - internal differential 24MHz clock + +Example: Clock controller node: + + clock: clock-controller@e0160000 { + compatible = "actions,s900-clock"; + reg = <0 0xe0160000 0 0x1000>; + #clock-cells = <1>; + }; + +Example: UART controller node that consumes clock generated by the clock +controller: + + serial5: uart@e012a000 { + compatible = "actions,s900-uart", "actions,owl-uart"; + reg = <0x0 0xe012a000 0x0 0x2000>; + interrupts = ; + clocks = <&clock CLK_UART5>; + clock-names = "uart"; + };