Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp93427rwb; Tue, 8 Nov 2022 22:58:02 -0800 (PST) X-Google-Smtp-Source: AMsMyM6GGpj9cPHCQ1LG8tNJZGG6HK/Y1UEeH0MA6Vnok5cU57azAVNxRHky7lbserhWoQoqtms9 X-Received: by 2002:a05:6402:ca8:b0:463:53d7:ac5 with SMTP id cn8-20020a0564020ca800b0046353d70ac5mr51299095edb.15.1667977082060; Tue, 08 Nov 2022 22:58:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667977082; cv=none; d=google.com; s=arc-20160816; b=cOambtYzxoGWjZ7aWEcRGdDvlk/5xmaHGvfGCzuY5UCB5RWFZVHX4fNOITr0gdGf8C RmkuGujC1hYQ4FAgRmY63Pg5fPVQAu6y8HVa47dubp98tyLYtvP0MI6rHIHxUcHAhhVa bXlIJCGQInWeKYQIhlzeOfRRGvynJz906yBF+cQdBJ+kU/Dys34/Et3BvStdsz1Ek/wP ltTbLGrVvPWtvx8NctQEs07aRDyXzOD7NCa/PiwV39NfWcpzyIGii+84OWC66/C7dKfy T3WSa5t/pKn2n70uAmPzP6lJfDcK0op7yK9wyU3YyiIXhPoIiD9Zpb5vlGO3thElEWfC 6vew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=1Hn0eSk6OyN5lL5cDqWJi5Os4rxljA5PAuJM4IPMRr8=; b=jQWvec0m1HEiLb+9E7aRuHh6G31yGhzo7HWhef1u17l6prJd58LEjKmHfctxNCfINF wklmhdCyP3LyZ9/Bj2knL39Rfn6mL/yG/3i2Rf9tBAgS6+fD+M8hSQAbsonS+Wu0UhWA WsRwMQuffEskqaQJJbTL4CqaGaA4kBQnhjPxOCurkQBTWGEh+lnzvxSwdaQBrrkSO1+V wodhjDg9d6L5eSonNaaao4TUgGyA3KCdOQEvIfn1Qdcp6R3QIxAJhDgjTSSMJMrRZtZA Qle3MIruRIyCe9/kcaWCoXD7fHzrw4PnJl1IxiHW/1hLXEGYt/o9FoZGIKdZDUBEWHnF 2NPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=v2DHvz6r; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i23-20020a056402055700b00461c3758704si13798089edx.36.2022.11.08.22.57.38; Tue, 08 Nov 2022 22:58:02 -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=v2DHvz6r; 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 S229688AbiKIGsE (ORCPT + 93 others); Wed, 9 Nov 2022 01:48:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbiKIGsD (ORCPT ); Wed, 9 Nov 2022 01:48:03 -0500 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F38E1CFE2; Tue, 8 Nov 2022 22:48:02 -0800 (PST) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2A96ltvH032399; Wed, 9 Nov 2022 00:47:55 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1667976475; bh=1Hn0eSk6OyN5lL5cDqWJi5Os4rxljA5PAuJM4IPMRr8=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=v2DHvz6r+V2m8Bco5xP5voIAKT3B48hqPXHouKMqvf8XlHn0MaMi8K7pK+V3Ua+G4 KpGhu099kjNwPFZ8BTJFgxFYMonAGOuP4hTAUEx31nSjOR0SY3ENvLD0eUSqmKv3xo QWvLOzNApbiT7rR5JTQWa+Tghndj6sEsEs+GYbVA= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2A96ltDk022891 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 9 Nov 2022 00:47:55 -0600 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Wed, 9 Nov 2022 00:47:55 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE111.ent.ti.com (10.64.6.32) 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; Wed, 9 Nov 2022 00:47:55 -0600 Received: from [10.250.234.28] (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2A96lpiL083212; Wed, 9 Nov 2022 00:47:52 -0600 Subject: Re: [EXTERNAL] Re: [PATCH] arm64: dts: ti: k3-j721s2: Add support for ADC nodes To: Krzysztof Kozlowski , , , , CC: , , , References: <20221108073231.35008-1-b-kapoor@ti.com> From: Bhavya Kapoor Message-ID: <63f0841c-c268-957d-30a1-f1da29125870@ti.com> Date: Wed, 9 Nov 2022 12:17:55 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US 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,NICE_REPLY_A, 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 On 11/8/22 11:48 PM, Krzysztof Kozlowski wrote: > On 08/11/2022 08:32, Bhavya Kapoor wrote: >> 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 { > Node names should be generic, so "adc" > https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation tscadc is just a wrapper node. The actual adc node is inside of tscadc node. > > Best regards, > Krzysztof > Regards BK