Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp513209rdb; Tue, 19 Sep 2023 02:09:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF75fgSWW9P7CekbV5tO3REEevNkDgEQlJN92KOdUqT6yOsY7oQULQ3kYR7hjpepjz4tz93 X-Received: by 2002:a05:6a20:430d:b0:154:a1e4:b676 with SMTP id h13-20020a056a20430d00b00154a1e4b676mr14787357pzk.4.1695114563296; Tue, 19 Sep 2023 02:09:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695114563; cv=none; d=google.com; s=arc-20160816; b=iMzYf8z/PiGbi00E5xuqBJBEA4UZ/RaNl9fsPqTCrpLQp5jy1Qyy7sTjzLsLGkvQJT u8+7thaxClEBuILv7vFl+OkgY5C03lvpYYCkQARFpyG4HtLnNTJaZLRI2Vh3+J3ItU49 fUfXHWAf244O/9PBedZjUhO9l/Oz9EH7O4U7xH83pQx8vAtt96+AYTjNb86gRN6x8oex P26VCwDD5ne3rsAHqqFwqXEBXHNFw0p9sTS9TG3daji01F7cTyXuqbdH0tYzI9Hv/IzO /psaDcFF4+IRurwApyG9CxsJ7SmEl30oR1SSiIlHM4Ss22d5BQ/gepzgmoIjucPIL+Ey C/7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=P6CJxrP39FA0RJIYtQ0DaTf+T/kSY04B/ksdNoeGl80=; fh=XHdganS3UtUyV+NmhMGFE0xZqthJ9iLVie+hvbPV3nQ=; b=MK0Xu7kwqRllRZlqmd4xlIP++jDxmG1RMzHHk4Xf73B4MampGdsOzdwBCuVm1SIr2/ CS9odEC6uH1nJuXTahwehJxT75p5JOkQRl8S0Ef3xYpSxuuPVUtFTZxJQgaZGg9qLcSE 9DoPiNSVGpHmBp0TjX5g9J50IOohQkdnx+5FAtlwUWP2KpIRnay8hQLS7+pwfhhIysdE kk12ykdclQt6Kc761NEfA2D5QezH+UErjZfBPhAmJxQiz1x20t+cfJU9c5nn8koz15xK AQx2X4zuwZ3N/ah/Q5t83I6V7Pzk6eGflqeQqBCu6b7C3Wx7sOPcVBOaZ7Hrh7mGH4dY xfKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jcFksKOp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id bv21-20020a17090af19500b00274b23c2867si6254383pjb.58.2023.09.19.02.09.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 02:09:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jcFksKOp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id AF43981DE3BA; Mon, 18 Sep 2023 22:33:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231128AbjISFde (ORCPT + 99 others); Tue, 19 Sep 2023 01:33:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230522AbjISFde (ORCPT ); Tue, 19 Sep 2023 01:33:34 -0400 Received: from mail-qv1-xf34.google.com (mail-qv1-xf34.google.com [IPv6:2607:f8b0:4864:20::f34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B287D116; Mon, 18 Sep 2023 22:33:27 -0700 (PDT) Received: by mail-qv1-xf34.google.com with SMTP id 6a1803df08f44-65646efd262so10348646d6.0; Mon, 18 Sep 2023 22:33:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695101607; x=1695706407; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=P6CJxrP39FA0RJIYtQ0DaTf+T/kSY04B/ksdNoeGl80=; b=jcFksKOpUYuyD1kANtQ8Mn3Hg+4S0RzDzmyc6fipzF9Z9uwkElOYJPvWKvxYaLtNAM U8iJUnwVl2NStnKPFx7WJIPt2uvboFxslJtED/4gI/bo5hEMLin11KYzENFgIZWYtjkC /1whWIl5CnJtPch1l+Vvm17HcjUv3bjn+U3KniPItD+E0IqtU7AGG0NFD/L1N0Y3n8jh 6cjR+MR0tLbxDI2IF5Upx0sva+JGkyMNus7EkqRYiXJbpv05qwS60G/Yya5FAgUOo0cM echWmBrCU6gO/7aA2FQqLBREHh+zBrscykXkeUmoXp74EmqGyUlKIYy1KOlGK7s/bblG uG4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695101607; x=1695706407; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=P6CJxrP39FA0RJIYtQ0DaTf+T/kSY04B/ksdNoeGl80=; b=j+S/83Pq6RKWi1jKFh0aCdYCxBUkzZcVVVxTtc4jkldnHlbpm1p/kMRM1R9l6WsUxR BXzPw4748ntRYv6iZ6W5AlXW3aX0Zw/OfVQKOjV9peh8w37ZPE9j8DONdbgksApUtcob VQg8QZm5UwMGh7scKI08XkV7rGlYDCehj4llNSzj8c00SGpMMog2PGe6v+GoatyZR5xi 08/z6K/gldVoSXjl45y1m1Wx9ve9fk28Aa1tp22PrN2elmOLcTarISR+Ds6oxR/GxaiP XhMEeGP6lAAuDYH/rBl1P3htQa0BzFf/pt65bXXYKMVg1AcB61DhbtAcPZN0JJJb3OcS Zjag== X-Gm-Message-State: AOJu0YxyPl6mJk8SQ/TvHox+6bq8T9sHv8UmYnMe4d0h0VSVAjmEuuAs fipXDh1FP75DK5dZjluGQFlv9agyuhYCPyc0UMU= X-Received: by 2002:a0c:f001:0:b0:658:36ff:af17 with SMTP id z1-20020a0cf001000000b0065836ffaf17mr2426548qvk.18.1695101606670; Mon, 18 Sep 2023 22:33:26 -0700 (PDT) MIME-Version: 1.0 From: Chen Wang Date: Tue, 19 Sep 2023 13:33:16 +0800 Message-ID: Subject: Question about writing binding files for numa To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, Conor Dooley , "xiaoguang.xing" , jszhang@kernel.org, Inochi Amaoto , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Chen Wang Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 18 Sep 2023 22:33:34 -0700 (PDT) Hi, I am working on writing dts for a new SOC - SG2042, you can see the changes on https://github.com/unicornx/linux-riscv/commit/ee862fc4ebeade32bff00ad014d6b0513c0942a7. This hardware uses a NUMA architecture, so a "distance-map" node is added and several "numa-node-id" are added for cpu/memory. The problem is I find there is no YAML binding for numa, I only find "Documentation/devicetree/bindings/numa.txt". To pass dtb check I want to convert the txt to yaml file. My question is: how to handle the "numa-node-id" which is listed in the numa.txt file. To my understanding, due to cpu/memory node need to contain this property. I should find some binding files for cpu/memory and add "numa-node-id" for cpu/memory. For "cpu", I find a "Documentation/devicetree/bindings/riscv/cpus.yaml", where I think I can add a property of "numa-node-id" to. Note the SG2042 is a RISC-V chip. But for "memory", where should I add "numa-node-id" definition to? Regards, Chen Wang