Add device tree for IBM system1 BMC
cover Add device tree for IBM system1 BMC
This patchset adds device tree for IBM system1 bmc board.
Change log:
v1:
- Added device binding for IBM system1-bmc
- Added device binding for TIS I2C devices
- Added device tree for IBM system1 BMC board
- Added i2c and muxes
- Added voltage regulators
- Added GPIO, Fan ctrl, Led
- Added more compatible strings for tpm_tis_i2c
- Added power supplies, sensors, EEPROMS, TPM and more
Andrew Geissler (1):
ARM: dts: aspeed: System1: IBM system1 BMC board
Joel Stanley (1):
tpm: tis-i2c: Add more compatible strings
Johannes Holland (1):
dt-bindings: tpm: Add schema for TIS I2C devices
Ninad Palsule (5):
dt-bindings: arm: aspeed: add IBM system1-bmc
ARM: dts: aspeed: System1: Add i2c and muxes
ARM: dts: aspeed: System1: Voltage regulators
ARM: dts: aspeed: System1: GPIO, Fan ctrl, Led
ARM: dts: aspeed: System1: PS, sensor and more
.../bindings/arm/aspeed/aspeed.yaml | 1 + .../bindings/security/tpm/tpm-tis-i2c.yaml | 50 + .../devicetree/bindings/trivial-devices.yaml | 2 + arch/arm/boot/dts/aspeed/Makefile | 1 + .../dts/aspeed/aspeed-bmc-ibm-system1.dts | 1644 +++++++++++++++++ drivers/char/tpm/tpm_tis_i2c.c | 2 + 6 files changed, 1700 insertions(+) create mode 100644 Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
Signature · 1 line
2.39.2
PATCH 1/8 dt-bindings: arm: aspeed: add IBM system1-bmc
Document the new compatibles used on IBM system1-bmc
Tested:
This board is tested using the simics simulator.
--- Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml | 1 + Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ 2 files changed, 3 insertions(+)
Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml +1 -0
@@ -85,6 +85,7 @@ properties: - facebook,yosemite4-bmc - ibm,everest-bmc - ibm,rainier-bmc + - ibm,system1-bmc - ibm,tacoma-bmc - inventec,starscream-bmc - inventec,transformer-bmc
Documentation/devicetree/bindings/trivial-devices.yaml +2 -0
@@ -135,6 +135,8 @@ properties: - ibm,cffps1 # IBM Common Form Factor Power Supply Versions 2 - ibm,cffps2 + # Infineon barometric pressure and temperature sensor + - infineon,dps310 # Infineon IR36021 digital POL buck controller - infineon,ir36021 # Infineon IR38060 Voltage Regulator
Signature · 1 line
2.39.2
PATCH 2/8 dt-bindings: tpm: Add schema for TIS I2C devices
In reply to Ninad PalsuleFrom: Johannes Holland <[email protected]>
Add a dt schema to support device tree bindings for the generic I2C physical layer. Refer to the TCG PC Client Platform TPM Profile (PTP) Specification for TPM 2.0 v1.04 Revision 14.
This includes descriptions for the Nuvoton and Infineon devices.
OpenBMC-Staging-Count: 3
--- .../bindings/security/tpm/tpm-tis-i2c.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +50 -0
@@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/security/tpm/tpm-tis-i2c.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: I2C PTP based TPM Devices + +maintainers: + - Johannes Holland <[email protected]> + +description: + Device Tree Bindings for I2C based Trusted Platform Module (TPM). + +properties: + $nodename: + pattern: "^tpm(@[0-9a-f]+)?$" + + compatible: + oneOf: + - description: Infineon's Trusted Platform Module (TPM) (SLB9673). + items: + - const: infineon,slb9673 + - const: tcg,tpm-tis-i2c + - description: Nuvoton's Trusted Platform Module (TPM) (NPCT75x). + items: + - const: nuvoton,npct75x + - const: tcg,tpm-tis-i2c + - const: tcg,tpm-tis-i2c + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + tpm at 2e { + compatible = "nuvoton,npct75x", "tcg,tpm-tis-i2c"; + reg = <0x2e>; + }; + }; +...
Signature · 1 line
2.39.2
PATCH 3/8 ARM: dts: aspeed: System1: IBM system1 BMC board
In reply to Ninad PalsuleFrom: Andrew Geissler <[email protected]>
Add a device tree for IBM system1 BMC board. It uses AST2600 SOC.
Tested:
This board is tested using the simics simulator.
--- arch/arm/boot/dts/aspeed/Makefile | 1 + .../dts/aspeed/aspeed-bmc-ibm-system1.dts | 188 ++++++++++++++++++ 2 files changed, 189 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts
arch/arm/boot/dts/aspeed/Makefile +1 -0
@@ -35,6 +35,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ aspeed-bmc-ibm-rainier.dtb \ aspeed-bmc-ibm-rainier-1s4u.dtb \ aspeed-bmc-ibm-rainier-4u.dtb \ + aspeed-bmc-ibm-system1.dtb \ aspeed-bmc-intel-s2600wf.dtb \ aspeed-bmc-inspur-fp5280g2.dtb \ aspeed-bmc-inspur-nf5280m6.dtb \
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts new file +188 -0
188 lines not on this page · raw message
Signature · 1 line
2.39.2
PATCH 4/8 ARM: dts: aspeed: System1: Add i2c and muxes
In reply to Ninad PalsuleThis commit adds i2c devices and muxes.
Tested:
This board is tested using the simics simulator.
--- .../dts/aspeed/aspeed-bmc-ibm-system1.dts | 577 ++++++++++++++++++ 1 file changed, 577 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +577 -0
@@ -11,6 +11,65 @@ / { model = "System1"; compatible = "ibm,system1-bmc", "aspeed,ast2600"; + aliases { + i2c16 = &i2c8mux1chn0; + i2c17 = &i2c8mux1chn1; + i2c18 = &i2c8mux1chn2; + i2c19 = &i2c8mux1chn3; + i2c20 = &i2c8mux1chn4; + i2c21 = &i2c8mux1chn5; + i2c22 = &i2c8mux1chn6; + i2c23 = &i2c8mux1chn7; + i2c24 = &i2c3mux0chn0; + i2c25 = &i2c3mux0chn1; + i2c26 = &i2c3mux0chn2; + i2c27 = &i2c3mux0chn3; + i2c28 = &i2c3mux0chn4; + i2c29 = &i2c3mux0chn5; + i2c30 = &i2c3mux0chn6; + i2c31 = &i2c3mux0chn7; + i2c32 = &i2c6mux0chn0; + i2c33 = &i2c6mux0chn1; + i2c34 = &i2c6mux0chn2; + i2c35 = &i2c6mux0chn3; + i2c36 = &i2c6mux0chn4; + i2c37 = &i2c6mux0chn5; + i2c38 = &i2c6mux0chn6; + i2c39 = &i2c6mux0chn7; + i2c40 = &i2c7mux0chn0; + i2c41 = &i2c7mux0chn1; + i2c42 = &i2c7mux0chn2; + i2c43 = &i2c7mux0chn3; + i2c44 = &i2c7mux0chn4; + i2c45 = &i2c7mux0chn5; + i2c46 = &i2c7mux0chn6; + i2c47 = &i2c7mux0chn7; + i2c48 = &i2c8mux0chn0; + i2c49 = &i2c8mux0chn1; + i2c50 = &i2c8mux0chn2; + i2c51 = &i2c8mux0chn3; + i2c52 = &i2c8mux0chn4; + i2c53 = &i2c8mux0chn5; + i2c54 = &i2c8mux0chn6; + i2c55 = &i2c8mux0chn7; + i2c56 = &i2c14mux0chn0; + i2c57 = &i2c14mux0chn1; + i2c58 = &i2c14mux0chn2; + i2c59 = &i2c14mux0chn3; + i2c60 = &i2c14mux0chn4; + i2c61 = &i2c14mux0chn5; + i2c62 = &i2c14mux0chn6; + i2c63 = &i2c14mux0chn7; + i2c64 = &i2c15mux0chn0; + i2c65 = &i2c15mux0chn1; + i2c66 = &i2c15mux0chn2; + i2c67 = &i2c15mux0chn3; + i2c68 = &i2c15mux0chn4; + i2c69 = &i2c15mux0chn5; + i2c70 = &i2c15mux0chn6; + i2c71 = &i2c15mux0chn7; + }; + chosen { stdout-path = &uart5; bootargs = "console=ttyS4,115200n8 earlycon";
@@ -54,10 +113,12 @@ vga_memory: region at bf000000 { reg = <0xbf000000 0x01000000>; /* 16M */ }; }; + }; &adc1 { status = "okay"; + aspeed,int-vref-microvolt = <2500000>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_adc8_default
@@ -186,3 +247,519 @@ &kcs3 { aspeed,lpc-io-reg = <0xca2>; aspeed,lpc-interrupts = <11 IRQ_TYPE_LEVEL_LOW>; }; + +&i2c0 { + status = "okay"; +}; + +&i2c1 { + status = "okay"; +}; + +&i2c2 { + status = "okay"; +}; + +&i2c3 { + status = "okay"; + + i2c-mux at 70 { + compatible = "nxp,pca9548"; + reg = <0x70>; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + i2c-mux-idle-disconnect; + + i2c3mux0chn0: i2c at 0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + }; + + i2c3mux0chn1: i2c at 1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + }; + + i2c3mux0chn2: i2c at 2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + }; + + i2c3mux0chn3: i2c at 3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + }; + + i2c3mux0chn4: i2c at 4 { + #address-cells = <1>; + #size-cells = <0>; + reg = <4>; + }; + + i2c3mux0chn5: i2c at 5 { + #address-cells = <1>; + #size-cells = <0>; + reg = <5>; + }; + + i2c3mux0chn6: i2c at 6 { + #address-cells = <1>; + #size-cells = <0>; + reg = <6>; + }; + + i2c3mux0chn7: i2c at 7 { + #address-cells = <1>; + #size-cells = <0>; + reg = <7>; + }; + }; +}; + +&i2c4 { + status = "okay"; +}; + +&i2c5 { + status = "okay"; +}; + +&i2c6 { + status = "okay"; + + i2c-mux at 70 { + compatible = "nxp,pca9548"; + reg = <0x70>; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + i2c-mux-idle-disconnect; + + i2c6mux0chn0: i2c at 0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + }; + + i2c6mux0chn1: i2c at 1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + }; + + i2c6mux0chn2: i2c at 2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + }; + + i2c6mux0chn3: i2c at 3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + }; + + i2c6mux0chn4: i2c at 4 { + #address-cells = <1>; + #size-cells = <0>; + reg = <4>; + }; + + i2c6mux0chn5: i2c at 5 { + #address-cells = <1>; + #size-cells = <0>; + reg = <5>; + }; + + i2c6mux0chn6: i2c at 6 { + #address-cells = <1>; + #size-cells = <0>; + reg = <6>; + }; + + i2c6mux0chn7: i2c at 7 { + #address-cells = <1>; + #size-cells = <0>; + reg = <7>; + }; + }; +}; + +&i2c7 { + status = "okay"; + + i2c-mux at 70 { + compatible = "nxp,pca9548"; + reg = <0x70>; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + i2c-mux-idle-disconnect; + + i2c7mux0chn0: i2c at 0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + }; + + i2c7mux0chn1: i2c at 1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + }; + + i2c7mux0chn2: i2c at 2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + }; + + i2c7mux0chn3: i2c at 3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + }; + + i2c7mux0chn4: i2c at 4 { + #address-cells = <1>; + #size-cells = <0>; + reg = <4>; + }; + + i2c7mux0chn5: i2c at 5 { + #address-cells = <1>; + #size-cells = <0>; + reg = <5>; + }; + + i2c7mux0chn6: i2c at 6 { + #address-cells = <1>; + #size-cells = <0>; + reg = <6>; + }; + + i2c7mux0chn7: i2c at 7 { + #address-cells = <1>; + #size-cells = <0>; + reg = <7>; + }; + }; +}; + +&i2c8 { + status = "okay"; + + i2c-mux at 71 { + compatible = "nxp,pca9548"; + reg = <0x71>; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + i2c-mux-idle-disconnect; + + i2c8mux0chn0: i2c at 0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + }; + + i2c8mux0chn1: i2c at 1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + }; + + i2c8mux0chn2: i2c at 2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + }; + + i2c8mux0chn3: i2c at 3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + }; + + i2c8mux0chn4: i2c at 4 { + #address-cells = <1>; + #size-cells = <0>; + reg = <4>; + + i2c-mux at 70 { + compatible = "nxp,pca9548"; + reg = <0x70>; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + i2c-mux-idle-disconnect; + + i2c8mux1chn0: i2c at 0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + }; + + i2c8mux1chn1: i2c at 1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + }; + + i2c8mux1chn2: i2c at 2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + }; + + i2c8mux1chn3: i2c at 3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + }; + + i2c8mux1chn4: i2c at 4 { + #address-cells = <1>; + #size-cells = <0>; + reg = <4>; + }; + + i2c8mux1chn5: i2c at 5 { + #address-cells = <1>; + #size-cells = <0>; + reg = <5>; + }; + + i2c8mux1chn6: i2c at 6 { + #address-cells = <1>; + #size-cells = <0>; + reg = <6>; + }; + + i2c8mux1chn7: i2c at 7 { + #address-cells = <1>; + #size-cells = <0>; + reg = <7>; + }; + }; + }; + + i2c8mux0chn5: i2c at 5 { + #address-cells = <1>; + #size-cells = <0>; + reg = <5>; + }; + + i2c8mux0chn6: i2c at 6 { + #address-cells = <1>; + #size-cells = <0>; + reg = <6>; + }; + + i2c8mux0chn7: i2c at 7 { + #address-cells = <1>; + #size-cells = <0>; + reg = <7>; + }; + }; +}; + +&i2c9 { + status = "okay"; +}; + +&i2c11 { + status = "okay"; +}; + +&i2c12 { + status = "okay"; +}; + +&i2c13 { + status = "okay"; +}; + +&i2c14 { + status = "okay"; + + i2c-mux at 70 { + compatible = "nxp,pca9548"; + reg = <0x70>; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + i2c-mux-idle-disconnect; + + i2c14mux0chn0: i2c at 0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + }; + + i2c14mux0chn1: i2c at 1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + }; + + i2c14mux0chn2: i2c at 2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + }; + + i2c14mux0chn3: i2c at 3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + }; + + i2c14mux0chn4: i2c at 4 { + #address-cells = <1>; + #size-cells = <0>; + reg = <4>; + }; + + i2c14mux0chn5: i2c at 5 { + #address-cells = <1>; + #size-cells = <0>; + reg = <5>; + }; + + i2c14mux0chn6: i2c at 6 { + #address-cells = <1>; + #size-cells = <0>; + reg = <6>; + }; + + i2c14mux0chn7: i2c at 7 { + #address-cells = <1>; + #size-cells = <0>; + reg = <7>; + }; + }; +}; + +&i2c15 { + status = "okay"; + + i2c-mux at 71 { + compatible = "nxp,pca9548"; + reg = <0x71>; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + i2c-mux-idle-disconnect; + + i2c15mux0chn0: i2c at 0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + }; + + i2c15mux0chn1: i2c at 1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + }; + + i2c15mux0chn2: i2c at 2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + }; + + i2c15mux0chn3: i2c at 3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + }; + + i2c15mux0chn4: i2c at 4 { + #address-cells = <1>; + #size-cells = <0>; + reg = <4>; + + i2c-mux at 70 { + compatible = "nxp,pca9548"; + reg = <0x70>; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + i2c-mux-idle-disconnect; + + i2c15mux1chn0: i2c at 0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + }; + + i2c15mux1chn1: i2c at 1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + }; + + i2c15mux1chn2: i2c at 2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + }; + + i2c15mux1chn3: i2c at 3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + }; + + i2c15mux1chn4: i2c at 4 { + #address-cells = <1>; + #size-cells = <0>; + reg = <4>; + }; + + i2c15mux1chn5: i2c at 5 { + #address-cells = <1>; + #size-cells = <0>; + reg = <5>; + }; + + i2c15mux1chn6: i2c at 6 { + #address-cells = <1>; + #size-cells = <0>; + reg = <6>; + }; + + i2c15mux1chn7: i2c at 7 { + #address-cells = <1>; + #size-cells = <0>; + reg = <7>; + }; + }; + }; + + i2c15mux0chn5: i2c at 5 { + #address-cells = <1>; + #size-cells = <0>; + reg = <5>; + }; + + i2c15mux0chn6: i2c at 6 { + #address-cells = <1>; + #size-cells = <0>; + reg = <6>; + }; + + i2c15mux0chn7: i2c at 7 { + #address-cells = <1>; + #size-cells = <0>; + reg = <7>; + }; + }; +};
Signature · 1 line
2.39.2
PATCH 5/8 ARM: dts: aspeed: System1: Voltage regulators
In reply to Ninad PalsuleThis commit adds different voltage regulators.
Tested:
This board is tested using the simics simulator.
--- .../dts/aspeed/aspeed-bmc-ibm-system1.dts | 266 ++++++++++++++++++ 1 file changed, 266 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +266 -0
@@ -114,10 +114,127 @@ vga_memory: region at bf000000 { }; }; + iio-hwmon { + compatible = "iio-hwmon"; + io-channels = <&p12v_vd 0>, <&p5v_aux_vd 0>, + <&p5v_bmc_aux_vd 0>, <&p3v3_aux_vd 0>, + <&p3v3_bmc_aux_vd 0>, <&p1v8_bmc_aux_vd 0>, + <&adc1 4>, <&adc0 2>, <&adc1 0>, + <&p2V5_aux_vd 0>, <&adc1 7>; + }; + + p12v_vd: voltage_divider1 { + compatible = "voltage-divider"; + io-channels = <&adc1 3>; + #io-channel-cells = <1>; + + /* Scale the system voltage by 1127/127 to fit the ADC range. + * Use small nominator to prevent integer overflow. + */ + output-ohms = <15>; + full-ohms = <133>; + }; + + p5v_aux_vd: voltage_divider2 { + compatible = "voltage-divider"; + io-channels = <&adc1 5>; + #io-channel-cells = <1>; + + /* Scale the system voltage by 1365/365 to fit the ADC range. + * Use small nominator to prevent integer overflow. + */ + output-ohms = <50>; + full-ohms = <187>; + }; + + p5v_bmc_aux_vd: voltage_divider3 { + compatible = "voltage-divider"; + io-channels = <&adc0 3>; + #io-channel-cells = <1>; + + /* Scale the system voltage by 1365/365 to fit the ADC range. + * Use small nominator to prevent integer overflow. + */ + output-ohms = <50>; + full-ohms = <187>; + }; + + p3v3_aux_vd: voltage_divider4 { + compatible = "voltage-divider"; + io-channels = <&adc1 2>; + #io-channel-cells = <1>; + + /* Scale the system voltage by 1698/698 to fit the ADC range. + * Use small nominator to prevent integer overflow. + */ + output-ohms = <14>; + full-ohms = <34>; + }; + + p3v3_bmc_aux_vd: voltage_divider5 { + compatible = "voltage-divider"; + io-channels = <&adc0 7>; + #io-channel-cells = <1>; + + /* Scale the system voltage by 1698/698 to fit the ADC range. + * Use small nominator to prevent integer overflow. + */ + output-ohms = <14>; + full-ohms = <34>; + }; + + p1v8_bmc_aux_vd: voltage_divider6 { + compatible = "voltage-divider"; + io-channels = <&adc0 6>; + #io-channel-cells = <1>; + + /* Scale the system voltage by 4000/3000 to fit the ADC range. + * Use small nominator to prevent integer overflow. + */ + output-ohms = <3>; + full-ohms = <4>; + }; + + p2V5_aux_vd: voltage_divider7 { + compatible = "voltage-divider"; + io-channels = <&adc1 1>; + #io-channel-cells = <1>; + + /* Scale the system voltage by 2100/1100 to fit the ADC range. + * Use small nominator to prevent integer overflow. + */ + output-ohms = <11>; + full-ohms = <21>; + }; + + p1v8_bmc_aux: fixedregulator-p1v8_bmc_aux { + compatible = "regulator-fixed"; + regulator-name = "p1v8_bmc_aux"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; +}; + +&adc0 { + status = "okay"; + vref-supply = <&p1v8_bmc_aux>; + + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_adc0_default + &pinctrl_adc1_default + &pinctrl_adc2_default + &pinctrl_adc3_default + &pinctrl_adc4_default + &pinctrl_adc5_default + &pinctrl_adc6_default + &pinctrl_adc7_default>; }; &adc1 { status = "okay"; + vref-supply = <&p1v8_bmc_aux>; + aspeed,battery-sensing; aspeed,int-vref-microvolt = <2500000>; pinctrl-names = "default";
@@ -250,10 +367,32 @@ &kcs3 { &i2c0 { status = "okay"; + + regulator at 60 { + compatible = "maxim,max8952"; + reg = <0x60>; + + max8952,default-mode = <0>; + max8952,dvs-mode-microvolt = <1250000>, <1200000>, + <1050000>, <950000>; + max8952,sync-freq = <0>; + max8952,ramp-speed = <0>; + + regulator-name = "VR_1.0V"; + regulator-min-microvolt = <770000>; + regulator-max-microvolt = <1400000>; + regulator-always-on; + regulator-boot-on; + }; }; &i2c1 { status = "okay"; + + regulator at 42 { + compatible = "infineon,ir38263"; + reg = <0x42>; + }; }; &i2c2 {
@@ -327,6 +466,21 @@ &i2c4 { &i2c5 { status = "okay"; + + regulator at 3a { + compatible = "maxim,max5970"; + reg = <0x3a>; + }; + + regulator at 42 { + compatible = "infineon,ir38263"; + reg = <0x42>; + }; + + regulator at 43 { + compatible = "infineon,ir38060"; + reg = <0x43>; + }; }; &i2c6 {
@@ -423,6 +577,11 @@ i2c7mux0chn3: i2c at 3 { #address-cells = <1>; #size-cells = <0>; reg = <3>; + + regulator at 58 { + compatible = "mps,mp2973"; + reg = <0x58>; + }; }; i2c7mux0chn4: i2c at 4 {
@@ -435,6 +594,11 @@ i2c7mux0chn5: i2c at 5 { #address-cells = <1>; #size-cells = <0>; reg = <5>; + + regulator at 40 { + compatible = "infineon,tda38640"; + reg = <0x40>; + }; }; i2c7mux0chn6: i2c at 6 {
@@ -466,12 +630,37 @@ i2c8mux0chn0: i2c at 0 { #address-cells = <1>; #size-cells = <0>; reg = <0>; + + regulator at 58 { + compatible = "mps,mp2971"; + reg = <0x58>; + }; }; i2c8mux0chn1: i2c at 1 { #address-cells = <1>; #size-cells = <0>; reg = <1>; + + regulator at 40 { + compatible = "infineon,tda38640"; + reg = <0x40>; + }; + + regulator at 41 { + compatible = "infineon,tda38640"; + reg = <0x41>; + }; + + regulator at 58 { + compatible = "mps,mp2971"; + reg = <0x58>; + }; + + regulator at 5b { + compatible = "mps,mp2971"; + reg = <0x5b>; + }; }; i2c8mux0chn2: i2c at 2 {
@@ -565,12 +754,44 @@ i2c8mux0chn7: i2c at 7 { #address-cells = <1>; #size-cells = <0>; reg = <7>; + + regulator at 40 { + compatible = "infineon,ir38060"; + reg = <0x40>; + }; }; }; }; &i2c9 { status = "okay"; + + regulator at 40 { + compatible = "infineon,ir38263"; + reg = <0x40>; + }; + + regulator at 41 { + compatible = "infineon,ir38263"; + reg = <0x41>; + }; + + regulator at 60 { + compatible = "maxim,max8952"; + reg = <0x60>; + + max8952,default-mode = <0>; + max8952,dvs-mode-microvolt = <1250000>, <1200000>, + <1050000>, <950000>; + max8952,sync-freq = <0>; + max8952,ramp-speed = <0>; + + regulator-name = "VR_1.2V"; + regulator-min-microvolt = <770000>; + regulator-max-microvolt = <1400000>; + regulator-always-on; + regulator-boot-on; + }; }; &i2c11 {
@@ -583,6 +804,11 @@ &i2c12 { &i2c13 { status = "okay"; + + regulator at 41 { + compatible = "infineon,ir38263"; + reg = <0x41>; + }; }; &i2c14 {
@@ -618,6 +844,11 @@ i2c14mux0chn3: i2c at 3 { #address-cells = <1>; #size-cells = <0>; reg = <3>; + + regulator at 58 { + compatible = "mps,mp2973"; + reg = <0x58>; + }; }; i2c14mux0chn4: i2c at 4 {
@@ -630,6 +861,11 @@ i2c14mux0chn5: i2c at 5 { #address-cells = <1>; #size-cells = <0>; reg = <5>; + + regulator at 40 { + compatible = "infineon,tda38640"; + reg = <0x40>; + }; }; i2c14mux0chn6: i2c at 6 {
@@ -661,12 +897,37 @@ i2c15mux0chn0: i2c at 0 { #address-cells = <1>; #size-cells = <0>; reg = <0>; + + regulator at 58 { + compatible = "mps,mp2971"; + reg = <0x58>; + }; }; i2c15mux0chn1: i2c at 1 { #address-cells = <1>; #size-cells = <0>; reg = <1>; + + regulator at 40 { + compatible = "infineon,tda38640"; + reg = <0x40>; + }; + + regulator at 41 { + compatible = "infineon,tda38640"; + reg = <0x41>; + }; + + regulator at 58 { + compatible = "mps,mp2971"; + reg = <0x58>; + }; + + regulator at 5b { + compatible = "mps,mp2971"; + reg = <0x5b>; + }; }; i2c15mux0chn2: i2c at 2 {
@@ -760,6 +1021,11 @@ i2c15mux0chn7: i2c at 7 { #address-cells = <1>; #size-cells = <0>; reg = <7>; + + regulator at 40 { + compatible = "infineon,ir38060"; + reg = <0x40>; + }; }; }; };
Signature · 1 line
2.39.2
PATCH 6/8 ARM: dts: aspeed: System1: GPIO, Fan ctrl, Led
In reply to Ninad PalsuleThis commit adds following devices to the device tree.
- GPIO pin assignements, GPIO expansion devices
- LED brinker devices
- Fan controllers
Tested:
This board is tested using the simics simulator.
--- .../dts/aspeed/aspeed-bmc-ibm-system1.dts | 547 +++++++++++++++++- 1 file changed, 542 insertions(+), 5 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +542 -5
@@ -114,6 +114,99 @@ vga_memory: region at bf000000 { }; }; + leds { + compatible = "gpio-leds"; + + bmc-ready { + gpios = <&gpio0 ASPEED_GPIO(L, 7) GPIO_ACTIVE_HIGH>; + }; + + bmc-hb { + gpios = <&gpio0 ASPEED_GPIO(P, 7) GPIO_ACTIVE_HIGH>; + }; + + rear-enc-fault0 { + gpios = <&gpio0 ASPEED_GPIO(S, 6) GPIO_ACTIVE_HIGH>; + }; + + rear-enc-id0 { + gpios = <&gpio0 ASPEED_GPIO(S, 7) GPIO_ACTIVE_HIGH>; + }; + + fan0-fault-led { + gpios = <&pca3 5 GPIO_ACTIVE_LOW>; + }; + + fan1-fault-led { + gpios = <&pca3 6 GPIO_ACTIVE_LOW>; + }; + + fan2-fault-led { + gpios = <&pca3 7 GPIO_ACTIVE_LOW>; + }; + + fan3-fault-led { + gpios = <&pca3 8 GPIO_ACTIVE_LOW>; + }; + + fan4-fault-led { + gpios = <&pca3 9 GPIO_ACTIVE_LOW>; + }; + + fan5-fault-led { + gpios = <&pca3 10 GPIO_ACTIVE_LOW>; + }; + + fan6-fault-led { + gpios = <&pca3 11 GPIO_ACTIVE_LOW>; + }; + + nvmed0-fault-led { + gpios = <&pca4 4 GPIO_ACTIVE_HIGH>; + }; + + nvmed1-fault-led { + gpios = <&pca4 5 GPIO_ACTIVE_HIGH>; + }; + + nvmed2-fault-led { + gpios = <&pca4 6 GPIO_ACTIVE_HIGH>; + }; + + nvmed3-fault-led { + gpios = <&pca4 7 GPIO_ACTIVE_HIGH>; + }; + }; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + poll-interval = <1000>; + + event-nvme0-presence { + label = "nvme0-presence"; + gpios = <&pca4 0 GPIO_ACTIVE_LOW>; + linux,code = <0>; + }; + + event-nvme1-presence { + label = "nvme1-presence"; + gpios = <&pca4 1 GPIO_ACTIVE_LOW>; + linux,code = <1>; + }; + + event-nvme2-presence { + label = "nvme2-presence"; + gpios = <&pca4 2 GPIO_ACTIVE_LOW>; + linux,code = <2>; + }; + + event-nvme3-presence { + label = "nvme3-presence"; + gpios = <&pca4 3 GPIO_ACTIVE_LOW>; + linux,code = <3>; + }; + }; + iio-hwmon { compatible = "iio-hwmon"; io-channels = <&p12v_vd 0>, <&p5v_aux_vd 0>,
@@ -259,7 +352,7 @@ &uhci { &gpio0 { gpio-line-names = /*A0-A7*/ "","","","","","","","", - /*B0-B7*/ "","","","","","","","", + /*B0-B7*/ "","","","","bmc-tpm-reset","","","", /*C0-C7*/ "","","","","","","","", /*D0-D7*/ "","","","","","","","", /*E0-E7*/ "","","","","","","","",
@@ -269,17 +362,17 @@ &gpio0 { /*I0-I7*/ "","","","","","","","", /*J0-J7*/ "","","","","","","","", /*K0-K7*/ "","","","","","","","", - /*L0-L7*/ "","","","","","","","", + /*L0-L7*/ "","","","","","","","bmc-ready", /*M0-M7*/ "","","","","","","","", /*N0-N7*/ "","","","","","","","", /*O0-O7*/ "","","","","","","","", - /*P0-P7*/ "","","","","","","","", + /*P0-P7*/ "","","","","","","","bmc-hb", /*Q0-Q7*/ "","","","","","","","", /*R0-R7*/ "","","","","","","","", - /*S0-S7*/ "","","","","","","","", + /*S0-S7*/ "","","","","","","rear-enc-fault0","rear-enc-id0", /*T0-T7*/ "","","","","","","","", /*U0-U7*/ "","","","","","","","", - /*V0-V7*/ "","","","power-chassis-control","","","","", + /*V0-V7*/ "","rtc-battery-voltage-read-enable","","power-chassis-control","","","","", /*W0-W7*/ "","","","","","","","", /*X0-X7*/ "","power-chassis-good","","","","","","", /*Y0-Y7*/ "","","","","","","","",
@@ -393,6 +486,171 @@ regulator at 42 { compatible = "infineon,ir38263"; reg = <0x42>; }; + + led-controller at 60 { + compatible = "nxp,pca9552"; + reg = <0x60>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + led at 0 { + label = "nic1-perst"; + reg = <0>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 1 { + label = "bmc-perst"; + reg = <1>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 2 { + label = "reset-M2-SSD1-2-perst"; + reg = <2>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 3 { + label = "pcie-perst1"; + reg = <3>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 4 { + label = "pcie-perst2"; + reg = <4>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 5 { + label = "pcie-perst3"; + reg = <5>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 6 { + label = "pcie-perst4"; + reg = <6>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 7 { + label = "pcie-perst5"; + reg = <7>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 8 { + label = "pcie-perst6"; + reg = <8>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 9 { + label = "pcie-perst7"; + reg = <9>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 10 { + label = "pcie-perst8"; + reg = <10>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 11 { + label = "PV-cp0-sw1stk4-perst"; + reg = <11>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 12 { + label = "PV-cp0-sw1stk5-perst"; + reg = <12>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 13 { + label = "pe-cp-drv0-perst"; + reg = <13>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 14 { + label = "pe-cp-drv1-perst"; + reg = <14>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 15 { + label = "lom-perst"; + reg = <15>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + }; + + pca0: pca9539 at 74 { + compatible = "nxp,pca9539"; + reg = <0x74>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + gpio-line-names = + "PLUG_DETECT_PCIE_J101_N", + "PLUG_DETECT_PCIE_J102_N", + "PLUG_DETECT_PCIE_J103_N", + "PLUG_DETECT_PCIE_J104_N", + "PLUG_DETECT_PCIE_J105_N", + "PLUG_DETECT_PCIE_J106_N", + "PLUG_DETECT_PCIE_J107_N", + "PLUG_DETECT_PCIE_J108_N", + "PLUG_DETECT_M2_SSD1_N", + "PLUG_DETECT_NIC1_N", + "SEL_SMB_DIMM_CPU0", + "presence-ps2", + "presence-ps3", + "", "", + "PWRBRD_PLUG_DETECT2_N"; + }; }; &i2c2 {
@@ -486,6 +744,20 @@ regulator at 43 { &i2c6 { status = "okay"; + fan-controller at 52 { + compatible = "maxim,max31785a"; + reg = <0x52>; + #address-cells = <1>; + #size-cells = <0>; + }; + + fan-controller at 54 { + compatible = "maxim,max31785a"; + reg = <0x54>; + #address-cells = <1>; + #size-cells = <0>; + }; + i2c-mux at 70 { compatible = "nxp,pca9548"; reg = <0x70>;
@@ -522,6 +794,48 @@ i2c6mux0chn4: i2c at 4 { #address-cells = <1>; #size-cells = <0>; reg = <4>; + + led-controller at 60 { + compatible = "nxp,pca9551"; + reg = <0x60>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + led at 0 { + label = "enclosure-id-led"; + reg = <0>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 1 { + label = "attention-led"; + reg = <1>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 2 { + label = "enclosure-fault-rollup-led"; + reg = <2>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 3 { + label = "power-on-led"; + reg = <3>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + }; }; i2c6mux0chn5: i2c at 5 {
@@ -542,6 +856,44 @@ i2c6mux0chn7: i2c at 7 { reg = <7>; }; }; + + pca3: pca9539 at 74 { + compatible = "nxp,pca9539"; + reg = <0x74>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + }; + + pca4: pca9539 at 77 { + compatible = "nxp,pca9539"; + reg = <0x77>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + gpio-line-names = + "PE_NVMED0_EXP_PRSNT_N", + "PE_NVMED1_EXP_PRSNT_N", + "PE_NVMED2_EXP_PRSNT_N", + "PE_NVMED3_EXP_PRSNT_N", + "LED_FAULT_NVMED0", + "LED_FAULT_NVMED1", + "LED_FAULT_NVMED2", + "LED_FAULT_NVMED3", + "FAN0_PRESENCE_R_N", + "FAN1_PRESENCE_R_N", + "FAN2_PRESENCE_R_N", + "FAN3_PRESENCE_R_N", + "FAN4_PRESENCE_R_N", + "FAN5_PRESENCE_N", + "FAN6_PRESENCE_N", + ""; + }; }; &i2c7 {
@@ -809,6 +1161,191 @@ regulator at 41 { compatible = "infineon,ir38263"; reg = <0x41>; }; + + led-controller at 61 { + compatible = "nxp,pca9552"; + reg = <0x61>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + led at 0 { + label = "efuse-12v-slots"; + reg = <0>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 1 { + label = "efuse-3p3v-slot"; + reg = <1>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 3 { + label = "nic2-pert"; + reg = <3>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 4 { + label = "pcie-perst9"; + reg = <4>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 5 { + label = "pcie-perst10"; + reg = <5>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 6 { + label = "pcie-perst11"; + reg = <6>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 7 { + label = "pcie-perst12"; + reg = <7>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 8 { + label = "pcie-perst13"; + reg = <8>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 9 { + label = "pcie-perst14"; + reg = <9>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 10 { + label = "pcie-perst15"; + reg = <10>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 11 { + label = "pcie-perst16"; + reg = <11>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 12 { + label = "PV-cp1-sw1stk4-perst"; + reg = <12>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 13 { + label = "PV-cp1-sw1stk5-perst"; + reg = <13>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 14 { + label = "pe-cp-drv2-perst"; + reg = <14>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 15 { + label = "pe-cp-drv3-perst"; + reg = <15>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + }; + + pca1: pca9539 at 75 { + compatible = "nxp,pca9539"; + reg = <0x75>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + gpio-line-names = + "PLUG_DETECT_PCIE_J109_N", + "PLUG_DETECT_PCIE_J110_N", + "PLUG_DETECT_PCIE_J111_N", + "PLUG_DETECT_PCIE_J112_N", + "PLUG_DETECT_PCIE_J113_N", + "PLUG_DETECT_PCIE_J114_N", + "PLUG_DETECT_PCIE_J115_N", + "PLUG_DETECT_PCIE_J116_N", + "PLUG_DETECT_M2_SSD2_N", + "PLUG_DETECT_NIC2_N", + "SEL_SMB_DIMM_CPU1", + "presence-ps0", + "presence-ps1", + "", "", + "PWRBRD_PLUG_DETECT1_N"; + }; + + pca2: pca9539 at 76 { + compatible = "nxp,pca9539"; + reg = <0x76>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + gpio-line-names = + "SW1_BOOTRCVRYB1_N", + "SW1_BOOTRCVRYB0_N", + "SW2_BOOTRCVRYB1_N", + "SW2_BOOTRCVRYB0_N", + "SW3_4_BOOTRCVRYB1_N", + "SW3_4_BOOTRCVRYB0_N", + "SW5_BOOTRCVRYB1_N", + "SW5_BOOTRCVRYB0_N", + "SW6_BOOTRCVRYB1_N", + "SW6_BOOTRCVRYB0_N", + "SW1_RESET_N", + "SW3_RESET_N", + "SW4_RESET_N", + "SW2_RESET_N", + "SW5_RESET_N", + "SW6_RESET_N"; + }; }; &i2c14 {
Signature · 1 line
2.39.2
PATCH 7/8 tpm: tis-i2c: Add more compatible strings
In reply to Ninad PalsuleFrom: Joel Stanley <[email protected]>
The NPCT75x TPM is TIS compatible. It has an I2C and SPI interface.
https://www.nuvoton.com/products/cloud-computing/security/trusted-platform-module-tpm/
Add a compatible string for it, and the generic compatible.
OpenBMC-Staging-Count: 3
--- drivers/char/tpm/tpm_tis_i2c.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/char/tpm/tpm_tis_i2c.c +2 -0
@@ -383,6 +383,8 @@ MODULE_DEVICE_TABLE(i2c, tpm_tis_i2c_id);#ifdef CONFIG_OF static const struct of_device_id of_tis_i2c_match[] = { { .compatible ="infineon,slb9673" , }, + { .compatible ="nuvoton,npct75x" , }, + { .compatible ="tcg,tpm-tis-i2c" , }, {} };MODULE_DEVICE_TABLE (of, of_tis_i2c_match);
Signature · 1 line
2.39.2
PATCH 8/8 ARM: dts: aspeed: System1: PS, sensor and more
In reply to Ninad PalsuleThis drop adds following devices in the device tree.
- EEPROM/VPD
- Power supplies
- Humidity, pressure and temperature sensors.
- Trusted platform module(TPM) chip
Tested:
This board is tested using the simics simulator.
--- .../dts/aspeed/aspeed-bmc-ibm-system1.dts | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +76 -0
@@ -461,6 +461,11 @@ &kcs3 { &i2c0 { status = "okay"; + eeprom at 50 { + compatible = "atmel,24c64"; + reg = <0x50>; + }; + regulator at 60 { compatible = "maxim,max8952"; reg = <0x60>;
@@ -655,6 +660,25 @@ pca0: pca9539 at 74 { &i2c2 { status = "okay"; + + power-supply at 58 { + compatible = "ibm,cffps"; + reg = <0x58>; + }; + + power-supply at 59 { + compatible = "ibm,cffps"; + reg = <0x59>; + }; + + power-supply at 5a { + compatible = "ibm,cffps"; + reg = <0x5a>; + }; + power-supply at 5b { + compatible = "ibm,cffps"; + reg = <0x5b>; + }; }; &i2c3 {
@@ -758,6 +782,11 @@ fan-controller at 54 { #size-cells = <0>; }; + eeprom at 55 { + compatible = "atmel,24c64"; + reg = <0x55>; + }; + i2c-mux at 70 { compatible = "nxp,pca9548"; reg = <0x70>;
@@ -795,6 +824,21 @@ i2c6mux0chn4: i2c at 4 { #size-cells = <0>; reg = <4>; + humidity-sensor at 40 { + compatible = "ti,hdc1080"; + reg = <0x40>; + }; + + temperature-sensor at 48 { + compatible = "ti,tmp275"; + reg = <0x48>; + }; + + eeprom at 50 { + compatible = "atmel,24c32"; + reg = <0x50>; + }; + led-controller at 60 { compatible = "nxp,pca9551"; reg = <0x60>;
@@ -836,6 +880,12 @@ led at 3 { type = <PCA955X_TYPE_LED>; }; }; + + temperature-sensor at 76 { + compatible = "infineon,dps310"; + reg = <0x76>; + #io-channel-cells = <0>; + }; }; i2c6mux0chn5: i2c at 5 {
@@ -1100,6 +1150,11 @@ i2c8mux0chn6: i2c at 6 { #address-cells = <1>; #size-cells = <0>; reg = <6>; + + temperature-sensor at 4c { + compatible = "ti,tmp423"; + reg = <0x4c>; + }; }; i2c8mux0chn7: i2c at 7 {
@@ -1128,6 +1183,11 @@ regulator at 41 { reg = <0x41>; }; + eeprom at 50 { + compatible = "atmel,24c64"; + reg = <0x50>; + }; + regulator at 60 { compatible = "maxim,max8952"; reg = <0x60>;
@@ -1148,6 +1208,12 @@ regulator at 60 { &i2c11 { status = "okay"; + + tpm at 2e { + compatible = "nuvoton,npct75x", "tcg,tpm-tis-i2c"; + reg = <0x2e>; + memory-region = <&event_log>; + }; }; &i2c12 {
@@ -1552,6 +1618,11 @@ i2c15mux0chn6: i2c at 6 { #address-cells = <1>; #size-cells = <0>; reg = <6>; + + temperature-sensor at 4c { + compatible = "ti,tmp423"; + reg = <0x4c>; + }; }; i2c15mux0chn7: i2c at 7 {
@@ -1563,6 +1634,11 @@ regulator at 40 { compatible = "infineon,ir38060"; reg = <0x40>; }; + + temperature-sensor at 4c { + compatible = "ti,tmp423"; + reg = <0x4c>; + }; }; }; };
Signature · 1 line
2.39.2
Re: [PATCH v1 1/8] dt-bindings: arm: aspeed: add IBM system1-bmc
In reply to Ninad PalsuleQuoted 4 lines · Ninad Palsule
Document the new compatibles used on IBM system1-bmc
Tested:
This board is tested using the simics simulator.
I don't see how this is relevant to dt-bindings patches.
Quoted 5 lines
Signed-off-by Ninad Palsule <[email protected]>--- Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml | 1 + Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++
IMO these should be split into two patches.
Cheers,
Conor.
Quoted 30 lines
2 files changed, 3 insertions(+)Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml +1
-0@@ -85,6 +85,7 @@ properties: - facebook,yosemite4-bmc - ibm,everest-bmc - ibm,rainier-bmc + - ibm,system1-bmc - ibm,tacoma-bmc - inventec,starscream-bmc - inventec,transformer-bmcDocumentation/devicetree/bindings/trivial-devices.yaml +2
-0@@ -135,6 +135,8 @@ properties: - ibm,cffps1 # IBM Common Form Factor Power Supply Versions 2 - ibm,cffps2 + # Infineon barometric pressure and temperature sensor + - infineon,dps310 # Infineon IR36021 digital POL buck controller - infineon,ir36021 # Infineon IR38060 Voltage RegulatorSignature · 1 line
2.39.2
Re: [PATCH v1 2/8] dt-bindings: tpm: Add schema for TIS I2C devices
In reply to Ninad PalsuleHey,
Quoted 3 lines · Ninad Palsule
From: Johannes Holland <[email protected]>
Add a dt schema to support device tree bindings
"Add bindings for..."
Quoted 8 lines
for the generic I2C
physical layer. Refer to the TCG PC Client Platform TPM Profile (PTP) Specification for TPM 2.0 v1.04 Revision 14.This includes descriptions for the Nuvoton and Infineon devices.
OpenBMC-Staging-Count: 3
I have no idea what this is, but it needs to be removed from the patch.
Quoted 17 lines
Signed-off-by Johannes Holland <[email protected]>Signed-off-by Joel Stanley <[email protected]>Signed-off-by Ninad Palsule <[email protected]>--- .../bindings/security/tpm/tpm-tis-i2c.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yamlDocumentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +3
-0@@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +---
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml line 13
Quoted 10 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +10
-0+$id: http://devicetree.org/schemas/security/tpm/tpm-tis-i2c.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: I2C PTP based TPM Devices + +maintainers: + - Johannes Holland <[email protected]> + +description: + Device Tree Bindings for I2C based Trusted Platform Module (TPM).
s/Device Tree Bindings for //. Doesn't dt_binding_check now complain if you have this in a title or description?
Quoted 6 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +6
-0+properties: + $nodename: + pattern: "^tpm(@[0-9a-f]+)?$" + + compatible: + oneOf:
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml line 29
Quoted 10 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +9
-0+ - description: Infineon's Trusted Platform Module (TPM) (SLB9673). + items: + - const: infineon,slb9673 + - const: tcg,tpm-tis-i2c + - description: Nuvoton's Trusted Platform Module (TPM) (NPCT75x). + items: + - const: nuvoton,npct75x + - const: tcg,tpm-tis-i2c + - const: tcg,tpm-tis-i2c
IMO this should be removed and this fallback should only be used in combination with device specific compatibles, like you have here for the infineon and nuvoton devices.
Cheers,
Conor.
Quoted 24 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +21
-0+ reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + tpm@2e { + compatible = "nuvoton,npct75x", "tcg,tpm-tis-i2c"; + reg = <0x2e>; + }; + }; +...Signature · 1 line
2.39.2
Re: [PATCH v1 7/8] tpm: tis-i2c: Add more compatible strings
In reply to Ninad PalsuleQuoted 9 lines · Ninad Palsule
From: Joel Stanley <[email protected]>
The NPCT75x TPM is TIS compatible. It has an I2C and SPI interface.
https://www.nuvoton.com/products/cloud-computing/security/trusted-platform-module-tpm/
Add a compatible string for it, and the generic compatible.
OpenBMC-Staging-Count: 3
Delete this from every patch that it appears from.
Quoted 13 lines
Signed-off-by Joel Stanley <[email protected]>Acked-by Jarkko Sakkinen <[email protected]>Signed-off-by Ninad Palsule <[email protected]>--- drivers/char/tpm/tpm_tis_i2c.c | 2 ++ 1 file changed, 2 insertions(+)drivers/char/tpm/tpm_tis_i2c.c +0
-0
drivers/char/tpm/tpm_tis_i2c.c MODULE_DEVICE_TABLE(i2c, tpm_tis_i2c_id); · line 387
Quoted 5 lines
drivers/char/tpm/tpm_tis_i2c.c +2
-0@@ -383,6 +383,8 @@ MODULE_DEVICE_TABLE(i2c, tpm_tis_i2c_id);#ifdef CONFIG_OF static const struct of_device_id of_tis_i2c_match[] = { { .compatible ="infineon,slb9673" , }, + { .compatible ="nuvoton,npct75x" , }, + { .compatible = "tcg,tpm-tis-i2c", },
What's the point of the generic compatible if you are adding the device specific ones to the driver anyway?
Thanks,
Conor.
Quoted 6 lines
drivers/char/tpm/tpm_tis_i2c.c +0
-0{} };MODULE_DEVICE_TABLE (of, of_tis_i2c_match);Signature · 1 line
2.39.2
Re: [PATCH v1 7/8] tpm: tis-i2c: Add more compatible strings
Quoted 21 lines · Conor Dooley
Quoted 9 lines · Ninad Palsule
From: Joel Stanley <[email protected]>
The NPCT75x TPM is TIS compatible. It has an I2C and SPI interface.
https://www.nuvoton.com/products/cloud-computing/security/trusted-platform-module-tpm/
Add a compatible string for it, and the generic compatible.
OpenBMC-Staging-Count: 3
Delete this from every patch that it appears from.
Quoted 8 lines
Signed-off-by Joel Stanley <[email protected]>Acked-by Jarkko Sakkinen <[email protected]>Link https://lore.kernel.org/r/20220928043957.2636877-4-joel at jms.id.auSigned-off-by Ninad Palsule <[email protected]>--- drivers/char/tpm/tpm_tis_i2c.c | 2 ++ 1 file changed, 2 insertions(+)
Quoted 14 lines
drivers/char/tpm/tpm_tis_i2c.c MODULE_DEVICE_TABLE(i2c, tpm_tis_i2c_id); · line 387
Quoted 10 lines
drivers/char/tpm/tpm_tis_i2c.c +2
-0@@ -383,6 +383,8 @@ MODULE_DEVICE_TABLE(i2c, tpm_tis_i2c_id);#ifdef CONFIG_OF static const struct of_device_id of_tis_i2c_match[] = { { .compatible ="infineon,slb9673" , }, + { .compatible ="nuvoton,npct75x" , }, + { .compatible = "tcg,tpm-tis-i2c", },What's the point of the generic compatible if you are adding the device specific ones to the driver anyway?
$ git grep infineon,slb9673
Documentation/devicetree/bindings/trivial-devices.yaml: - infineon,slb9673
drivers/char/tpm/tpm_tis_i2c.c: { .compatible = "infineon,slb9673", },
$ git grep nuvoton,npct75x
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-bonnell.dts: compatible = "nuvoton,npct75x", "tcg,tpm-tis-i2c";
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-everest.dts: compatible = "nuvoton,npct75x", "tcg,tpm-tis-i2c";
$ git grep tcg,tpm-tis-i2c
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-bonnell.dts: compatible = "nuvoton,npct75x", "tcg,tpm-tis-i2c";
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-everest.dts: compatible = "nuvoton,npct75x", "tcg,tpm-tis-i2c";
arch/arm/boot/dts/aspeed/aspeed-bmc-opp-tacoma.dts: compatible = "tcg,tpm-tis-i2c";It looks like at least the generic entry is needed, given that it is quite likely that there is hardware out there using it. Other than that, this makes me wonder: Is there some official guideline describing if and when to use (only) generic devicetree compatible entries and when specific ones may / should / have to be used ? I suspect the answer to your question might simply be "because we did not know better", and it might be helpful to be able to say "please see XXX for details".
Thanks,
Guenter
Re: [PATCH v1 2/8] dt-bindings: tpm: Add schema for TIS I2C devices
In reply to Conor DooleyQuoted 66 lines · Conor Dooley
Hey,
Quoted 3 lines · Ninad Palsule
From: Johannes Holland <[email protected]>
Add a dt schema to support device tree bindings
"Add bindings for..."
Quoted 8 lines
for the generic I2C
physical layer. Refer to the TCG PC Client Platform TPM Profile (PTP) Specification for TPM 2.0 v1.04 Revision 14.This includes descriptions for the Nuvoton and Infineon devices.
OpenBMC-Staging-Count: 3
I have no idea what this is, but it needs to be removed from the patch.
Quoted 17 lines
Signed-off-by Johannes Holland <[email protected]>Signed-off-by Joel Stanley <[email protected]>Signed-off-by Ninad Palsule <[email protected]>--- .../bindings/security/tpm/tpm-tis-i2c.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yamlDocumentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +3
-0@@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +---Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml line 13
Quoted 10 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +10
-0+$id: http://devicetree.org/schemas/security/tpm/tpm-tis-i2c.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: I2C PTP based TPM Devices + +maintainers: + - Johannes Holland <[email protected]> + +description: + Device Tree Bindings for I2C based Trusted Platform Module (TPM).s/Device Tree Bindings for //. Doesn't
dt_binding_checknow complain if you have this in a title or description?Quoted 14 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +14
-0+properties: + $nodename: + pattern: "^tpm(@[0-9a-f]+)?$" + + compatible: + oneOf: + - description: Infineon's Trusted Platform Module (TPM) (SLB9673). + items: + - const: infineon,slb9673 + - const: tcg,tpm-tis-i2c + - description: Nuvoton's Trusted Platform Module (TPM) (NPCT75x). + items: + - const: nuvoton,npct75x + - const: tcg,tpm-tis-i2c
Quoted 5 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml line 28
Quoted 1 line
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +1
-0+ - const: tcg,tpm-tis-i2cIMO this should be removed and this fallback should only be used in combination with device specific compatibles, like you have here for the infineon and nuvoton devices.
As mentioned in my response to the other patch, "only" isn't sufficient since the tacoma devicetree file only references the generic entry. It would also make support for chips from other vendors unnecessarily complex.
Question should in my opinion be if the non-fallback entries are really needed.
Thanks,
Guenter
Re: [PATCH v1 7/8] tpm: tis-i2c: Add more compatible strings
In reply to Guenter RoeckQuoted 37 lines · Guenter Roeck
Quoted 21 lines · Conor Dooley
Quoted 9 lines · Ninad Palsule
From: Joel Stanley <[email protected]>
The NPCT75x TPM is TIS compatible. It has an I2C and SPI interface.
https://www.nuvoton.com/products/cloud-computing/security/trusted-platform-module-tpm/
Add a compatible string for it, and the generic compatible.
OpenBMC-Staging-Count: 3
Delete this from every patch that it appears from.
Quoted 8 lines
Signed-off-by Joel Stanley <[email protected]>Acked-by Jarkko Sakkinen <[email protected]>Signed-off-by Ninad Palsule <[email protected]>--- drivers/char/tpm/tpm_tis_i2c.c | 2 ++ 1 file changed, 2 insertions(+)Quoted 14 lines
drivers/char/tpm/tpm_tis_i2c.c MODULE_DEVICE_TABLE(i2c, tpm_tis_i2c_id); · line 387
Quoted 10 lines
drivers/char/tpm/tpm_tis_i2c.c +2
-0@@ -383,6 +383,8 @@ MODULE_DEVICE_TABLE(i2c, tpm_tis_i2c_id);#ifdef CONFIG_OF static const struct of_device_id of_tis_i2c_match[] = { { .compatible ="infineon,slb9673" , }, + { .compatible ="nuvoton,npct75x" , }, + { .compatible = "tcg,tpm-tis-i2c", },What's the point of the generic compatible if you are adding the device specific ones to the driver anyway?
Quoted 2 lines
$ git grep infineon,slb9673 Documentation/devicetree/bindings/trivial-devices.yaml: - infineon,slb9673
Hmm, this would then need to be moved into the new schema, out of trivial devices.
Quoted 8 lines
drivers/char/tpm/tpm_tis_i2c.c: { .compatible = "infineon,slb9673", },$ git grep nuvoton,npct75x arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-bonnell.dts: compatible = "nuvoton,npct75x", "tcg,tpm-tis-i2c"; arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-everest.dts: compatible = "nuvoton,npct75x", "tcg,tpm-tis-i2c"; $ git grep tcg,tpm-tis-i2c arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-bonnell.dts: compatible = "nuvoton,npct75x", "tcg,tpm-tis-i2c"; arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-everest.dts: compatible = "nuvoton,npct75x", "tcg,tpm-tis-i2c"; arch/arm/boot/dts/aspeed/aspeed-bmc-opp-tacoma.dts: compatible = "tcg,tpm-tis-i2c";
pog, undocumented compatibles.
Quoted 7 lines
It looks like at least the generic entry is needed, given that it is quite likely that there is hardware out there using it. Other than that, this makes me wonder: Is there some official guideline describing if and when to use (only) generic devicetree compatible entries and when specific ones may / should / have to be used ? I suspect the answer to your question might simply be "because we did not know better", and it might be helpful to be able to say "please see XXX for details".
To me using generic compatibles is okay when there is another mechanism to identify the device. This patch would make more sense if the addition of nuvoton,npct75x was omitted and the dt-binding had
properties:
compatible:
items:
- enum:
- infineon,slb9673
- nuvoton,npct75x
- const: tcg,tpm-tis-i2c
And whenever new i2c tpms showed up the device specific compatible was added to the bindings and the driver had only* the generic compatible
static const struct of_device_id of_tis_i2c_match[] = {
{ .compatible = "infineon,slb9673", },
{ .compatible = "tcg,tpm-tis-i2c", },
};* well, and the existing one since that cannot be removed.
Re: [PATCH v1 7/8] tpm: tis-i2c: Add more compatible strings
Quoted 53 lines · Conor Dooley
Quoted 37 lines · Guenter Roeck
Quoted 21 lines · Conor Dooley
Quoted 9 lines · Ninad Palsule
From: Joel Stanley <[email protected]>
The NPCT75x TPM is TIS compatible. It has an I2C and SPI interface.
https://www.nuvoton.com/products/cloud-computing/security/trusted-platform-module-tpm/
Add a compatible string for it, and the generic compatible.
OpenBMC-Staging-Count: 3
Delete this from every patch that it appears from.
Quoted 8 lines
Signed-off-by Joel Stanley <[email protected]>Acked-by Jarkko Sakkinen <[email protected]>Link https://lore.kernel.org/r/20220928043957.2636877-4-joel at jms.id.auSigned-off-by Ninad Palsule <[email protected]>--- drivers/char/tpm/tpm_tis_i2c.c | 2 ++ 1 file changed, 2 insertions(+)Quoted 14 lines
drivers/char/tpm/tpm_tis_i2c.c MODULE_DEVICE_TABLE(i2c, tpm_tis_i2c_id); · line 387
Quoted 10 lines
drivers/char/tpm/tpm_tis_i2c.c +2
-0@@ -383,6 +383,8 @@ MODULE_DEVICE_TABLE(i2c, tpm_tis_i2c_id);#ifdef CONFIG_OF static const struct of_device_id of_tis_i2c_match[] = { { .compatible ="infineon,slb9673" , }, + { .compatible ="nuvoton,npct75x" , }, + { .compatible = "tcg,tpm-tis-i2c", },What's the point of the generic compatible if you are adding the device specific ones to the driver anyway?
Quoted 2 lines
$ git grep infineon,slb9673 Documentation/devicetree/bindings/trivial-devices.yaml: - infineon,slb9673Hmm, this would then need to be moved into the new schema, out of trivial devices.
Quoted 8 lines
drivers/char/tpm/tpm_tis_i2c.c: { .compatible = "infineon,slb9673", },$ git grep nuvoton,npct75x arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-bonnell.dts: compatible = "nuvoton,npct75x", "tcg,tpm-tis-i2c"; arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-everest.dts: compatible = "nuvoton,npct75x", "tcg,tpm-tis-i2c"; $ git grep tcg,tpm-tis-i2c arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-bonnell.dts: compatible = "nuvoton,npct75x", "tcg,tpm-tis-i2c"; arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-everest.dts: compatible = "nuvoton,npct75x", "tcg,tpm-tis-i2c"; arch/arm/boot/dts/aspeed/aspeed-bmc-opp-tacoma.dts: compatible = "tcg,tpm-tis-i2c";
Quoted 2 lines
pog, undocumented compatibles.
Yes, I know, quite annoying. Though, to be fair, a generic "tcg,tpm-tis-i2c" would make a lot of sense.
Note that Rob had rejected the original addition (into trivial devices) with the argument that it is not a trivial device
(https://lore.kernel.org/lkml/20220605225610.GA3682221-robh at kernel.org/).
Quoted 20 lines
Quoted 7 lines
It looks like at least the generic entry is needed, given that it is quite likely that there is hardware out there using it. Other than that, this makes me wonder: Is there some official guideline describing if and when to use (only) generic devicetree compatible entries and when specific ones may / should / have to be used ? I suspect the answer to your question might simply be "because we did not know better", and it might be helpful to be able to say "please see XXX for details".
To me using generic compatibles is okay when there is another mechanism to identify the device. This patch would make more sense if the addition of nuvoton,npct75x was omitted and the dt-binding had
properties:
compatible:
items:
- enum:
- infineon,slb9673
- nuvoton,npct75x
- const: tcg,tpm-tis-i2c
Quoted 8 lines
And whenever new i2c tpms showed up the device specific compatible was added to the bindings and the driver had only* the generic compatible
static const struct of_device_id of_tis_i2c_match[] = { { .compatible = "infineon,slb9673", }, { .compatible = "tcg,tpm-tis-i2c", }, };* well, and the existing one since that cannot be removed.
That would be perfectly fine with me. All I personally care about is to get "tcg,tpm-tis-i2c" added to the kernel source so I can start testing the code in qemu.
Thanks,
Guenter
Re: [PATCH v1 1/8] dt-bindings: arm: aspeed: add IBM system1-bmc
In reply to Conor DooleyHello Conor,
Quoted 6 lines · Conor Dooley
Quoted 4 lines · Ninad Palsule
Document the new compatibles used on IBM system1-bmc
Tested:
This board is tested using the simics simulator.I don't see how this is relevant to dt-bindings patches.
Make sense. Removed it.
Quoted 6 lines
Quoted 5 lines
Signed-off-by Ninad Palsule <[email protected]>--- Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml | 1 + Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++IMO these should be split into two patches.
Make sense. Split it into two patches.
Thank you for the review.
Thanks & Regards,
Ninad
Quoted 34 lines
Cheers,
Conor.Quoted 30 lines
2 files changed, 3 insertions(+)Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml +1
-0@@ -85,6 +85,7 @@ properties: - facebook,yosemite4-bmc - ibm,everest-bmc - ibm,rainier-bmc + - ibm,system1-bmc - ibm,tacoma-bmc - inventec,starscream-bmc - inventec,transformer-bmcDocumentation/devicetree/bindings/trivial-devices.yaml +2
-0@@ -135,6 +135,8 @@ properties: - ibm,cffps1 # IBM Common Form Factor Power Supply Versions 2 - ibm,cffps2 + # Infineon barometric pressure and temperature sensor + - infineon,dps310 # Infineon IR36021 digital POL buck controller - infineon,ir36021 # Infineon IR38060 Voltage RegulatorSignature · 1 line
2.39.2
Re: [PATCH v1 3/8] ARM: dts: aspeed: System1: IBM system1 BMC board
In reply to Ninad PalsuleQuoted 39 lines · Ninad Palsule
From: Andrew Geissler <[email protected]>
Add a device tree for IBM system1 BMC board. It uses AST2600 SOC.
Tested:
This board is tested using the simics simulator.Signed-off-by Andrew Geissler <[email protected]>Signed-off-by Ninad Palsule <[email protected]>--- arch/arm/boot/dts/aspeed/Makefile | 1 + .../dts/aspeed/aspeed-bmc-ibm-system1.dts | 188 ++++++++++++++++++ 2 files changed, 189 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dtsarch/arm/boot/dts/aspeed/Makefile +1
-0@@ -35,6 +35,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ aspeed-bmc-ibm-rainier.dtb \ aspeed-bmc-ibm-rainier-1s4u.dtb \ aspeed-bmc-ibm-rainier-4u.dtb \ + aspeed-bmc-ibm-system1.dtb \ aspeed-bmc-intel-s2600wf.dtb \ aspeed-bmc-inspur-fp5280g2.dtb \ aspeed-bmc-inspur-nf5280m6.dtb \arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts new file +6
-0@@ -0,0 +1,188 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +// Copyright 2023 IBM Corp. +/dts-v1/; + +#include "aspeed-g6.dtsi" +#include <dt-bindings/gpio/aspeed-gpio.h>
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts line 16
Quoted 10 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts new file +10
-0+#include <dt-bindings/i2c/i2c.h> +#include <dt-bindings/leds/leds-pca955x.h> + +/ { + model = "System1"; + compatible = "ibm,system1-bmc", "aspeed,ast2600"; + + chosen { + stdout-path = &uart5; + bootargs = "console=ttyS4,115200n8 earlycon";
Drop early con, debugging feature not release. Then use stdout path alone, so drop console as well.
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts line 29
Quoted 13 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts new file +13
-0+ }; + + memory at 80000000 { + device_type = "memory"; + reg = <0x80000000 0x40000000>; + }; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + event_log: tcg_event_log at b3d00000 {
No underscores in node names.
Best regards,
Krzysztof
Re: [PATCH v1 4/8] ARM: dts: aspeed: System1: Add i2c and muxes
In reply to Ninad PalsuleQuoted 10 lines · Ninad Palsule
This commit adds i2c devices and muxes.
Tested:
This board is tested using the simics simulator.Signed-off-by Ninad Palsule <[email protected]>--- .../dts/aspeed/aspeed-bmc-ibm-system1.dts | 577 ++++++++++++++++++ 1 file changed, 577 insertions(+)
Why do you split new submission into multiple chunks? The logical feature here is new board, so all your DTS patches adding new board should be in one patch.
Quoted 71 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +59
-0@@ -11,6 +11,65 @@ / { model = "System1"; compatible = "ibm,system1-bmc", "aspeed,ast2600"; + aliases { + i2c16 = &i2c8mux1chn0; + i2c17 = &i2c8mux1chn1; + i2c18 = &i2c8mux1chn2; + i2c19 = &i2c8mux1chn3; + i2c20 = &i2c8mux1chn4; + i2c21 = &i2c8mux1chn5; + i2c22 = &i2c8mux1chn6; + i2c23 = &i2c8mux1chn7; + i2c24 = &i2c3mux0chn0; + i2c25 = &i2c3mux0chn1; + i2c26 = &i2c3mux0chn2; + i2c27 = &i2c3mux0chn3; + i2c28 = &i2c3mux0chn4; + i2c29 = &i2c3mux0chn5; + i2c30 = &i2c3mux0chn6; + i2c31 = &i2c3mux0chn7; + i2c32 = &i2c6mux0chn0; + i2c33 = &i2c6mux0chn1; + i2c34 = &i2c6mux0chn2; + i2c35 = &i2c6mux0chn3; + i2c36 = &i2c6mux0chn4; + i2c37 = &i2c6mux0chn5; + i2c38 = &i2c6mux0chn6; + i2c39 = &i2c6mux0chn7; + i2c40 = &i2c7mux0chn0; + i2c41 = &i2c7mux0chn1; + i2c42 = &i2c7mux0chn2; + i2c43 = &i2c7mux0chn3; + i2c44 = &i2c7mux0chn4; + i2c45 = &i2c7mux0chn5; + i2c46 = &i2c7mux0chn6; + i2c47 = &i2c7mux0chn7; + i2c48 = &i2c8mux0chn0; + i2c49 = &i2c8mux0chn1; + i2c50 = &i2c8mux0chn2; + i2c51 = &i2c8mux0chn3; + i2c52 = &i2c8mux0chn4; + i2c53 = &i2c8mux0chn5; + i2c54 = &i2c8mux0chn6; + i2c55 = &i2c8mux0chn7; + i2c56 = &i2c14mux0chn0; + i2c57 = &i2c14mux0chn1; + i2c58 = &i2c14mux0chn2; + i2c59 = &i2c14mux0chn3; + i2c60 = &i2c14mux0chn4; + i2c61 = &i2c14mux0chn5; + i2c62 = &i2c14mux0chn6; + i2c63 = &i2c14mux0chn7; + i2c64 = &i2c15mux0chn0; + i2c65 = &i2c15mux0chn1; + i2c66 = &i2c15mux0chn2; + i2c67 = &i2c15mux0chn3; + i2c68 = &i2c15mux0chn4; + i2c69 = &i2c15mux0chn5; + i2c70 = &i2c15mux0chn6; + i2c71 = &i2c15mux0chn7; + }; + chosen { stdout-path = &uart5; bootargs = "console=ttyS4,115200n8 earlycon";
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts vga_memory: region at bf000000 { · line 116
Quoted 4 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +1
-0@@ -54,10 +113,12 @@ vga_memory: region at bf000000 { reg = <0xbf000000 0x01000000>; /* 16M */ }; }; +
You need to clean your patchset...
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts vga_memory: region at bf000000 { · line 121
Quoted 5 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +1
-0}; &adc1 { status = "okay"; +
Really.
Quoted 19 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +12
-0aspeed,int-vref-microvolt = <2500000>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_adc8_default@@ -186,3 +247,519 @@ &kcs3 { aspeed,lpc-io-reg = <0xca2>; aspeed,lpc-interrupts = <11 IRQ_TYPE_LEVEL_LOW>; }; + +&i2c0 { + status = "okay"; +}; + +&i2c1 { + status = "okay"; +}; + +&i2c2 { + status = "okay"; +};
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts &kcs3 { · line 271
Quoted 10 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +10
-0+ +&i2c3 { + status = "okay"; + + i2c-mux at 70 { + compatible = "nxp,pca9548"; + reg = <0x70>; + #address-cells = <1>; + #size-cells = <0>; + status = "okay";
Drop
Quoted 59 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +59
-0+ i2c-mux-idle-disconnect; + + i2c3mux0chn0: i2c at 0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + }; + + i2c3mux0chn1: i2c at 1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + }; + + i2c3mux0chn2: i2c at 2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + }; + + i2c3mux0chn3: i2c at 3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + }; + + i2c3mux0chn4: i2c at 4 { + #address-cells = <1>; + #size-cells = <0>; + reg = <4>; + }; + + i2c3mux0chn5: i2c at 5 { + #address-cells = <1>; + #size-cells = <0>; + reg = <5>; + }; + + i2c3mux0chn6: i2c at 6 { + #address-cells = <1>; + #size-cells = <0>; + reg = <6>; + }; + + i2c3mux0chn7: i2c at 7 { + #address-cells = <1>; + #size-cells = <0>; + reg = <7>; + }; + }; +}; + +&i2c4 { + status = "okay"; +}; + +&i2c5 { + status = "okay"; +};
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts &kcs3 { · line 340
Quoted 10 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +10
-0+ +&i2c6 { + status = "okay"; + + i2c-mux at 70 { + compatible = "nxp,pca9548"; + reg = <0x70>; + #address-cells = <1>; + #size-cells = <0>; + status = "okay";
Drop
Other places as well.
Best regards,
Krzysztof
Re: [PATCH v1 5/8] ARM: dts: aspeed: System1: Voltage regulators
In reply to Ninad PalsuleQuoted 8 lines · Ninad Palsule
This commit adds different voltage regulators.
Tested:
This board is tested using the simics simulator.Signed-off-by Ninad Palsule <[email protected]>--- .../dts/aspeed/aspeed-bmc-ibm-system1.dts | 266 ++++++++++++++++++
Squash it.
Quoted 10 lines
1 file changed, 266 insertions(+)arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +0
-0@@ -114,10 +114,127 @@ vga_memory: region at bf000000 { }; };
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts vga_memory: region at bf000000 { · line 126
Quoted 10 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +10
-0+ iio-hwmon { + compatible = "iio-hwmon"; + io-channels = <&p12v_vd 0>, <&p5v_aux_vd 0>, + <&p5v_bmc_aux_vd 0>, <&p3v3_aux_vd 0>, + <&p3v3_bmc_aux_vd 0>, <&p1v8_bmc_aux_vd 0>, + <&adc1 4>, <&adc0 2>, <&adc1 0>, + <&p2V5_aux_vd 0>, <&adc1 7>; + }; + + p12v_vd: voltage_divider1 {
Same comments as in other patches.
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts vga_memory: region at bf000000 { · line 131
Quoted 5 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +5
-0+ compatible = "voltage-divider"; + io-channels = <&adc1 3>; + #io-channel-cells = <1>; + + /* Scale the system voltage by 1127/127 to fit the ADC range.
Use Linux coding style comments. /* and blank line
....
Best regards,
Krzysztof
Re: [PATCH v1 6/8] ARM: dts: aspeed: System1: GPIO, Fan ctrl, Led
In reply to Ninad PalsuleQuoted 11 lines · Ninad Palsule
This commit adds following devices to the device tree.
- GPIO pin assignements, GPIO expansion devices
- LED brinker devices
- Fan controllersTested:
This board is tested using the simics simulator.Signed-off-by Ninad Palsule <[email protected]>--- .../dts/aspeed/aspeed-bmc-ibm-system1.dts | 547 +++++++++++++++++-
Squash it.
Quoted 7 lines
1 file changed, 542 insertions(+), 5 deletions(-)arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +0
-0
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts vga_memory: region at bf000000 { · line 120
Quoted 7 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +4
-0@@ -114,6 +114,99 @@ vga_memory: region at bf000000 { }; }; + leds { + compatible = "gpio-leds"; + + bmc-ready {
It does not look like you tested the DTS against bindings. Please run make dtbs_check W=1 (see Documentation/devicetree/bindings/writing-schema.rst or
https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
for instructions).
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts vga_memory: region at bf000000 { · line 124
Quoted 4 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +4
-0+ gpios = <&gpio0 ASPEED_GPIO(L, 7) GPIO_ACTIVE_HIGH>; + }; + + bmc-hb {
None of these were tested.
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts &uhci { · line 355
Quoted 3 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +1
-1/*A0-A7*/ "","","","","","","","", - /*B0-B7*/ "","","","","","","","", + /*B0-B7*/ "","","","","bmc-tpm-reset","","","",
Really? You just added these lines. There is no point in adding a new line and immediately changing it.
This points how your split is artificial and not helpful.
...
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts regulator at 43 { · line 751
Quoted 10 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +5
-0&i2c2 {@@ -486,6 +744,20 @@ regulator at 43 { &i2c6 { status = "okay"; + fan-controller at 52 { + compatible = "maxim,max31785a"; + reg = <0x52>; + #address-cells = <1>; + #size-cells = <0>;
Why do you need cells?
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts regulator at 43 { · line 758
Quoted 7 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +7
-0+ }; + + fan-controller at 54 { + compatible = "maxim,max31785a"; + reg = <0x54>; + #address-cells = <1>; + #size-cells = <0>;
Why do you need cells?
Quoted 55 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +44
-0+ }; + i2c-mux at 70 { compatible = "nxp,pca9548"; reg = <0x70>;@@ -522,6 +794,48 @@ i2c6mux0chn4: i2c at 4 { #address-cells = <1>; #size-cells = <0>; reg = <4>; + + led-controller at 60 { + compatible = "nxp,pca9551"; + reg = <0x60>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + led at 0 { + label = "enclosure-id-led"; + reg = <0>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 1 { + label = "attention-led"; + reg = <1>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 2 { + label = "enclosure-fault-rollup-led"; + reg = <2>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 3 { + label = "power-on-led"; + reg = <3>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + }; }; i2c6mux0chn5: i2c at 5 {
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts i2c6mux0chn7: i2c at 7 { · line 860
Quoted 5 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +2
-0@@ -542,6 +856,44 @@ i2c6mux0chn7: i2c at 7 { reg = <7>; }; }; + + pca3: pca9539 at 74 {
Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts i2c6mux0chn7: i2c at 7 { · line 870
Quoted 10 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +10
-0+ compatible = "nxp,pca9539"; + reg = <0x74>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + }; + + pca4: pca9539 at 77 {
Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
Quoted 40 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +33
-0+ compatible = "nxp,pca9539"; + reg = <0x77>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + gpio-line-names = + "PE_NVMED0_EXP_PRSNT_N", + "PE_NVMED1_EXP_PRSNT_N", + "PE_NVMED2_EXP_PRSNT_N", + "PE_NVMED3_EXP_PRSNT_N", + "LED_FAULT_NVMED0", + "LED_FAULT_NVMED1", + "LED_FAULT_NVMED2", + "LED_FAULT_NVMED3", + "FAN0_PRESENCE_R_N", + "FAN1_PRESENCE_R_N", + "FAN2_PRESENCE_R_N", + "FAN3_PRESENCE_R_N", + "FAN4_PRESENCE_R_N", + "FAN5_PRESENCE_N", + "FAN6_PRESENCE_N", + ""; + }; }; &i2c7 {@@ -809,6 +1161,191 @@ regulator at 41 { compatible = "infineon,ir38263"; reg = <0x41>; }; + + led-controller at 61 { + compatible = "nxp,pca9552"; + reg = <0x61>; + #address-cells = <1>; + #size-cells = <0>; +
...
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts regulator at 41 { · line 1295
Quoted 10 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +10
-0+ led at 15 { + label = "pe-cp-drv3-perst"; + reg = <15>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + }; + + pca1: pca9539 at 75 {
Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
Best regards,
Krzysztof
Re: [PATCH v1 8/8] ARM: dts: aspeed: System1: PS, sensor and more
In reply to Ninad PalsuleQuoted 11 lines · Ninad Palsule
This drop adds following devices in the device tree.
- EEPROM/VPD
- Power supplies
- Humidity, pressure and temperature sensors.
- Trusted platform module(TPM) chipTested:
This board is tested using the simics simulator.Signed-off-by Ninad Palsule <[email protected]>---
Don't mix DTS with drivers. DTS and drivers go via different subsystems and cannot have dependencies, so why DTS is patch #6, then driver #7 and now again DTS #7?
Quoted 28 lines
.../dts/aspeed/aspeed-bmc-ibm-system1.dts | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+)arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +10
-0@@ -461,6 +461,11 @@ &kcs3 { &i2c0 { status = "okay"; + eeprom at 50 { + compatible = "atmel,24c64"; + reg = <0x50>; + }; + regulator at 60 { compatible = "maxim,max8952"; reg = <0x60>;@@ -655,6 +660,25 @@ pca0: pca9539 at 74 { &i2c2 { status = "okay"; + + power-supply at 58 { + compatible = "ibm,cffps"; + reg = <0x58>; + };
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts pca0: pca9539 at 74 { · line 677
Quoted 10 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +10
-0+ + power-supply at 59 { + compatible = "ibm,cffps"; + reg = <0x59>; + }; + + power-supply at 5a { + compatible = "ibm,cffps"; + reg = <0x5a>; + };
Missing blank line
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts pca0: pca9539 at 74 { · line 681
Quoted 4 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +4
-0+ power-supply at 5b { + compatible = "ibm,cffps"; + reg = <0x5b>; + };
Best regards,
Krzysztof
Rob Herring
maintainerRe: [PATCH v1 2/8] dt-bindings: tpm: Add schema for TIS I2C devices
In reply to Ninad PalsuleQuoted 7 lines · Ninad Palsule
From: Johannes Holland <[email protected]>
Add a dt schema to support device tree bindings for the generic I2C physical layer. Refer to the TCG PC Client Platform TPM Profile (PTP) Specification for TPM 2.0 v1.04 Revision 14.
This includes descriptions for the Nuvoton and Infineon devices.
This is incomplete and conflicts with this series[1]. Please help review and make sure it works for the cases you care about.
Rob
[1] https://lore.kernel.org/all/cover.1701093036.git.lukas at wunner.de/
Jarkko Sakkinen
maintainerRe: [PATCH v1 1/8] dt-bindings: arm: aspeed: add IBM system1-bmc
In reply to Ninad PalsuleQuoted 3 lines · Ninad Palsule
Document the new compatibles used on IBM system1-bmc
Tested:
this not very useful line :-) (nit)
Quoted 1 line
This board is tested using the simics simulator.
Just leave this (w/o indentation)
Quoted 24 lines
Signed-off-by Ninad Palsule <[email protected]>--- Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml | 1 + Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ 2 files changed, 3 insertions(+)Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml +1
-0@@ -85,6 +85,7 @@ properties: - facebook,yosemite4-bmc - ibm,everest-bmc - ibm,rainier-bmc + - ibm,system1-bmc - ibm,tacoma-bmc - inventec,starscream-bmc - inventec,transformer-bmcDocumentation/devicetree/bindings/trivial-devices.yaml +0
-0
Documentation/devicetree/bindings/trivial-devices.yaml properties: · line 142
Quoted 8 lines
Documentation/devicetree/bindings/trivial-devices.yaml +2
-0@@ -135,6 +135,8 @@ properties: - ibm,cffps1 # IBM Common Form Factor Power Supply Versions 2 - ibm,cffps2 + # Infineon barometric pressure and temperature sensor + - infineon,dps310 # Infineon IR36021 digital POL buck controller - infineon,ir36021 # Infineon IR38060 Voltage Regulator
BR, Jarkko
Jarkko Sakkinen
maintainerRe: [PATCH v1 2/8] dt-bindings: tpm: Add schema for TIS I2C devices
In reply to Ninad PalsuleQuoted 9 lines · Ninad Palsule
From: Johannes Holland <[email protected]>
Add a dt schema to support device tree bindings for the generic I2C physical layer. Refer to the TCG PC Client Platform TPM Profile (PTP) Specification for TPM 2.0 v1.04 Revision 14.
This includes descriptions for the Nuvoton and Infineon devices.
OpenBMC-Staging-Count: 3
Please don't invent your own tags.
Quoted 54 lines
Signed-off-by Johannes Holland <[email protected]>Signed-off-by Joel Stanley <[email protected]>Signed-off-by Ninad Palsule <[email protected]>--- .../bindings/security/tpm/tpm-tis-i2c.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yamlDocumentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +40
-0@@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/security/tpm/tpm-tis-i2c.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: I2C PTP based TPM Devices + +maintainers: + - Johannes Holland <[email protected]> + +description: + Device Tree Bindings for I2C based Trusted Platform Module (TPM). + +properties: + $nodename: + pattern: "^tpm(@[0-9a-f]+)?$" + + compatible: + oneOf: + - description: Infineon's Trusted Platform Module (TPM) (SLB9673). + items: + - const: infineon,slb9673 + - const: tcg,tpm-tis-i2c + - description: Nuvoton's Trusted Platform Module (TPM) (NPCT75x). + items: + - const: nuvoton,npct75x + - const: tcg,tpm-tis-i2c + - const: tcg,tpm-tis-i2c + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - |
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml line 50
Quoted 10 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +10
-0+ i2c { + #address-cells = <1>; + #size-cells = <0>; + + tpm at 2e { + compatible = "nuvoton,npct75x", "tcg,tpm-tis-i2c"; + reg = <0x2e>; + }; + }; +...
BR, Jarkko
Re: [PATCH v1 1/8] dt-bindings: arm: aspeed: add IBM system1-bmc
In reply to Jarkko SakkinenHello Jarkko,
Quoted 8 lines · Jarkko Sakkinen
Quoted 3 lines · Ninad Palsule
Document the new compatibles used on IBM system1-bmc
Tested:
this not very useful line :-) (nit)
Quoted 1 line
This board is tested using the simics simulator.
Just leave this (w/o indentation)
Based on Conor's suggestion, I have removed both lines.
Thanks for the review.
Thanks & Regards,
Ninad
Quoted 33 lines
Quoted 24 lines
Signed-off-by Ninad Palsule <[email protected]>--- Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml | 1 + Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ 2 files changed, 3 insertions(+)Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml +1
-0@@ -85,6 +85,7 @@ properties: - facebook,yosemite4-bmc - ibm,everest-bmc - ibm,rainier-bmc + - ibm,system1-bmc - ibm,tacoma-bmc - inventec,starscream-bmc - inventec,transformer-bmcDocumentation/devicetree/bindings/trivial-devices.yaml +0
-0Documentation/devicetree/bindings/trivial-devices.yaml properties: · line 142
Quoted 8 lines
Documentation/devicetree/bindings/trivial-devices.yaml +2
-0@@ -135,6 +135,8 @@ properties: - ibm,cffps1 # IBM Common Form Factor Power Supply Versions 2 - ibm,cffps2 + # Infineon barometric pressure and temperature sensor + - infineon,dps310 # Infineon IR36021 digital POL buck controller - infineon,ir36021 # Infineon IR38060 Voltage RegulatorBR, Jarkko
Re: [PATCH v1 2/8] dt-bindings: tpm: Add schema for TIS I2C devices
In reply to Jarkko SakkinenHello Jarkko,
Quoted 11 lines · Jarkko Sakkinen
Quoted 9 lines · Ninad Palsule
From: Johannes Holland <[email protected]>
Add a dt schema to support device tree bindings for the generic I2C physical layer. Refer to the TCG PC Client Platform TPM Profile (PTP) Specification for TPM 2.0 v1.04 Revision 14.
This includes descriptions for the Nuvoton and Infineon devices.
OpenBMC-Staging-Count: 3
Please don't invent your own tags.
Yes, Sorry. I have cherry-picked this commit from openbmc. Now I have removed this line.
Thanks for the review.
Thanks & Regards,
Ninad
Quoted 67 lines
Quoted 55 lines
Signed-off-by Johannes Holland <[email protected]>Signed-off-by Joel Stanley <[email protected]>Signed-off-by Ninad Palsule <[email protected]>--- .../bindings/security/tpm/tpm-tis-i2c.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+)create mode 100644
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yamlDocumentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +40
-0@@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/security/tpm/tpm-tis-i2c.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: I2C PTP based TPM Devices + +maintainers: + - Johannes Holland <[email protected]> + +description: + Device Tree Bindings for I2C based Trusted Platform Module (TPM). + +properties: + $nodename: + pattern: "^tpm(@[0-9a-f]+)?$" + + compatible: + oneOf: + - description: Infineon's Trusted Platform Module (TPM) (SLB9673). + items: + - const: infineon,slb9673 + - const: tcg,tpm-tis-i2c + - description: Nuvoton's Trusted Platform Module (TPM) (NPCT75x). + items: + - const: nuvoton,npct75x + - const: tcg,tpm-tis-i2c + - const: tcg,tpm-tis-i2c + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - |Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml line 50
Quoted 10 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +10
-0+ i2c { + #address-cells = <1>; + #size-cells = <0>; + + tpm at 2e { + compatible = "nuvoton,npct75x", "tcg,tpm-tis-i2c"; + reg = <0x2e>; + }; + }; +...BR, Jarkko
Re: [PATCH v1 8/8] ARM: dts: aspeed: System1: PS, sensor and more
In reply to Krzysztof KozlowskiHello Krzysztof,
Quoted 7 lines · Krzysztof Kozlowski
Quoted 6 lines · Ninad Palsule
This drop adds following devices in the device tree.
- EEPROM/VPD
- Power supplies
- Humidity, pressure and temperature sensors.
- Trusted platform module(TPM) chip
Quoted 8 lines
Quoted 5 lines
Tested:
This board is tested using the simics simulator.Signed-off-by Ninad Palsule <[email protected]>---
Don't mix DTS with drivers. DTS and drivers go via different subsystems and cannot have dependencies, so why DTS is patch #6, then driver #7 and now again DTS #7?
There is a dependency on driver code as patch #8 uses the compatibility string added in driver patch #7.? I have now moved driver patch at the start. Is that ok? OR you are suggesting something else?
v1-0001-tpm-tis-i2c-Add-more-compatible-strings.patch
??? ??? ??? ??? ??? ??? |
v1-0009-ARM-dts-aspeed-System1-PS-sensor-and-more.patch
Quoted 32 lines
Quoted 32 lines
.../dts/aspeed/aspeed-bmc-ibm-system1.dts | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+)arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +13
-0@@ -461,6 +461,11 @@ &kcs3 { &i2c0 { status = "okay"; + eeprom at 50 { + compatible = "atmel,24c64"; + reg = <0x50>; + }; + regulator at 60 { compatible = "maxim,max8952"; reg = <0x60>;@@ -655,6 +660,25 @@ pca0: pca9539 at 74 { &i2c2 { status = "okay"; + + power-supply at 58 { + compatible = "ibm,cffps"; + reg = <0x58>; + }; + + power-supply at 59 { + compatible = "ibm,cffps";
Quoted 8 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts pca0: pca9539 at 74 { · line 677
Quoted 7 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +7
-0+ reg = <0x59>; + }; + + power-supply at 5a { + compatible = "ibm,cffps"; + reg = <0x5a>; + };Missing blank line
Fixed it.
Thanks for the review.
Regards,
Ninad
Quoted 9 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts pca0: pca9539 at 74 { · line 681
Quoted 5 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +4
-0+ power-supply at 5b { + compatible = "ibm,cffps"; + reg = <0x5b>; + };Best regards,
Krzysztof
Re: [PATCH v1 8/8] ARM: dts: aspeed: System1: PS, sensor and more
Quoted 15 lines · Ninad Palsule
Hello Krzysztof,
Quoted 12 lines · Krzysztof Kozlowski
Quoted 11 lines · Ninad Palsule
This drop adds following devices in the device tree.
- EEPROM/VPD
- Power supplies
- Humidity, pressure and temperature sensors.
- Trusted platform module(TPM) chipTested:
This board is tested using the simics simulator.Signed-off-by Ninad Palsule <[email protected]>---
Quoted 7 lines
Quoted 3 lines
Don't mix DTS with drivers. DTS and drivers go via different subsystems and cannot have dependencies, so why DTS is patch #6, then driver #7 and now again DTS #7?
There is a dependency on driver code as patch #8 uses the compatibility string added in driver patch #7.? I have now moved driver patch at the start. Is that ok? OR you are suggesting something else?
First, there is no dependency. Second, except confusing order anyway DTS will go via separate trees. Third, again, there is no dependency. If there is, your patchset is broken and this needs to be fixed. Although I don't understand how new hardware can depend on driver... it's really odd.
Best regards,
Krzysztof
Re: [PATCH v1 8/8] ARM: dts: aspeed: System1: PS, sensor and more
Hello Krzysztof,
Quoted 19 lines · Krzysztof Kozlowski
Quoted 18 lines · Ninad Palsule
Hello Krzysztof,
Quoted 15 lines · Krzysztof Kozlowski
Quoted 11 lines · Ninad Palsule
This drop adds following devices in the device tree.
- EEPROM/VPD
- Power supplies
- Humidity, pressure and temperature sensors.
- Trusted platform module(TPM) chipTested:
This board is tested using the simics simulator.Signed-off-by Ninad Palsule <[email protected]>---
Don't mix DTS with drivers. DTS and drivers go via different subsystems and cannot have dependencies, so why DTS is patch #6, then driver #7 and now again DTS #7?
Quoted 7 lines
Quoted 3 lines
There is a dependency on driver code as patch #8 uses the compatibility string added in driver patch #7.? I have now moved driver patch at the start. Is that ok? OR you are suggesting something else?
First, there is no dependency. Second, except confusing order anyway DTS will go via separate trees. Third, again, there is no dependency. If there is, your patchset is broken and this needs to be fixed. Although I don't understand how new hardware can depend on driver... it's really odd.
Thanks for the quick response.
This board uses the nuvoton TPM device. The tpm devices uses "nuvoton,npct75x" driver hence we added it in the device tree. If the driver doesn't have this compatibility string then it won't load. So if someone tries to use this board then tpm won't work unless the compatibility string is added in the driver. That is the dependency I am talking about.
Please let me know.
Regards,
Ninad
Quoted 4 lines
Best regards,
Krzysztof
Re: [PATCH v1 8/8] ARM: dts: aspeed: System1: PS, sensor and more
Quoted 30 lines · Ninad Palsule
Hello Krzysztof,
Quoted 19 lines · Krzysztof Kozlowski
Quoted 18 lines · Ninad Palsule
Hello Krzysztof,
Quoted 15 lines · Krzysztof Kozlowski
Quoted 11 lines · Ninad Palsule
This drop adds following devices in the device tree.
- EEPROM/VPD
- Power supplies
- Humidity, pressure and temperature sensors.
- Trusted platform module(TPM) chipTested:
This board is tested using the simics simulator.Signed-off-by Ninad Palsule <[email protected]>---
Don't mix DTS with drivers. DTS and drivers go via different subsystems and cannot have dependencies, so why DTS is patch #6, then driver #7 and now again DTS #7?
Quoted 7 lines
Quoted 3 lines
There is a dependency on driver code as patch #8 uses the compatibility string added in driver patch #7.? I have now moved driver patch at the start. Is that ok? OR you are suggesting something else?
First, there is no dependency. Second, except confusing order anyway DTS will go via separate trees. Third, again, there is no dependency. If there is, your patchset is broken and this needs to be fixed. Although I don't understand how new hardware can depend on driver... it's really odd.
Quoted 6 lines
Thanks for the quick response.
This board uses the nuvoton TPM device. The tpm devices uses "nuvoton,npct75x" driver hence we added it in the device tree. If the driver doesn't have this compatibility string then it won't load. So if someone tries to use this board then tpm won't work unless the
... and if there is no board it also fails to load.
Quoted 2 lines
compatibility string is added in the driver. That is the dependency I am talking about.
This is not a dependency! It's unrelated.
Best regards,
Krzysztof
Re: [PATCH v1 8/8] ARM: dts: aspeed: System1: PS, sensor and more
Hello Krzysztof,
Quoted 36 lines · Krzysztof Kozlowski
Quoted 29 lines · Ninad Palsule
Hello Krzysztof,
Quoted 19 lines · Krzysztof Kozlowski
Quoted 18 lines · Ninad Palsule
Hello Krzysztof,
Quoted 15 lines · Krzysztof Kozlowski
Quoted 11 lines · Ninad Palsule
This drop adds following devices in the device tree.
- EEPROM/VPD
- Power supplies
- Humidity, pressure and temperature sensors.
- Trusted platform module(TPM) chipTested:
This board is tested using the simics simulator.Signed-off-by Ninad Palsule <[email protected]>---
Don't mix DTS with drivers. DTS and drivers go via different subsystems and cannot have dependencies, so why DTS is patch #6, then driver #7 and now again DTS #7?
Quoted 7 lines
Quoted 3 lines
There is a dependency on driver code as patch #8 uses the compatibility string added in driver patch #7.? I have now moved driver patch at the start. Is that ok? OR you are suggesting something else?
First, there is no dependency. Second, except confusing order anyway DTS will go via separate trees. Third, again, there is no dependency. If there is, your patchset is broken and this needs to be fixed. Although I don't understand how new hardware can depend on driver... it's really odd.
Quoted 6 lines
Thanks for the quick response.
This board uses the nuvoton TPM device. The tpm devices uses "nuvoton,npct75x" driver hence we added it in the device tree. If the driver doesn't have this compatibility string then it won't load. So if someone tries to use this board then tpm won't work unless the
Quoted 5 lines
... and if there is no board it also fails to load.
Quoted 2 lines
compatibility string is added in the driver. That is the dependency I am talking about.
This is not a dependency! It's unrelated.
ok, I will send it as a separate patch.
Thanks for the prompt reply.
Regards,
Ninad
Quoted 4 lines
Best regards,
Krzysztof
Re: [PATCH v1 8/8] ARM: dts: aspeed: System1: PS, sensor and more
In reply to Krzysztof KozlowskiHello Krzysztof,
Quoted 7 lines · Krzysztof Kozlowski
Quoted 6 lines · Ninad Palsule
This drop adds following devices in the device tree.
- EEPROM/VPD
- Power supplies
- Humidity, pressure and temperature sensors.
- Trusted platform module(TPM) chip
Quoted 8 lines
Quoted 5 lines
Tested:
This board is tested using the simics simulator.Signed-off-by Ninad Palsule <[email protected]>---
Don't mix DTS with drivers. DTS and drivers go via different subsystems and cannot have dependencies, so why DTS is patch #6, then driver #7 and now again DTS #7?
I have sent a driver patch as a separate patchset and removed it from this patchset.
Quoted 33 lines
Quoted 33 lines
.../dts/aspeed/aspeed-bmc-ibm-system1.dts | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+)arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +13
-0@@ -461,6 +461,11 @@ &kcs3 { &i2c0 { status = "okay"; + eeprom at 50 { + compatible = "atmel,24c64"; + reg = <0x50>; + }; + regulator at 60 { compatible = "maxim,max8952"; reg = <0x60>;@@ -655,6 +660,25 @@ pca0: pca9539 at 74 { &i2c2 { status = "okay"; + + power-supply at 58 { + compatible = "ibm,cffps"; + reg = <0x58>; + }; + + power-supply at 59 { + compatible = "ibm,cffps";
Quoted 8 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts pca0: pca9539 at 74 { · line 677
Quoted 7 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +7
-0+ reg = <0x59>; + }; + + power-supply at 5a { + compatible = "ibm,cffps"; + reg = <0x5a>; + };Missing blank line
Fixed it.
Thanks for the review.
Regards,
Ninad
Quoted 9 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts pca0: pca9539 at 74 { · line 681
Quoted 5 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +4
-0+ power-supply at 5b { + compatible = "ibm,cffps"; + reg = <0x5b>; + };Best regards,
Krzysztof
Re: [PATCH v1 3/8] ARM: dts: aspeed: System1: IBM system1 BMC board
In reply to Krzysztof KozlowskiHello Krzysztof,
Quoted 44 lines · Krzysztof Kozlowski
Quoted 43 lines · Ninad Palsule
From: Andrew Geissler <[email protected]>
Add a device tree for IBM system1 BMC board. It uses AST2600 SOC.
Tested:
This board is tested using the simics simulator.Signed-off-by Andrew Geissler <[email protected]>Signed-off-by Ninad Palsule <[email protected]>--- arch/arm/boot/dts/aspeed/Makefile | 1 + .../dts/aspeed/aspeed-bmc-ibm-system1.dts | 188 ++++++++++++++++++ 2 files changed, 189 insertions(+)create mode 100644
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dtsarch/arm/boot/dts/aspeed/Makefile +1
-0@@ -35,6 +35,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ aspeed-bmc-ibm-rainier.dtb \ aspeed-bmc-ibm-rainier-1s4u.dtb \ aspeed-bmc-ibm-rainier-4u.dtb \ + aspeed-bmc-ibm-system1.dtb \ aspeed-bmc-intel-s2600wf.dtb \ aspeed-bmc-inspur-fp5280g2.dtb \ aspeed-bmc-inspur-nf5280m6.dtb \arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts new file +10
-0@@ -0,0 +1,188 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +// Copyright 2023 IBM Corp. +/dts-v1/; + +#include "aspeed-g6.dtsi" +#include <dt-bindings/gpio/aspeed-gpio.h> +#include <dt-bindings/i2c/i2c.h> +#include <dt-bindings/leds/leds-pca955x.h> + +/ {
Quoted 8 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts line 16
Quoted 6 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts new file +6
-0+ model = "System1"; + compatible = "ibm,system1-bmc", "aspeed,ast2600"; + + chosen { + stdout-path = &uart5; + bootargs = "console=ttyS4,115200n8 earlycon";Drop early con, debugging feature not release. Then use stdout path alone, so drop console as well.
Fixed as per your suggestion.
Quoted 15 lines
Quoted 4 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts new file +3
-0+ }; + + memory at 80000000 {arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts line 29
Quoted 10 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts new file +10
-0+ device_type = "memory"; + reg = <0x80000000 0x40000000>; + }; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + event_log: tcg_event_log at b3d00000 {No underscores in node names.
Fixed.
Thanks for the review.
Regards,
Ninad
Quoted 5 lines
Best regards,
Krzysztof
Re: [PATCH v1 2/8] dt-bindings: tpm: Add schema for TIS I2C devices
In reply to Conor DooleyHello Conor,
Quoted 7 lines · Conor Dooley
Hey,
Quoted 3 lines · Ninad Palsule
From: Johannes Holland <[email protected]>
Add a dt schema to support device tree bindings
"Add bindings for..."
Fixed.
Quoted 9 lines
Quoted 8 lines
for the generic I2C
physical layer. Refer to the TCG PC Client Platform TPM Profile (PTP) Specification for TPM 2.0 v1.04 Revision 14.This includes descriptions for the Nuvoton and Infineon devices.
OpenBMC-Staging-Count: 3
I have no idea what this is, but it needs to be removed from the patch.
Removed.
Quoted 22 lines
Quoted 22 lines
Signed-off-by Johannes Holland <[email protected]>Signed-off-by Joel Stanley <[email protected]>Signed-off-by Ninad Palsule <[email protected]>--- .../bindings/security/tpm/tpm-tis-i2c.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+)create mode 100644
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yamlDocumentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +7
-0@@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/security/tpm/tpm-tis-i2c.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: I2C PTP based TPM Devices
Quoted 8 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml line 13
Quoted 6 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +6
-0+ +maintainers: + - Johannes Holland <[email protected]> + +description: + Device Tree Bindings for I2C based Trusted Platform Module (TPM).s/Device Tree Bindings for //. Doesn't
dt_binding_checknow complain if you have this in a title or description?
Fixed.
Quoted 11 lines
Quoted 11 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +10
-0+properties: + $nodename: + pattern: "^tpm(@[0-9a-f]+)?$" + + compatible: + oneOf: + - description: Infineon's Trusted Platform Module (TPM) (SLB9673). + items: + - const: infineon,slb9673 + - const: tcg,tpm-tis-i2c
Quoted 8 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml line 29
Quoted 5 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +5
-0+ - description: Nuvoton's Trusted Platform Module (TPM) (NPCT75x). + items: + - const: nuvoton,npct75x + - const: tcg,tpm-tis-i2c + - const: tcg,tpm-tis-i2cIMO this should be removed and this fallback should only be used in combination with device specific compatibles, like you have here for the infineon and nuvoton devices.
As Guenter mentioned I need to keep it as tacoma board is just using this string.
Thanks for the review.
Regards,
Ninad
Quoted 28 lines
Cheers,
Conor.Quoted 24 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +21
-0+ reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + tpm at 2e { + compatible = "nuvoton,npct75x", "tcg,tpm-tis-i2c"; + reg = <0x2e>; + }; + }; +...Signature · 1 line
2.39.2
Re: [PATCH v1 2/8] dt-bindings: tpm: Add schema for TIS I2C devices
In reply to Guenter RoeckHello Guenter,
Quoted 66 lines · Guenter Roeck
Quoted 57 lines · Conor Dooley
Hey,
Quoted 3 lines · Ninad Palsule
From: Johannes Holland <[email protected]>
Add a dt schema to support device tree bindings
"Add bindings for..."
Quoted 7 lines
for the generic I2C
physical layer. Refer to the TCG PC Client Platform TPM Profile (PTP) Specification for TPM 2.0 v1.04 Revision 14.This includes descriptions for the Nuvoton and Infineon devices.
OpenBMC-Staging-Count: 3
I have no idea what this is, but it needs to be removed from the patch.
Quoted 17 lines
Signed-off-by Johannes Holland <[email protected]>Signed-off-by Joel Stanley <[email protected]>Signed-off-by Ninad Palsule <[email protected]>--- .../bindings/security/tpm/tpm-tis-i2c.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+)create mode 100644
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yamlDocumentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +3
-0@@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +---Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml line 13
Quoted 10 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +10
-0+$id: http://devicetree.org/schemas/security/tpm/tpm-tis-i2c.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: I2C PTP based TPM Devices + +maintainers: + - Johannes Holland <[email protected]> + +description: + Device Tree Bindings for I2C based Trusted Platform Module (TPM).s/Device Tree Bindings for //. Doesn't
dt_binding_checknow complain if you have this in a title or description?Quoted 10 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +10
-0+properties: + $nodename: + pattern: "^tpm(@[0-9a-f]+)?$" + + compatible: + oneOf: + - description: Infineon's Trusted Platform Module (TPM) (SLB9673). + items: + - const: infineon,slb9673 + - const: tcg,tpm-tis-i2cQuoted 8 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml line 29
Quoted 5 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +5
-0+ - description: Nuvoton's Trusted Platform Module (TPM) (NPCT75x). + items: + - const: nuvoton,npct75x + - const: tcg,tpm-tis-i2c + - const: tcg,tpm-tis-i2cIMO this should be removed and this fallback should only be used in combination with device specific compatibles, like you have here for the infineon and nuvoton devices.
Quoted 7 lines
As mentioned in my response to the other patch, "only" isn't sufficient since the tacoma devicetree file only references the generic entry. It would also make support for chips from other vendors unnecessarily complex.
Question should in my opinion be if the non-fallback entries are really needed.
Thanks for the response. I think generic option is in-case we have a chip whose specific driver is not available.
Regards,
Ninad
Quoted 3 lines
Thanks,
Guenter
Re: [PATCH v1 5/8] ARM: dts: aspeed: System1: Voltage regulators
In reply to Krzysztof KozlowskiHello Krzysztof,
Quoted 10 lines · Krzysztof Kozlowski
Quoted 8 lines · Ninad Palsule
This commit adds different voltage regulators.
Tested:
This board is tested using the simics simulator.Signed-off-by Ninad Palsule <[email protected]>--- .../dts/aspeed/aspeed-bmc-ibm-system1.dts | 266 ++++++++++++++++++Squash it.
Done.
Quoted 11 lines
Quoted 11 lines
1 file changed, 266 insertions(+)arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +0
-0@@ -114,10 +114,127 @@ vga_memory: region at bf000000 { }; };
Quoted 11 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts vga_memory: region at bf000000 { · line 126
Quoted 10 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +10
-0+ iio-hwmon { + compatible = "iio-hwmon"; + io-channels = <&p12v_vd 0>, <&p5v_aux_vd 0>, + <&p5v_bmc_aux_vd 0>, <&p3v3_aux_vd 0>, + <&p3v3_bmc_aux_vd 0>, <&p1v8_bmc_aux_vd 0>, + <&adc1 4>, <&adc0 2>, <&adc1 0>, + <&p2V5_aux_vd 0>, <&adc1 7>; + }; + + p12v_vd: voltage_divider1 {Same comments as in other patches.
Fixed.
Quoted 7 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts vga_memory: region at bf000000 { · line 131
Quoted 6 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +5
-0+ compatible = "voltage-divider"; + io-channels = <&adc1 3>; + #io-channel-cells = <1>; + + /* Scale the system voltage by 1127/127 to fit the ADC range.Use Linux coding style comments. /* and blank line
Fixed.
Thanks for the review.
Regards,
Ninad
Quoted 7 lines
....
Best regards,
Krzysztof
Re: [PATCH v1 2/8] dt-bindings: tpm: Add schema for TIS I2C devices
In reply to Ninad PalsuleQuoted 53 lines · Ninad Palsule
Hello Conor,
Quoted 7 lines · Conor Dooley
Hey,
Quoted 3 lines · Ninad Palsule
From: Johannes Holland <[email protected]>
Add a dt schema to support device tree bindings
"Add bindings for..."
Fixed.
Quoted 9 lines
Quoted 8 lines
for the generic I2C
physical layer. Refer to the TCG PC Client Platform TPM Profile (PTP) Specification for TPM 2.0 v1.04 Revision 14.This includes descriptions for the Nuvoton and Infineon devices.
OpenBMC-Staging-Count: 3
I have no idea what this is, but it needs to be removed from the patch.
Removed.
Quoted 22 lines
Quoted 22 lines
Signed-off-by Johannes Holland <[email protected]>Signed-off-by Joel Stanley <[email protected]>Signed-off-by Ninad Palsule <[email protected]>--- .../bindings/security/tpm/tpm-tis-i2c.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+)create mode 100644
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yamlDocumentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +7
-0@@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/security/tpm/tpm-tis-i2c.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: I2C PTP based TPM DevicesQuoted 8 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml line 13
Quoted 6 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +6
-0+ +maintainers: + - Johannes Holland <[email protected]> + +description: + Device Tree Bindings for I2C based Trusted Platform Module (TPM).s/Device Tree Bindings for //. Doesn't
dt_binding_checknow complain if you have this in a title or description?Fixed.
Quoted 1 line
Quoted 14 lines
Quoted 6 lines
Quoted 6 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +6
-0+properties: + $nodename: + pattern: "^tpm(@[0-9a-f]+)?$" + + compatible: + oneOf:Quoted 8 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml line 28
Quoted 8 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +8
-0+ - description: Infineon's Trusted Platform Module (TPM) (SLB9673). + items: + - const: infineon,slb9673 + - const: tcg,tpm-tis-i2c + - description: Nuvoton's Trusted Platform Module (TPM) (NPCT75x). + items: + - const: nuvoton,npct75x + - const: tcg,tpm-tis-i2c
Also, another thought - the bus is not usually encoded in the compatible string, so it would be good to remove that.
Quoted 7 lines
Quoted 4 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml line 28
Quoted 1 line
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +1
-0+ - const: tcg,tpm-tis-i2cIMO this should be removed and this fallback should only be used in combination with device specific compatibles, like you have here for the infineon and nuvoton devices.
As Guenter mentioned I need to keep it as tacoma board is just using this string.
No, that does not mean that you have to keep this in the binding. I know Rob had some comments that might invalidate this binding entirely, but if that does not happen then I think think that the tacoma devicetree needs to have a device-specific compatible added for the tpm that it has. You could of course retain the generic fallback compatible however.
Re: [PATCH v1 4/8] ARM: dts: aspeed: System1: Add i2c and muxes
In reply to Krzysztof KozlowskiHello Krzysztof,
Quoted 6 lines · Krzysztof Kozlowski
Quoted 5 lines · Ninad Palsule
This commit adds i2c devices and muxes.
Tested:
This board is tested using the simics simulator.
Quoted 8 lines
Quoted 5 lines
Signed-off-by Ninad Palsule <[email protected]>--- .../dts/aspeed/aspeed-bmc-ibm-system1.dts | 577 ++++++++++++++++++ 1 file changed, 577 insertions(+)Why do you split new submission into multiple chunks? The logical feature here is new board, so all your DTS patches adding new board should be in one patch.
Oh,ok. I thought it might be easier to review but now I squashed them together.
Quoted 69 lines
Quoted 69 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +59
-0@@ -11,6 +11,65 @@ / { model = "System1"; compatible = "ibm,system1-bmc", "aspeed,ast2600"; + aliases { + i2c16 = &i2c8mux1chn0; + i2c17 = &i2c8mux1chn1; + i2c18 = &i2c8mux1chn2; + i2c19 = &i2c8mux1chn3; + i2c20 = &i2c8mux1chn4; + i2c21 = &i2c8mux1chn5; + i2c22 = &i2c8mux1chn6; + i2c23 = &i2c8mux1chn7; + i2c24 = &i2c3mux0chn0; + i2c25 = &i2c3mux0chn1; + i2c26 = &i2c3mux0chn2; + i2c27 = &i2c3mux0chn3; + i2c28 = &i2c3mux0chn4; + i2c29 = &i2c3mux0chn5; + i2c30 = &i2c3mux0chn6; + i2c31 = &i2c3mux0chn7; + i2c32 = &i2c6mux0chn0; + i2c33 = &i2c6mux0chn1; + i2c34 = &i2c6mux0chn2; + i2c35 = &i2c6mux0chn3; + i2c36 = &i2c6mux0chn4; + i2c37 = &i2c6mux0chn5; + i2c38 = &i2c6mux0chn6; + i2c39 = &i2c6mux0chn7; + i2c40 = &i2c7mux0chn0; + i2c41 = &i2c7mux0chn1; + i2c42 = &i2c7mux0chn2; + i2c43 = &i2c7mux0chn3; + i2c44 = &i2c7mux0chn4; + i2c45 = &i2c7mux0chn5; + i2c46 = &i2c7mux0chn6; + i2c47 = &i2c7mux0chn7; + i2c48 = &i2c8mux0chn0; + i2c49 = &i2c8mux0chn1; + i2c50 = &i2c8mux0chn2; + i2c51 = &i2c8mux0chn3; + i2c52 = &i2c8mux0chn4; + i2c53 = &i2c8mux0chn5; + i2c54 = &i2c8mux0chn6; + i2c55 = &i2c8mux0chn7; + i2c56 = &i2c14mux0chn0; + i2c57 = &i2c14mux0chn1; + i2c58 = &i2c14mux0chn2; + i2c59 = &i2c14mux0chn3; + i2c60 = &i2c14mux0chn4; + i2c61 = &i2c14mux0chn5; + i2c62 = &i2c14mux0chn6; + i2c63 = &i2c14mux0chn7; + i2c64 = &i2c15mux0chn0; + i2c65 = &i2c15mux0chn1; + i2c66 = &i2c15mux0chn2; + i2c67 = &i2c15mux0chn3; + i2c68 = &i2c15mux0chn4; + i2c69 = &i2c15mux0chn5; + i2c70 = &i2c15mux0chn6; + i2c71 = &i2c15mux0chn7; + }; + chosen {
Quoted 8 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts vga_memory: region at bf000000 { · line 116
Quoted 7 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +1
-0stdout-path = &uart5; bootargs = "console=ttyS4,115200n8 earlycon";@@ -54,10 +113,12 @@ vga_memory: region at bf000000 { reg = <0xbf000000 0x01000000>; /* 16M */ }; }; +You need to clean your patchset...
I made changes about the stdout-path, is that what you mean?
Quoted 8 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts vga_memory: region at bf000000 { · line 121
Quoted 7 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +1
-0}; &adc1 { status = "okay"; +Really.
I need to add "status = okay" otherwise its not instantiated.
Quoted 23 lines
Quoted 23 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +15
-0aspeed,int-vref-microvolt = <2500000>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_adc8_default@@ -186,3 +247,519 @@ &kcs3 { aspeed,lpc-io-reg = <0xca2>; aspeed,lpc-interrupts = <11 IRQ_TYPE_LEVEL_LOW>; }; + +&i2c0 { + status = "okay"; +}; + +&i2c1 { + status = "okay"; +}; + +&i2c2 { + status = "okay"; +}; + +&i2c3 { + status = "okay";
Quoted 8 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts &kcs3 { · line 271
Quoted 7 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +7
-0+ + i2c-mux at 70 { + compatible = "nxp,pca9548"; + reg = <0x70>; + #address-cells = <1>; + #size-cells = <0>; + status = "okay";Drop
Done.
Quoted 63 lines
Quoted 63 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +62
-0+ i2c-mux-idle-disconnect; + + i2c3mux0chn0: i2c at 0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + }; + + i2c3mux0chn1: i2c at 1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + }; + + i2c3mux0chn2: i2c at 2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + }; + + i2c3mux0chn3: i2c at 3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + }; + + i2c3mux0chn4: i2c at 4 { + #address-cells = <1>; + #size-cells = <0>; + reg = <4>; + }; + + i2c3mux0chn5: i2c at 5 { + #address-cells = <1>; + #size-cells = <0>; + reg = <5>; + }; + + i2c3mux0chn6: i2c at 6 { + #address-cells = <1>; + #size-cells = <0>; + reg = <6>; + }; + + i2c3mux0chn7: i2c at 7 { + #address-cells = <1>; + #size-cells = <0>; + reg = <7>; + }; + }; +}; + +&i2c4 { + status = "okay"; +}; + +&i2c5 { + status = "okay"; +}; + +&i2c6 { + status = "okay";
Quoted 8 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts &kcs3 { · line 271
Quoted 7 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +7
-0+ + i2c-mux at 70 { + compatible = "nxp,pca9548"; + reg = <0x70>; + #address-cells = <1>; + #size-cells = <0>; + status = "okay";Drop
Done
Thanks for the review.
Regards,
Ninad
Quoted 7 lines
Other places as well.
Best regards,
Krzysztof
Re: [PATCH v1 2/8] dt-bindings: tpm: Add schema for TIS I2C devices
In reply to Conor DooleyQuoted 64 lines · On Thu, Dec 14, 2023 at 10:35?AM Conor Dooley <[email protected]> wrote:
Quoted 62 lines · Ninad Palsule
Hello Conor,
Quoted 7 lines · Conor Dooley
Hey,
Quoted 3 lines · Ninad Palsule
From: Johannes Holland <[email protected]>
Add a dt schema to support device tree bindings
"Add bindings for..."
Fixed.
Quoted 9 lines
Quoted 8 lines
for the generic I2C
physical layer. Refer to the TCG PC Client Platform TPM Profile (PTP) Specification for TPM 2.0 v1.04 Revision 14.This includes descriptions for the Nuvoton and Infineon devices.
OpenBMC-Staging-Count: 3
I have no idea what this is, but it needs to be removed from the patch.
Removed.
Quoted 22 lines
Quoted 22 lines
Signed-off-by Johannes Holland <[email protected]>Signed-off-by Joel Stanley <[email protected]>Signed-off-by Ninad Palsule <[email protected]>--- .../bindings/security/tpm/tpm-tis-i2c.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+)create mode 100644
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yamlDocumentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +7
-0@@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/security/tpm/tpm-tis-i2c.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: I2C PTP based TPM DevicesQuoted 8 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml line 13
Quoted 6 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +6
-0+ +maintainers: + - Johannes Holland <[email protected]> + +description: + Device Tree Bindings for I2C based Trusted Platform Module (TPM).s/Device Tree Bindings for //. Doesn't
dt_binding_checknow complain if you have this in a title or description?Fixed.
Quoted 10 lines
Quoted 10 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +9
-0+properties: + $nodename: + pattern: "^tpm(@[0-9a-f]+)?$" + + compatible: + oneOf: + - description: Infineon's Trusted Platform Module (TPM) (SLB9673). + items: + - const: infineon,slb9673
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml line 28
Quoted 5 lines
Documentation/devicetree/bindings/security/tpm/tpm-tis-i2c.yaml new file +5
-0+ - const: tcg,tpm-tis-i2c + - description: Nuvoton's Trusted Platform Module (TPM) (NPCT75x). + items: + - const: nuvoton,npct75x + - const: tcg,tpm-tis-i2cAlso, another thought - the bus is not usually encoded in the compatible string, so it would be good to remove that.
True, but we already have 3 different bus variants in this case. So that ship has sailed.
Rob
Re: [PATCH v1 2/8] dt-bindings: tpm: Add schema for TIS I2C devices
In reply to Rob HerringHello Rob,
Quoted 7 lines · Rob Herring
Quoted 6 lines · Ninad Palsule
From: Johannes Holland <[email protected]>
Add a dt schema to support device tree bindings for the generic I2C physical layer. Refer to the TCG PC Client Platform TPM Profile (PTP) Specification for TPM 2.0 v1.04 Revision 14.
Quoted 7 lines
Quoted 1 line
This includes descriptions for the Nuvoton and Infineon devices.
This is incomplete and conflicts with this series[1]. Please help review and make sure it works for the cases you care about.
Rob
[1] https://lore.kernel.org/all/cover.1701093036.git.lukas at wunner.de/
I will take a look at the patchset. How do you want to handle mine? Do you want me to send patch as per the new directory structure?
Thanks for the review.
Regards,
Ninad
Re: [PATCH v1 4/8] ARM: dts: aspeed: System1: Add i2c and muxes
In reply to Ninad PalsuleQuoted 10 lines · Ninad Palsule
Quoted 9 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts vga_memory: region at bf000000 { · line 116
Quoted 8 lines
chosen { stdout-path = &uart5; bootargs = "console=ttyS4,115200n8 earlycon";arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +1
-0@@ -54,10 +113,12 @@ vga_memory: region at bf000000 { reg = <0xbf000000 0x01000000>; /* 16M */ }; }; +You need to clean your patchset...
I made changes about the stdout-path, is that what you mean?
No, I meant you made irrelevant changes in this patch.
Quoted 9 lines
Quoted 8 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts vga_memory: region at bf000000 { · line 121
Quoted 7 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +1
-0}; &adc1 { status = "okay"; +Really.
I need to add "status = okay" otherwise its not instantiated.
That was about blank line. How is it related to this patch "Add i2c and muxes"?
Best regards,
Krzysztof
Re: [PATCH v1 2/8] dt-bindings: tpm: Add schema for TIS I2C devices
In reply to Rob HerringHi Rob,
Quoted 7 lines · Rob Herring
Quoted 6 lines · Ninad Palsule
From: Johannes Holland <[email protected]>
Add a dt schema to support device tree bindings for the generic I2C physical layer. Refer to the TCG PC Client Platform TPM Profile (PTP) Specification for TPM 2.0 v1.04 Revision 14.
Quoted 7 lines
Quoted 1 line
This includes descriptions for the Nuvoton and Infineon devices.
This is incomplete and conflicts with this series[1]. Please help review and make sure it works for the cases you care about.
Rob
[1] https://lore.kernel.org/all/cover.1701093036.git.lukas at wunner.de/
Looks like my patch "dt-bindings: tpm: Add schema for TIS I2C devices" is not required. I am removing it.
Thanks for the review.
Regards,
Ninad
Re: [PATCH v1 6/8] ARM: dts: aspeed: System1: GPIO, Fan ctrl, Led
In reply to Krzysztof KozlowskiHello Krzysztof,
Quoted 6 lines · Krzysztof Kozlowski
Quoted 5 lines · Ninad Palsule
This commit adds following devices to the device tree.
- GPIO pin assignements, GPIO expansion devices
- LED brinker devices
- Fan controllers
Quoted 7 lines
Quoted 6 lines
Tested:
This board is tested using the simics simulator.Signed-off-by Ninad Palsule <[email protected]>--- .../dts/aspeed/aspeed-bmc-ibm-system1.dts | 547 +++++++++++++++++-Squash it.
Yes, I made a single commit for device tree.
Quoted 11 lines
Quoted 11 lines
1 file changed, 542 insertions(+), 5 deletions(-)arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +0
-0@@ -114,6 +114,99 @@ vga_memory: region at bf000000 { }; };
Quoted 9 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts vga_memory: region at bf000000 { · line 120
Quoted 4 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +4
-0+ leds { + compatible = "gpio-leds"; + + bmc-ready {It does not look like you tested the DTS against bindings. Please run
make dtbs_check W=1(seeDocumentation/devicetree/bindings/writing-schema.rstor
https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
for instructions).
Fixed names.
Quoted 6 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts vga_memory: region at bf000000 { · line 124
Quoted 5 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +4
-0+ gpios = <&gpio0 ASPEED_GPIO(L, 7) GPIO_ACTIVE_HIGH>; + }; + + bmc-hb {None of these were tested.
Fixed names
Quoted 9 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts &uhci { · line 355
Quoted 4 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +1
-1/*A0-A7*/ "","","","","","","","", - /*B0-B7*/ "","","","","","","","", + /*B0-B7*/ "","","","","bmc-tpm-reset","","","",Really? You just added these lines. There is no point in adding a new line and immediately changing it.
This points how your split is artificial and not helpful.
...
Now I have a single commit for device tree.
Quoted 7 lines
Quoted 7 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +0
-0&i2c2 {@@ -486,6 +744,20 @@ regulator at 43 { &i2c6 { status = "okay";
Quoted 6 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts regulator at 43 { · line 751
Quoted 5 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +5
-0+ fan-controller at 52 { + compatible = "maxim,max31785a"; + reg = <0x52>; + #address-cells = <1>; + #size-cells = <0>;Why do you need cells?
Removed cells.
Quoted 9 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts regulator at 43 { · line 758
Quoted 8 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +7
-0+ }; + + fan-controller at 54 { + compatible = "maxim,max31785a"; + reg = <0x54>; + #address-cells = <1>; + #size-cells = <0>;Why do you need cells?
Removed cells.
Quoted 54 lines
Quoted 54 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +44
-0+ }; + i2c-mux at 70 { compatible = "nxp,pca9548"; reg = <0x70>;@@ -522,6 +794,48 @@ i2c6mux0chn4: i2c at 4 { #address-cells = <1>; #size-cells = <0>; reg = <4>; + + led-controller at 60 { + compatible = "nxp,pca9551"; + reg = <0x60>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + led at 0 { + label = "enclosure-id-led"; + reg = <0>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 1 { + label = "attention-led"; + reg = <1>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 2 { + label = "enclosure-fault-rollup-led"; + reg = <2>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + + led at 3 { + label = "power-on-led"; + reg = <3>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + }; };
Quoted 10 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts i2c6mux0chn7: i2c at 7 { · line 860
Quoted 7 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +2
-0i2c6mux0chn5: i2c at 5 {@@ -542,6 +856,44 @@ i2c6mux0chn7: i2c at 7 { reg = <7>; }; }; + + pca3: pca9539 at 74 {Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
Fixed node names.
Quoted 15 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts i2c6mux0chn7: i2c at 7 { · line 870
Quoted 12 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +10
-0+ compatible = "nxp,pca9539"; + reg = <0x74>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + }; + + pca4: pca9539 at 77 {Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
Fixed node names.
Quoted 44 lines
Quoted 42 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +33
-0+ compatible = "nxp,pca9539"; + reg = <0x77>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + gpio-line-names = + "PE_NVMED0_EXP_PRSNT_N", + "PE_NVMED1_EXP_PRSNT_N", + "PE_NVMED2_EXP_PRSNT_N", + "PE_NVMED3_EXP_PRSNT_N", + "LED_FAULT_NVMED0", + "LED_FAULT_NVMED1", + "LED_FAULT_NVMED2", + "LED_FAULT_NVMED3", + "FAN0_PRESENCE_R_N", + "FAN1_PRESENCE_R_N", + "FAN2_PRESENCE_R_N", + "FAN3_PRESENCE_R_N", + "FAN4_PRESENCE_R_N", + "FAN5_PRESENCE_N", + "FAN6_PRESENCE_N", + ""; + }; }; &i2c7 {@@ -809,6 +1161,191 @@ regulator at 41 { compatible = "infineon,ir38263"; reg = <0x41>; }; + + led-controller at 61 { + compatible = "nxp,pca9552"; + reg = <0x61>; + #address-cells = <1>; + #size-cells = <0>; +...
Quoted 13 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts regulator at 41 { · line 1295
Quoted 10 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-system1.dts +10
-0+ led at 15 { + label = "pe-cp-drv3-perst"; + reg = <15>; + retain-state-shutdown; + default-state = "keep"; + type = <PCA955X_TYPE_LED>; + }; + }; + + pca1: pca9539 at 75 {Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
Fixed names.
Thanks for the review.
Regards,
Ninad
Re: [PATCH v1 7/8] tpm: tis-i2c: Add more compatible strings
In reply to Conor DooleyHello Conor,
Quoted 11 lines · Conor Dooley
Quoted 9 lines · Ninad Palsule
From: Joel Stanley <[email protected]>
The NPCT75x TPM is TIS compatible. It has an I2C and SPI interface.
https://www.nuvoton.com/products/cloud-computing/security/trusted-platform-module-tpm/
Add a compatible string for it, and the generic compatible.
OpenBMC-Staging-Count: 3
Delete this from every patch that it appears from.
Removed.
Quoted 22 lines
Quoted 14 lines
Signed-off-by Joel Stanley <[email protected]>Acked-by Jarkko Sakkinen <[email protected]>Link https://lore.kernel.org/r/20220928043957.2636877-4-joel at jms.id.auSigned-off-by Ninad Palsule <[email protected]>--- drivers/char/tpm/tpm_tis_i2c.c | 2 ++ 1 file changed, 2 insertions(+)drivers/char/tpm/tpm_tis_i2c.c +0
-0drivers/char/tpm/tpm_tis_i2c.c MODULE_DEVICE_TABLE(i2c, tpm_tis_i2c_id); · line 387
Quoted 5 lines
drivers/char/tpm/tpm_tis_i2c.c +2
-0@@ -383,6 +383,8 @@ MODULE_DEVICE_TABLE(i2c, tpm_tis_i2c_id);#ifdef CONFIG_OF static const struct of_device_id of_tis_i2c_match[] = { { .compatible ="infineon,slb9673" , }, + { .compatible ="nuvoton,npct75x" , }, + { .compatible = "tcg,tpm-tis-i2c", },What's the point of the generic compatible if you are adding the device specific ones to the driver anyway?
Quoted 2 lines
Thanks,
Conor.
I have removed this commit from this patchset and send it as a separate patch.
Regards,
Ninad
Re: [PATCH v1 7/8] tpm: tis-i2c: Add more compatible strings
In reply to Guenter RoeckHello Guenter,
Quoted 8 lines · Guenter Roeck
Quoted 7 lines · Conor Dooley
Quoted 6 lines · Guenter Roeck
Quoted 5 lines · Conor Dooley
Quoted 4 lines · Ninad Palsule
From: Joel Stanley <[email protected]>
The NPCT75x TPM is TIS compatible. It has an I2C and SPI interface.
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
https://www.nuvoton.com/products/cloud-computing/security/trusted-platform-module-tpm/
Add a compatible string for it, and the generic compatible.
OpenBMC-Staging-Count: 3
Delete this from every patch that it appears from.
I have send it as a separate commit.
https://lore.kernel.org/linux-kernel/20231214144954.3833998-1-ninad at linux.ibm.com/
Re: [PATCH v1 7/8] tpm: tis-i2c: Add more compatible strings
Quoted 14 lines · Ninad Palsule
Hello Guenter,
Quoted 11 lines · Guenter Roeck
Quoted 10 lines · Conor Dooley
Quoted 9 lines · Guenter Roeck
Quoted 8 lines · Conor Dooley
Quoted 7 lines · Ninad Palsule
From: Joel Stanley <[email protected]>
The NPCT75x TPM is TIS compatible. It has an I2C and SPI interface.
https://www.nuvoton.com/products/cloud-computing/security/trusted-platform-module-tpm/
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
Add a compatible string for it, and the generic compatible.
OpenBMC-Staging-Count: 3
Delete this from every patch that it appears from.
I have send it as a separate commit. https://lore.kernel.org/linux-kernel/20231214144954.3833998-1-ninad at linux.ibm.com/
Why did you do that? It now just adds undocumented compatibles to the driver. Please, as Rob requested, work with Lukas on his series to make sure that these devices are documented.
Thanks,
Conor.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linux-aspeed/attachments/20240109/a7caf3ea/attachment.sig>
Re: [PATCH v1 7/8] tpm: tis-i2c: Add more compatible strings
Hi Conor,
Quoted 17 lines · Conor Dooley
Quoted 16 lines · Ninad Palsule
Hello Guenter,
Quoted 13 lines · Guenter Roeck
Quoted 12 lines · Conor Dooley
Quoted 11 lines · Guenter Roeck
Quoted 10 lines · Conor Dooley
Quoted 9 lines · Ninad Palsule
From: Joel Stanley <[email protected]>
The NPCT75x TPM is TIS compatible. It has an I2C and SPI interface.
https://www.nuvoton.com/products/cloud-computing/security/trusted-platform-module-tpm/
Add a compatible string for it, and the generic compatible.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
OpenBMC-Staging-Count: 3
Delete this from every patch that it appears from.
I have send it as a separate commit. https://lore.kernel.org/linux-kernel/20231214144954.3833998-1-ninad at linux.ibm.com/
Why did you do that? It now just adds undocumented compatibles to the driver. Please, as Rob requested, work with Lukas on his series to make sure that these devices are documented.
I think krzysztof kozlowski suggested to send these patches separately:
https://lore.kernel.org/linux-kernel/1c5ace65-2fd8-4503-b22f-e0f564d1c83f at linaro.org/
Did I misunderstood it? Do you guys want me to include that commit again?
Regards,
Ninad
Quoted 3 lines
Thanks,
Conor.
Re: [PATCH v1 7/8] tpm: tis-i2c: Add more compatible strings
In reply to Conor DooleyHello Conor,
Quoted 17 lines · Conor Dooley
Quoted 16 lines · Ninad Palsule
Hello Guenter,
Quoted 13 lines · Guenter Roeck
Quoted 12 lines · Conor Dooley
Quoted 11 lines · Guenter Roeck
Quoted 10 lines · Conor Dooley
Quoted 9 lines · Ninad Palsule
From: Joel Stanley <[email protected]>
The NPCT75x TPM is TIS compatible. It has an I2C and SPI interface.
https://www.nuvoton.com/products/cloud-computing/security/trusted-platform-module-tpm/
Add a compatible string for it, and the generic compatible.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
OpenBMC-Staging-Count: 3
Delete this from every patch that it appears from.
I have send it as a separate commit. https://lore.kernel.org/linux-kernel/20231214144954.3833998-1-ninad at linux.ibm.com/
Why did you do that? It now just adds undocumented compatibles to the driver. Please, as Rob requested, work with Lukas on his series to make sure that these devices are documented.
I think krzysztof kozlowski suggested to send these patches separately:
https://lore.kernel.org/linux-kernel/1c5ace65-2fd8-4503-b22f-e0f564d1c83f at linaro.org/
Did I misunderstood it? Do you guys want me to include that commit again?
Regards,
Ninad
Re: [PATCH v1 7/8] tpm: tis-i2c: Add more compatible strings
Quoted 24 lines · Ninad Palsule
Hello Conor,
Quoted 21 lines · Conor Dooley
Quoted 20 lines · Ninad Palsule
Hello Guenter,
Quoted 8 lines · Guenter Roeck
Quoted 7 lines · Conor Dooley
Quoted 6 lines · Guenter Roeck
Quoted 5 lines · Conor Dooley
Quoted 4 lines · Ninad Palsule
From: Joel Stanley <[email protected]>
The NPCT75x TPM is TIS compatible. It has an I2C and SPI interface.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
https://www.nuvoton.com/products/cloud-computing/security/trusted-platform-module-tpm/
Add a compatible string for it, and the generic compatible.
OpenBMC-Staging-Count: 3
Delete this from every patch that it appears from.
I have send it as a separate commit. https://lore.kernel.org/linux-kernel/20231214144954.3833998-1-ninad at linux.ibm.com/
Quoted 8 lines
Quoted 3 lines
Why did you do that? It now just adds undocumented compatibles to the driver. Please, as Rob requested, work with Lukas on his series to make sure that these devices are documented.
I think krzysztof kozlowski suggested to send these patches separately:
https://lore.kernel.org/linux-kernel/1c5ace65-2fd8-4503-b22f-e0f564d1c83f at linaro.org/Did I misunderstood it? Do you guys want me to include that commit again?
My comment was in DTS thread under specific DTS patch. How did you figure out it applies to driver and bindings? This does not make sense.
Best regards,
Krzysztof
Re: [PATCH v1 7/8] tpm: tis-i2c: Add more compatible strings
Hello Krzysztof,
Quoted 10 lines
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
I have send it as a separate commit. https://lore.kernel.org/linux-kernel/20231214144954.3833998-1-ninad at linux.ibm.com/
Why did you do that? It now just adds undocumented compatibles to the driver. Please, as Rob requested, work with Lukas on his series to make sure that these devices are documented.
I think krzysztof kozlowski suggested to send these patches separately:
https://lore.kernel.org/linux-kernel/1c5ace65-2fd8-4503-b22f-e0f564d1c83f at linaro.org/Did I misunderstood it? Do you guys want me to include that commit again?
My comment was in DTS thread under specific DTS patch. How did you figure out it applies to driver and bindings? This does not make sense.
Sorry for the misunderstanding. Where do you want me to add driver patch? Before all DTS patches or after all DTS patches?
tpm: tis-i2c: Add more compatible strings
ARM: dts: aspeed: System1: IBM system1 BMC board
dt-bindings: Add DPS310 as trivial device
dt-bindings: arm: aspeed: add IBM system1-bmc
OR
ARM: dts: aspeed: System1: IBM system1 BMC board
dt-bindings: Add DPS310 as trivial device
dt-bindings: arm: aspeed: add IBM system1-bmc
tpm: tis-i2c: Add more compatible strings
Thanks & Regards,
Ninad Palsule
Re: [PATCH v1 7/8] tpm: tis-i2c: Add more compatible strings
Quoted 11 lines · Ninad Palsule
Hello Krzysztof,
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
I have send it as a separate commit. https://lore.kernel.org/linux-kernel/20231214144954.3833998-1-ninad at linux.ibm.com/
Why did you do that? It now just adds undocumented compatibles to the driver. Please, as Rob requested, work with Lukas on his series to make sure that these devices are documented.
I think krzysztof kozlowski suggested to send these patches separately:
https://lore.kernel.org/linux-kernel/1c5ace65-2fd8-4503-b22f-e0f564d1c83f at linaro.org/
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Did I misunderstood it? Do you guys want me to include that commit again?
My comment was in DTS thread under specific DTS patch. How did you figure out it applies to driver and bindings? This does not make sense.
Sorry for the misunderstanding. Where do you want me to add driver patch? Before all DTS patches or after all DTS patches?
Does not matter, why do you insist on combining them with DTS? Drivers and bindings are going together. DTS better separate, although depending on the case can be together.
Best regards,
Krzysztof
Re: [PATCH v1 7/8] tpm: tis-i2c: Add more compatible strings
Hello Krzysztof,
Quoted 12 lines · Krzysztof Kozlowski
Quoted 11 lines · Ninad Palsule
Hello Krzysztof,
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
I have send it as a separate commit. https://lore.kernel.org/linux-kernel/20231214144954.3833998-1-ninad at linux.ibm.com/
Why did you do that? It now just adds undocumented compatibles to the driver. Please, as Rob requested, work with Lukas on his series to make sure that these devices are documented.
I think krzysztof kozlowski suggested to send these patches separately:
https://lore.kernel.org/linux-kernel/1c5ace65-2fd8-4503-b22f-e0f564d1c83f at linaro.org/
Quoted 9 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Did I misunderstood it? Do you guys want me to include that commit again?
My comment was in DTS thread under specific DTS patch. How did you figure out it applies to driver and bindings? This does not make sense.
Sorry for the misunderstanding. Where do you want me to add driver patch? Before all DTS patches or after all DTS patches?
Does not matter, why do you insist on combining them with DTS? Drivers and bindings are going together. DTS better separate, although depending on the case can be together.
I have combined DTS and Driver because DTS was using compatibility string which is not upstream yet hence I thought it is logical to send it under same patchset.
Conor and Rob, Do you have preference?
Thanks & Regards,
Ninad Palsule
Re: [PATCH v1 7/8] tpm: tis-i2c: Add more compatible strings
Quoted 25 lines · Ninad Palsule
Hello Krzysztof,
Quoted 12 lines · Krzysztof Kozlowski
Quoted 11 lines · Ninad Palsule
Hello Krzysztof,
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
I have send it as a separate commit. https://lore.kernel.org/linux-kernel/20231214144954.3833998-1-ninad at linux.ibm.com/
Why did you do that? It now just adds undocumented compatibles to the driver. Please, as Rob requested, work with Lukas on his series to make sure that these devices are documented.
I think krzysztof kozlowski suggested to send these patches separately:
https://lore.kernel.org/linux-kernel/1c5ace65-2fd8-4503-b22f-e0f564d1c83f at linaro.org/Quoted 9 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Did I misunderstood it? Do you guys want me to include that commit again?
My comment was in DTS thread under specific DTS patch. How did you figure out it applies to driver and bindings? This does not make sense.
Sorry for the misunderstanding. Where do you want me to add driver patch? Before all DTS patches or after all DTS patches?
Does not matter, why do you insist on combining them with DTS? Drivers and bindings are going together. DTS better separate, although depending on the case can be together.
Quoted 5 lines
I have combined DTS and Driver because DTS was using compatibility string which is not upstream yet hence I thought it is logical to send it under same patchset.
Conor and Rob, Do you have preference?
I'm not sure what you want from me that Krzysztof hasn't already
provided. dt-bindings and drivers usually go together, and the dts
patches are often in the same series. If you send dts separately, note
under the --- line the patches adding the binding so that the platform
maintainer knows that the compatible has not yet been documented.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linux-aspeed/attachments/20240110/113a8355/attachment.sig>
Re: [PATCH v1 7/8] tpm: tis-i2c: Add more compatible strings
In reply to Ninad PalsuleQuoted 21 lines · Ninad Palsule
Hello Krzysztof,
Quoted 17 lines · Krzysztof Kozlowski
Quoted 16 lines · Ninad Palsule
Hello Krzysztof,
Quoted 10 lines
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
I have send it as a separate commit. https://lore.kernel.org/linux-kernel/20231214144954.3833998-1-ninad at linux.ibm.com/
Why did you do that? It now just adds undocumented compatibles to the driver. Please, as Rob requested, work with Lukas on his series to make sure that these devices are documented.
I think krzysztof kozlowski suggested to send these patches separately:
https://lore.kernel.org/linux-kernel/1c5ace65-2fd8-4503-b22f-e0f564d1c83f at linaro.org/Did I misunderstood it? Do you guys want me to include that commit again?
My comment was in DTS thread under specific DTS patch. How did you figure out it applies to driver and bindings? This does not make sense.
Sorry for the misunderstanding. Where do you want me to add driver patch? Before all DTS patches or after all DTS patches?
Quoted 7 lines
Quoted 4 lines
Does not matter, why do you insist on combining them with DTS? Drivers and bindings are going together. DTS better separate, although depending on the case can be together.
I have combined DTS and Driver because DTS was using compatibility string which is not upstream yet hence I thought it is logical to send it under same patchset.
Sometimes yes, sometimes not. DTS must not go via driver subsystem, so sending it in the same patchset has implications on maintainers applying it. Some like it, some don't and you will be nagged for combining them.
Best regards,
Krzysztof
Re: [PATCH v1 7/8] tpm: tis-i2c: Add more compatible strings
Quoted 26 lines · Krzysztof Kozlowski
Quoted 25 lines · Ninad Palsule
Hello Krzysztof,
Quoted 21 lines · Krzysztof Kozlowski
Quoted 8 lines · Ninad Palsule
Hello Krzysztof,
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
I have send it as a separate commit. https://lore.kernel.org/linux-kernel/20231214144954.3833998-1-ninad at linux.ibm.com/
Why did you do that? It now just adds undocumented compatibles to the driver. Please, as Rob requested, work with Lukas on his series to make sure that these devices are documented.
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
I think krzysztof kozlowski suggested to send these patches separately:
https://lore.kernel.org/linux-kernel/1c5ace65-2fd8-4503-b22f-e0f564d1c83f at linaro.org/Did I misunderstood it? Do you guys want me to include that commit again?
My comment was in DTS thread under specific DTS patch. How did you figure out it applies to driver and bindings? This does not make sense.
Sorry for the misunderstanding. Where do you want me to add driver patch? Before all DTS patches or after all DTS patches?
Does not matter, why do you insist on combining them with DTS? Drivers and bindings are going together. DTS better separate, although depending on the case can be together.
Quoted 8 lines
Quoted 3 lines
I have combined DTS and Driver because DTS was using compatibility string which is not upstream yet hence I thought it is logical to send it under same patchset.
Sometimes yes, sometimes not. DTS must not go via driver subsystem, so sending it in the same patchset has implications on maintainers applying it. Some like it, some don't and you will be nagged for combining them.
"DTS must not go via driver subsystem"
I always thought the guideline was to submit separate _patches_ for dts and driver changes, but as part of a single series. I didn't know that there is a rule to submit separate patch _series_. I also didn't know (and as far as I know no one called me on it) that I am not supposed to _apply_ dts changes. So far, I typically applied dts changes together with driver patches after receiving an Acked-by: or Reviewed-by:
from a devicetree maintainer.
This exchange suggests that I did it all wrong. Should I reject devicetree patches submitted as part of a driver patch series going forward ? Should I not apply dts patches submitted as part of a patch series ? If so, it would help to have some documentation I can point to to explain the rationale to submitters (and myself). Also, in that case, how is the synchronization between device tree patches and driver patches supposed to happen ?
FWIW, if dts changes are sent as separate series, I don't know how I would be able to review driver changes/submissions without being copied on the associated dts changes.
Guess I am more than a bit confused.
Thanks,
Guenter
Re: [PATCH v1 7/8] tpm: tis-i2c: Add more compatible strings
Quoted 38 lines · Guenter Roeck
Quoted 26 lines · Krzysztof Kozlowski
Quoted 25 lines · Ninad Palsule
Hello Krzysztof,
Quoted 21 lines · Krzysztof Kozlowski
Quoted 8 lines · Ninad Palsule
Hello Krzysztof,
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
I have send it as a separate commit. https://lore.kernel.org/linux-kernel/20231214144954.3833998-1-ninad at linux.ibm.com/
Why did you do that? It now just adds undocumented compatibles to the driver. Please, as Rob requested, work with Lukas on his series to make sure that these devices are documented.
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
I think krzysztof kozlowski suggested to send these patches separately:
https://lore.kernel.org/linux-kernel/1c5ace65-2fd8-4503-b22f-e0f564d1c83f at linaro.org/Did I misunderstood it? Do you guys want me to include that commit again?
My comment was in DTS thread under specific DTS patch. How did you figure out it applies to driver and bindings? This does not make sense.
Sorry for the misunderstanding. Where do you want me to add driver patch? Before all DTS patches or after all DTS patches?
Does not matter, why do you insist on combining them with DTS? Drivers and bindings are going together. DTS better separate, although depending on the case can be together.
Quoted 8 lines
Quoted 3 lines
I have combined DTS and Driver because DTS was using compatibility string which is not upstream yet hence I thought it is logical to send it under same patchset.
Sometimes yes, sometimes not. DTS must not go via driver subsystem, so sending it in the same patchset has implications on maintainers applying it. Some like it, some don't and you will be nagged for combining them.
"DTS must not go via driver subsystem"
Quoted 7 lines
I always thought the guideline was to submit separate _patches_ for dts and driver changes, but as part of a single series. I didn't know that there is a rule to submit separate patch _series_. I also didn't know (and as far as I know no one called me on it) that I am not supposed to _apply_ dts changes. So far, I typically applied dts changes together with driver patches after receiving an Acked-by: or Reviewed-by:
from a devicetree maintainer.
I did not notice you applying them, but such guideline - DTS must go via respective SoC tree - was always repeated by me and SoC maintainers. Just like gazillion other things probably was not documented... or even if it was documented, it would be so deep among hundreds of other rules nobody would find it. :)
Quoted 3 lines
This exchange suggests that I did it all wrong. Should I reject devicetree patches submitted as part of a driver patch series going forward ?
I propose: just ignore them. The SoC maintainer will pick them up.
Quoted 1 line
Should I not apply dts patches submitted as part of a patch series ?
No, please do not apply them.
Quoted 2 lines
If so, it would help to have some documentation I can point to to explain the rationale to submitters (and myself). Also, in that case, how is the
Yes, it would. I can try to create something.
Quoted 2 lines
synchronization between device tree patches and driver patches supposed to happen ?
There should not be synchronization. Just to remind: we talk about DTS (so also DTSI and DTSO), thus everything being in arch/*/boot/dts/. We do not talk about DT bindings, right? The bindings are obvious (and documented): preferably go via driver subsystem, with fallback/special cases via SoC tree and fallback to Rob.
The DTS must be independent from driver changes. If synchronization is needed, it means it is not independent. It happens from time to time, kind of expected exception, with proper justifications. In such case, recommendation is to send DTS for the next kernel release, so after the driver changes hit rc1.
Quoted 4 lines
FWIW, if dts changes are sent as separate series, I don't know how I would be able to review driver changes/submissions without being copied on the associated dts changes.
People are also encouraged to provide links between them. One lore link is required: the DTS patchset, if sent in parallel, should have a link to the thread with the bindings being reviewed on the list. Of course if bindings are already accepted (in linux-next), then it's not necessary. We all know how to use git grep.
Now about your specific question:
As a driver subsystem maintainer you are not expected, as a requirement, to review DTS code. You can, you are welcomed, but don't you have already too much stuff to review? Why would like to jump to DTS? If you do, your help is appreciated, though. However think for a sec how would it even work? Imagine we send new driver + bindings + DTS for OMAP in one thread, so you see the DTS for your review. Now 2 months later I send DTS for Qualcomm using that driver. You would never be Cc-ed on this second submission. It wouldn't be even possible: get_maintainers.pl would not print your email. Why would you be expected to be CCed on first DTS to review and not on all others/further ones? This does not make sense, really.
BTW, I am not saying here anything new. I was babbling about this every second month since few years. :)
Best regards,
Krzysztof
Re: [PATCH v1 7/8] tpm: tis-i2c: Add more compatible strings
Quoted 42 lines · Krzysztof Kozlowski
Quoted 27 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
I have send it as a separate commit. https://lore.kernel.org/linux-kernel/20231214144954.3833998-1-ninad at linux.ibm.com/
Why did you do that? It now just adds undocumented compatibles to the driver. Please, as Rob requested, work with Lukas on his series to make sure that these devices are documented.
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
I think krzysztof kozlowski suggested to send these patches separately:
https://lore.kernel.org/linux-kernel/1c5ace65-2fd8-4503-b22f-e0f564d1c83f at linaro.org/Did I misunderstood it? Do you guys want me to include that commit again?
My comment was in DTS thread under specific DTS patch. How did you figure out it applies to driver and bindings? This does not make sense.
Sorry for the misunderstanding. Where do you want me to add driver patch? Before all DTS patches or after all DTS patches?
Does not matter, why do you insist on combining them with DTS? Drivers and bindings are going together. DTS better separate, although depending on the case can be together.
Quoted 8 lines
Quoted 3 lines
I have combined DTS and Driver because DTS was using compatibility string which is not upstream yet hence I thought it is logical to send it under same patchset.
Sometimes yes, sometimes not. DTS must not go via driver subsystem, so sending it in the same patchset has implications on maintainers applying it. Some like it, some don't and you will be nagged for combining them.
"DTS must not go via driver subsystem"
Quoted 7 lines
I always thought the guideline was to submit separate _patches_ for dts and driver changes, but as part of a single series. I didn't know that there is a rule to submit separate patch _series_. I also didn't know (and as far as I know no one called me on it) that I am not supposed to _apply_ dts changes. So far, I typically applied dts changes together with driver patches after receiving an Acked-by: or Reviewed-by:
from a devicetree maintainer.I did not notice you applying them, but such guideline - DTS must go via respective SoC tree - was always repeated by me and SoC maintainers. Just like gazillion other things probably was not documented... or even if it was documented, it would be so deep among hundreds of other rules nobody would find it. :)
Quoted 1 line
Quoted 8 lines
Quoted 2 lines
This exchange suggests that I did it all wrong. Should I reject devicetree patches submitted as part of a driver patch series going forward ?
I propose: just ignore them. The SoC maintainer will pick them up.
Quoted 1 line
Should I not apply dts patches submitted as part of a patch series ?
No, please do not apply them.
Eh, English can be confusing. Let's make it easier to grasp:
"Please do not apply DTS patches to a driver subsystem."
Best regards,
Krzysztof
Re: [PATCH v1 7/8] tpm: tis-i2c: Add more compatible strings
In reply to Krzysztof KozlowskiQuoted 68 lines · Krzysztof Kozlowski
Quoted 38 lines · Guenter Roeck
Quoted 26 lines · Krzysztof Kozlowski
Quoted 25 lines · Ninad Palsule
Hello Krzysztof,
Quoted 21 lines · Krzysztof Kozlowski
Quoted 8 lines · Ninad Palsule
Hello Krzysztof,
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
I have send it as a separate commit. https://lore.kernel.org/linux-kernel/20231214144954.3833998-1-ninad at linux.ibm.com/
Why did you do that? It now just adds undocumented compatibles to the driver. Please, as Rob requested, work with Lukas on his series to make sure that these devices are documented.
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
I think krzysztof kozlowski suggested to send these patches separately:
https://lore.kernel.org/linux-kernel/1c5ace65-2fd8-4503-b22f-e0f564d1c83f at linaro.org/Did I misunderstood it? Do you guys want me to include that commit again?
My comment was in DTS thread under specific DTS patch. How did you figure out it applies to driver and bindings? This does not make sense.
Sorry for the misunderstanding. Where do you want me to add driver patch? Before all DTS patches or after all DTS patches?
Does not matter, why do you insist on combining them with DTS? Drivers and bindings are going together. DTS better separate, although depending on the case can be together.
Quoted 8 lines
Quoted 3 lines
I have combined DTS and Driver because DTS was using compatibility string which is not upstream yet hence I thought it is logical to send it under same patchset.
Sometimes yes, sometimes not. DTS must not go via driver subsystem, so sending it in the same patchset has implications on maintainers applying it. Some like it, some don't and you will be nagged for combining them.
"DTS must not go via driver subsystem"
Quoted 7 lines
I always thought the guideline was to submit separate _patches_ for dts and driver changes, but as part of a single series. I didn't know that there is a rule to submit separate patch _series_. I also didn't know (and as far as I know no one called me on it) that I am not supposed to _apply_ dts changes. So far, I typically applied dts changes together with driver patches after receiving an Acked-by: or Reviewed-by:
from a devicetree maintainer.I did not notice you applying them, but such guideline - DTS must go via respective SoC tree - was always repeated by me and SoC maintainers. Just like gazillion other things probably was not documented... or even if it was documented, it would be so deep among hundreds of other rules nobody would find it. :)
Quoted 3 lines
This exchange suggests that I did it all wrong. Should I reject devicetree patches submitted as part of a driver patch series going forward ?
I propose: just ignore them. The SoC maintainer will pick them up.
Quoted 1 line
Should I not apply dts patches submitted as part of a patch series ?
No, please do not apply them.
Quoted 2 lines
If so, it would help to have some documentation I can point to to explain the rationale to submitters (and myself). Also, in that case, how is the
Yes, it would. I can try to create something.
Quoted 9 lines
Quoted 2 lines
synchronization between device tree patches and driver patches supposed to happen ?
There should not be synchronization. Just to remind: we talk about DTS (so also DTSI and DTSO), thus everything being in
arch/*/boot/dts/. We do not talk about DT bindings, right? The bindings are obvious (and documented): preferably go via driver subsystem, with fallback/special cases via SoC tree and fallback to Rob.
Sorry, misunderstanding on my side. I do not and never did apply patches in arch/*/boot/dts/. I referred to patches in Documentation/devicetree/
Sorry, I though you also referred to bindings. My bad.
Guenter