From patchwork Tue Nov 8 07:32:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhavya Kapoor X-Patchwork-Id: 16896 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2544058wru; Mon, 7 Nov 2022 23:36:45 -0800 (PST) X-Google-Smtp-Source: AMsMyM41SdRu5I92kCoh3d9VEOoVN/BrVPWY4bn8gzuSJVtuYMseKXPykjaPiLh074nETrR+dK9T X-Received: by 2002:a17:906:ef8f:b0:7ae:ea7:2104 with SMTP id ze15-20020a170906ef8f00b007ae0ea72104mr28002372ejb.319.1667893005221; Mon, 07 Nov 2022 23:36:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667893005; cv=none; d=google.com; s=arc-20160816; b=yeOAUML1plBrgllYtmyjoRPJzKRS71Q7Onz6arUMFnoh0G/B2RqX4zGd085MHtZYnf wltpZtG1H+rYnx5YXa/K00GXVkgec/WFwCeO3KqGekIOhNlLIKhYPlzDdX747orxhc0t hTQV3sNnxjWVrM0Why6MNav5yL0y2HCAkemLBGp/NFtH0D+IHINngxvi8rqHyW8Z/Rqo zPQZTGZbaO8O6cwnn2s7/LBoialxuSydc0BtQZP3n++u7elCjDm5OHZhr3ETkDSDID81 vefuSoWfOdfOH4/s/pV5rOVlbIUV68VJv2nogc2WnL6xd+MEj6qiHiKsSvcQW/hZyp6V wRpQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=fob4BUWDvkc0MXg4j41UHbMPxCqHjKfum4yhBy3PBzU=; b=Oe1wvk3r/GCMYpjReBo2p9Sq5CIWVKJr0Jvw/Xa7/IF6y39rOXAd2Yb9sHFqvD8XL/ Yo03Dpb5eO6035rhwDgPcUuMGbCI2KlzsHsWarcTi4/QPZiEkkdK5LTjgeK4HtCaOHAm Jr4SN3p9cTGAxTkK2yclddySwShG927x9jM5WeA+bExQkHu5j4bYYgj0b7VGN8M1OfDj DaEAptfeHimOqODgNPcvft5WUoIxdcSxah/hv/OhzKvuHUBs8GRClJROSrlCTkZHNw4l T4paLpFgLJjeGE20ydTiVAquP9my1r86yJrUx3ye9iYJcqJf2Kix/kVtSsLZQTs28XfB qTlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=bSk955qO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dn17-20020a17090794d100b007ae814af68dsi582684ejc.355.2022.11.07.23.36.19; Mon, 07 Nov 2022 23:36:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=bSk955qO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232192AbiKHHcu (ORCPT + 99 others); Tue, 8 Nov 2022 02:32:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233087AbiKHHcr (ORCPT ); Tue, 8 Nov 2022 02:32:47 -0500 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F67A1ADA6; Mon, 7 Nov 2022 23:32:46 -0800 (PST) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2A87WTnO010347; Tue, 8 Nov 2022 01:32:29 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1667892749; bh=fob4BUWDvkc0MXg4j41UHbMPxCqHjKfum4yhBy3PBzU=; h=From:To:CC:Subject:Date; b=bSk955qOd+OnlGahpmQnRoRJw93xsRabx8ZgPfthn5B2Jky81gytE0v/o3cxRs2cg Nkp3zPetxBgDrZauCGH86lr7NpW/94eIAw+0OXcC9sO9vnpMjj9zDWsJ8q5+iE+ZwJ 2X3DdELq1cHJnYcCZV9c4W7K4q6Z1KBbUxAJjkd0= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2A87WTfS121556 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 8 Nov 2022 01:32:29 -0600 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Tue, 8 Nov 2022 01:32:28 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6 via Frontend Transport; Tue, 8 Nov 2022 01:32:28 -0600 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2A87WRq3053308; Tue, 8 Nov 2022 01:32:27 -0600 From: Bhavya Kapoor To: , , , CC: , , , Subject: [PATCH] arm64: dts: ti: k3-j721s2: Add support for ADC nodes Date: Tue, 8 Nov 2022 13:02:31 +0530 Message-ID: <20221108073231.35008-1-b-kapoor@ti.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748912574425926947?= X-GMAIL-MSGID: =?utf-8?q?1748912575930965540?= J721S2 has two instances of 8 channel ADCs in MCU domain. Add DT nodes for 8 channel ADCs for J721S2. Enable ADCs present on J721S2 soc. Signed-off-by: Bhavya Kapoor --- .../dts/ti/k3-j721s2-common-proc-board.dts | 14 +++++++ .../boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi | 40 +++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts index b210cc07c539..de9cb40273be 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts +++ b/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts @@ -429,3 +429,17 @@ &main_mcan17 { status = "disabled"; }; + +&tscadc0 { + status = "okay"; + adc { + ti,adc-channels = <0 1 2 3 4 5 6 7>; + }; +}; + +&tscadc1 { + status = "okay"; + adc { + ti,adc-channels = <0 1 2 3 4 5 6 7>; + }; +}; diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi index 4d1bfabd1313..47a7a6b500c2 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi @@ -299,4 +299,44 @@ ti,cpts-periodic-outputs = <2>; }; }; + + tscadc0: tscadc@40200000 { + compatible = "ti,am3359-tscadc"; + reg = <0x0 0x40200000 0x0 0x1000>; + interrupts = ; + power-domains = <&k3_pds 0 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 0 0>; + assigned-clocks = <&k3_clks 0 2>; + assigned-clock-rates = <60000000>; + clock-names = "adc_tsc_fck"; + dmas = <&main_udmap 0x7400>, + <&main_udmap 0x7401>; + dma-names = "fifo0", "fifo1"; + status = "disabled"; + + adc { + #io-channel-cells = <1>; + compatible = "ti,am3359-adc"; + }; + }; + + tscadc1: tscadc@40210000 { + compatible = "ti,am3359-tscadc"; + reg = <0x0 0x40210000 0x0 0x1000>; + interrupts = ; + power-domains = <&k3_pds 1 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 1 0>; + assigned-clocks = <&k3_clks 1 2>; + assigned-clock-rates = <60000000>; + clock-names = "adc_tsc_fck"; + dmas = <&main_udmap 0x7402>, + <&main_udmap 0x7403>; + dma-names = "fifo0", "fifo1"; + status = "disabled"; + + adc { + #io-channel-cells = <1>; + compatible = "ti,am3359-adc"; + }; + }; };