Message ID | 1675942646-31006-2-git-send-email-manikanta.guntupalli@amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Added Standard mode and SMBus support. | expand |
On 09/02/2023 12:37, Manikanta Guntupalli wrote: > From: Raviteja Narayanam <raviteja.narayanam@xilinx.com> > > Add xilinx I2C new version 'xlnx,axi-iic-2.1' string to compatible A nit: Missing full stop in this sentence. > Add clock-frequency as optional property. > > Signed-off-by: Raviteja Narayanam <raviteja.narayanam@xilinx.com> > Signed-off-by: Manikanta Guntupalli <manikanta.guntupalli@amd.com> > Acked-by: Michal Simek <michal.simek@amd.com> > --- > > + clock-frequency: > + description: > + Optional I2C SCL clock frequency. If not specified, do not configure > + in software, rely only on hardware design value. Supported frequencies > + are 100KHz, 400KHz and 1MHz. > + default: 100000 Then also: enum: [ 100000, 400000, 1000000 ] and drop the freeform text (last sentence from description). Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/i2c/xlnx,xps-iic-2.00.a.yaml b/Documentation/devicetree/bindings/i2c/xlnx,xps-iic-2.00.a.yaml index 8d241a703d85..3f95ff2b5771 100644 --- a/Documentation/devicetree/bindings/i2c/xlnx,xps-iic-2.00.a.yaml +++ b/Documentation/devicetree/bindings/i2c/xlnx,xps-iic-2.00.a.yaml @@ -14,7 +14,9 @@ allOf: properties: compatible: - const: xlnx,xps-iic-2.00.a + enum: + - xlnx,axi-iic-2.1 + - xlnx,xps-iic-2.00.a reg: maxItems: 1 @@ -30,6 +32,13 @@ properties: description: | Input clock name. + clock-frequency: + description: + Optional I2C SCL clock frequency. If not specified, do not configure + in software, rely only on hardware design value. Supported frequencies + are 100KHz, 400KHz and 1MHz. + default: 100000 + required: - compatible - reg