From patchwork Sun May 6 13:00:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 10382783 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B937D6037F for ; Sun, 6 May 2018 13:01:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 99EAE28A2D for ; Sun, 6 May 2018 13:01:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8529228C45; Sun, 6 May 2018 13:01:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5CE5728C45 for ; Sun, 6 May 2018 13:01:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751187AbeEFNA6 (ORCPT ); Sun, 6 May 2018 09:00:58 -0400 Received: from mail-io0-f193.google.com ([209.85.223.193]:36262 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751180AbeEFNA5 (ORCPT ); Sun, 6 May 2018 09:00:57 -0400 Received: by mail-io0-f193.google.com with SMTP id d73-v6so30602989iog.3 for ; Sun, 06 May 2018 06:00:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=fQSh0oPYw88Cdz0qCNKsk0B43Hyb/t0Bs0K6QGKYaRw=; b=jSgpkKtWApdBKKOaqENPMYa/BkuXS4q2dw6AE40H8md1xoFPmeoyW3Ff2ZCIT9G6I5 wPHq+vjZDZD62+D5OhyqDKN7lkQQ3EVW8LIPfwaikDM/si7LYpLFY8aU5f4fZ3c1TC/C MLfbyX0djUpTkw98CMxxEqrR3kkXDZzfCsg2jYiV9w4j8iUsGbAgQWvkk3a7SdKAoe/K cPV+nIl1FWp/vnWFI3dqk80m+zMivoc0BS7RxgtcdTXfuQEnN3loNGZxIn0SjmianGGw skY8upYQXYagoNCbVVWM9IGVwsevjjShp3X9oUPojNHsFO3L3L3Kv5jWE36QTsMfOKQx BhXg== 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; bh=fQSh0oPYw88Cdz0qCNKsk0B43Hyb/t0Bs0K6QGKYaRw=; b=HIH0+cP30cgPZnMT139hSxYZ2dHFxYoWgO1uNOEzLf3Y0FpSm+zZ8ZAFOsLsjzrsQr KAwjfRVPIQGQGHum/vPyPBmBdDVnr3GsBBQVk+6lsaXiZxCzdOkkk7xd3C0mG27tqbCl p9S0lFaITzjB1KxzNwEB1J0KyLz3+sRtpNHmjJqDTSCP+MjKOPX6V2XGy26ARWuvXb8z S3/wBgrp1MXK2z3Y6vU9dInu8I4MvIXgF3fy67kAajhFWbKWGgvXBoQt9VC6cdtVO70n /IG/es+v/9OJ0E0dR1K6i8TLtVGKCysSg8FLHobiz5wSu6mjlSXkdA+SgrMt6BVpvtM1 pCPA== X-Gm-Message-State: ALQs6tDL7gqocn0c/Kmyp/1pTxGzRmKCh/w1TZpe0Q8yW19ueTnpx3jM wsnQxLljg6XkXZ/ot2edNgRxYw== X-Google-Smtp-Source: AB8JxZqH29xgMrb4Ll1t0tngz6cBAvbVssGzbRmSYYRe41DzXDxzKXDra0KxE3N6UV22om+9Dxy0tw== X-Received: by 2002:a6b:83da:: with SMTP id n87-v6mr37169653ioi.268.1525611656739; Sun, 06 May 2018 06:00:56 -0700 (PDT) Received: from localhost.localdomain (c-73-65-120-235.hsd1.mn.comcast.net. [73.65.120.235]) by smtp.gmail.com with ESMTPSA id e1-v6sm3050183ita.23.2018.05.06.06.00.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 May 2018 06:00:56 -0700 (PDT) From: Adam Ford To: linux-omap@vger.kernel.org Cc: woods.technical@gmail.com, adam.ford@logicpd.com, Adam Ford Subject: [PATCH 1/3] ARM: dts: am3517-som: Add Seiko Instruments RTC s35390a Date: Sun, 6 May 2018 08:00:47 -0500 Message-Id: <20180506130049.21701-1-aford173@gmail.com> X-Mailer: git-send-email 2.17.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The SOM used in the am3517-evm has a s35390a onboard. This patch allows the s35390a to be used as the RTC. Signed-off-by: Derald D. Woods Signed-off-by: Adam Ford diff --git a/arch/arm/boot/dts/am3517-som.dtsi b/arch/arm/boot/dts/am3517-som.dtsi index a830a0829798..0113da90a8ad 100644 --- a/arch/arm/boot/dts/am3517-som.dtsi +++ b/arch/arm/boot/dts/am3517-som.dtsi @@ -48,6 +48,15 @@ &i2c1 { clock-frequency = <400000>; + s35390a: s35390a@30 { + compatible = "sii,s35390a"; + reg = <0x30>; + + pinctrl-names = "default"; + pinctrl-0 = <&rtc_pins>; + interrupts-extended = <&gpio2 23 IRQ_TYPE_EDGE_FALLING>; /* gpio_55 */ + }; + tps: tps65023@48 { compatible = "ti,tps65023"; reg = <0x48>; @@ -118,6 +127,13 @@ }; &omap3_pmx_core { + + rtc_pins: pinmux_rtc_pins { + pinctrl-single,pins = < + OMAP3_CORE1_IOPAD(0x20b6, PIN_INPUT_PULLUP | MUX_MODE4) /* gpmc_ncs4.gpio_55 */ + >; + }; + tsc2004_pins: pinmux_tsc2004_pins { pinctrl-single,pins = < OMAP3_CORE1_IOPAD(0x20d2, PIN_INPUT | MUX_MODE4) /* gpmc_wait3.gpio_65 */