Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5674681iob; Tue, 10 May 2022 00:34:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmkdvF3PUKUTXVZKD2AslJnycWq2FfJ/JRU0ImJKEwNOlYpE8ExyZ50a1ThJlHmtC8zxD9 X-Received: by 2002:a17:907:d16:b0:6f8:c054:29ac with SMTP id gn22-20020a1709070d1600b006f8c05429acmr12453717ejc.96.1652168093130; Tue, 10 May 2022 00:34:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652168093; cv=none; d=google.com; s=arc-20160816; b=eiZU5gqDf1WtBToHdk3pFIVI5FYI+Y9hirzhlPCt7Az1E74cnnUu01aczEfKw7Pu51 CfnVlewD/PaIr3zOq5CI4bB07VKhRQo0eI8qySWs1RI+V2ARwyGgRoWnp3RDq5gNJRRC Zuii7GOQGy56H2vw4jhzjwxG01RaDmZBGRlu8+Fe1HwpBJ7RxF55Pj4FnRAkxI1oXdmJ Eo9Bw9i54z3UJcE89whaeIw8+f7aX9/uh+Rs7Wh3nsPPjU984cfFJXM4un5iM2SwK0CR vT5quKi5zzaOW3SuzHEGiP7v2psxBalwTxH3eC1OVRlAwp0V9R4P4WqItVow3/izouT0 HZ8w== 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; bh=Kw+lD+SG1jeGWB79ph4zdUOz/yAJPXcHHJ0p2C77mNc=; b=rcyy3vJSB+NvJKxci2kh8EW1tO505gjxh98eJuFXBfeO9uw5RNMJKVhmTOpnMW2uTz /Dtod23SWIfg+Dy7JoEHy6JsKvdveYbJJRKuTxKRjy9Tim+zJt9MUmMdEm0TyqqHSlXg w4+zAhHeDgZgwkZH5X5nft1SYzmFJLDGZgTWAbUgKmA47yzwONZX5+CHmvf0Nq1sPqUf zgflX+/8umPSHsa8sIz6PSetQ6+/lkLI+7XMklA2Sez5xX7IIDoXrpvvr2BAD7iZnw2p ALnOWs7fNiwil+AmWwIm3koClGPAqHY9goqv1W/PNQR1yuOxXEzHiltiWV/N0U6g3IXh BmxA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jz11-20020a170906bb0b00b006e7f5e5c677si16610397ejb.969.2022.05.10.00.34.29; Tue, 10 May 2022 00:34:52 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234695AbiEJCeC (ORCPT + 99 others); Mon, 9 May 2022 22:34:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234713AbiEJCd6 (ORCPT ); Mon, 9 May 2022 22:33:58 -0400 Received: from out28-193.mail.aliyun.com (out28-193.mail.aliyun.com [115.124.28.193]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F38651B774A; Mon, 9 May 2022 19:30:01 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.08325132|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_regular_dialog|0.0186495-0.000315131-0.981035;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047206;MF=zhouyanjie@wanyeetech.com;NM=1;PH=DS;RN=10;RT=10;SR=0;TI=SMTPD_---.Nh22IJP_1652149798; Received: from 192.168.30.128(mailfrom:zhouyanjie@wanyeetech.com fp:SMTPD_---.Nh22IJP_1652149798) by smtp.aliyun-inc.com(33.18.97.150); Tue, 10 May 2022 10:29:58 +0800 Subject: Re: Question about SC16IS752 device tree. To: "H. Nikolaus Schaller" Cc: Paul Cercueil , jringle@gridpoint.com, shc_work@mail.ru, Rob Herring , Paul Boddie , Jiaxun Yang , linux-serial@vger.kernel.org, linux-mips , Linux Kernel Mailing List References: <7c89db86-4055-90b5-6a67-611410f5759f@wanyeetech.com> <04bd0853-7e34-5210-f1b5-f3ea8c35e484@wanyeetech.com> <501852E6-6934-4BB2-850C-B53A07580568@goldelico.com> From: Zhou Yanjie Message-ID: <8533f999-f584-ea31-0c44-1ce29c066d88@wanyeetech.com> Date: Tue, 10 May 2022 10:29:57 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <501852E6-6934-4BB2-850C-B53A07580568@goldelico.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY 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 Hi Nikolaus, On 2022/5/10 上午4:19, H. Nikolaus Schaller wrote: > Hi, > >> Am 09.05.2022 um 20:41 schrieb Zhou Yanjie : >> >> Hi Paul, >> >> On 2022/5/10 上午2:13, Paul Cercueil wrote: >>> I can't say for sure that it's your problem, but your bluetooth nodes are missing "reg" properties. >> >> Unfortunately it doesn't seem to be the problem here, I added "reg" and >> the problem persists, and I've looked at other device trees that contain >> "brcm,bcm43438-bt", none of them use "reg", and "reg" is not mentioned in >> neither "Documentation/devicetree/bindings/serial/nxp,sc16is7xx.txt" nor >> "Documentation/devicetree/bindings/net/broadcom-bluetooth.yaml". > what happens if you remove the serdev children from DTS? Does the driver create two separate /dev/tty ports? And do they work? Yes, there will be two separate /dev/tty ports (ttySC0 and ttySC1), and both ports can work normally, but at this time the two bluetooth modules are not working. I guess it is because the driver does not detect bluetooth module nodes, so the inability to operate "reset-gpios" and "device-wakeup-gpios" causes the bluetooth module to work incorrectly. > > Maybe the sc16is752 driver does not separate them for child nodes, i.e. while "reg" should be added it may not be handled? I'm not too sure, I'm not very familiar with serial port systems. If the truth is what you think, how should I improve it? Best regards! > > BR, > Nikolaus